/* ═══════════════════════════════════════════════════════════════════════
   PREP & PROTEIN — MASTER STYLESHEET
   ═══════════════════════════════════════════════════════════════════════

   ARCHITECTURE: Mobile-first responsive CSS
   ───────────────────────────────────────────
   Base styles = mobile (≤ 599px). Every rule outside a @media block
   is the MOBILE default. Desktop overrides are layered on via
   min-width breakpoints that ADD to (never replace) the base.

   Breakpoints:
     600px  — Tablet (2-col grids, wider feature items)
     768px  — Small desktop (show nav links, typography bumps)
     1024px — Desktop (full grid columns, roomier spacing)
     1440px — Large desktop (slightly wider container, bigger headings)

   ╔══════════════════════════════════════════════════════════════════╗
   ║  RULES FOR KEEPING MOBILE + DESKTOP IN SYNC — READ THIS FIRST  ║
   ╠══════════════════════════════════════════════════════════════════╣
   ║                                                                  ║
   ║  DO:                                                             ║
   ║  ✓ Use rem / px for font sizes — they cap at a sane value        ║
   ║  ✓ Use a single --content-max variable for ALL container widths  ║
   ║  ✓ Use min-width breakpoints that ADD overrides, never reset     ║
   ║  ✓ Let grids handle width via columns — cards stretch to fill    ║
   ║  ✓ Keep padding in rem so it's proportional but bounded          ║
   ║  ✓ Test at 375px, 768px, 1024px, 1440px, 1920px                 ║
   ║                                                                  ║
   ║  DON'T:                                                          ║
   ║  ✗ Use vw units for font-size — text scales infinitely on        ║
   ║    ultrawide monitors (2.7vw = 52px at 1920px!)                  ║
   ║  ✗ Use vw for padding/heights — same unbounded scaling problem   ║
   ║  ✗ Use !important in responsive blocks — makes overrides         ║
   ║    impossible to maintain; only use for specificity wars like     ║
   ║    .nav-cta overriding .nav-links a                              ║
   ║  ✗ Set max-width: 92vw — there's no pixel cap, so on a 2560px   ║
   ║    monitor your content is 2355px wide (way too wide)            ║
   ║  ✗ Write separate mobile and desktop rules — write mobile base   ║
   ║    then layer desktop on top. Two separate rule sets always       ║
   ║    drift out of sync.                                            ║
   ║  ✗ Put all desktop overrides in one mega @media block — group    ║
   ║    by component so related rules stay together                   ║
   ║  ✗ Scale the nav bar to 10rem+ tall on desktop — it eats the    ║
   ║    viewport and looks wrong. Nav should be 64-76px max.          ║
   ║                                                                  ║
   ╚══════════════════════════════════════════════════════════════════╝
   ═══════════════════════════════════════════════════════════════════════ */


/* ── DESIGN TOKENS ──
   Change these in ONE place and every component updates.
   --content-max controls how wide content gets before it stops growing.
   Breakpoints bump this value so desktop uses more screen real estate.

   MOBILE: --content-max is 100% (full width, padding handles the edges).
   1024px+: bumped to 1400px (fills most of 1920 without dead space).
   1440px+: bumped to 1500px (graceful on ultrawide).

   WHY NOT 1200px? On a 1920px screen, 1200px leaves 360px dead space
   per side — that's the "too narrow, too much cream" problem.
   1400px leaves ~260px per side = comfortable, not empty. */
:root {
  --cream:    #FAF9FC;
  --cream2:   #F0EBF7;
  --purple:   #4A3568;
  --purple2:  #6B4F8E;
  --lavender: #B09CC8;
  --orange:   #E07B1A;
  --orange2:  #F59332;
  --brown:    #1A120B;
  --grey:     #6B6360;
  --lightgrey:#E5DEF0;
  --white:    #FFFFFF;
  --condensed:'Playfair Display', serif;
  --body:     'DM Sans', sans-serif;

  --content-max: 100%;
  --content-pad: 1.5rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--brown);
  background: var(--cream);
  overflow-x: hidden;
}


/* ── CONTAINER PATTERN ──
   Every major section wraps its content in an "-inner" div.
   This inner div gets: max-width + auto margins + side padding.
   The PARENT section can be full-bleed (colored backgrounds),
   while the INNER constrains the text/cards to a readable width.

   WHY: If you put max-width on the section itself, you lose the
   full-width background color. Always separate "background wrapper"
   from "content container". */
.hero-inner,
.section-inner,
.page-hero-inner,
.cta-banner-inner,
.macro-bar-inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}


/* ══════════════════════════════════
   NAV
   ══════════════════════════════════
   Height is fixed in px (not rem/vw) so it never balloons.
   Mobile: 64px. Desktop: 72px. That's it. */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--content-pad);
  height: 64px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.nav-logo {
  font-family: var(--condensed);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-logo span { color: var(--orange2); font-style: italic; }

/* Desktop nav links — hidden on mobile via base rule below */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(250,247,242,0.8);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--cream); background: rgba(255,255,255,0.1); }

/* !important is acceptable here — .nav-cta is a modifier on .nav-links a
   and needs to win the specificity fight without nesting selectors deeper */
.nav-cta { background: var(--orange) !important; color: var(--white) !important; font-weight: 600 !important; }
.nav-cta:hover { background: var(--orange2) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--cream); border-radius: 2px; }

/* Mobile menu overlay — toggled via JS adding .open class */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--purple);
  padding: 1rem 1.5rem 1.5rem;
  z-index: 199;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(250,247,242,0.85);
  text-decoration: none;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mobile-menu a.mob-cta {
  margin-top: 0.5rem;
  background: var(--orange);
  color: var(--white);
  text-align: center;
  border-radius: 6px;
  border: none;
  padding: 0.75rem;
}

/* MOBILE BASE: hide desktop nav links, show hamburger.
   Breakpoint at 768px flips this. */
.nav-links { display: none; }
.hamburger { display: flex; }


/* ══════════════════════════════════
   BUTTONS
   ══════════════════════════════════
   Font sizes in rem — they stay readable at every screen size
   without needing breakpoint overrides. */
.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary:hover { background: var(--orange2); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--brown);
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.68rem 1.5rem;
  border-radius: 6px;
  border: 2px solid var(--brown);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-outline-light { color: var(--cream); border-color: rgba(250,247,242,0.4); }
.btn-outline-light:hover { background: var(--cream); color: var(--brown); }
.btn-outline:hover { background: var(--brown); color: var(--white); }


/* ══════════════════════════════════
   HERO (home page)
   ══════════════════════════════════
   Full-bleed purple background. Content centered via .hero-inner container.
   Padding in rem, not vw — so it doesn't blow out on ultrawide. */
.hero {
  background: var(--purple);
  position: relative;
  overflow: hidden;
  padding: 3rem var(--content-pad) 4rem;
  min-height: 440px;
  display: flex;
  align-items: center;
}

/* Decorative gradient overlays — positioned absolute so they
   fill the hero regardless of content height */
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(176,156,200,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(224,123,26,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--orange), var(--orange2), var(--lavender), var(--orange));
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(245,147,50,0.2);
  border: 1px solid rgba(245,147,50,0.4);
  color: var(--orange2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

/* Hero heading — mobile: 2.4rem, scaled up at breakpoints.
   NEVER use vw for this. 6vw = 115px on 1920px screens. */
.hero h1 {
  font-family: var(--condensed);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero h1 em { color: var(--orange2); font-style: italic; }

.hero p {
  font-size: 0.95rem;
  color: rgba(250,247,242,0.75);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

.hero-stat-num {
  font-family: var(--condensed);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--orange2);
}

.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(250,247,242,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}


/* ══════════════════════════════════
   SECTIONS (generic content blocks)
   ══════════════════════════════════
   .section = full-bleed wrapper (takes background color).
   .section-inner = constrained content (max-width centered).
   Padding on .section keeps content off edges on mobile. */
.section { padding: 4rem var(--content-pad); }

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--condensed);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--brown);
  opacity: 0.65;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.section-cta { text-align: center; margin-top: 2.5rem; }


/* ══════════════════════════════════
   PAGE HERO (sub-pages: recipes, guides, shop)
   ══════════════════════════════════
   Full-bleed purple bar with centered text.
   Same container pattern as main hero. */
.page-hero {
  background: var(--purple);
  padding: 3.5rem var(--content-pad) 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--orange2), var(--lavender));
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h2 {
  font-family: var(--condensed);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.75rem;
}
.page-hero p { color: rgba(250,247,242,0.7); font-size: 0.95rem; line-height: 1.6; }
.page-hero p.sub { color: var(--orange2); font-weight: 500; margin-bottom: 0.4rem; }


/* ══════════════════════════════════
   RECIPE CARDS (grid listing)
   ══════════════════════════════════
   Mobile: 1 column. Tablet: 2. Desktop: 4.
   Cards fill available width — don't set fixed widths on them.
   Let the grid columns + gap handle sizing. */
.recipes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.recipe-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,18,11,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.recipe-card-link { text-decoration: none; color: inherit; display: block; }
.recipe-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(26,18,11,0.12); }

.recipe-img {
  width: 100%;
  height: 200px;
  background: var(--cream2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.recipe-img-placeholder { background: var(--cream2); display: flex; align-items: center; justify-content: center; font-size: 3rem; width: 100%; height: 200px; }
.recipe-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.recipe-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--purple);
  color: var(--cream);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.recipe-body { padding: 1.25rem; }

.recipe-title {
  font-family: var(--condensed);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.recipe-desc { font-size: 0.82rem; color: var(--grey); line-height: 1.6; margin-bottom: 1rem; }

.recipe-macros {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.macro-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  background: var(--cream2);
  color: var(--brown);
}
.macro-pill.protein { background: rgba(74,53,104,0.1); color: var(--brown); }
.macro-pill.cals { background: rgba(224,123,26,0.1); color: var(--orange); }

.recipe-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--grey);
}
.recipe-meta span::before { margin-right: 0.3rem; }


/* ══════════════════════════════════
   FILTER TABS
   ══════════════════════════════════ */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-tab {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  border: 1.5px solid var(--lightgrey);
  background: var(--white);
  color: var(--grey);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-tab:hover, .filter-tab.active {
  background: var(--purple);
  border-color: var(--brown);
  color: var(--white);
}


/* ══════════════════════════════════
   PREP GUIDES
   ══════════════════════════════════
   Mobile: 1 column. Tablet: 2. Desktop: 3. */
.guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.guide-card {
  background: var(--white);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(26,18,11,0.07);
  border-left: 4px solid var(--orange);
  transition: transform 0.2s;
}
.guide-card:hover { transform: translateY(-3px); }
.guide-card.featured { border-left-color: var(--orange); }

.guide-icon { font-size: 2rem; margin-bottom: 1rem; }

.guide-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.4rem;
}

.guide-title {
  font-family: var(--condensed);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.guide-desc { font-size: 0.85rem; color: var(--grey); line-height: 1.65; margin-bottom: 1.25rem; }

.guide-steps {
  list-style: none;
  margin-bottom: 1.25rem;
}
.guide-steps li {
  font-size: 0.82rem;
  color: var(--brown);
  padding: 0.3rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.guide-steps li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--lavender);
  font-weight: 700;
}

.guide-emoji { font-size: 2.5rem; margin-bottom: 0.75rem; }
.guide-tips { list-style: none; margin: 1rem 0 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; }
.guide-tips li { font-size: 0.85rem; color: var(--grey); padding-left: 1rem; position: relative; }
.guide-tips li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); }


/* ══════════════════════════════════
   SHOP
   ══════════════════════════════════
   Mobile: 1 column. Tablet: 2. Desktop: 3. */
.shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.shop-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,18,11,0.07);
  transition: transform 0.2s;
}
.shop-card:hover { transform: translateY(-3px); }

.shop-img {
  height: 160px;
  background: var(--cream2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.shop-body { padding: 1.25rem; }

.shop-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  background: rgba(74,53,104,0.1);
  color: var(--brown);
  margin-bottom: 0.5rem;
}

.shop-title {
  font-family: var(--condensed);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 0.4rem;
}

.shop-desc { font-size: 0.82rem; color: var(--grey); line-height: 1.55; margin-bottom: 1rem; }

.shop-price {
  font-family: var(--condensed);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 1rem;
}
.shop-price span { font-family: var(--body); font-size: 0.75rem; color: var(--grey); font-weight: 400; }

.shop-emoji { font-size: 2.5rem; margin-bottom: 0.5rem; }
.shop-cat { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.3rem; }
.shop-name { font-family: var(--condensed); font-size: 1.1rem; font-weight: 700; color: var(--brown); margin-bottom: 0.5rem; }

.affiliate-disclaimer {
  background: var(--cream2);
  border: 1px solid var(--lightgrey);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.78rem;
  color: var(--grey);
  line-height: 1.6;
  max-width: 700px;
  margin: 2.5rem auto 0;
  text-align: center;
}


/* ══════════════════════════════════
   FEATURED STRIP (home page image tiles)
   ══════════════════════════════════
   This is INTENTIONALLY full-bleed (no max-width container).
   The image grid stretches edge-to-edge for visual impact.
   Don't wrap this in --content-max. */
.featured-strip {
  padding: 0;
  overflow: hidden;
}

/* Mobile: 2 columns. Desktop (768px+): 4 columns. */
.features-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  width: 100%;
}

.feature-item {
  position: relative;
  height: 140px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-overlay { display: none; }

.feature-content {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem;
  background: rgba(30, 20, 10, 0.35);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.feature-title {
  font-family: var(--condensed);
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.4rem;
}

.feature-desc { font-size: 0.75rem; color: rgba(255,255,255,0.85); line-height: 1.5; }


/* ══════════════════════════════════
   CTA BANNER
   ══════════════════════════════════ */
.cta-banner {
  background: var(--purple);
  padding: 3.5rem var(--content-pad);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(ellipse at center, rgba(176,156,200,0.25) 0%, transparent 70%);
}
.cta-banner-inner { position: relative; z-index: 1; }
.cta-banner h2 {
  font-family: var(--condensed);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.75rem;
  font-style: italic;
}
.cta-banner p { color: rgba(250,247,242,0.65); font-size: 0.92rem; margin-bottom: 1.75rem; line-height: 1.6; }


/* ══════════════════════════════════
   FOOTER
   ══════════════════════════════════ */
footer {
  background: var(--brown);
  color: rgba(250,247,242,0.7);
  text-align: center;
  padding: 2.5rem var(--content-pad);
  font-size: 0.82rem;
}
.footer-logo {
  font-family: var(--condensed);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.75rem;
}
.footer-logo span { color: var(--orange2); font-style: italic; }
.footer-tagline { margin-bottom: 0.75rem; }
.footer-copy { font-size: 0.7rem; opacity: 0.4; }
footer a { color: var(--orange2); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.5rem;
  font-size: 0.8rem;
}


/* ══════════════════════════════════
   RECIPE DETAIL PAGE (individual recipe)
   ══════════════════════════════════
   The hero image and macro bar are full-bleed.
   Body content is constrained by --content-max via .section-inner
   or direct padding. The macro-bar-inner uses the container pattern. */
.recipe-hero-img { width: 100%; height: 300px; overflow: hidden; }
.recipe-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.macro-bar { background: var(--purple); padding: 1.5rem var(--content-pad); }

.recipe-info-row { display: flex; border-bottom: 1px solid rgba(255,255,255,0.12); margin-bottom: 1.25rem; padding-bottom: 1rem; }
.recipe-info-cell { flex: 1; text-align: center; border-left: 1px solid rgba(255,255,255,0.12); }
.recipe-info-cell:first-child { border-left: none; }
.recipe-info-val { font-family: var(--condensed); font-size: 1.05rem; font-weight: 700; color: white; }
.recipe-info-lbl { font-size: 0.62rem; color: rgba(250,249,252,0.5); text-transform: uppercase; letter-spacing: 0.06em; }

.macro-toggle { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 1.25rem; }
.macro-btn { font-size: 0.78rem; font-weight: 600; padding: 0.4rem 1.1rem; border-radius: 20px; border: none; cursor: pointer; background: rgba(255,255,255,0.15); color: rgba(250,249,252,0.7); }
.macro-btn-active { background: var(--orange) !important; color: white !important; }

/* Mobile: 3 columns (wraps to fit). Tablet+: 5 columns. */
.macro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; text-align: center; }
.macro-cell { background: rgba(0,0,0,0.15); border-radius: 10px; padding: 0.75rem 0.25rem; }
.macro-val { font-family: var(--condensed); font-size: 1.5rem; font-weight: 700; color: var(--orange2); }
.macro-lbl { font-size: 0.65rem; color: rgba(250,249,252,0.55); text-transform: uppercase; letter-spacing: 0.06em; }
.macro-rice-note { text-align: center; padding: 0.5rem 0 0; font-size: 0.68rem; color: rgba(250,249,252,0.45); letter-spacing: 0.06em; text-transform: uppercase; }

/* Ingredients + Recipe Info side by side.
   Mobile: stacked. Tablet+: 2 columns. */
.recipe-body-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2.5rem; }

.recipe-section-title { font-family: var(--condensed); font-size: 1.2rem; font-weight: 700; color: var(--brown); margin-bottom: 1rem; }

.ingredients-list { list-style: none; }
.ingredients-list li { display: flex; justify-content: space-between; padding: 0.65rem 0; border-bottom: 1px solid var(--lightgrey); font-size: 0.9rem; }
.ingredients-list li:last-child { border-bottom: none; }
.ing-name { font-weight: 500; }
.ing-qty { color: var(--grey); }
.ing-note { font-size: 0.75rem; color: var(--orange); font-weight: 400; }

.recipe-info-table { font-size: 0.9rem; }
.recipe-info-row-table { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--lightgrey); }
.recipe-info-row-table:last-child { border-bottom: none; }
.recipe-info-row-table span:last-child { font-weight: 500; }

.method-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.method-list li { display: flex; gap: 1rem; align-items: flex-start; font-size: 0.95rem; line-height: 1.6; }
.step-num { background: var(--purple); color: white; border-radius: 50%; width: 28px; height: 28px; min-width: 28px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; }
.step-num-final { background: var(--orange); }

.meal-prep-tips { background: var(--cream2); border-left: 4px solid var(--orange); border-radius: 0 10px 10px 0; padding: 1.25rem 1.5rem; margin-top: 2.5rem; }
.meal-prep-tips-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.75rem; color: var(--brown); }
.tip { font-size: 0.9rem; color: var(--grey); padding: 0.3rem 0; line-height: 1.5; }


/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════════════════

   HOW THIS WORKS:
   Each breakpoint ADDS overrides on top of the mobile base.
   Nothing is "replaced" — if you don't override a property here,
   the mobile value still applies. This is why mobile-first works:
   you only write the DIFFERENCES at each size.

   ADDING A NEW COMPONENT:
   1. Write the mobile style in the base section above
   2. Only add a breakpoint override if the component CHANGES at that size
   3. Usually that means grid columns and font-size bumps — nothing else

   COMMON MISTAKES TO AVOID:
   - Don't duplicate properties that haven't changed
   - Don't use max-width breakpoints (that's desktop-first, not mobile-first)
   - Don't put ALL overrides in one mega @media — it gets unreadable
   - Don't use vw units anywhere in these blocks

   ══════════════════════════════════════════════════════════════════════ */


/* ── TABLET (≥ 600px) ──
   Grids go from 1-col to 2-col. Macro grid gets all 5 columns.
   This is the first breakpoint where side-by-side layouts kick in. */
@media (min-width: 600px) {
  .recipes-grid       { grid-template-columns: repeat(2, 1fr); }
  .guides-grid        { grid-template-columns: repeat(2, 1fr); }
  .shop-grid          { grid-template-columns: repeat(2, 1fr); }
  .macro-grid         { grid-template-columns: repeat(5, 1fr); }
  .recipe-body-grid   { grid-template-columns: 1fr 1fr; gap: 3rem; }

  .feature-item       { height: 200px; }
}


/* ── SMALL DESKTOP (≥ 768px) ──
   Nav switches from hamburger to inline links.
   Typography gets first size bump. Feature strip goes 4-col. */
@media (min-width: 768px) {
  .nav-links  { display: flex; }
  .hamburger  { display: none; }

  nav { padding: 0 2rem; }
  .nav-links { gap: 0.5rem; }

  .hero { padding: 5rem 2rem; min-height: 500px; }
  .hero h1 { font-size: 3rem; }
  .hero p { font-size: 1.05rem; }

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

  .page-hero h2 { font-size: 2.2rem; }

  .features-row { grid-template-columns: repeat(4, 1fr); }
  .feature-item { height: 220px; }
  .feature-title { font-size: 1.15rem; }

  .cta-banner h2 { font-size: 2rem; }

  .recipe-hero-img { height: 400px; }
}


/* ── DESKTOP (≥ 1024px) ──
   --content-max goes from 100% to 1400px. This is the KEY change
   that constrains content on wide screens while filling the space.

   WHY 1400px AND NOT 1200px:
   On 1920px screen → 1200px = 360px dead space per side (too much!)
   On 1920px screen → 1400px = 260px per side (comfortable breathing room)
   On 1440px screen → 1400px = 20px per side (nearly full width — perfect)

   The padding bumps to 2.5rem for a bit more internal breathing room. */
@media (min-width: 1024px) {
  :root {
    --content-max: 1400px;
    --content-pad: 2.5rem;
  }

  /* Nav — slightly taller, bigger logo, but still capped in px.
     NEVER set nav height in rem or vw — it should be a fixed, small bar. */
  nav { height: 72px; padding: 0 3rem; }
  .nav-logo { font-size: 1.75rem; }
  .nav-links a { font-size: 0.9rem; padding: 0.5rem 1.1rem; }
  .nav-links { gap: 0.35rem; }

  /* Hero — generous padding but in rem, not vw */
  .hero { padding: 6rem 3rem; min-height: 560px; }
  .hero h1 { font-size: 3.5rem; }
  .hero p { font-size: 1.15rem; max-width: 680px; margin-bottom: 2.5rem; }
  .hero-btns a { font-size: 0.95rem; padding: 0.85rem 2rem; }
  .hero-stat-num { font-size: 2.5rem; }
  .hero-stat-label { font-size: 0.8rem; }
  .hero-stats { gap: 4.5rem; margin-top: 3.5rem; padding-top: 2.5rem; }

  /* Sections — wider sub text to fill the wider container */
  .section { padding: 5rem 2.5rem; }
  .section-label { font-size: 0.75rem; }
  .section-title { font-size: 2.4rem; }
  .section-sub { font-size: 1.05rem; max-width: 700px; }

  /* Grids — recipes 4-col, guides/shop 3-col.
     Wider gap so cards don't feel cramped. */
  .recipes-grid { grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
  .guides-grid  { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
  .shop-grid    { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }

  /* Recipe cards — taller images to fill the wider columns */
  .recipe-img   { height: 240px; }
  .recipe-body  { padding: 1.5rem; }
  .recipe-title { font-size: 1.2rem; }
  .recipe-desc  { font-size: 0.85rem; }

  /* Feature strip — taller tiles for impact on big screens */
  .feature-item  { height: 320px; }
  .feature-title { font-size: 1.35rem; }
  .feature-desc  { font-size: 0.88rem; }

  /* CTA banner — more vertical padding, constrained text width */
  .cta-banner { padding: 5rem 2.5rem; }
  .cta-banner h2 { font-size: 2.5rem; margin-bottom: 1rem; }
  .cta-banner p { font-size: 1.1rem; margin-bottom: 2rem; max-width: 700px; margin-left: auto; margin-right: auto; }
  .cta-banner .btn-primary { font-size: 0.95rem; padding: 0.85rem 2.25rem; }

  /* Page hero — bigger heading, constrained subtitle width */
  .page-hero { padding: 5rem 2.5rem 4rem; }
  .page-hero h2 { font-size: 2.8rem; }
  .page-hero p { font-size: 1.1rem; max-width: 650px; margin-left: auto; margin-right: auto; }

  /* Footer — more padding, slightly bigger text */
  footer { padding: 3.5rem 2.5rem; }
  .footer-logo { font-size: 1.75rem; }
  .footer-tagline { font-size: 0.92rem; }
  .footer-links { gap: 2rem; }
  .footer-links a { font-size: 0.88rem; }

  /* Recipe detail page — taller hero image, bigger macro values,
     wider gap between ingredients and recipe info columns */
  .recipe-hero-img { height: 480px; }
  .macro-bar { padding: 2rem var(--content-pad); }
  .recipe-info-val { font-size: 1.25rem; }
  .recipe-info-lbl { font-size: 0.7rem; }
  .macro-val { font-size: 1.75rem; }
  .macro-lbl { font-size: 0.7rem; }
  .recipe-body-grid { gap: 4rem; }
  .recipe-section-title { font-size: 1.4rem; }
}


/* ── LARGE DESKTOP (≥ 1440px) ──
   Container nudges to 1500px. Typography gets final bumps.
   Most layout work was done at 1024px — this is polish.

   On a 1920px screen: 1500px content = 210px per side.
   On a 2560px monitor: 1500px content = 530px per side (still capped). */
@media (min-width: 1440px) {
  :root {
    --content-max: 1500px;
  }

  .hero h1 { font-size: 4rem; }
  .hero p { max-width: 740px; }
  .hero-stat-num { font-size: 2.8rem; }

  .section-title { font-size: 2.8rem; }
  .section-sub { max-width: 760px; }

  .feature-item { height: 380px; }
  .feature-title { font-size: 1.5rem; }
  .feature-desc { font-size: 0.92rem; }

  .cta-banner h2 { font-size: 3rem; }
  .page-hero h2 { font-size: 3.2rem; }

  .recipe-img { height: 260px; }
  .guides-grid { gap: 2rem; }
  .shop-grid { gap: 2rem; }
}
