/* ================================================
   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;
}

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;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary-dark);
}

.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);
}

.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: #E65100; }
.cat-lunch { background: rgba(255,87,34,0.12); color: #BF360C; }
.cat-dinner { background: rgba(103,58,183,0.12); color: #4527A0; }
.cat-snacks { background: rgba(233,30,99,0.12); color: #AD1457; }
.cat-dessert { background: rgba(156,39,176,0.12); color: #7B1FA2; }

/* ================================================
   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: #FF9800; }
.meal-type-lunch { background: #4CAF50; }
.meal-type-dinner { background: #673AB7; }
.meal-type-snack { background: #E91E63; }

/* ================================================
   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-emoji {
  font-size: 4rem;
  display: block;
  margin-bottom: 16px;
}

.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;
  background: rgba(0,0,0,0.3);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  color: white;
  transition: background 0.2s, opacity 0.2s;
}

.store-btn:hover {
  background: rgba(0,0,0,0.5);
  opacity: 0.92;
}

.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 {
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.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);
}

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

  .benefits-grid {
    grid-template-columns: repeat(2, 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 {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }

  .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: center;
  }

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

  .stat-divider {
    display: none;
  }
}

@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;
  }
}

