/* ================================================
   AAHAAR — Indian Nutrition Guide
   Aesthetic: Warm organic editorial, saffron + sage
   Font: Playfair Display + DM Sans
   ================================================ */

:root {
  --saffron: #E8873A;
  --saffron-deep: #C9611E;
  --saffron-light: #FDF0E6;
  --sage: #4A7C59;
  --sage-light: #E8F0EB;
  --turmeric: #D4A017;
  --cardamom: #2C4A35;
  --clay: #8B4513;
  --cream: #FBF6EE;
  --deep: #1A1208;
  --mid: #5C4033;
  --muted: #9B7B6A;
  --white: #FFFFFF;
  --shadow: 0 4px 30px rgba(26,18,8,0.10);
  --shadow-lg: 0 12px 50px rgba(26,18,8,0.16);
  --radius: 16px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--deep);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ─── NAVBAR ─────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(251,246,238,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232,135,58,0.15);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
}
.logo-deva {
  font-family: 'Noto Sans Devanagari', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--saffron-deep);
}
.logo-en {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--mid);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}
.nav-links a {
  text-decoration: none;
  color: var(--mid);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--saffron-deep); }

.nav-cta {
  background: var(--saffron);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 40px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--saffron-deep); transform: translateY(-1px); }

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--mid);
}

/* ─── HERO ───────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 100px 24px 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #FBF6EE 0%, #FDF0E6 40%, #F5EBD8 100%);
  z-index: 0;
}

.spice-dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
}
.sd1 { width: 500px; height: 500px; background: radial-gradient(circle, var(--saffron) 0%, transparent 70%); top: -100px; right: -100px; animation: pulse 8s ease-in-out infinite; }
.sd2 { width: 350px; height: 350px; background: radial-gradient(circle, var(--turmeric) 0%, transparent 70%); bottom: 50px; left: -80px; animation: pulse 10s ease-in-out infinite reverse; }
.sd3 { width: 200px; height: 200px; background: radial-gradient(circle, var(--sage) 0%, transparent 70%); top: 40%; left: 15%; animation: pulse 12s ease-in-out infinite; }
.sd4 { width: 280px; height: 280px; background: radial-gradient(circle, var(--clay) 0%, transparent 70%); bottom: 20%; right: 15%; animation: pulse 9s ease-in-out infinite reverse; }

.grain-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-badge {
  display: inline-block;
  background: var(--sage-light);
  color: var(--sage);
  border: 1px solid rgba(74,124,89,0.25);
  padding: 6px 18px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  animation: slideDown 0.8s ease;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--deep);
  margin-bottom: 20px;
  animation: slideUp 0.9s ease 0.1s both;
}
.hero-title em {
  font-style: italic;
  color: var(--saffron-deep);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--mid);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
  animation: slideUp 0.9s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
  animation: slideUp 0.9s ease 0.3s both;
}

.btn-primary {
  background: var(--saffron);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(232,135,58,0.4);
}
.btn-primary:hover {
  background: var(--saffron-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,135,58,0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--mid);
  border: 2px solid rgba(92,64,51,0.3);
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost:hover {
  border-color: var(--saffron);
  color: var(--saffron-deep);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideUp 0.9s ease 0.4s both;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--saffron-deep);
}
.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bounce 2.5s ease-in-out infinite;
}

/* ─── SECTION HEADERS ────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--deep);
  margin-bottom: 10px;
}
.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
}
.section-header.light h2 { color: white; }
.section-header.light p { color: rgba(255,255,255,0.75); }

/* ─── FILTER SECTION ─────────────────────── */
.filter-section {
  padding: 90px 0 60px;
}

.search-bar-wrap {
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid rgba(232,135,58,0.2);
  border-radius: 50px;
  padding: 10px 20px;
  max-width: 520px;
  margin: 0 auto 32px;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s;
}
.search-bar-wrap:focus-within {
  border-color: var(--saffron);
  box-shadow: 0 0 0 4px rgba(232,135,58,0.12);
}
.search-icon { font-size: 1.1rem; }
.search-bar-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--deep);
  background: transparent;
}
.clear-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  padding: 2px 4px;
}

.category-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 44px;
}

.pill {
  background: white;
  border: 2px solid rgba(92,64,51,0.15);
  color: var(--mid);
  padding: 8px 20px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}
.pill:hover {
  border-color: var(--saffron);
  color: var(--saffron-deep);
}
.pill.active {
  background: var(--saffron);
  border-color: var(--saffron);
  color: white;
  box-shadow: 0 4px 14px rgba(232,135,58,0.35);
}

/* ─── FOOD GRID ──────────────────────────── */
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.food-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(232,135,58,0.08);
  position: relative;
  transition: transform 0.22s, box-shadow 0.22s;
  animation: fadeInUp 0.45s ease both;
  cursor: default;
}
.food-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-emoji {
  font-size: 2.6rem;
  margin-bottom: 10px;
  display: block;
}

.card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--sage-light);
  color: var(--sage);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 4px;
  line-height: 1.3;
}

.card-category {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

.card-macros {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.macro-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}
.macro-protein { background: #fdecea; color: #c0392b; }
.macro-carb { background: #fef5e4; color: #d68910; }
.macro-fat { background: #f4ecf7; color: #8e44ad; }

.card-cal {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 12px;
}
.cal-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--saffron-deep);
}
.cal-label {
  font-size: 0.75rem;
  color: var(--muted);
}

.macro-bar {
  display: flex;
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}
.bar-seg { height: 100%; transition: width 0.4s; }
.bar-p { background: #e74c3c; }
.bar-c { background: #f39c12; }
.bar-f { background: #9b59b6; }

.bar-legend {
  display: flex;
  gap: 10px;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 3px; }
.dot-p { background: #e74c3c; }
.dot-c { background: #f39c12; }
.dot-f { background: #9b59b6; }

.card-btn {
  width: 100%;
  background: var(--saffron-light);
  border: 1.5px solid rgba(232,135,58,0.3);
  color: var(--saffron-deep);
  padding: 10px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}
.card-btn:hover {
  background: var(--saffron);
  color: white;
  border-color: var(--saffron);
}

.no-results {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 0;
  font-size: 1.2rem;
  color: var(--muted);
  grid-column: 1/-1;
}
.no-results span { font-size: 3rem; }

/* ─── MODAL ──────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,18,8,0.65);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--cream);
  border-radius: 24px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 32px 80px rgba(26,18,8,0.3);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal::-webkit-scrollbar { width: 6px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb { background: rgba(232,135,58,0.3); border-radius: 3px; }

.modal-close {
  position: sticky;
  top: 16px;
  float: right;
  right: 16px;
  z-index: 10;
  background: white;
  border: 1.5px solid rgba(92,64,51,0.15);
  color: var(--mid);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 16px 0 0;
  transition: all 0.2s;
}
.modal-close:hover { background: var(--saffron); color: white; border-color: var(--saffron); }

.modal-inner { padding: 24px 32px 36px; }

.modal-top {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}
.modal-emoji { font-size: 3.5rem; flex-shrink: 0; }
.modal-title-block h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--deep);
  line-height: 1.2;
  margin-bottom: 4px;
}
.modal-category {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.modal-badge {
  display: inline-block;
  background: var(--sage-light);
  color: var(--sage);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modal-desc {
  color: var(--mid);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: white;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--saffron);
}

.modal-calories-big {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
}
.cal-big-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--saffron-deep);
}
.cal-big-label { font-size: 0.9rem; color: var(--muted); }

.modal-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 12px;
}

.macro-detail-grid { display: flex; flex-direction: column; gap: 10px; }

.macro-detail-card {
  background: white;
  border-radius: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(92,64,51,0.08);
}
.mdc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.mdc-icon { font-size: 1.2rem; flex-shrink: 0; }
.mdc-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--deep);
  display: block;
}
.mdc-sub {
  font-size: 0.73rem;
  color: var(--muted);
}
.mdc-value {
  margin-left: auto;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
}
.mdc-bar-bg {
  height: 6px;
  background: rgba(92,64,51,0.1);
  border-radius: 4px;
  overflow: hidden;
}
.mdc-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.7s cubic-bezier(0.25,1,0.5,1);
}

.stacked-bar-wrap { margin-bottom: 8px; }
.stacked-bar {
  display: flex;
  height: 12px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}
.stack-seg { height: 100%; transition: width 0.6s; }
.stack-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: var(--mid);
}
.stack-legend-item { display: flex; align-items: center; gap: 5px; }
.stack-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.gi-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.gi-label { font-size: 0.85rem; font-weight: 600; color: var(--mid); }
.gi-badge {
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
}

.nutrient-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.nutrient-chip {
  background: white;
  border: 1.5px solid rgba(92,64,51,0.12);
  border-radius: 20px;
  padding: 5px 14px;
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.8rem;
}
.chip-name { color: var(--muted); }
.chip-val { font-weight: 700; color: var(--deep); }

.health-tip-box {
  display: flex;
  gap: 14px;
  background: linear-gradient(135deg, var(--sage-light), #dff0e5);
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 20px;
  border: 1px solid rgba(74,124,89,0.2);
}
.tip-icon { font-size: 1.5rem; flex-shrink: 0; }
.health-tip-box strong { font-size: 0.85rem; color: var(--sage); display: block; margin-bottom: 4px; }
.health-tip-box p { font-size: 0.88rem; color: var(--cardamom); line-height: 1.6; }

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.tag {
  background: var(--saffron-light);
  color: var(--saffron-deep);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

/* ─── COMPARE ────────────────────────────── */
.compare-section {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--cardamom) 0%, #1e3a28 50%, var(--saffron-deep) 100%);
  position: relative;
  overflow: hidden;
}
.compare-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.compare-section .container {
  position: relative;
  z-index: 1;
}

.compare-selects {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}

.compare-slot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
}
.compare-slot label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.compare-slot select {
  padding: 12px 16px;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: white;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.compare-slot select:focus { border-color: var(--saffron); }
.compare-slot select option { background: var(--cardamom); color: white; }

.compare-vs {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: rgba(255,255,255,0.4);
  padding-top: 28px;
}

#compareBtn { display: block; margin: 0 auto 32px; }

.compare-result {
  display: none;
  margin-top: 32px;
}
.compare-result.visible {
  display: block;
}
.compare-note {
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.compare-table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare-table th {
  padding: 14px 20px;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.1);
  font-weight: 700;
}
.compare-table td {
  padding: 12px 20px;
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.compare-table .field-label {
  text-align: left;
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  font-weight: 500;
}
.best-val {
  color: #6ee49d !important;
  font-weight: 800;
}

/* ─── CALCULATOR ─────────────────────────── */
.calculator-section {
  padding: 90px 0;
  background: var(--cream);
}

.calc-card {
  background: white;
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(232,135,58,0.1);
  max-width: 860px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-group input,
.form-group select {
  padding: 12px 16px;
  border: 2px solid rgba(92,64,51,0.15);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--deep);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(232,135,58,0.12);
}

#calcBtn { margin-top: 8px; }

.calc-result {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(92,64,51,0.12);
}

.result-goal-tag {
  display: inline-block;
  background: var(--saffron-light);
  color: var(--saffron-deep);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.result-bmi {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--mid);
}
.bmi-cat {
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(0,0,0,0.05);
  padding: 2px 10px;
  border-radius: 12px;
}

.result-tdee {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
}
.tdee-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--saffron-deep);
}
.tdee-label { font-size: 0.9rem; color: var(--muted); }

.result-macros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.result-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 14px;
  border-radius: 14px;
  background: var(--cream);
  border: 2px solid transparent;
  text-align: center;
  transition: transform 0.2s;
}
.result-card:hover { transform: translateY(-2px); }
.rc-icon { font-size: 1.5rem; }
.rc-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.rc-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 900;
}
.rc-unit { font-size: 0.75rem; font-family: 'DM Sans', sans-serif; font-weight: 500; }
.rc-note { font-size: 0.7rem; color: var(--muted); line-height: 1.3; }

.result-tip {
  background: var(--sage-light);
  border-radius: 12px;
  padding: 18px 20px;
  border: 1px solid rgba(74,124,89,0.2);
}
.result-tip strong { color: var(--sage); font-size: 0.88rem; display: block; margin-bottom: 10px; }
.result-tip ul { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.result-tip li { font-size: 0.85rem; color: var(--cardamom); line-height: 1.5; }

/* ─── TIPS SECTION ───────────────────────── */
.tips-section {
  padding: 90px 0;
  background: linear-gradient(180deg, white 0%, var(--cream) 100%);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.tip-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(232,135,58,0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tip-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.tip-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--saffron), var(--turmeric));
}

.tip-icon-big { font-size: 2.2rem; display: block; margin-bottom: 12px; }

.tip-tag-badge {
  display: inline-block;
  background: var(--sage-light);
  color: var(--sage);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.tip-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 10px;
  line-height: 1.3;
}

.tip-card p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
}

/* ─── FOOTER ─────────────────────────────── */
.footer {
  background: var(--deep);
  color: rgba(255,255,255,0.6);
  padding: 50px 0;
}
.footer-inner {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-logo { display: flex; flex-direction: column; gap: 6px; }
.footer-logo .logo-deva { color: var(--saffron); }
.footer-logo .logo-en { color: rgba(255,255,255,0.5); }
.footer-logo p { font-size: 0.82rem; color: rgba(255,255,255,0.35); margin-top: 6px; font-style: italic; }
.footer-note { max-width: 420px; }
.footer-note p { font-size: 0.78rem; line-height: 1.7; margin-bottom: 6px; }

/* ─── TOAST ──────────────────────────────── */
.notice-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--deep);
  color: white;
  padding: 12px 24px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s;
  white-space: nowrap;
}
.notice-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── ANIMATIONS ─────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.18; }
  50% { transform: scale(1.1); opacity: 0.28; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
  .navbar { padding: 14px 20px; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow);
    display: none;
    border-bottom: 2px solid rgba(232,135,58,0.15);
  }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .hamburger { display: block; }

  .hero-title { font-size: 2.6rem; }
  .hero-stats { gap: 28px; }

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

  .modal-inner { padding: 16px 18px 28px; }
  .modal-top { flex-direction: column; gap: 10px; }

  .compare-selects { flex-direction: column; }
  .compare-vs { padding-top: 0; }
  .compare-slot { max-width: 100%; }

  .calc-card { padding: 24px 20px; }
  .result-macros-grid { grid-template-columns: repeat(2, 1fr); }

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

  .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .food-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .result-macros-grid { grid-template-columns: repeat(2, 1fr); }
}
