/* ================================================
   Millet Life - Public Frontend Styles
   Color Palette: Green (#2E7D32), Gold (#F9A825), Orange (#FF7043)
   ================================================ */

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

:root {
  --primary: #2E7D32;
  --primary-dark: #1B5E20;
  --primary-light: #4CAF50;
  --secondary: #F9A825;
  --secondary-light: #FDD835;
  --accent: #FF7043;
  --bg: #FAFAF5;
  --bg-light: #FFFFFF;
  --bg-dark: #1B5E20;
  --text: #1A1A1A;
  --text-secondary: #555;
  --text-light: #888;
  --border: #E8E8E0;
  --divider: #F0F0E8;
  --shadow: rgba(0,0,0,0.08);
  --shadow-md: rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Millet background colors — matches App/src/theme/colors.ts millet entries */
  --millet-foxtail: rgba(139,195,74,0.08);
  --millet-barnyard: rgba(205,220,57,0.08);
  --millet-kodo: rgba(121,85,72,0.08);
  --millet-little: rgba(255,152,0,0.08);
  --millet-browntop: rgba(161,136,127,0.08);
  --millet-ragi: rgba(211,47,47,0.08);
  --millet-bajra: rgba(96,125,139,0.08);
  --millet-jowar: rgba(255,193,7,0.08);
  --millet-proso: rgba(141,110,99,0.08);

  /* Meal plan type indicator colors — matches MEAL_TYPE_COLORS in MealPlansScreen.tsx */
  --meal-breakfast: #FF9800;
  --meal-lunch: #4CAF50;
  --meal-dinner: #673AB7;
  --meal-snack: #E91E63;

  /* Recipe category badge text colors — matches categoryColors in RecipeCard.tsx */
  --cat-breakfast: #E65100;
  --cat-lunch: #BF360C;
  --cat-dinner: #4527A0;
  --cat-snacks: #AD1457;
  --cat-dessert: #7B1FA2;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Sans', 'Noto Sans Devanagari', 'Noto Sans Telugu', 'Noto Sans Tamil', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

img {
  max-width: 100%;
  height: auto;
}

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

/* ================================================
   Navigation
   ================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px var(--shadow);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.03);
}

.nav-brand {
  letter-spacing: -0.5px;
}

.nav-emoji {
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 600 !important;
  transition: background 0.2s, opacity 0.2s !important;
}

.nav-cta:hover {
  background: var(--primary-dark);
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ================================================
   Buttons
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  opacity: 0.92;
  box-shadow: 0 4px 16px rgba(46,125,50,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  opacity: 0.92;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1.05rem;
}

/* ================================================
   Hero Section
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #E8F5E9 0%, #FFF8E1 50%, #FFF3E0 100%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,125,50,0.08) 0%, transparent 70%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,168,37,0.1) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--primary);
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--secondary);
  opacity: 0.3;
  border-radius: 4px;
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px 40px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 24px var(--shadow);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ================================================
   Section Base
   ================================================ */
.section {
  padding: 80px 0;
}

.section-light {
  background: white;
}

.section-dark {
  background: var(--primary-dark);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-badge {
  display: inline-block;
  background: rgba(46,125,50,0.1);
  color: var(--primary);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-badge.light {
  background: rgba(255,255,255,0.15);
  color: var(--secondary-light);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.section-title.light {
  color: white;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.section-subtitle.light {
  color: rgba(255,255,255,0.8);
}

.section-footer {
  text-align: center;
  margin-top: 40px;
}

/* ================================================
   Benefits Grid
   ================================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.benefit-card:hover {
  box-shadow: 0 8px 32px var(--shadow);
  border-color: var(--primary-light);
}

.benefit-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.benefit-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ================================================
   Millets Grid
   ================================================ */
.millet-group {
  margin-bottom: 40px;
}

.group-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.group-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.group-dot.siri {
  background: var(--primary);
}

.group-dot.chiru {
  background: var(--secondary);
}

.group-subtitle {
  font-weight: 400;
  color: var(--text-light);
  font-size: 1rem;
}

.millets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.millet-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, border-color 0.2s;
  cursor: default;
}

.millet-card:hover {
  box-shadow: 0 8px 32px var(--shadow);
  border-color: var(--primary-light);
}

.millet-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.millet-emoji {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

/* Real millet icon (same PNG the app uses) inside the tinted circle */
.millet-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.millet-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.millet-name-local {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 400;
}

.millet-nutrition {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.millet-nutrient {
  display: flex;
  flex-direction: column;
}

.millet-nutrient-label {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.millet-nutrient-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.millet-soak {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.millet-soak strong {
  color: var(--text);
}

/* ================================================
   Feature / Recipe Cards
   ================================================ */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.recipe-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}

.recipe-card:hover {
  box-shadow: 0 8px 32px var(--shadow-md);
  border-color: var(--primary-light);
}

.recipe-card-body {
  padding: 20px;
}

.recipe-category {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.recipe-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.4;
}

.recipe-difficulty {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.recipe-meta {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
}

.recipe-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.recipe-meta-icon {
  font-size: 0.85rem;
}

/* Category Colors */
.cat-breakfast { background: rgba(255,152,0,0.12); color: var(--cat-breakfast); }
.cat-lunch { background: rgba(255,87,34,0.12); color: var(--cat-lunch); }
.cat-dinner { background: rgba(103,58,183,0.12); color: var(--cat-dinner); }
.cat-snacks { background: rgba(233,30,99,0.12); color: var(--cat-snacks); }
.cat-dessert { background: rgba(156,39,176,0.12); color: var(--cat-dessert); }

/* ================================================
   Remedies
   ================================================ */
.remedies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.remedy-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.remedy-card:hover {
  box-shadow: 0 4px 20px var(--shadow);
  border-color: var(--primary-light);
}

.remedy-condition {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.remedy-millet-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: rgba(46,125,50,0.08);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.remedy-days {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.remedy-notes {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================================================
   Meal Plans
   ================================================ */
.meal-plan-preview {
  max-width: 900px;
  margin: 0 auto;
}

.meal-plan-grid {
  display: grid;
  gap: 16px;
}

.day-card {
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
}

.day-header {
  background: rgba(255,255,255,0.1);
  padding: 12px 20px;
}

.day-name {
  font-weight: 700;
  color: var(--secondary-light);
  font-size: 1rem;
}

.day-meals {
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meal-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.9);
}

.meal-type-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.meal-type-breakfast { background: var(--meal-breakfast); }
.meal-type-lunch { background: var(--meal-lunch); }
.meal-type-dinner { background: var(--meal-dinner); }
.meal-type-snack { background: var(--meal-snack); }

/* ================================================
   CTA / Download Section
   ================================================ */
.section-cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #388E3C 100%);
  padding: 100px 0;
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-app-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  display: block;
  margin: 0 auto 20px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.28);
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.cta-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-bottom: 36px;
}

.cta-feature {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 500;
}

.cta-feature span {
  color: var(--secondary);
  font-weight: 700;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  /* Solid near-black badge (the official store-badge convention) so the buttons
     read clearly against the green section instead of washing into it. */
  background: #111;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  color: white;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
}

.store-btn:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.32);
}

.store-icon {
  display: flex;
  align-items: center;
}

.store-text {
  text-align: left;
}

.store-text small {
  display: block;
  font-size: 0.7rem;
  opacity: 0.8;
}

.store-text strong {
  font-size: 1.05rem;
  font-weight: 700;
}

/* ================================================
   Footer
   ================================================ */
.footer {
  background: #111;
  padding: 60px 0 24px;
  color: rgba(255,255,255,0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 360px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-langs {
  font-size: 0.85rem;
}

.footer-links-group h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-links-group a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-links-group a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ================================================
   Visual Refinements — polish layer
   (sits after the base styles but before the media
    queries, so the responsive overrides still win)
   ================================================ */

/* Crisper text rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fixed navbar: keep anchored section headings clear of it */
section[id] { scroll-margin-top: 84px; }

/* More premium heading typography */
.hero-title { letter-spacing: -1.5px; }
.section-title { letter-spacing: -0.4px; }
.group-title { letter-spacing: -0.2px; }
.hero-title .highlight::after { height: 12px; bottom: 3px; opacity: 0.35; }

/* Soft resting shadow + a gentle, springy lift on hover for content cards */
.benefit-card,
.millet-card,
.recipe-card,
.remedy-card {
  box-shadow: 0 1px 3px rgba(16,24,20,0.05);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.3s cubic-bezier(0.22,1,0.36,1),
              border-color 0.25s ease;
}
.benefit-card:hover,
.millet-card:hover,
.recipe-card:hover,
.remedy-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px -14px rgba(27,94,32,0.24);
  border-color: rgba(76,175,80,0.55);
}

/* Benefit icons in a soft, branded tile */
.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  font-size: 1.65rem;
  border-radius: 16px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(46,125,50,0.12), rgba(249,168,37,0.16));
  box-shadow: inset 0 0 0 1px rgba(46,125,50,0.06);
}

/* Buttons: gradient, depth, subtle lift */
.btn {
  transition: transform 0.2s cubic-bezier(0.22,1,0.36,1),
              background 0.2s ease, box-shadow 0.2s ease,
              color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-color: transparent;
  box-shadow: 0 8px 20px -8px rgba(46,125,50,0.55);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(46,125,50,0.6);
}
.btn-outline:hover { transform: translateY(-2px); }

/* Hero badge: refined, defined pill */
.hero-badge {
  background: rgba(46,125,50,0.1);
  color: var(--primary-dark);
  border: 1px solid rgba(46,125,50,0.22);
  box-shadow: 0 2px 10px rgba(46,125,50,0.08);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.72rem;
}

/* Section badge: hairline border for crispness */
.section-badge { border: 1px solid rgba(46,125,50,0.2); }

/* Hero stat card lifts on hover; tabular figures don't jump */
.hero-stats { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hero-stats:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(16,24,20,0.14);
}
.stat-number { font-variant-numeric: tabular-nums; }

/* Millet icon: a touch larger, gently scales when its card is hovered */
.millet-img {
  width: 44px;
  height: 44px;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.millet-card:hover .millet-img { transform: scale(1.08); }
.group-dot { box-shadow: 0 0 0 4px rgba(0,0,0,0.03); }

/* Richer dark sections (meal plans / CTA) */
.section-dark { background: linear-gradient(160deg, var(--primary-dark) 0%, #14461a 100%); }

/* Nav links: animated underline; CTA matches the primary button */
.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -5px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: right 0.25s ease;
}
.nav-links a:not(.nav-cta):hover::after { right: 0; }
.nav-cta {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 4px 12px -4px rgba(46,125,50,0.5);
}
.nav-cta:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 9px 18px -6px rgba(46,125,50,0.55);
}

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 1024px) {
  .recipes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Smooth the jump between desktop (3.5rem) and tablet (2.25rem) */
  .hero-title {
    font-size: 2.75rem;
  }

  .millets-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 8px 32px var(--shadow);
    border-top: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 16px;
    padding: 24px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .recipes-grid {
    grid-template-columns: 1fr;
  }

  .remedies-grid {
    grid-template-columns: 1fr;
  }

  .millets-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .stat-divider {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-stats {
    padding: 16px;
    gap: 12px;
  }

  .footer-grid {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .container {
    padding: 0 16px;
  }

  .store-btn {
    width: 100%;
    justify-content: center;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================================
   Accessibility (M35)
   ============================================================ */

/* Keyboard focus indicator — only for keyboard/programmatic focus,
   not mouse clicks (mouse focus is suppressed by :focus-visible). */
a:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid #2e7d32;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Respect users who prefer reduced motion: disable non-essential
   transforms/transitions/animations. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .millet-card:hover,
  .millet-card:hover .millet-img,
  .btn:hover,
  .btn-outline:hover,
  .hero-stats:hover {
    transform: none !important;
  }
}

