/* ============================================================
   KookHealth — CRAV-Inspired Bold Editorial Design System
   ============================================================ */

/* Font Choice: Bebas Neue is selected for --font-display because its tall, ultra-bold, 
   condensed proportions capture the unapologetic, poster-graphic energy of the CRAV reference, 
   turning titles into striking brand statements while Plus Jakarta Sans provides clean, 
   effortless legibility for all culinary details, ingredient measurements, and nutrition facts. */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ── DESIGN TOKENS: WARM / BOLD TERRACOTTA (Default Theme) ── */
:root {
  /* Typography */
  --font-display: 'Bebas Neue', Impact, 'Arial Black', sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Brand Colors — Confident Terracotta, Mustard Gold, Warm Cream */
  --c-primary:        hsl(14, 82%, 48%);       /* Confident brick-red / terracotta */
  --c-primary-d:      hsl(14, 82%, 36%);       /* Deep roasted terracotta */
  --c-primary-l:      hsl(16, 90%, 94%);       /* Soft tinted terracotta cream */
  --c-primary-glow:   hsl(14 82% 48% / 0.35);

  --c-accent:         hsl(42, 96%, 52%);       /* Mustard gold accent */
  --c-accent-d:       hsl(40, 92%, 40%);
  --c-accent-l:       hsl(44, 100%, 93%);
  --c-star:           hsl(42, 96%, 50%);
  --c-emerald:        hsl(150, 68%, 38%);

  /* Neutrals & Contrast Grounds */
  --c-dark:           hsl(20, 18%, 10%);       /* Near-black warm charcoal */
  --c-dark-surf:      hsl(20, 16%, 15%);
  --c-text:           hsl(20, 20%, 12%);
  --c-text-2:         hsl(20, 14%, 28%);
  --c-muted:          hsl(20, 12%, 46%);
  --c-muted-l:        hsl(20, 10%, 68%);

  /* Backgrounds & Base Surfaces */
  --c-bg:             hsl(38, 55%, 95%);       /* Warm cream / sand base */
  --c-bg2:            hsl(36, 42%, 90.5%);     /* Sun-baked deeper sand */
  --c-surf:           #ffffff;
  --c-surf2:          hsl(38, 50%, 97.5%);
  --c-glass:          rgba(255, 250, 244, 0.88);
  --c-glass-border:   rgba(224, 212, 196, 0.75);
  --c-card-border:    rgba(30, 20, 15, 0.12);
  --c-border:         rgba(30, 20, 15, 0.14);

  /* Tags & Sticker Badges */
  --c-tag-bg:         hsl(14, 82%, 48%);
  --c-tag-txt:        #ffffff;
  --c-sticker-bg:     #ffffff;
  --c-sticker-txt:    hsl(14, 82%, 48%);
  --c-sticker-border: hsl(20, 18%, 10%);

  /* Navigation & Chrome */
  --c-nav:            rgba(255, 250, 244, 0.90);
  --c-nav-border:     rgba(30, 20, 15, 0.08);

  /* Footer */
  --c-footer-bg:      hsl(20, 18%, 10%);
  --c-footer-txt:     hsl(36, 20%, 75%);
  --c-footer-head:    #ffffff;

  /* Gradients */
  --gradient-btn:        linear-gradient(135deg, hsl(14, 82%, 48%) 0%, hsl(32, 92%, 50%) 100%);
  --gradient-btn-hover:  linear-gradient(135deg, hsl(14, 86%, 52%) 0%, hsl(36, 96%, 54%) 100%);
  --gradient-hero:       radial-gradient(ellipse 90% 70% at 75% 20%, hsl(38, 70%, 96%) 0%, hsl(38, 55%, 95%) 100%);
  --gradient-text:       linear-gradient(135deg, hsl(14, 82%, 48%) 0%, hsl(32, 92%, 46%) 100%);
  --gradient-gold:       linear-gradient(135deg, hsl(42, 96%, 52%) 0%, hsl(32, 94%, 48%) 100%);

  /* Poster-Style 3D Shadows & Layering */
  --shadow-xs:        0 1px 3px rgba(20, 18, 14, 0.06);
  --shadow-sm:        0 3px 8px -2px rgba(20, 18, 14, 0.08), 0 1px 3px rgba(20, 18, 14, 0.04);
  --shadow-md:        0 8px 20px -4px rgba(20, 18, 14, 0.10), 0 2px 6px -1px rgba(20, 18, 14, 0.06);
  --shadow-lg:        0 16px 36px -6px rgba(20, 18, 14, 0.14), 0 4px 12px -2px rgba(20, 18, 14, 0.08);
  --shadow-xl:        0 24px 54px -10px rgba(20, 18, 14, 0.18), 0 8px 24px -4px rgba(20, 18, 14, 0.10);
  --shadow-2xl:       0 32px 72px -14px rgba(20, 18, 14, 0.22);

  --shadow-card:      0 4px 14px -2px rgba(20, 18, 14, 0.08), 0 0 0 1px var(--c-card-border);
  --shadow-card-h:    0 20px 48px -8px rgba(20, 18, 14, 0.16), 0 0 0 2px var(--c-primary);
  --shadow-btn:       0 6px 20px -2px var(--c-primary-glow), 0 2px 6px rgba(20, 18, 14, 0.15);
  --shadow-nav:       0 4px 24px -4px rgba(20, 18, 14, 0.08), 0 1px 0 var(--c-nav-border);
  --shadow-3d-box:    0 24px 60px -12px rgba(20, 18, 14, 0.25), 0 0 0 2px rgba(255, 255, 255, 0.9) inset;
  --shadow-sticker:   3px 5px 0px rgba(20, 18, 10, 0.16);

  /* Border Radii */
  --r-xs:   6px;
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-2xl:  48px;
  --r-pill: 9999px;

  /* Layout */
  --max-w:      1320px;
  --gutter:     clamp(18px, 4vw, 44px);
  --nav-h:      76px;
  --section-py: clamp(76px, 8vw, 120px);

  /* Transitions & Motion */
  --t-fast:   0.16s cubic-bezier(0.25, 1, 0.5, 1);
  --t:        0.28s cubic-bezier(0.25, 1, 0.5, 1);
  --t-slow:   0.45s cubic-bezier(0.25, 1, 0.5, 1);
  --t-spring: 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* ── DESIGN TOKENS: EARTHY / BOTANICAL CLAY ── */
[data-theme="earthy"] {
  --c-primary:        hsl(22, 52%, 38%);       /* Deep clay / burnt terracotta */
  --c-primary-d:      hsl(22, 52%, 28%);
  --c-primary-l:      hsl(28, 48%, 92%);
  --c-primary-glow:   hsl(22 52% 38% / 0.35);

  --c-accent:         hsl(92, 38%, 42%);       /* Olive / Forest moss */
  --c-accent-d:       hsl(92, 42%, 32%);
  --c-accent-l:       hsl(92, 45%, 93%);
  --c-star:           hsl(40, 75%, 48%);
  --c-emerald:        hsl(92, 42%, 34%);

  --c-dark:           hsl(30, 20%, 9%);        /* Deep earth charcoal */
  --c-dark-surf:      hsl(30, 18%, 14%);
  --c-text:           hsl(30, 22%, 12%);
  --c-text-2:         hsl(30, 16%, 26%);
  --c-muted:          hsl(30, 12%, 45%);
  --c-muted-l:        hsl(30, 10%, 66%);

  --c-bg:             hsl(38, 50%, 95%);       /* Consistent warm sand base */
  --c-bg2:            hsl(36, 36%, 89%);
  --c-surf:           #ffffff;
  --c-surf2:          hsl(38, 40%, 97%);
  --c-glass:          rgba(252, 248, 242, 0.90);
  --c-glass-border:   rgba(216, 204, 188, 0.75);
  --c-card-border:    rgba(40, 30, 20, 0.12);
  --c-border:         rgba(40, 30, 20, 0.14);

  --c-tag-bg:         hsl(22, 52%, 38%);
  --c-tag-txt:        #ffffff;
  --c-sticker-bg:     #ffffff;
  --c-sticker-txt:    hsl(22, 52%, 38%);
  --c-sticker-border: hsl(30, 20%, 9%);

  --c-nav:            rgba(252, 248, 242, 0.92);
  --c-nav-border:     rgba(40, 30, 20, 0.08);

  --c-footer-bg:      hsl(30, 20%, 9%);
  --c-footer-txt:     hsl(36, 16%, 72%);

  --gradient-btn:        linear-gradient(135deg, hsl(22, 52%, 38%) 0%, hsl(92, 38%, 42%) 100%);
  --gradient-btn-hover:  linear-gradient(135deg, hsl(22, 56%, 42%) 0%, hsl(92, 42%, 46%) 100%);
  --gradient-hero:       radial-gradient(ellipse 90% 70% at 75% 20%, hsl(40, 48%, 96%) 0%, hsl(38, 50%, 95%) 100%);
  --gradient-text:       linear-gradient(135deg, hsl(22, 52%, 38%) 0%, hsl(92, 38%, 40%) 100%);
  --gradient-gold:       linear-gradient(135deg, hsl(92, 38%, 42%) 0%, hsl(40, 75%, 48%) 100%);

  --shadow-btn:       0 6px 20px -2px var(--c-primary-glow), 0 2px 6px rgba(40, 30, 20, 0.15);
  --shadow-card-h:    0 20px 48px -8px rgba(30, 24, 16, 0.18), 0 0 0 2px var(--c-primary);
}

/* ── SMOOTH THEME ATTRIBUTE TRANSITIONS ── */
*, *::before, *::after {
  box-sizing: border-box;
  transition:
    background-color var(--t),
    border-color var(--t),
    color var(--t),
    box-shadow var(--t);
}

/* ── GLOBAL RESET & BASE STYLES ── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.62;
  margin: 0;
  padding-top: var(--nav-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button, input, select, textarea {
  font-family: inherit;
}

/* ── CRAV OVERSIZED HEADINGS ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 0.94;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-text);
}

h1 { font-size: clamp(3.2rem, 9vw, 6.6rem); }
h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h3 { font-size: clamp(1.6rem, 3.8vw, 2.6rem); }
h4 { font-size: clamp(1.2rem, 2.6vw, 1.8rem); }

p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
svg { flex-shrink: 0; }

/* ── CONTAINER ── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}

/* ── SECTION WRAPPER & FULL-BLEED COLOR BLOCKS ── */
.section {
  padding: var(--section-py) 0;
  position: relative;
}

/* CRAV Full-Bleed Color Block Sections */
.color-block-primary {
  background-color: var(--c-primary) !important;
  color: #ffffff !important;
}
.color-block-primary h1,
.color-block-primary h2,
.color-block-primary h3,
.color-block-primary h4 {
  color: #ffffff !important;
}
.color-block-primary p {
  color: rgba(255, 255, 255, 0.9) !important;
}

.color-block-dark {
  background-color: var(--c-dark) !important;
  color: #ffffff !important;
}
.color-block-dark h1,
.color-block-dark h2,
.color-block-dark h3,
.color-block-dark h4 {
  color: #ffffff !important;
}
.color-block-dark p {
  color: rgba(255, 255, 255, 0.85) !important;
}

.color-block-sand {
  background-color: var(--c-bg2) !important;
  color: var(--c-text) !important;
}

/* ── ORGANIC SVG WAVE DIVIDERS ── */
.wave-divider {
  width: 100%;
  height: clamp(40px, 6vw, 80px);
  display: block;
  pointer-events: none;
  line-height: 0;
  margin: 0;
  overflow: hidden;
}
.wave-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}
.wave-flip {
  transform: rotate(180deg);
}

/* ── STICKER-STYLE ROTATED BADGES ── */
.sticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--c-sticker-bg);
  color: var(--c-sticker-txt);
  border: 2.5px solid var(--c-sticker-border);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sticker);
  transform: rotate(-3deg);
  user-select: none;
  white-space: nowrap;
  line-height: 1;
  transition: transform var(--t-spring) !important;
}
.sticker-badge.rotate-right {
  transform: rotate(3.5deg);
}
.sticker-badge.rotate-left {
  transform: rotate(-4.5deg);
}
.sticker-badge:hover {
  transform: rotate(0deg) scale(1.06);
}
.sticker-badge svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* ============================================================
   BRAND LOGO & NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--c-nav);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1.5px solid var(--c-nav-border);
  box-shadow: var(--shadow-nav);
  transition: height var(--t-spring), background var(--t), box-shadow var(--t), border-color var(--t) !important;
}

.navbar.compact {
  height: 64px;
  background: var(--c-nav);
  box-shadow: 0 8px 30px rgba(20, 18, 14, 0.12);
}

.navbar-inner {
  display: flex;
  align-items: center;
  height: 100%;
}

/* Custom Vector Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: clamp(24px, 4vw, 48px);
}

.logo-brandmark {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-primary);
  color: #ffffff;
  border-radius: var(--r-md);
  border: 2px solid var(--c-dark);
  box-shadow: 2.5px 3.5px 0px var(--c-dark);
  transition: transform var(--t-spring), box-shadow var(--t-spring) !important;
}

.navbar-logo:hover .logo-brandmark {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 3.5px 5px 0px var(--c-dark);
}

.logo-brandmark svg {
  width: 26px; height: 26px;
  fill: currentColor;
}

.logo-wordmark {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.05em;
  color: var(--c-primary);
  line-height: 1;
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
}
.logo-wordmark span {
  color: var(--c-dark);
}

/* Desktop Nav Links */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: color var(--t-fast), background var(--t-fast), transform var(--t-spring) !important;
}

.nav-link svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.nav-link:hover {
  color: var(--c-primary);
  background: rgba(30, 20, 15, 0.06);
  transform: translateY(-2px);
}

.nav-link.active {
  color: #ffffff;
  background: var(--c-primary);
  border: 1.5px solid var(--c-dark);
  box-shadow: 2px 3px 0px var(--c-dark);
}
.nav-link.active svg {
  stroke: #ffffff;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: var(--c-dark);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  border: 1.5px solid var(--c-dark);
}
.nav-badge[data-count="0"] { display: none; }

/* Theme Toggle Button */
.navbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  cursor: pointer;
  background: var(--c-surf);
  border: 2px solid var(--c-dark);
  box-shadow: var(--shadow-sticker);
  transition: transform var(--t-spring), box-shadow var(--t-spring) !important;
  user-select: none;
}

.theme-toggle:hover {
  transform: rotate(-2deg) scale(1.04);
}

.theme-icon-svg {
  width: 16px; height: 16px;
  stroke: var(--c-primary);
  stroke-width: 2.2;
  fill: none;
}

.theme-label {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-dark);
  min-width: 48px;
}

.t-track {
  width: 38px; height: 22px;
  border-radius: var(--r-pill);
  background: var(--c-bg2);
  border: 1.5px solid var(--c-dark);
  position: relative;
}

[data-theme="earthy"] .t-track {
  background: var(--c-primary);
}

.t-knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--c-dark);
  transition: transform var(--t-spring) !important;
}

[data-theme="earthy"] .t-knob {
  transform: translateX(16px);
  background: var(--c-accent);
}

/* Hamburger */
.hamburger {
  display: none;
  background: var(--c-surf);
  border: 2px solid var(--c-dark);
  box-shadow: var(--shadow-sticker);
  cursor: pointer;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  margin-left: auto;
  color: var(--c-dark);
  transition: transform var(--t-fast) !important;
}
.hamburger:hover { transform: scale(1.05); }
.hamburger svg {
  width: 24px; height: 24px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  z-index: 999;
  background: var(--c-bg);
  border-bottom: 2.5px solid var(--c-dark);
  padding: 20px 24px 28px;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-2xl);
  transform: translateY(-10px);
  opacity: 0;
  transition: transform var(--t-spring), opacity var(--t) !important;
}
.mobile-nav.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

/* ============================================================
   BUTTONS (Confident, Bold, CRAV Poster Style)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2.5px solid var(--c-dark);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  box-shadow: 3px 5px 0px var(--c-dark);
  transition:
    transform var(--t-spring),
    box-shadow var(--t-spring),
    background var(--t),
    color var(--t) !important;
}

.btn svg {
  width: 18px; height: 18px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
  transition: transform var(--t-spring) !important;
}

.btn:hover {
  transform: translate(-2px, -3px) scale(1.02);
  box-shadow: 5px 8px 0px var(--c-dark);
}

.btn:active {
  transform: translate(2px, 3px) scale(0.98);
  box-shadow: 1px 2px 0px var(--c-dark);
}

/* Button Sizes */
.btn-sm { font-size: 16px; padding: 7px 18px; }
.btn-md { font-size: 19px; padding: 11px 26px; }
.btn-lg { font-size: 22px; padding: 14px 34px; }
.btn-xl { font-size: 26px; padding: 18px 42px; border-radius: var(--r-pill); }

/* Primary Button */
.btn-primary {
  background: var(--c-primary);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--c-primary-d);
}

/* Accent (Gold) Button */
.btn-accent {
  background: var(--c-accent);
  color: var(--c-dark);
}
.btn-accent:hover {
  background: var(--c-accent-d);
  color: #ffffff;
}

/* Ghost Button */
.btn-ghost {
  background: var(--c-surf);
  color: var(--c-dark);
}
.btn-ghost:hover {
  background: var(--c-primary-l);
  color: var(--c-primary);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--c-dark);
}
.btn-outline:hover {
  background: var(--c-dark);
  color: #ffffff;
}

/* White Button */
.btn-white {
  background: #ffffff;
  color: var(--c-primary);
}
.btn-white:hover {
  background: var(--c-primary-l);
}

/* Disabled */
.btn:disabled {
  pointer-events: none;
  opacity: 0.45;
  box-shadow: 1px 2px 0px var(--c-dark) !important;
  transform: none !important;
}

/* ============================================================
   HOME HERO SECTION (CRAV Poster Layout)
   ============================================================ */
.hero {
  min-height: calc(90vh - var(--nav-h));
  display: flex;
  align-items: center;
  background: var(--c-bg);
  overflow: hidden;
  position: relative;
  padding: clamp(60px, 8vh, 100px) 0 clamp(40px, 5vh, 60px);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-badges-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(3.6rem, 9.5vw, 6.8rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--c-primary);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-title .title-dark {
  color: var(--c-dark);
  display: block;
}

.hero-title .title-outline {
  -webkit-text-stroke: 2.5px var(--c-dark);
  color: transparent;
  display: block;
  letter-spacing: 0.03em;
}

.hero-desc {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--c-text-2);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 36px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}

.hero-stats {
  display: flex;
  gap: clamp(24px, 4vw, 44px);
  padding-top: 32px;
  border-top: 2px solid var(--c-border);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: 0.04em;
  color: var(--c-primary);
  line-height: 1;
}

.hero-stat-lbl {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero Showcase Image with Floating Sticker Callouts */
.hero-image-wrap {
  position: relative;
  z-index: 2;
  perspective: 1000px;
}

.hero-image {
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 3.5px solid var(--c-dark);
  box-shadow: 8px 12px 0px var(--c-dark);
  aspect-ratio: 4/3;
  background: var(--c-bg2);
  position: relative;
}

.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow) !important;
}

.hero-image-wrap:hover .hero-image img {
  transform: scale(1.05);
}

/* Sticker Callouts on Hero */
.hero-sticker-top {
  position: absolute;
  top: -16px; right: -12px;
  z-index: 4;
}

.hero-sticker-bottom {
  position: absolute;
  bottom: -18px; left: -16px;
  z-index: 4;
  background: var(--c-accent);
  color: var(--c-dark);
}

/* ============================================================
   CATEGORY EXPLORER ROW
   ============================================================ */
.category-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 4px 18px;
  margin-bottom: 36px;
}
.category-row::-webkit-scrollbar { display: none; }

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 24px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid var(--c-dark);
  background: var(--c-surf);
  color: var(--c-dark);
  box-shadow: 2.5px 3.5px 0px var(--c-dark);
  transition: all var(--t-spring) !important;
}

.cat-pill svg {
  width: 18px; height: 18px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
}

.cat-pill:hover {
  background: var(--c-accent);
  color: var(--c-dark);
  transform: translate(-2px, -3px) rotate(-1.5deg);
  box-shadow: 4px 6px 0px var(--c-dark);
}

.cat-pill.active {
  background: var(--c-primary);
  color: #ffffff;
  box-shadow: 3px 5px 0px var(--c-dark);
}
.cat-pill.active svg {
  stroke: #ffffff;
}

/* ============================================================
   SEARCH BAR (Bold Poster Style)
   ============================================================ */
.search-wrap {
  position: relative;
  max-width: 740px;
  margin-bottom: 40px;
}

.search-icon {
  position: absolute;
  left: 22px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 22px; height: 22px;
  stroke: var(--c-dark);
  stroke-width: 2.4;
  fill: none;
}

.search-input {
  width: 100%;
  padding: 18px 60px 18px 60px;
  border-radius: var(--r-pill);
  border: 2.5px solid var(--c-dark);
  background: var(--c-surf);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-dark);
  box-shadow: 4px 6px 0px var(--c-dark);
  outline: none;
  transition: box-shadow var(--t), transform var(--t-spring) !important;
}

.search-input::placeholder {
  color: var(--c-muted);
  font-weight: 500;
}

.search-input:focus {
  transform: translateY(-2px);
  box-shadow: 6px 9px 0px var(--c-dark);
  border-color: var(--c-primary);
}

/* ============================================================
   RECIPE CARDS (Graphic Saturated Poster Cards)
   ============================================================ */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 36px;
}

.recipe-card {
  display: flex;
  flex-direction: column;
  background: var(--c-surf);
  border-radius: var(--r-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 2.5px solid var(--c-dark);
  box-shadow: 5px 7px 0px var(--c-dark);
  position: relative;
  transition: transform var(--t-spring), box-shadow var(--t-spring) !important;
}

.recipe-card:hover {
  transform: translate(-3px, -5px) rotate(-0.5deg);
  box-shadow: 8px 14px 0px var(--c-dark);
}

.recipe-card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--c-bg2);
  border-bottom: 2.5px solid var(--c-dark);
}

.recipe-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow) !important;
}

.recipe-card:hover .recipe-card-img img {
  transform: scale(1.08);
}

.recipe-card-tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: var(--c-dark);
  border: 2px solid var(--c-dark);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 2px 3px 0px var(--c-dark);
  transform: rotate(-3deg);
  z-index: 2;
}

.recipe-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.recipe-card-title {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.03em;
  line-height: 1.05;
  color: var(--c-dark);
  text-transform: uppercase;
  transition: color var(--t-fast) !important;
}

.recipe-card:hover .recipe-card-title {
  color: var(--c-primary);
}

.recipe-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1.5px solid var(--c-border);
}

.recipe-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--c-text-2);
}

.recipe-meta-item svg {
  width: 15px; height: 15px;
  stroke: var(--c-primary);
  stroke-width: 2.4;
  fill: none;
}

.recipe-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 900;
  color: var(--c-dark);
}

.recipe-rating svg {
  width: 15px; height: 15px;
  fill: var(--c-accent);
  stroke: var(--c-dark);
  stroke-width: 1.5;
}

/* ============================================================
   PAGE HERO (Interior Pages)
   ============================================================ */
.page-hero {
  background: var(--c-bg);
  padding: clamp(56px, 7vw, 90px) 0 clamp(44px, 5vw, 68px);
  text-align: center;
  position: relative;
  border-bottom: 2.5px solid var(--c-dark);
}

.page-hero-icon {
  width: 76px; height: 76px;
  border-radius: var(--r-xl);
  background: var(--c-primary);
  color: #ffffff;
  border: 3px solid var(--c-dark);
  box-shadow: 4px 6px 0px var(--c-dark);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.page-hero-icon svg {
  width: 38px; height: 38px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
}

.page-hero h1 {
  font-size: clamp(3rem, 7vw, 5.2rem);
  color: var(--c-primary);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--c-text-2);
  max-width: 580px;
  margin-inline: auto;
  font-weight: 500;
}

/* ============================================================
   INGREDIENTS PAGE WORKSPACE
   ============================================================ */
.ing-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: start;
}

.ing-panel {
  background: var(--c-surf);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 40px);
  border: 2.5px solid var(--c-dark);
  box-shadow: 6px 8px 0px var(--c-dark);
}

.ing-panel-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  color: var(--c-dark);
}

.ing-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

.ing-input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--r-pill);
  border: 2px solid var(--c-dark);
  background: var(--c-bg);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-dark);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t) !important;
}

.ing-input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-glow);
  background: #ffffff;
}

.add-ing-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  background: var(--c-primary);
  color: #ffffff;
  border: 2px solid var(--c-dark);
  box-shadow: 3px 4px 0px var(--c-dark);
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t-spring), box-shadow var(--t-spring) !important;
}

.add-ing-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 6px 0px var(--c-dark);
}

/* Added Ingredient Tags */
.ing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 48px;
  margin-bottom: 28px;
  align-items: center;
}

.ing-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: var(--c-dark);
  border: 2px solid var(--c-dark);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 2px 3px 0px var(--c-dark);
  animation: tag-pop-in 0.35s var(--t-spring) both;
}

@keyframes tag-pop-in {
  0%   { opacity: 0; transform: scale(0.6) translateY(10px) rotate(-6deg); }
  100% { opacity: 1; transform: scale(1) translateY(0) rotate(0deg); }
}

.ing-tag-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--c-dark);
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-spring), color var(--t-fast) !important;
}
.ing-tag-remove:hover {
  color: var(--c-primary);
  transform: rotate(90deg) scale(1.2);
}

/* Quick Add Common Chips */
.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: var(--c-surf);
  border: 2px solid var(--c-dark);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-dark);
  cursor: pointer;
  box-shadow: 2px 3px 0px var(--c-dark);
  transition: all var(--t-spring) !important;
}

.quick-chip svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.quick-chip:hover {
  background: var(--c-primary-l);
  color: var(--c-primary);
  transform: translate(-2px, -3px);
  box-shadow: 4px 5px 0px var(--c-dark);
}

.find-btn-wrap {
  text-align: center;
  margin-top: 40px;
}

.ing-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px; height: 26px;
  padding: 0 7px;
  border-radius: var(--r-pill);
  background: var(--c-dark);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

/* Results Section */
.results-section {
  display: none;
  margin-top: 64px;
}
.results-section.show { display: block; }

/* ============================================================
   RECIPE DETAIL PAGE
   ============================================================ */
.recipe-detail-hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
  margin-bottom: 64px;
}

.recipe-detail-image {
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 3.5px solid var(--c-dark);
  box-shadow: 8px 12px 0px var(--c-dark);
  aspect-ratio: 4/3;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  background: var(--c-bg2);
}

.recipe-detail-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.recipe-detail-title {
  font-size: clamp(3rem, 6.5vw, 5rem);
  line-height: 0.95;
  color: var(--c-primary);
}

.recipe-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.recipe-meta-card {
  background: var(--c-surf);
  border-radius: var(--r-lg);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--c-dark);
  box-shadow: 3px 4px 0px var(--c-dark);
  text-align: center;
}

.meta-icon-svg {
  width: 22px; height: 22px;
  stroke: var(--c-primary);
  stroke-width: 2.2;
  fill: none;
}

.meta-val {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.03em;
  color: var(--c-dark);
  line-height: 1;
}
.meta-lbl {
  font-size: 11px;
  font-weight: 800;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Checklist and Steps */
.recipe-body {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(36px, 5vw, 56px);
  align-items: start;
}

.recipe-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 32px;
  margin-bottom: 24px;
  color: var(--c-dark);
}

.recipe-section-title svg {
  width: 26px; height: 26px;
  stroke: var(--c-primary);
  stroke-width: 2.4;
  fill: none;
}

.ingredient-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 2px solid var(--c-dark);
  background: var(--c-surf);
  box-shadow: 3px 4px 0px var(--c-dark);
  cursor: pointer;
  transition: all var(--t-spring) !important;
  margin-bottom: 10px;
}

.ingredient-item:hover {
  transform: translateX(4px);
  background: var(--c-primary-l);
}

.ingredient-item.checked {
  background: hsl(140, 48%, 94%);
  border-color: var(--c-dark);
}

.ingredient-item.checked .ing-name {
  text-decoration: line-through;
  color: var(--c-muted);
}

.ing-checkbox {
  width: 24px; height: 24px;
  border-radius: var(--r-xs);
  border: 2px solid var(--c-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: #ffffff;
}

.ingredient-item.checked .ing-checkbox {
  background: var(--c-emerald);
}

.ing-checkbox svg {
  width: 14px; height: 14px;
  stroke: #ffffff;
  stroke-width: 3.2;
  fill: none;
  opacity: 0;
}
.ingredient-item.checked .ing-checkbox svg { opacity: 1; }

.ing-name {
  font-size: 15px;
  font-weight: 700;
  flex: 1;
  color: var(--c-dark);
}
.ing-amount {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.03em;
  color: var(--c-primary);
  white-space: nowrap;
}

/* Step Timeline Cards */
.step-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
  background: var(--c-surf);
  border-radius: var(--r-lg);
  border: 2.5px solid var(--c-dark);
  box-shadow: 4px 6px 0px var(--c-dark);
  margin-bottom: 16px;
}

.step-num {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--c-primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 22px;
  border: 2px solid var(--c-dark);
  box-shadow: 2px 3px 0px var(--c-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.step-text {
  font-size: 15px;
  line-height: 1.68;
  color: var(--c-text-2);
  padding-top: 4px;
  font-weight: 500;
}

/* ============================================================
   SCAN FOOD PAGE (Poster Scanner Pod)
   ============================================================ */
.scan-layout {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 800px;
  margin-inline: auto;
}

.upload-zone {
  border: 3.5px dashed var(--c-dark);
  border-radius: var(--r-2xl);
  padding: clamp(56px, 8vh, 88px) clamp(24px, 5vw, 56px);
  text-align: center;
  cursor: pointer;
  background: var(--c-surf);
  box-shadow: 6px 9px 0px var(--c-dark);
  transition: all var(--t-spring) !important;
}

.upload-zone:hover, .upload-zone.drag-over {
  background: var(--c-primary-l);
  border-color: var(--c-primary);
  transform: translate(-2px, -4px);
  box-shadow: 8px 14px 0px var(--c-dark);
}

.upload-icon {
  width: 72px; height: 72px;
  margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-accent);
  border-radius: var(--r-xl);
  border: 2.5px solid var(--c-dark);
  box-shadow: 3px 5px 0px var(--c-dark);
}
.upload-icon svg {
  width: 36px; height: 36px;
  stroke: var(--c-dark);
  stroke-width: 2.4;
  fill: none;
}

.upload-zone h3 {
  font-size: 34px;
  color: var(--c-dark);
  margin-bottom: 12px;
}

.upload-zone p {
  font-size: 15px;
  color: var(--c-text-2);
  margin-bottom: 32px;
  max-width: 520px;
  margin-inline: auto;
}

.upload-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.upload-zone input[type="file"] { display: none; }

/* Scanner Overlay with Cyber Laser */
.preview-section { display: none; }

.preview-card {
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 3.5px solid var(--c-dark);
  box-shadow: 8px 12px 0px var(--c-dark);
  position: relative;
  background: var(--c-bg2);
}

.preview-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.preview-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.analyzing-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 10, 0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: #ffffff;
}
.analyzing-overlay.hidden { display: none; }

.scan-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--c-accent), #ffffff, var(--c-primary), transparent);
  animation: scan-sweep 2s ease-in-out infinite;
  box-shadow: 0 0 24px 6px var(--c-accent);
}
@keyframes scan-sweep {
  0%   { top: 0%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.analyze-spinner {
  width: 52px; height: 52px;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--c-accent);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Nutrition Results */
.nutrition-results {
  display: none;
  padding: clamp(32px, 5vw, 48px);
  background: var(--c-surf);
  border-radius: var(--r-2xl);
  border: 3px solid var(--c-dark);
  box-shadow: 6px 10px 0px var(--c-dark);
}
.nutrition-results.show { display: block; }

.detected-food-name {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--c-primary);
  margin-bottom: 28px;
}

/* Calorie Card */
.calorie-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 32px 24px;
  margin-bottom: 28px;
  border-radius: var(--r-xl);
  background: var(--c-primary);
  color: #ffffff;
  border: 2.5px solid var(--c-dark);
  box-shadow: 4px 6px 0px var(--c-dark);
  text-align: center;
}

.calorie-num {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 76px);
  line-height: 1;
  color: #ffffff;
}
.calorie-unit {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--c-accent);
  letter-spacing: 0.05em;
}
.calorie-label {
  font-size: 14px;
  font-weight: 700;
  opacity: 0.9;
}

/* 5-Column Nutrition Stat Grid */
.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.nutrient-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 10px;
  border-radius: var(--r-lg);
  background: var(--c-surf);
  border: 2px solid var(--c-dark);
  box-shadow: 3px 4px 0px var(--c-dark);
  text-align: center;
}

.nutrient-icon-svg {
  width: 24px; height: 24px;
  stroke: var(--c-primary);
  stroke-width: 2.2;
  fill: none;
}

.nutrient-val {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--c-dark);
  line-height: 1;
}
.nutrient-lbl {
  font-size: 12px;
  font-weight: 800;
  color: var(--c-muted);
  text-transform: uppercase;
}

/* ============================================================
   SAVED RECIPES & VECTOR EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: clamp(64px, 10vh, 100px) 24px;
}

.empty-vector-art {
  width: 110px; height: 110px;
  margin: 0 auto 24px;
  background: var(--c-surf);
  border: 3px solid var(--c-dark);
  box-shadow: 4px 6px 0px var(--c-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-primary);
}
.empty-vector-art svg {
  width: 56px; height: 56px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.empty-state h3 {
  font-size: 36px;
  color: var(--c-dark);
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 16px;
  color: var(--c-text-2);
  line-height: 1.65;
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 36px;
}

/* ============================================================
   FOOTER (Warm Charcoal Poster Finish)
   ============================================================ */
.footer {
  background: var(--c-footer-bg);
  color: var(--c-footer-txt);
  padding: 80px 0 0;
  border-top: 3px solid var(--c-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 64px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .logo-wordmark {
  color: var(--c-accent) !important;
}
.footer-brand .logo-wordmark span {
  color: #ffffff !important;
}
.footer-brand p {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.8;
  max-width: 320px;
  margin-top: 16px;
}

.footer-col h4 {
  font-size: 20px;
  letter-spacing: 0.05em;
  color: var(--c-accent);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-footer-txt);
  transition: color var(--t-fast), transform var(--t-fast) !important;
}
.footer-col a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-bottom {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom p {
  font-size: 14px;
  opacity: 0.65;
}

/* ============================================================
   CUSTOM IN-PAGE TOAST & MODALS (No browser popups)
   ============================================================ */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(24px) scale(0.92);
  padding: 14px 28px;
  background: var(--c-dark);
  color: #ffffff;
  border: 2.5px solid #ffffff;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  box-shadow: 4px 6px 0px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.25s ease, transform 0.4s var(--t-spring) !important;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
.toast svg {
  width: 20px; height: 20px;
  stroke: var(--c-accent);
  stroke-width: 2.5;
  fill: none;
}

/* Modal for Clear All Confirm */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 10, 0.75);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-card {
  background: var(--c-bg);
  border: 3px solid var(--c-dark);
  border-radius: var(--r-2xl);
  padding: clamp(32px, 5vw, 48px);
  box-shadow: 8px 12px 0px var(--c-dark);
  max-width: 480px;
  width: 100%;
  text-align: center;
}
.modal-card h3 {
  font-size: 34px;
  color: var(--c-primary);
  margin-bottom: 12px;
}
.modal-card p {
  font-size: 15px;
  color: var(--c-text-2);
  margin-bottom: 28px;
}
.modal-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================ */
@media (max-width: 1100px) {
  .hero-inner { gap: 40px; }
  .recipe-detail-hero { grid-template-columns: 1fr; }
  .recipe-detail-image { position: relative; top: 0; max-width: 560px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --nav-h: 68px; }
  .hamburger { display: flex; }
  .navbar-nav, .navbar-right { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-image-wrap { order: -1; max-width: 520px; margin-inline: auto; width: 100%; }
  .recipe-body { grid-template-columns: 1fr; }
  .ing-layout { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .recipe-grid { grid-template-columns: 1fr; }
  .recipe-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .nutrition-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .ing-panel { padding: 24px; }
}

@media (max-width: 440px) {
  .nutrition-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   ACCESSIBILITY: PREFERS-REDUCED-MOTION
   ============================================================ */
@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;
  }
  .recipe-card:hover, .btn:hover, .sticker-badge:hover {
    transform: none !important;
  }
}
