/* ============================================================
   Teranga Grill — site component layer (Bootstrap 5.3 + tokens)
   Loads on top of the design-system tokens (../styles.css).
   Plain CSS classes only — converts cleanly to a Bootstrap/PHP theme.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  /* room for the mobile sticky bottom bar (only shown < 768px) */
  padding-bottom: calc(var(--bottombar-h) + env(safe-area-inset-bottom));
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--text-strong); margin: 0; }
a { color: var(--terracotta); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }
.tg-container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding-inline: var(--container-pad); }

/* ── Eyebrow ───────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-body); font-weight: 600;
  font-size: var(--fs-eyebrow); letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase; color: var(--terracotta); margin: 0 0 10px;
}
.eyebrow.on-dark { color: var(--gold-300); }

/* ── Buttons ───────────────────────────────────────────── */
.btn-tg {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: var(--tap-min); height: var(--control-h); padding: 0 22px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1;
  border: 2px solid transparent; border-radius: var(--radius-md);
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out), color var(--dur-fast);
  box-shadow: var(--shadow-xs);
}
.btn-tg:active { transform: scale(.98); }
.btn-tg.btn-lg { height: 56px; padding: 0 30px; font-size: 1.0625rem; }
.btn-tg.btn-sm { height: var(--control-h-sm); padding: 0 16px; font-size: .9375rem; }
.btn-tg.btn-block { width: 100%; }

.btn-tg-primary { background: var(--action-primary); color: #fff; }
.btn-tg-primary:hover { background: var(--action-primary-hover); color: #fff; box-shadow: var(--shadow-md); }
.btn-tg-donate { background: var(--action-donate); color: #fff; }
.btn-tg-donate:hover { background: var(--action-donate-hover); color: #fff; box-shadow: var(--shadow-md); }
.btn-tg-outline { background: transparent; color: var(--green); border-color: var(--green); box-shadow: none; }
.btn-tg-outline:hover { background: rgba(62,80,34,.08); color: var(--green); }
.btn-tg-ghost { background: transparent; color: var(--text-strong); box-shadow: none; }
.btn-tg-ghost:hover { background: rgba(42,22,6,.06); }
.btn-tg-light { background: var(--cream); color: var(--ink); }
.btn-tg-light:hover { background: #fff; box-shadow: var(--shadow-md); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em; font-weight: 600;
  color: var(--terracotta); border-bottom: 2px solid currentColor; padding-bottom: 1px;
  transition: gap var(--dur-fast) var(--ease-out);
}
.link-arrow:hover { gap: .7em; color: var(--terracotta-700); }

/* ── Header (shrink on scroll) ─────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  background: var(--cream); border-bottom: 1px solid transparent;
  transition: background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(244,231,208,.94); backdrop-filter: saturate(140%) blur(8px);
  box-shadow: var(--shadow-header); border-bottom-color: var(--hairline);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); transition: height var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled .header-inner { height: var(--header-h-compact); }
.logo-lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-badge { width: 60px; height: 60px; transition: width var(--dur-base) var(--ease-out), height var(--dur-base) var(--ease-out); }
.site-header.is-scrolled .logo-badge { width: 40px; height: 40px; }
.logo-word { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; color: var(--ink); transition: font-size var(--dur-base) var(--ease-out); }
.site-header.is-scrolled .logo-word { font-size: 1.25rem; }

.main-nav { display: none; align-items: center; gap: 26px; }
@media (min-width: 992px) { .main-nav { display: flex; } }
.nav-link {
  font-family: var(--font-body); font-weight: 500; font-size: 1rem; color: var(--ink-80);
  text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.nav-link:hover { color: var(--terracotta); border-bottom-color: var(--terracotta); }
body[data-page="home"]   .nav-link[data-nav="home"],
body[data-page="menu"]   .nav-link[data-nav="menu"],
body[data-page="about"]  .nav-link[data-nav="about"],
body[data-page="contact"].nav-link[data-nav="contact"] { color: var(--terracotta); border-bottom-color: var(--terracotta); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: none; background: transparent; color: var(--ink);
  font-size: 22px; cursor: pointer; border-radius: var(--radius-md); text-decoration: none;
}
.icon-btn:hover { background: rgba(42,22,6,.06); color: var(--ink); }
.cart-count {
  position: absolute; top: 2px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--terracotta); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1;
  border-radius: var(--radius-pill); border: 2px solid var(--cream);
}
.cart-count[data-empty="true"] { display: none; }
.header-actions .btn-tg { display: none; }
@media (min-width: 992px) { .header-actions .btn-tg.show-lg { display: inline-flex; } }
.nav-toggle { display: inline-flex; }
@media (min-width: 992px) { .nav-toggle { display: none; } .icon-btn.account-btn { display: inline-flex; } }
.icon-btn.account-btn { display: none; }

/* spacer so fixed header doesn't cover content */
.header-spacer { height: var(--header-h); }

/* ── Mobile drawer ─────────────────────────────────────── */
.tg-scrim { position: fixed; inset: 0; background: rgba(42,22,6,.5); z-index: var(--z-drawer); opacity: 0; transition: opacity var(--dur-base) var(--ease-out); }
.tg-scrim.is-open { opacity: 1; }
.tg-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px);
  background: var(--cream); box-shadow: var(--shadow-lg); z-index: calc(var(--z-drawer) + 1);
  transform: translateX(100%); transition: transform var(--dur-base) var(--ease-out);
  display: flex; flex-direction: column;
}
.tg-drawer.is-open { transform: translateX(0); }
.tg-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--hairline); }
.tg-drawer-head .logo-word { font-size: 1.25rem; }
.tg-drawer-nav { display: flex; flex-direction: column; padding: 8px 0; overflow-y: auto; }
.tg-drawer-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; min-height: 48px; font-family: var(--font-heading); font-weight: 500;
  font-size: 1.0625rem; color: var(--ink); text-decoration: none;
}
.tg-drawer-nav a:hover { background: rgba(42,22,6,.05); }
.tg-drawer-sep { height: 1px; background: var(--hairline); margin: 8px 20px; }
.tg-drawer-cta { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--hairline); }

/* ── Mobile sticky bottom action bar ─────────────────────
   Absent entirely without JS (display:none). site.js adds .tg-has-js and
   toggles .is-visible from an IntersectionObserver on the hero CTA row, so
   exactly one Pre-order/Donate pair is on screen at a time. Slides up/down via
   a transform transition (never an invisible-but-clickable bar). < 768px only;
   overlays content — body reserves matching bottom padding so the footer is
   never obscured and there is no layout shift when it appears. */
.tg-bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bottombar);
  display: none; gap: 10px; padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: rgba(244,231,208,.96); backdrop-filter: saturate(140%) blur(8px);
  box-shadow: var(--shadow-bottombar); border-top: 1px solid var(--hairline);
  transform: translateY(110%);
  transition: transform 200ms var(--ease-out);
}
.tg-has-js .tg-bottombar { display: flex; }          /* participates only with JS */
.tg-bottombar.is-visible { transform: translateY(0); }
.tg-bottombar .btn-tg { min-height: 48px; }          /* tap target parity */
@media (prefers-reduced-motion: reduce) { .tg-bottombar { transition: none; } }
@media (min-width: 768px) { .tg-bottombar { display: none !important; } }

/* ── Sections ──────────────────────────────────────────── */
.section { padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); }
.section-tan { background: var(--surface-tan); }
.section-dark { background: var(--ink); color: var(--text-on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--cream); }
.section-head { max-width: 640px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); line-height: var(--lh-snug); }
.section-head .lead { font-size: var(--fs-body-lg); color: var(--text-muted); margin: 12px 0 0; }
.section-dark .section-head .lead { color: var(--text-on-dark-muted); }

/* ── Hero ──────────────────────────────────────────────── */
.hero { background: var(--cream); padding-top: calc(var(--header-h) + var(--space-6)); padding-bottom: var(--section-y); }
.hero h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); margin: 12px 0 0; }
.hero .subline { font-size: var(--fs-body-lg); color: var(--ink-80); margin: 16px 0 0; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
/* min-width:0 keeps a grid/flex child (here the circular plate) from feeding
   its intrinsic width back into the 1fr track and ballooning the column — the
   guard that originally tamed the runaway hero-image width bug. Still required
   for the plate. */
.hero-grid > * { min-width: 0; }
/* Mobile ambient background layers — hidden on desktop (the slider hero is
   used there); shown and positioned in the < 768px block below. */
.hero-bg { display: none; }
.page-hero { background: var(--cream-2); padding-top: calc(var(--header-h) + var(--space-7)); padding-bottom: var(--section-y); }
.page-hero h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
.page-hero .lead { font-size: var(--fs-body-lg); color: var(--text-muted); margin: 14px 0 0; max-width: 56ch; }

/* ── Cards (generic surface) ───────────────────────────── */
.card-tg { background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-tg.lift { transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.card-tg.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { position: relative; aspect-ratio: 16 / 11; background: var(--cream-3); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-tag { position: absolute; top: 12px; left: 12px; }

/* ── Pills / tags ──────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius-pill); font-size: .8125rem; font-weight: 600; line-height: 1; }
.pill-terracotta { background: var(--terracotta); color: #fff; }
.pill-green { background: var(--green); color: #fff; }
.pill-gold { background: var(--gold); color: var(--ink); }
.pill-soft { background: var(--cream-3); color: var(--ink-80); }

/* ── Give-back steps ───────────────────────────────────── */
.step { text-align: center; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: var(--radius-pill); font-family: var(--font-heading); font-weight: 700; font-size: 1.375rem;
  box-shadow: var(--shadow-sm); margin-bottom: 14px;
}
.step-num.t1 { background: var(--terracotta); color: #fff; }
.step-num.t2 { background: var(--gold); color: var(--ink); }
.step-num.t3 { background: var(--green); color: #fff; }
.step h3 { font-size: var(--fs-h5); margin-bottom: 4px; }
.step p { font-size: var(--fs-small); color: var(--text-muted); margin: 0; }
.loop-tagline { text-align: center; margin-top: var(--space-7); font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-h5); color: var(--terracotta); }

/* ── Dish / product cards ──────────────────────────────── */
.dish-card { display: flex; flex-direction: column; height: 100%; }
.dish-card .card-img { aspect-ratio: 4 / 3; }
.dish-body { padding: var(--space-4); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dish-name { font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.dish-desc { font-size: .875rem; color: var(--text-muted); margin: 0; flex: 1; }
.dish-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.dish-price { font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; color: var(--green); }

/* ── Dish preview: horizontal swipe carousel on phones only ──────────────
   < 768px the 8 dish cards become one horizontal scroll-snap row — no JS, no
   Swiper. Hardened against the prior runaway-width bug: the track gets
   min-width:0 (so it can never grow to its content) and each card uses
   flex-shrink:0 with a fixed width (so card width can never feed back into the
   track). ≥ 768px nothing here applies and the 4-across grid is unchanged. */
.dish-swipe-hint { display: none; }
@media (max-width: 767.98px) {
  /* .grid.dish-row (0,2,0) so display:flex wins over the base .grid display:grid
     regardless of source order. */
  .grid.dish-row {
    display: flex;
    flex-wrap: nowrap;
    min-width: 0;                 /* track can't grow to its content */
    gap: var(--space-4);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--container-pad); /* first card isn't flush */
    /* full-bleed to the viewport edges, then re-inset the content */
    margin-inline: calc(-1 * var(--container-pad));
    padding-inline: var(--container-pad);
    padding-bottom: 6px;
    scrollbar-width: none;        /* Firefox: hide scrollbar, stay scrollable */
  }
  .grid.dish-row::-webkit-scrollbar { display: none; } /* WebKit/Blink: hide scrollbar */
  .grid.dish-row > .dish-card {
    flex: 0 0 82vw;               /* ~82% of viewport so the next card peeks */
    width: 82vw;
    min-width: 0;
    scroll-snap-align: start;
  }
  .dish-swipe-hint {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: var(--space-4); margin-bottom: 0;
    font-size: var(--fs-small); font-weight: 600; letter-spacing: .02em;
    color: var(--text-muted);
  }
  .dish-swipe-hint .bi { color: var(--terracotta); }
}

/* ── Stats ─────────────────────────────────────────────── */
.stat { text-align: center; }
.stat-num { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-stat); line-height: 1; letter-spacing: -.01em; color: var(--gold-300); }
.stat-goal { display: inline-block; margin-top: 6px; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.stat-label { display: block; margin-top: 6px; font-size: var(--fs-small); color: var(--text-on-dark-muted); max-width: 22ch; margin-inline: auto; }

/* ── People ────────────────────────────────────────────── */
.person { text-align: center; }
.person-photo { width: 132px; height: 132px; border-radius: var(--radius-pill); background: var(--cream-3); border: 3px solid var(--surface-card); box-shadow: var(--shadow-md); margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; color: var(--ink-60); font-size: 44px; overflow: hidden; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-name { font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-h5); color: var(--ink); }
.person-role { font-size: var(--fs-small); font-weight: 600; color: var(--terracotta); }

/* ── CTA band ──────────────────────────────────────────── */
.cta-band { background: var(--terracotta); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: var(--fs-h2); }
.cta-band .cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }

/* ── Value / feature list ──────────────────────────────── */
.value { display: flex; gap: 14px; }
.value .bi { color: var(--terracotta); font-size: 26px; flex: none; }
.value h3 { font-size: var(--fs-h5); margin-bottom: 4px; }
.value p { font-size: var(--fs-small); color: var(--text-muted); margin: 0; }

/* ── Forms ─────────────────────────────────────────────── */
.form-tg label { display: block; font-weight: 600; font-size: .9375rem; color: var(--ink); margin-bottom: 6px; }
.form-tg .field { margin-bottom: 18px; }
.form-tg input, .form-tg textarea, .form-tg select {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-md);
  padding: 12px 14px; min-height: var(--control-h);
}
.form-tg textarea { min-height: 140px; resize: vertical; }
.form-tg input:focus, .form-tg textarea:focus, .form-tg select:focus { outline: none; border-color: var(--gold); box-shadow: var(--focus-ring); }

/* ── Info rows (contact) ───────────────────────────────── */
.info-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; }
.info-row .bi { color: var(--terracotta); font-size: 20px; margin-top: 2px; flex: none; }
.info-row a { color: var(--ink-80); }
.info-row a:hover { color: var(--terracotta); }

/* ── Category jump nav (menu) ──────────────────────────── */
.jump-nav { position: sticky; top: var(--header-h-compact); z-index: 20; background: rgba(244,231,208,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hairline); }
.jump-nav .tg-container { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; }
.jump-nav a { flex: none; padding: 8px 16px; border-radius: var(--radius-pill); background: var(--cream-3); color: var(--ink-80); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.jump-nav a:hover { background: var(--gold); color: var(--ink); }
.cat-title { font-size: var(--fs-h3); margin-bottom: 6px; }
.cat-sub { color: var(--text-muted); margin: 0 0 var(--space-5); }

/* ── WooCommerce styled placeholders ───────────────────── */
.woo-note { border: 1px dashed var(--gold); background: var(--cream-2); border-radius: var(--radius-lg); padding: var(--space-5); }
.woo-note .bi { color: var(--gold); }

/* ── Donate / embed placeholder ────────────────────────── */
.embed-slot { border: 2px dashed var(--green-300); background: var(--surface-card); border-radius: var(--radius-lg); padding: var(--space-7) var(--space-5); text-align: center; }
.embed-slot .bi { font-size: 40px; color: var(--green); }
.goal-bar { height: 14px; border-radius: var(--radius-pill); background: var(--cream-3); overflow: hidden; }
.goal-bar > span { display: block; height: 100%; background: var(--green); border-radius: var(--radius-pill); }

/* ── Footer ────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: var(--text-on-dark); }
.site-footer .tg-container { padding-block: var(--section-y) var(--space-6); }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.foot-brand .logo-word { color: var(--cream); }
.foot-mission { font-size: .9375rem; color: var(--text-on-dark-muted); margin: 14px 0 16px; max-width: 34ch; }
.foot-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .9375rem; }
.foot-contact a, .foot-contact span { color: var(--text-on-dark-muted); text-decoration: none; display: flex; gap: 10px; align-items: flex-start; }
.foot-contact a:hover { color: var(--cream); }
.foot-contact .bi { color: var(--gold-300); margin-top: 2px; }
.foot-social { display: flex; gap: 10px; margin-top: 18px; }
.foot-social a { width: 40px; height: 40px; border-radius: var(--radius-md); border: 1px solid var(--hairline-dark); display: inline-flex; align-items: center; justify-content: center; color: var(--cream); font-size: 18px; }
.foot-social a:hover { background: rgba(244,231,208,.08); }
.foot-cols { display: grid; grid-template-columns: 1fr; }
.foot-col { border-bottom: 1px solid var(--hairline-dark); }
.foot-col-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; background: transparent; border: none; cursor: pointer; padding: 16px 0; font-family: var(--font-heading); font-weight: 600; font-size: 1.0625rem; color: var(--cream); }
.foot-col-toggle .bi { color: var(--text-on-dark-muted); transition: transform var(--dur-base); }
.foot-col.is-open .foot-col-toggle .bi { transform: rotate(180deg); }
.foot-col-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-height: 0; overflow: hidden; transition: max-height var(--dur-base) var(--ease-out), padding var(--dur-base); }
.foot-col.is-open .foot-col-list { max-height: 320px; padding-bottom: 16px; }
.foot-col-list a { color: var(--text-on-dark-muted); font-size: .9375rem; }
.foot-col-list a:hover { color: var(--cream); text-decoration: underline; }
/* Footer CTA heading centered per client revision (this text only). */
.foot-cta h3 { color: var(--cream); font-size: var(--fs-h4); max-width: 12ch; margin: 0 auto 16px; text-align: center; }
.foot-cta .cta-stack { display: flex; flex-direction: column; gap: 10px; max-width: 280px; }
.foot-legal { border-top: 1px solid var(--hairline-dark); margin-top: var(--space-7); padding-top: var(--space-5); font-size: .8125rem; color: var(--text-on-dark-muted); display: flex; flex-direction: column; gap: 10px; }
.foot-legal .legal-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot-legal a { color: var(--text-on-dark-muted); }
.foot-legal a:hover { color: var(--cream); }
.foot-credit a { color: var(--gold-300); }

/* ── Responsive grids ──────────────────────────────────── */
.grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
.grid.gap-lg { gap: var(--space-7); }
@media (min-width: 768px) {
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1.3fr 1fr; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); gap: 0 24px; }
  .foot-cta { grid-column: 1 / -1; }
  .foot-col { border-bottom: none; }
  .foot-col-toggle { pointer-events: none; padding-bottom: 14px; }
  .foot-col-toggle .bi { display: none; }
  .foot-col-list { max-height: none; padding-bottom: 0; }
}
@media (min-width: 992px) {
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; }
  .foot-grid { grid-template-columns: 1.4fr 2fr 1fr; }
  .foot-cta { grid-column: auto; }
  .split-2 { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* ── Scroll reveals (purely additive) ────────────────────────────────────
   Baseline: every [data-aos] element is fully visible (opacity:1). The fade-up
   exists ONLY as a keyframe whose END state is that same visible state, played
   when site.js ADDS .aos-reveal as the element scrolls in. Because the hidden
   frame is just the START of a self-completing animation, content can never be
   left blank:
     • JS never runs              → class never added → element stays visible
     • JS adds class then stalls  → the compositor still finishes the animation
                                     to opacity:1 (animations don't need the JS
                                     main thread to progress)
     • reduced motion             → the rule is inert; element stays visible
   Nothing here sets a hidden state that JS must later undo. */
[data-aos] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  [data-aos].aos-reveal {
    animation: tg-fade-up var(--dur-rev, .6s) var(--ease-out, ease-out) both;
  }
}
@keyframes tg-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ════════════════════════════════════════════════════════════
   DEMO-2 ADDITIONS  (built on top of demo-1 — demo-1 untouched)
   Safety bar for every piece below:
     • content visible by default; never hidden if JS stalls
     • prefers-reduced-motion honored (motion is decorative only)
     • no layout-width feedback loops (min-width:0 where needed)
     • keyboard-accessible, AA contrast preserved
   ════════════════════════════════════════════════════════════ */

/* ── Mud-cloth hero band (bold, colorful — INNER pages) ──────
   A bògòlanfini-style SVG (inline data-URI, no external asset) drawn in
   the brand red/green/gold/cream on a deep near-black base. It sits on a
   ::before layer (z-index 0); hero content is lifted to z-index 1 and a
   ::after scrim (further down) guarantees AA text contrast. Applies to
   .page-hero (menu/about/contact/donate). The HOME hero (.hero) instead
   uses the client interior photo — see the .hero::before block below.
   The pattern is now fully STATIC on every page (its slow drift animation
   was removed) — pending the client's decision on the inner-page treatment. */
.hero, .page-hero { position: relative; overflow: hidden; background: #211306; }
.hero > .tg-container, .page-hero > .tg-container { position: relative; z-index: 1; }
/* Inner-page heroes keep the bògòlanfini mud-cloth band. The HOME hero swapped
   to the client interior photo (see the .hero::before block further down), so
   the pattern no longer applies to .hero. */
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27160%27%20height%3D%27160%27%20viewBox%3D%270%200%20160%20160%27%3E%3Cg%20fill%3D%27none%27%20stroke-width%3D%273.5%27%20stroke-linecap%3D%27round%27%3E%3Cpath%20stroke%3D%27%23E0A955%27%20d%3D%27M0%2022%20L20%206%20L40%2022%20L60%206%20L80%2022%20L100%206%20L120%2022%20L140%206%20L160%2022%27%2F%3E%3Cpath%20stroke%3D%27%23FCF3DF%27%20stroke-dasharray%3D%274%207%27%20d%3D%27M16%2042%20v18%20M48%2042%20v18%20M80%2042%20v18%20M112%2042%20v18%20M144%2042%20v18%27%2F%3E%3Cpath%20stroke%3D%27%23D2542A%27%20d%3D%27M40%2096%20l12%20-12%20l12%2012%20l-12%2012%20z%27%2F%3E%3Cpath%20stroke%3D%27%23D2542A%27%20d%3D%27M96%2096%20l12%20-12%20l12%2012%20l-12%2012%20z%27%2F%3E%3Cpath%20stroke%3D%27%238BA85A%27%20d%3D%27M0%20124%20h160%20M0%20136%20h160%27%2F%3E%3Cpath%20stroke%3D%27%238BA85A%27%20d%3D%27M16%20124%20v12%20M48%20124%20v12%20M80%20124%20v12%20M112%20124%20v12%20M144%20124%20v12%27%2F%3E%3C%2Fg%3E%3Cg%20stroke%3D%27none%27%3E%3Ccircle%20fill%3D%27%23FCF3DF%27%20cx%3D%2752%27%20cy%3D%2796%27%20r%3D%272.8%27%2F%3E%3Ccircle%20fill%3D%27%23FCF3DF%27%20cx%3D%27108%27%20cy%3D%2796%27%20r%3D%272.8%27%2F%3E%3Ccircle%20fill%3D%27%23D2542A%27%20cx%3D%2780%27%20cy%3D%2796%27%20r%3D%273%27%2F%3E%3Ccircle%20fill%3D%27%23E0A955%27%20cx%3D%2720%27%20cy%3D%27154%27%20r%3D%272.8%27%2F%3E%3Ccircle%20fill%3D%27%23E0A955%27%20cx%3D%2760%27%20cy%3D%27154%27%20r%3D%272.8%27%2F%3E%3Ccircle%20fill%3D%27%23E0A955%27%20cx%3D%27100%27%20cy%3D%27154%27%20r%3D%272.8%27%2F%3E%3Ccircle%20fill%3D%27%23E0A955%27%20cx%3D%27140%27%20cy%3D%27154%27%20r%3D%272.8%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-repeat: repeat;
  background-size: 170px 170px;
  opacity: 1;
}
/* ── Home hero — client interior photo ───────────────────────
   Replaces the retired mud-cloth here. Width-based art direction:
   phones pull the 640 crop, tablets the 1280, desktop the 1920 —
   each a WebP with a JPEG fallback via image-set(); a plain url()
   first keeps pre-image-set browsers on the JPEG. The dark brown
   (#211306, set on .hero) shows before the image loads so the cream
   headline stays readable. Painted mud-cloth column is kept in frame
   via the crop + background-position. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-color: #211306;
  background-image: url("../images/hero/hero-interior-640.jpg");
  background-image: image-set(
    url("../images/hero/hero-interior-640.webp") type("image/webp"),
    url("../images/hero/hero-interior-640.jpg") type("image/jpeg"));
  background-repeat: no-repeat;
  background-position: 55% 42%;
  background-size: cover;
  transform-origin: 55% 42%;
}
@media (min-width: 641px) {
  .hero::before {
    background-image: url("../images/hero/hero-interior-1280.jpg");
    background-image: image-set(
      url("../images/hero/hero-interior-1280.webp") type("image/webp"),
      url("../images/hero/hero-interior-1280.jpg") type("image/jpeg"));
  }
}
@media (min-width: 1281px) {
  .hero::before {
    background-image: url("../images/hero/hero-interior-1920.jpg");
    background-image: image-set(
      url("../images/hero/hero-interior-1920.webp") type("image/webp"),
      url("../images/hero/hero-interior-1920.jpg") type("image/jpeg"));
  }
}
@media (prefers-reduced-motion: no-preference) {
  /* Home hero: one-time slow zoom of the interior photo. Transform-only, so it
     runs on the compositor (no layout/paint) — drop this rule if any device
     shows scroll jank. Runs once and holds at the zoomed frame. */
  .tg-anim .hero::before {
    will-change: transform;
    animation: tg-hero-zoom 28s var(--ease-out) both;
  }
}
@keyframes tg-hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
/* Home hero entrance: headline group, subline, CTA row, and menu link fade up
   in a ~120ms stagger (all done < 800ms). Gated behind BOTH .tg-anim (added by
   JS) and no-preference, so with JS off OR reduced motion the hero is fully
   static and visible — never blank. */
@keyframes tg-hero-enter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .tg-anim .hero .eyebrow,
  .tg-anim .hero h1,
  .tg-anim .hero .hero-rotator,
  .tg-anim .hero .hero-cta,
  .tg-anim .hero .hero-menu-link {
    animation: tg-hero-enter .40s var(--ease-out) both;
  }
  .tg-anim .hero .hero-rotator { animation-delay: .12s; }
  .tg-anim .hero .hero-cta { animation-delay: .24s; }
  .tg-anim .hero .hero-menu-link { animation-delay: .36s; }
}

/* ── Step 1 · Hero mission-line rotator ──────────────────────
   Cross-fades 3 mission lines under the STATIC headline + CTAs.
   CSS-only (no JS). The three lines share one grid cell so the box
   auto-reserves the tallest line's height (no layout shift). Baseline
   (no animation support / reduced motion) shows ONLY the first line —
   never blank. */
.hero-rotator { display: grid; margin: 16px 0 0; max-width: 48ch; min-height: 2.2em; }
.hero-rotator-line {
  grid-area: 1 / 1; margin: 0;
  font-size: var(--fs-body-lg); line-height: var(--lh-body); color: var(--ink-80);
  opacity: 0;
}
.hero-rotator-line:first-child { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .tg-anim .hero-rotator-line { animation: tg-mission-cycle 9s var(--ease-in-out) infinite; }
  .hero-rotator-line:nth-child(2) { animation-delay: 3s; }
  .hero-rotator-line:nth-child(3) { animation-delay: 6s; }
}
@keyframes tg-mission-cycle {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  30%  { opacity: 1; }
  34%  { opacity: 0; }
  100% { opacity: 0; }
}

/* ── Step 2 · Give-back cycle (order → fund → feed → loop) ────
   The three real steps connected by arrows into a visible loop.
   Sequential fade-in on scroll via the additive [data-aos] system
   (visible by default with JS off). Arrow pulse is decorative and
   reduced-motion-gated. */
.giveback-cycle { margin-top: var(--space-7); }
.cycle-track {
  display: grid; grid-template-columns: 1fr; gap: var(--space-4);
  justify-items: center; align-items: stretch;
  max-width: 980px; margin-inline: auto;
}
.cycle-node {
  width: 100%; max-width: 360px; text-align: center;
  background: var(--surface-card); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: var(--space-5);
}
.cycle-node h3 { font-size: var(--fs-h5); margin-bottom: 4px; }
.cycle-node p { font-size: var(--fs-small); color: var(--text-muted); margin: 0; }
.cycle-arrow { display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 28px; }
.cycle-arrow .bi { opacity: 1; }
@media (max-width: 767.98px) { .cycle-arrow { transform: rotate(90deg); } }
@media (min-width: 768px) {
  .cycle-track { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: var(--space-3); }
  .cycle-node { max-width: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .cycle-arrow .bi { animation: tg-arrow-pulse 2.4s var(--ease-in-out) infinite; }
}
@keyframes tg-arrow-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.cycle-loopback {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  text-align: center; margin: var(--space-5) auto 0; max-width: 44ch;
  font-size: var(--fs-small); color: var(--text-muted);
}
.cycle-loopback .bi { color: var(--gold); font-size: 18px; }

/* ── Step 3d · Honest mission reminders ──────────────────────── */
.menu-mission {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: rgba(62,80,34,.10); color: var(--green-700); font-weight: 600; font-size: .9rem;
}
.menu-mission .bi { color: var(--green); font-size: 16px; }

/* ── Step 3c · Dietary / spice filter chips ──────────────────── */
.filter-band { background: var(--cream); border-bottom: 1px solid var(--hairline); padding-block: 14px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: var(--control-h-sm); padding: 0 16px;
  border: 1.5px solid var(--hairline); border-radius: var(--radius-pill);
  background: var(--surface-card); color: var(--ink-80); font-family: var(--font-body);
  font-weight: 600; font-size: .9rem; cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.filter-chip:hover { border-color: var(--gold); }
.filter-chip .bi { font-size: 15px; }
.filter-chip[aria-pressed="true"] { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.filter-note { font-size: var(--fs-caption); color: var(--text-muted); margin: 10px 0 0; display: flex; align-items: center; gap: 6px; }
.filter-note .bi { color: var(--green); }
.menu-empty { display: none; text-align: center; padding: var(--space-8) var(--space-4); color: var(--text-muted); }
.menu-empty.is-on { display: block; }
.menu-empty .bi { font-size: 38px; color: var(--cream-3); display: block; margin-bottom: 10px; }
.cat-block[hidden], .dish-card[hidden] { display: none !important; }
/* Active category highlight in the sticky jump-nav (scroll-spy, additive) */
.jump-nav a.is-active { background: var(--terracotta); color: #fff; }

/* ── Step 3 · Dish card badges + quick-view affordance ───────── */
.dish-card .card-img { overflow: hidden; }
.dish-halal {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--radius-pill);
  background: rgba(62,80,34,.92); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .03em;
}
.dish-quickview {
  position: absolute; inset: 0; z-index: 1; width: 100%; border: none; cursor: pointer;
  background: linear-gradient(to top, rgba(42,22,6,.5), rgba(42,22,6,0) 48%);
  color: #fff; display: flex; align-items: flex-end; justify-content: center; gap: 8px;
  padding: 0 0 14px; font-family: var(--font-body); font-weight: 600; font-size: .9rem;
  opacity: 0; transition: opacity var(--dur-base) var(--ease-out);
}
.dish-quickview .bi { font-size: 17px; }
.dish-card:hover .dish-quickview, .dish-quickview:focus-visible { opacity: 1; }
.dish-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dish-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--radius-pill); font-size: .7rem; font-weight: 700; letter-spacing: .02em; }
.dish-tag.is-veg { background: rgba(62,80,34,.12); color: var(--green-700); }
.dish-tag.is-vegan { background: rgba(62,80,34,.18); color: var(--green-700); }
.dish-tag.is-spicy { background: rgba(179,66,11,.12); color: var(--terracotta); }
.dish-tag.is-signature { background: rgba(204,128,24,.18); color: #8a5a0f; }

/* ── Step 3a · Slide-out cart drawer ─────────────────────────── */
.cart-scrim { position: fixed; inset: 0; background: rgba(42,22,6,.5); z-index: var(--z-drawer); opacity: 0; transition: opacity var(--dur-base) var(--ease-out); }
.cart-scrim.is-open { opacity: 1; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(92vw, 420px);
  background: var(--cream); box-shadow: var(--shadow-lg); z-index: calc(var(--z-drawer) + 1);
  transform: translateX(100%); transition: transform var(--dur-base) var(--ease-out);
  display: flex; flex-direction: column;
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--hairline); }
.cart-drawer-head h2 { font-size: var(--fs-h5); display: inline-flex; align-items: center; gap: 8px; }
.cart-mission { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 11px 20px; font-size: var(--fs-caption); color: var(--green-700); background: rgba(62,80,34,.08); border-bottom: 1px solid var(--hairline); }
.cart-mission .bi { color: var(--green); margin-top: 2px; flex: none; }
.cart-items { flex: 1; overflow-y: auto; padding: 4px 20px; }
.cart-empty { text-align: center; color: var(--text-muted); padding: var(--space-8) var(--space-4); }
.cart-empty .bi { font-size: 42px; color: var(--cream-3); display: block; margin-bottom: 10px; }
.cart-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hairline); align-items: start; }
.cart-line-img { width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--cream-3); object-fit: cover; }
.cart-line-name { font-weight: 600; color: var(--ink); font-size: .95rem; line-height: 1.3; }
.cart-line-opts { font-size: var(--fs-caption); color: var(--text-muted); margin: 3px 0 0; }
.cart-line-price { font-family: var(--font-heading); font-weight: 700; color: var(--green); white-space: nowrap; }
.cart-stepper { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid var(--hairline); border-radius: var(--radius-pill); overflow: hidden; }
.cart-stepper button { width: 32px; height: 32px; border: none; background: transparent; color: var(--ink); cursor: pointer; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
.cart-stepper button:hover { background: rgba(42,22,6,.06); }
.cart-stepper span { min-width: 30px; text-align: center; font-weight: 600; font-size: .9rem; }
.cart-line-remove { display: block; background: none; border: none; color: var(--ink-60); cursor: pointer; font-size: .8rem; padding: 0; margin-top: 8px; }
.cart-line-remove:hover { color: var(--terracotta); text-decoration: underline; }
.cart-foot { border-top: 1px solid var(--hairline); padding: 16px 20px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); background: var(--cream); }
.cart-subtotal { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.cart-subtotal .lbl { font-weight: 600; color: var(--ink); }
.cart-subtotal .amt { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-h5); color: var(--ink); }
.cart-foot .fineprint { font-size: var(--fs-caption); color: var(--text-muted); margin: 0 0 12px; }
.cart-foot .btn-tg[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ── Step 3b · Dish options modal (shared: home + menu) ────────────────
   DoorDash-style two-column dialog. Rebuilt for a robust scroll model:
   the modal is a fixed-height flex column (<=90vh); the LEFT image column
   and the RIGHT content column sit in a flex row that fills it; only the
   right column's body scrolls, with a pinned footer (qty + add).
   min-width:0 on BOTH columns is the guard that prevents any horizontal
   overflow — the image can never push the row wider than the modal. */
.qv-scrim { position: fixed; inset: 0; background: rgba(42,22,6,.55); z-index: var(--z-drawer); opacity: 0; transition: opacity var(--dur-base) var(--ease-out); display: flex; align-items: center; justify-content: center; padding: 20px; }
.qv-scrim.is-open { opacity: 1; }
.qv-modal {
  position: relative; background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: min(880px, 100%); max-height: 90vh; overflow: hidden;
  display: flex; flex-direction: column;
  transform: translateY(12px) scale(.985); transition: transform var(--dur-base) var(--ease-out);
}
.qv-scrim.is-open .qv-modal { transform: none; }
.qv-close {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  background: rgba(244,231,208,.92); border: none; color: var(--ink); font-size: 18px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.qv-close:hover { background: #fff; }
/* Two-column row that fills the modal height. */
.qv-grid { display: flex; flex: 1; min-height: 0; }
.qv-media { position: relative; flex: 0 0 45%; min-width: 0; background: var(--cream-3); }
/* Image fills its column (cover) so the right column scrolls independently;
   absolutely positioned so it can never exceed the column's width/height. */
.qv-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%; object-fit: cover; display: block; }
.qv-col { flex: 1 1 55%; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.qv-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: var(--space-5); display: flex; flex-direction: column; gap: 12px; }
/* DoorDash pattern: name, then price on its own line directly beneath it.
   The top-right corner is reserved for the close button, so pad the header's
   right edge to keep a long dish name from ever running under it. */
.qv-head { padding-right: 48px; }
.qv-name { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-h4); color: var(--ink); margin: 0; }
.qv-price { display: block; margin: 6px 0 0; font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-h5); color: var(--green); }
.qv-desc { font-size: var(--fs-small); color: var(--text-muted); margin: 0; }
.qv-optgroup .lbl { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; color: var(--ink); }
.qv-optgroup + .qv-optgroup { margin-top: 6px; }
.qv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qv-opt { position: relative; display: inline-flex; }
.qv-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qv-opt span { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap-min); padding: 8px 14px; border: 1.5px solid var(--hairline); border-radius: var(--radius-pill); font-size: .9rem; cursor: pointer; }
.qv-opt input:checked + span { border-color: var(--terracotta); background: rgba(179,66,11,.08); color: var(--terracotta); font-weight: 600; }
.qv-opt input:focus-visible + span { box-shadow: var(--focus-ring); }
/* Pinned bottom bar: quantity stepper + full-width add button (with line total). */
.qv-foot { flex: none; display: flex; align-items: center; gap: 14px; padding: 14px var(--space-5); border-top: 1px solid var(--hairline); background: var(--cream); }
.qv-foot .cart-stepper { margin-top: 0; flex: none; }
.qv-foot .btn-tg { flex: 1; min-width: 0; }
/* Mobile (<768px): near-fullscreen bottom sheet, single column, 16:9 top image. */
@media (max-width: 767.98px) {
  .qv-scrim { padding: 0; align-items: flex-end; }
  .qv-modal { width: 100%; max-height: 92vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .qv-grid { flex-direction: column; min-height: 0; }
  .qv-media { flex: none; width: 100%; aspect-ratio: 16 / 9; }
  .qv-media img { position: static; height: 100%; }
  .qv-col { flex: 1; min-height: 0; }
}

/* ════════════════════════════════════════════════════════════
   DEMO-2 HERO REWORK · circular "plate" cross-fade (home) + the
   shared colorful cloth on EVERY hero. Isolated block — revert
   this section together with the shared mud-cloth edits above to
   restore the previous hero. All motion is gated by .tg-anim +
   prefers-reduced-motion (see the mud-cloth block).
   ════════════════════════════════════════════════════════════ */

/* — Legibility scrims over the colorful cloth (guarantee AA text) — */
/* Home: text sits left, plate sits right → darken the left and let the
   colour show around the plate on the right. */
/* Left→right legibility scrim over the interior photo. Tuned against the actual
   rendered image so the cream headline + subline clear WCAG AA on the busiest
   area behind the text (measured min contrast ≈ 6.8:1); the right side stays
   light (.30) so the photo reads around the plate. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(20,12,8,.80) 0%, rgba(20,12,8,.68) 45%, rgba(20,12,8,.30) 82%);
}
/* Inner pages: the title spans the whole band, so use an even veil heavy
   enough that even the brightest cream motif behind text stays AA. */
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(33,19,6,.74), rgba(33,19,6,.7));
}

/* — Shared light text treatment for AA on the dark cloth — */
.hero h1, .page-hero h1 { color: var(--cream); }
/* brighter amber than gold-300 so the small eyebrow clears AA even where a
   bright cream motif lands behind it under the lighter inner veil */
.hero .eyebrow, .page-hero .eyebrow { color: #F3CE85; }
.hero .hero-rotator-line { color: var(--text-on-dark); }
.page-hero .lead { color: #E9DDC6; }
.hero .link-arrow, .page-hero .link-arrow { color: var(--cream); border-bottom-color: rgba(252,243,223,.55); }
.hero .link-arrow:hover, .page-hero .link-arrow:hover { color: var(--gold-300); border-bottom-color: var(--gold-300); }
/* Brand CTA fills (terracotta / green) read on dark; a soft shadow lifts
   them off the base. Outline buttons go light so they stay visible. */
.hero .hero-cta .btn-tg, .page-hero .hero-cta .btn-tg { box-shadow: 0 6px 18px rgba(0,0,0,.34); }
.page-hero .btn-tg-outline { color: var(--cream); border-color: rgba(252,243,223,.6); }
.page-hero .btn-tg-outline:hover { background: rgba(252,243,223,.12); color: var(--cream); }
/* Menu mission pill recoloured for the dark band */
.page-hero .menu-mission { background: rgba(252,243,223,.14); color: var(--cream); }
.page-hero .menu-mission .bi { color: var(--gold-300); }

/* — Circular "plate" food display (home hero) ————————————————
   Dishes cross-fade in place inside a round plate that rests on the
   cloth (a cream rim + drop shadow sells the "plated dish"). Baseline
   (no JS): the first .plate-img is visible and static. */
.hero-plate {
  position: relative; z-index: 1;
  width: min(78vw, 420px); margin-inline: auto; aspect-ratio: 1 / 1;
  border-radius: 50%; padding: 12px;
  background: radial-gradient(circle at 50% 38%, #fffdf8 0%, #f3e7d0 70%, #e7d4b4 100%);
  box-shadow: 0 26px 50px rgba(0,0,0,.45), inset 0 2px 0 rgba(255,255,255,.5);
}
.plate-stack {
  position: relative; width: 100%; height: 100%;
  border-radius: 50%; overflow: hidden;
  background: var(--cream-3);                       /* failed image → tan plate well */
  box-shadow: inset 0 0 0 2px rgba(42,22,6,.12), inset 0 8px 26px rgba(42,22,6,.28);
}
.plate-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 50%;
  opacity: 0; transition: opacity .8s var(--ease-in-out);
}
.plate-img.is-active { opacity: 1; }               /* first image visible by default */
@media (prefers-reduced-motion: reduce) { .plate-img { transition: none; } }
.plate-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border: none; border-radius: var(--radius-pill);
  background: rgba(244,231,208,.92); color: var(--ink); box-shadow: var(--shadow-md);
  font-size: 19px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.plate-nav:hover { background: #fff; }
.plate-nav.prev { left: -6px; } .plate-nav.next { right: -6px; }
.plate-dots { display: flex; justify-content: center; gap: 9px; margin-top: 16px; }
.plate-dot { width: 9px; height: 9px; padding: 0; border: none; border-radius: var(--radius-pill); background: rgba(252,243,223,.45); cursor: pointer; transition: width var(--dur-base), background var(--dur-base); }
.plate-dot.is-active { width: 22px; background: var(--gold-300); }
.plate-dot:focus-visible, .plate-nav:focus-visible { box-shadow: var(--focus-ring); }
@media (max-width: 991.98px) {
  /* stacked layout: plate sits below the text — smaller so it never
     crowds the headline. */
  .hero-plate { width: min(64vw, 300px); margin-top: var(--space-5); }
  /* full-width text when stacked → switch the home scrim to a uniform, slightly
     deeper veil so the whole headline + subline keep AA contrast across the
     full-width text block (measured min ≈ 6.5:1 on the 640 crop). */
  .hero::after { background: linear-gradient(180deg, rgba(20,12,8,.78), rgba(20,12,8,.72)); }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE HERO (< 768px) — circular slider (client-approved) over the
   ambient crossfade background. Content stack -> slider with even
   spacing; the slider (its own z-index:1 layer) sits above the ambient
   bg + scrim. Desktop (>= 768px) is untouched.
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
  /* Content-driven rhythm: consistent ~20px steps down to the slider, so the
     plate sits just below the menu link with clear bottom clearance (no dead
     band, no clipping). */
  .hero-grid { gap: 20px; }
  .hero h1 { margin-top: 12px; font-size: clamp(2.5rem, 1.1rem + 6.5vw, 3.3rem); line-height: 1.02; text-wrap: balance; }
  .hero-rotator { margin-top: 16px; }
  .hero .hero-rotator-line { font-size: 1.1875rem; }    /* subline: modest 18 -> 19px */
  .hero-cta { margin-top: 22px; flex-direction: column; }  /* full-width stacked CTAs */
  .hero-cta .btn-tg { width: 100%; }

  /* Circular slider on phones: ~76vw capped so the whole plate is visible.
     Slides are square crops, so object-position stays centered at any size. */
  .hero-plate { width: min(76vw, 340px); margin-top: 4px; }

  /* Tap targets: 44px arrows + 44px dot hit areas (small visual dot). A soft
     dark shadow on the dot keeps it legible over the *changing* ambient bg
     without a heavy pill (local contrast pin, rotation kept). */
  .plate-nav { width: 44px; height: 44px; }
  .plate-dots { gap: 4px; margin-top: 18px; }
  .plate-dot { position: relative; width: 44px; height: 44px; background: transparent; }
  .plate-dot::before {
    content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 9px; height: 9px; border-radius: var(--radius-pill);
    background: rgba(252,243,223,.5); box-shadow: 0 1px 4px rgba(20,12,8,.6);
    transition: width var(--dur-base), background var(--dur-base);
  }
  .plate-dot.is-active { width: 44px; background: transparent; }
  .plate-dot.is-active::before { width: 22px; background: var(--gold-300); }

  /* Ambient crossfade background — runs behind the slider (constant scrim above
     it keeps text AA; re-verified against all three images, worst min ≈ 6.9:1).
     Decorative; images + rotation are set by site.js after load. */
  .hero-bg { display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
  .hero-bg-layer {
    position: absolute; inset: 0;
    background-size: cover; background-repeat: no-repeat; background-position: center;
    opacity: 0; transition: opacity 1200ms var(--ease-in-out);
    will-change: opacity;
  }
  /* The interior base does not zoom on phones — the crossfade is the motion. */
  .tg-anim .hero::before { animation: none; }
}
/* Reduced motion: no crossfade (and no zoom, already gated) — static interior. */
@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  .hero-bg-layer { transition: none; }
}

/* ── P3b · WooCommerce modal + card states ── */
.qv-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line, #e4d9cc);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--ink, #211306);
}
.qv-error {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fdecea;
  color: #8a1c0a;
  font-size: var(--fs-small, .9rem);
}
.dish-card.is-sold-out { opacity: .82; }
.dish-soldout {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(20, 12, 8, .82);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 3px 10px;
  border-radius: 999px;
}
.btn-tg.is-disabled,
.btn-tg[aria-disabled="true"] {
  opacity: .55;
  pointer-events: none;
  cursor: default;
}

/* ── P3b · ordering-state CTA note ── */
.order-note {
  display: block;
  width: 100%;
  margin-top: 8px;
  font-size: var(--fs-caption, .8rem);
  color: var(--gold, #b98a2e);
}
.tg-bottombar .order-note { text-align: center; }

/* ── P4 · Givebutter embed container ── */
.givebutter-embed { max-width: 480px; margin-inline: auto; }
.donate-contact a { font-size: var(--fs-body, 1rem); }

/* ── P4 · a11y focus-visible on P3b/interactive surfaces + search form ── */
.filter-chip:focus-visible,
.jump-nav a:focus-visible,
.dish-quickview:focus-visible,
.qv-close:focus-visible,
.cart-stepper button:focus-visible,
.plate-nav:focus-visible,
.plate-dot:focus-visible,
[data-order-cta]:focus-visible,
[data-add]:focus-visible,
[data-quickview]:focus-visible,
.qv-opt input:focus-visible,
.qv-select:focus-visible,
#qvAdd:focus-visible {
  outline: 3px solid var(--gold, #b98a2e);
  outline-offset: 2px;
  border-radius: 8px;
}
.card-img[role="button"]:focus-visible {
  outline: 3px solid var(--gold, #b98a2e);
  outline-offset: -3px;
}

.search-form {
  display: flex;
  gap: 8px;
}
.search-form .search-field {
  flex: 1 1 auto;
  border: 1px solid var(--line, #e4d9cc);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
}
.search-form .search-submit {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  background: var(--terracotta, #b3420b);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* Ordering pause/closed notice is contextual (Mise renders inline cards at
   product surfaces); there is no global bar and no header offset. */
