/* GlucoThrive Design System - Static CSS */

/* CSS Variables / Design Tokens */
:root {
  /* Warm cream background */
  --background: hsl(40, 30%, 97%);
  --foreground: hsl(30, 15%, 20%);

  /* Cards with soft warmth */
  --card: hsl(40, 25%, 99%);
  --card-foreground: hsl(30, 15%, 20%);

  /* Deep red primary #C61E1E */
  --primary: hsl(0, 75%, 45%);
  --primary-foreground: hsl(40, 30%, 97%);
  
  /* Dark variant #B71C1C */
  --primary-dark: hsl(0, 75%, 41%);

  /* Warm beige secondary */
  --secondary: hsl(35, 30%, 92%);
  --secondary-foreground: hsl(30, 15%, 20%);

  /* Muted tones */
  --muted: hsl(35, 20%, 90%);
  --muted-foreground: hsl(30, 10%, 45%);

  /* Accent */
  --accent: hsl(0, 75%, 45%);
  --accent-foreground: hsl(40, 30%, 97%);

  --border: hsl(35, 20%, 85%);

  /* Natural green #5FA843 / #4CAF50 */
  --natural: hsl(100, 45%, 46%);
  --natural-light: hsl(122, 39%, 49%);
  --natural-foreground: hsl(40, 30%, 97%);

  /* Shadows */
  --card-shadow: 0 4px 20px -4px hsla(30, 15%, 20%, 0.08);
  --card-shadow-hover: 0 8px 30px -4px hsla(30, 15%, 20%, 0.12);
  --glow-primary: 0 0 40px hsla(0, 75%, 45%, 0.2);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;

  /* Spacing */
  --radius: 0.75rem;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

ul {
  list-style: none;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.text-primary {
  color: var(--primary);
}

.text-muted {
  color: var(--muted-foreground);
}

.text-center {
  text-align: center;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.italic {
  font-style: italic;
}

.text-xl {
  font-size: 1.25rem;
}

.mt-4 {
  margin-top: 1rem;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-up {
  animation: fadeUp 0.7s ease-out forwards;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  background-color: transparent;
}

.header.scrolled {
  background-color: hsla(40, 25%, 99%, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
  border-bottom: 1px solid var(--border);
}

.header-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 768px) {
  .header-container {
    height: 5rem;
  }
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

@media (min-width: 768px) {
  .logo {
    font-size: 1.5rem;
  }
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsla(30, 15%, 20%, 0.8);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
  color: var(--foreground);
  transition: color 0.2s ease;
}

.mobile-menu-btn:hover {
  color: var(--primary);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  z-index: 40;
  background-color: hsla(40, 25%, 99%, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  animation: fadeIn 0.2s ease-out;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 1rem;
}

.mobile-nav-link {
  text-align: left;
  padding: 0.5rem 0;
  font-weight: 500;
  color: hsla(30, 15%, 20%, 0.8);
  transition: color 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 0 3rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, hsla(35, 35%, 93%, 0.5), var(--background));
}

.hero-decoration-1 {
  position: absolute;
  top: 5rem;
  right: 2.5rem;
  width: 16rem;
  height: 16rem;
  background-color: hsla(0, 75%, 45%, 0.05);
  border-radius: 50%;
  filter: blur(48px);
}

.hero-decoration-2 {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  width: 12rem;
  height: 12rem;
  background-color: hsla(0, 75%, 45%, 0.1);
  border-radius: 50%;
  filter: blur(32px);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: hsla(100, 45%, 46%, 0.1);
  border-radius: 9999px;
  color: var(--natural);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-disclaimer {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero-disclaimer {
    font-size: 1rem;
  }
}

.hero-title {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 2rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-title span {
  display: block;
  margin-top: 0.5rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* Section Containers */
.section-container {
  max-width: 56rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

@media (min-width: 768px) {
  .section-container {
    padding: 6rem 1.5rem;
  }
}

.section-alt {
  background-color: hsla(35, 30%, 92%, 0.3);
  padding: 4rem 1.5rem;
}

@media (min-width: 768px) {
  .section-alt {
    padding: 6rem 1.5rem;
  }
}

.section-alt .content-wrapper {
  max-width: 48rem;
  margin: 0 auto;
}

.content-wrapper {
  max-width: 48rem;
  margin: 0 auto;
}

/* Typography */
.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 2rem;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.subsection {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
}

.subsection-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .subsection-title {
    font-size: 1.875rem;
  }
}

.content-text {
  color: hsla(30, 15%, 20%, 0.8);
  font-size: 1.125rem;
  line-height: 1.7;
}

.content-text p {
  margin-bottom: 1.5rem;
}

/* Struggle List */
.struggle-list {
  margin: 2rem 0;
}

.struggle-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.small-dot {
  width: 0.375rem;
  height: 0.375rem;
  background-color: hsla(30, 10%, 45%, 0.5);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Quote Block */
.quote-block {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background-color: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--card-shadow);
}

.quote-block p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  font-style: italic;
  color: var(--foreground);
  margin: 0;
}

/* Info Card */
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}

.info-card-icon {
  padding: 0.75rem;
  background-color: hsla(0, 75%, 45%, 0.1);
  border-radius: 0.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

.info-card p {
  color: var(--foreground);
  font-size: 1.125rem;
  margin: 0;
}

/* Highlight Block */
.highlight-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: hsla(0, 75%, 45%, 0.05);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 1.5rem 0;
}

.highlight-block svg {
  color: var(--primary);
  flex-shrink: 0;
}

.highlight-block p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

@media (min-width: 768px) {
  .highlight-block p {
    font-size: 1.5rem;
  }
}

/* Disclaimer Card */
.disclaimer-card {
  background-color: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}

.disclaimer-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.disclaimer-card li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted-foreground);
}

/* Benefits List */
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--card);
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
}

.benefit-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.benefit-item span {
  font-weight: 500;
  color: var(--foreground);
}

/* Consistency Note */
.consistency-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground);
}

.consistency-note svg {
  color: var(--accent);
}

/* Natural Badge */
.natural-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--natural);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Ingredients */
.ingredients-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ingredient-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.ingredient-card:hover {
  box-shadow: var(--card-shadow-hover);
}

.ingredient-icon {
  padding: 0.75rem;
  background-color: hsla(100, 45%, 46%, 0.1);
  border-radius: 0.5rem;
  color: var(--natural);
  flex-shrink: 0;
}

.ingredient-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--natural);
  margin-bottom: 0.5rem;
}

.ingredient-info p {
  color: var(--muted-foreground);
  margin: 0;
}

.ingredients-note {
  color: var(--muted-foreground);
  text-align: center;
  font-style: italic;
  margin-top: 2.5rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background-color: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: var(--card-shadow-hover);
}

.quote-icon {
  color: hsla(0, 75%, 45%, 0.3);
  margin-bottom: 1rem;
}

.testimonial-quote {
  color: var(--foreground);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.author-name {
  font-weight: 600;
  color: var(--foreground);
}

.author-age {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.testimonials-disclaimer {
  color: var(--muted-foreground);
  text-align: center;
  font-size: 0.875rem;
}

/* CTA Section */
.cta-wrapper {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.cta-subtitle {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.125rem;
  box-shadow: var(--glow-primary);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: scale(1.02);
  box-shadow: var(--card-shadow-hover);
}

.cta-button:active {
  transform: scale(0.98);
}

.cta-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-top: 1.5rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background-color: hsla(40, 25%, 99%, 0.5);
}

.footer-container {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-link {
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-divider {
  color: var(--border);
}

.copyright {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background-color: hsla(30, 15%, 20%, 0.2);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background-color: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow-hover);
  max-width: 32rem;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  animation: fadeUp 0.2s ease-out;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

.modal-close {
  padding: 0.5rem;
  color: var(--muted-foreground);
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: var(--foreground);
  background-color: var(--secondary);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: 60vh;
  color: var(--muted-foreground);
}

.modal-body h4 {
  font-weight: 600;
  color: var(--foreground);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.modal-body p {
  margin-bottom: 1rem;
}