/* ==========================================================================
   MAZENCITO PIZZERIA — Core Stylesheet
   Design language: wood-fired trattoria at night. A menu-board / order-ticket
   aesthetic rendered as a warm, dark room lit by the oven, with dishes that
   sit on the page like real plates you can tilt and lift.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Work+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&family=Yellowtail&display=swap');

:root{
  /* -- Palette ----------------------------------------------------------
     Blended from two references: a moody near-black/gold grill template,
     and a deep-green fresh-produce template. Landed on a dark forest-green
     ground (instead of either's black or bright green) with mustard-gold
     as the primary accent and a richer basil green as secondary. */
  --char:            #163524; /* deep forest-green ground (was oven-char brown-black) */
  --char-2:          #1E4530; /* lifted panel green */
  --fumo:            #34523A; /* border/divider, green-tinted smoke */
  --fumo-soft:       #46664C;
  --semolina:        #F6F1E1; /* warm cream — primary text on dark */
  --semolina-dim:    #C9D3BE; /* secondary text on dark, sage-tinted */
  --pomodoro:        #E4A73C; /* mustard gold — PRIMARY accent (was tomato red) */
  --pomodoro-deep:   #BD8226;
  --basilico:        #6E9A4E; /* deeper basil green — secondary accent */
  --basilico-deep:   #4C7635;
  --cornicione:      #E4A73C; /* same gold family — glow, price, eyebrow */
  --cornicione-soft: rgba(228,167,60,0.18);
  --rust:            #C1481B; /* warm rust-red — kept only for "spicy" tags */
  --ink:             #0F2016; /* darkest tone — text-on-gold, deep vignette */

  /* -- Classic 3D shadow recipes --------------------------------------
     A hard-edge offset "block" the same color as the page ground (so it
     reads as a solid layer of depth, not a blur) plus a thin outline and
     a soft ambient shadow for lift. Reused on every card/badge below. */
  --shadow-3d:    7px 7px 0 0 var(--char), 7px 7px 0 1px var(--fumo), 0 24px 42px -18px rgba(0,0,0,.55);
  --shadow-3d-sm: 4px 4px 0 0 var(--char), 4px 4px 0 1px var(--fumo), 0 14px 26px -12px rgba(0,0,0,.5);
  --shadow-3d-hover: 10px 10px 0 0 var(--char), 10px 10px 0 1px var(--fumo), 0 30px 50px -18px rgba(0,0,0,.6);

  /* -- Type --------------------------------------------------------------
     Oswald (condensed, structural) replaces Fraunces as the core headline
     face — closer to the grill template's bold nav/headline treatment.
     Yellowtail is a flowing script reserved for the brand wordmark and
     small flourish moments, echoing the veggie template's cursive logotype. */
  --f-display: 'Oswald', sans-serif;
  --f-script:  'Yellowtail', cursive;
  --f-body:    'Work Sans', sans-serif;
  --f-mono:    'Space Mono', monospace;
  --f-condensed: 'Oswald', sans-serif;

  /* -- Layout ----------------------------------------------------------- */
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 14px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin:0;
  background: var(--char);
  color: var(--semolina);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* subtle ambient grain + oven-glow vignette behind everything */
body::before{
  content:"";
  position: fixed; inset:0;
  z-index:0; pointer-events:none;
  background:
    radial-gradient(60% 45% at 82% 8%, rgba(228,167,60,0.10), transparent 60%),
    radial-gradient(50% 40% at 10% 95%, rgba(110,154,78,0.10), transparent 60%);
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3,h4{ font-family: var(--f-display); font-weight:600; margin:0 0 .4em; color: var(--semolina); }
p{ margin:0 0 1em; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }

.wrap{ max-width: var(--maxw); margin:0 auto; padding-left: var(--pad); padding-right: var(--pad); position:relative; z-index:1; }

/* -- Focus visibility (accessibility floor) -------------------------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 2px solid var(--cornicione);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -- Eyebrow / mono labels -------------------------------------------- */
.eyebrow{
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cornicione);
  display:inline-flex; align-items:center; gap:.6em;
  margin-bottom: 1.1em;
}
.eyebrow::before{
  content:"";
  width: 22px; height:1px;
  background: var(--cornicione);
  display:inline-block;
}

/* ==========================================================================
   NAV
   ========================================================================== */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(22,53,36,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fumo);
  box-shadow: 0 3px 0 0 var(--char), 0 10px 20px -10px rgba(0,0,0,.4);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding-top: 16px; padding-bottom:16px;
}
.brand{
  font-family: var(--f-script);
  font-weight: 400;
  font-size: 2rem;
  line-height:1;
  color: var(--semolina);
  letter-spacing: .01em;
}
.brand span{ color: var(--pomodoro); }
.brand-mark{
  display:inline-flex; align-items:center; background:#fff; border-radius:10px;
  padding:4px 10px; box-shadow: var(--shadow-3d-sm);
}
.brand-mark img{ display:block; height:40px; width:auto; }
.footer-grid .brand-mark img{ height:46px; }
.nav-links{
  display:flex; gap: clamp(18px, 3vw, 34px);
  align-items:center;
}
.nav-links a{
  font-size: .93rem;
  font-weight: 500;
  color: var(--semolina-dim);
  position:relative;
  padding: 6px 2px;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a:focus-visible{ color: var(--semolina); }
.nav-links a::after{
  content:"";
  position:absolute; left:0; right:100%; bottom:0;
  height:2px; background: var(--pomodoro);
  transition: right .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after{ right:0; }
.nav-links a.active{ color: var(--semolina); }
.nav-cta{
  background: linear-gradient(180deg, #F2C169, var(--pomodoro));
  color: var(--ink) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight:700;
  font-size:.88rem !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 0 0 var(--pomodoro-deep);
  position:relative; top:0;
  transition: box-shadow .15s ease, top .15s ease, background .2s ease;
}
.nav-cta:hover{ box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 0 0 var(--pomodoro-deep); top:-2px; }
.nav-cta:active{ box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 1px 0 0 var(--pomodoro-deep); top:2px; }
.nav-cta::after{ display:none; }

.nav-toggle{
  display:none;
  background:var(--char-2); border:1px solid var(--fumo-soft); border-radius:8px;
  width:42px; height:38px; align-items:center; justify-content:center;
  color: var(--semolina);
  position:relative; top:0;
  box-shadow: 0 3px 0 0 var(--char), 0 3px 0 1px var(--fumo);
  transition: top .1s ease, box-shadow .1s ease, border-color .15s ease;
}
.nav-toggle:hover{ border-color: var(--cornicione); }
.nav-toggle:active{ top:2px; box-shadow:none; }
.nav-toggle svg{ width:20px; height:20px; }

@media (max-width: 800px){
  .nav-links{
    position:absolute; top:100%; left:0; right:0;
    flex-direction:column; align-items:flex-start; gap:2px;
    background: var(--char-2);
    border-bottom: 1px solid var(--fumo);
    padding: 10px var(--pad) 18px;
    max-height:0; overflow:hidden;
    transition: max-height .3s ease;
  }
  .nav-links.open{ max-height: 360px; }
  .nav-links a{ width:100%; padding:12px 0; }
  .nav-cta{ margin-top:6px; }
  .nav-toggle{ display:flex; }
}

/* ==========================================================================
   TICKET DIVIDER — perforated order-ticket rule, used between sections
   ========================================================================== */
.ticket-divider{
  display:flex; align-items:center; gap:0;
  margin: 0 auto;
  max-width: var(--maxw);
  padding: 0 var(--pad);
}
.ticket-divider::before{
  content:"";
  flex:1;
  height:0;
  border-top: 2px dashed var(--fumo-soft);
}
.ticket-divider svg{ flex-shrink:0; margin: 0 14px; color: var(--fumo-soft); }

section{ position:relative; z-index:1; padding: clamp(56px, 9vw, 108px) 0; }

/* ==========================================================================
   BUTTONS — classic pressable 3D: a glossy face sitting on a solid base
   that's visible as a hard bottom edge, lifting on hover and pressing flat
   on click, like a real button rather than a flat tinted rectangle.
   ========================================================================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.6em;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight:600;
  font-size: .95rem;
  border: 1px solid transparent;
  position: relative;
  top:0;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .15s ease, top .15s ease;
}
.btn:hover{ transform: translateY(-3px); }
.btn:active{ transform: translateY(2px); transition-duration: .05s; }

.btn-primary{
  background: linear-gradient(180deg, #F2C169, var(--pomodoro));
  color: var(--ink); font-weight:700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 6px 0 0 var(--pomodoro-deep), 0 18px 30px -12px rgba(228,167,60,0.5);
}
.btn-primary:hover{ box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 9px 0 0 var(--pomodoro-deep), 0 22px 34px -12px rgba(228,167,60,0.55); }
.btn-primary:active{ box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 2px 0 0 var(--pomodoro-deep); }

.btn-ghost{
  background: var(--char-2); border-color: var(--fumo-soft); color: var(--semolina);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 6px 0 0 var(--char), 0 6px 0 1px var(--fumo);
}
.btn-ghost:hover{ border-color: var(--cornicione); color: var(--cornicione); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 9px 0 0 var(--char), 0 9px 0 1px var(--fumo); }
.btn-ghost:active{ box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 2px 0 0 var(--char), 0 2px 0 1px var(--fumo); }

.btn-basil{
  background: linear-gradient(180deg, #97C46E, var(--basilico));
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 0 0 var(--basilico-deep), 0 18px 30px -12px rgba(110,154,78,0.45);
}
.btn-basil:hover{ box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 9px 0 0 var(--basilico-deep), 0 22px 32px -12px rgba(110,154,78,0.5); color:var(--ink); }
.btn-basil:active{ box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 2px 0 0 var(--basilico-deep); }

.btn-wide{ width:100%; }
.btn[disabled]{ opacity:.45; cursor:not-allowed; transform:none !important; }

/* ==========================================================================
   3D TILT CARD — signature component
   Perspective wrapper + inner card that rotates toward the cursor and lifts
   with layered shadow, like picking a plate up off the table.
   ========================================================================== */
.tilt{
  perspective: 900px;
}
.tilt-card{
  transform-style: preserve-3d;
  transform: rotateX(0) rotateY(0) translateZ(0);
  transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s ease;
  will-change: transform;
  border-radius: var(--radius);
  box-shadow: var(--shadow-3d);
}
.tilt:hover .tilt-card, .tilt:focus-within .tilt-card{
  transition: transform .12s ease-out, box-shadow .3s ease;
  box-shadow: var(--shadow-3d-hover);
}

/* scroll reveal — cards rise from the table like a peel sliding from the oven */
[data-reveal]{
  opacity:0;
  transform: translateY(26px) rotateX(10deg);
  transform-origin: bottom center;
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1);
}
[data-reveal].in-view{
  opacity:1;
  transform: translateY(0) rotateX(0);
}
@media (prefers-reduced-motion: reduce){
  [data-reveal]{ opacity:1; transform:none; }
}

/* ==========================================================================
   PIZZA HERO — 3D tilt, light sweep, steam
   ========================================================================== */
.pizza-stage-wrap{ display:flex; justify-content:center; padding: 28px 0 12px; }
.pizza-stage{ perspective: 1300px; width:min(480px,80vw); aspect-ratio:1; }
.pizza-tilt{
  width:100%; height:100%; position:relative; transform-style:preserve-3d;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
  will-change:transform;
}
.pizza-plate{
  position:absolute; inset:0; border-radius:50%; overflow:hidden;
  box-shadow: 0 44px 70px -22px rgba(0,0,0,.65), 0 0 0 10px var(--char-2), 0 0 0 12px var(--fumo);
}
.pizza-plate img{ width:100%; height:100%; object-fit:cover; display:block; filter: saturate(1.1) contrast(1.06); }
.pizza-light{
  position:absolute; inset:0; border-radius:50%; pointer-events:none;
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.55), rgba(255,255,255,0) 46%);
  mix-blend-mode:overlay;
}
.steam{
  position:absolute; bottom:80%; width:34px; height:78px; border-radius:50%;
  background: radial-gradient(circle, rgba(255,255,255,.5), rgba(255,255,255,0) 72%);
  filter: blur(6px); opacity:0; pointer-events:none;
  animation: steamRise 4.2s ease-in infinite;
}
.steam.s1{ left:28%; animation-delay:0s; }
.steam.s2{ left:48%; width:26px; height:64px; animation-delay:1.3s; }
.steam.s3{ left:66%; width:30px; height:72px; animation-delay:2.6s; }
@keyframes steamRise{
  0%{ opacity:0; transform: translateY(0) scale(1); }
  15%{ opacity:.5; }
  80%{ opacity:0; }
  100%{ opacity:0; transform: translateY(-92px) scale(1.6); }
}
@media (prefers-reduced-motion: reduce){ .steam{ animation:none; opacity:0; } .pizza-tilt{ transition:none; } }
@media (max-width: 560px){ .pizza-stage{ width:88vw; } }

/* ==========================================================================
   CRAVING PICKER
   ========================================================================== */
.craving-opt{
  background:var(--char); border:1px solid var(--fumo-soft); color:var(--semolina);
  border-radius:14px; padding:20px 14px; font-family:var(--f-display); font-weight:600;
  font-size:1rem; cursor:pointer; text-align:center; position:relative; top:0;
  box-shadow: 0 4px 0 0 var(--char), 0 4px 0 1px var(--fumo);
  transition: background .18s ease, border-color .18s ease, top .12s ease, box-shadow .12s ease;
}
.craving-opt:hover{ border-color:var(--pomodoro); background:var(--char-2); top:-2px; box-shadow: 0 6px 0 0 var(--pomodoro-deep); }
.craving-opt:active{ top:2px; box-shadow:0 1px 0 0 var(--pomodoro-deep); }
.craving-result-card{ display:flex; gap:20px; align-items:center; flex-wrap:wrap; }
.craving-result-card img{ width:120px; height:120px; object-fit:cover; border-radius:14px; flex-shrink:0; border:1px solid var(--fumo); }
.craving-again{
  background:none; border:none; color:var(--semolina-dim); font-family:var(--f-mono);
  font-size:.78rem; text-decoration:underline; cursor:pointer; padding:0; margin-top:16px;
}
.craving-again:hover{ color:var(--pomodoro); }

.craving-no-img{ width:70px; height:70px; border-radius:12px; flex-shrink:0; background:linear-gradient(160deg,var(--fumo),var(--char)); }

/* ==========================================================================
   BUILD YOUR PIZZA
   ========================================================================== */
.pizza-builder-wrap{ display:grid; grid-template-columns:0.85fr 1.15fr; gap:48px; align-items:center; }
@media (max-width:760px){ .pizza-builder-wrap{ grid-template-columns:1fr; } }
.pizza-builder-visual{
  position:relative; width:min(320px,72vw); aspect-ratio:1; border-radius:50%; margin:0 auto;
  background: radial-gradient(circle at 50% 45%, #F2C169 0%, #E4A73C 55%, #C1481B 78%, #8F350F 100%);
  box-shadow: var(--shadow-3d), 0 0 0 10px var(--char-2), 0 0 0 12px var(--fumo);
  overflow:hidden;
}
.pb-cheese-extra{ position:absolute; inset:6%; border-radius:50%; background:#F2C169; opacity:0; transition:opacity .4s ease; }
.pb-cheese-extra.active{ opacity:.55; }
.pb-topping{ position:absolute; inset:0; }
.pb-topping span{
  position:absolute; width:11%; height:11%; border-radius:50%;
  transform:translate(-50%,-50%) scale(0); opacity:0;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
}
.pb-topping.active span{ transform:translate(-50%,-50%) scale(1); opacity:1; }
.pb-topping span:nth-child(2){ transition-delay:.05s; }
.pb-topping span:nth-child(3){ transition-delay:.1s; }
.pb-topping span:nth-child(4){ transition-delay:.15s; }
.pb-topping span:nth-child(5){ transition-delay:.2s; }
.pb-topping span:nth-child(6){ transition-delay:.25s; }
.pb-pepperoni span{ background:#A33124; box-shadow: inset 0 0 0 2px #7A2015; }
.pb-mushroom span{ background:#D8C7A1; border-radius:40% 60% 55% 45%; width:12%; height:9%; }
.pb-olives span{ background:#2B2B23; width:6%; height:6%; }
.pb-basil span{ background:#4C7635; width:9%; height:5%; border-radius:0 60% 0 60%; }
.pb-controls{ display:flex; flex-direction:column; gap:20px; }
.pb-toppings{ display:flex; gap:10px; flex-wrap:wrap; }
.pb-toggle{
  background:var(--char); border:1px solid var(--fumo-soft); color:var(--semolina);
  border-radius:999px; padding:10px 18px; font-family:var(--f-mono); font-size:.82rem;
  cursor:pointer; position:relative; top:0;
  box-shadow: 0 3px 0 0 var(--char), 0 3px 0 1px var(--fumo);
  transition: background .18s ease, border-color .18s ease, top .12s ease, box-shadow .12s ease;
}
.pb-toggle:hover{ border-color:var(--pomodoro); }
.pb-toggle.active{ background:var(--pomodoro); border-color:var(--pomodoro); color:var(--ink); font-weight:700; }
.pb-toggle:active{ top:2px; }
.pb-price-row{ display:flex; align-items:center; justify-content:space-between; padding-top:6px; border-top:1px solid var(--fumo); }
.pb-price-row .price{ font-size:1.5rem; }

/* ==========================================================================
   INGREDIENT HOTSPOTS
   ========================================================================== */
.hotspot-frame{ position:relative; border-radius:20px; overflow:hidden; aspect-ratio:1; box-shadow:var(--shadow-3d); }
.hotspot-frame img{ width:100%; height:100%; object-fit:cover; }
.hotspot{
  position:absolute; width:34px; height:34px; border-radius:50%; transform:translate(-50%,-50%);
  background:var(--char-2); border:2px solid var(--pomodoro); color:var(--semolina);
  font-family:var(--f-mono); font-weight:700; font-size:.85rem;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  box-shadow:0 0 0 6px rgba(228,167,60,.18); animation: hotspotPulse 2.4s ease-in-out infinite;
  transition: background .2s ease, color .2s ease;
}
.hotspot.active{ background:var(--pomodoro); color:var(--ink); }
@keyframes hotspotPulse{ 0%,100%{ box-shadow:0 0 0 6px rgba(228,167,60,.18); } 50%{ box-shadow:0 0 0 10px rgba(228,167,60,.05); } }
@media (prefers-reduced-motion: reduce){ .hotspot{ animation:none; } }

/* ==========================================================================
   HOMEPAGE GALLERY
   ========================================================================== */
.gallery-grid{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:12px;
}
.gallery-grid > div{ border-radius:12px; overflow:hidden; aspect-ratio:1; box-shadow:var(--shadow-3d-sm); }
.gallery-grid img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s ease; }
.gallery-grid > div:hover img{ transform:scale(1.06); }

/* ==========================================================================
   PIZZA BOX OPENING
   ========================================================================== */
.box-stage-wrap{ display:flex; justify-content:center; padding:32px 0; perspective:1600px; }
.box-stage{ position:relative; width:min(420px,80vw); aspect-ratio:1/0.85; }
.box-inside{
  position:absolute; inset:6%; border-radius:6px; overflow:hidden;
  background:#8a5a2b; box-shadow:inset 0 0 0 2px rgba(0,0,0,.15);
}
.box-inside img{ width:100%; height:100%; object-fit:cover; }
.box-lid{
  position:absolute; inset:0; transform-origin:top center; transform:rotateX(0deg);
  transition: transform .1s linear;
}
.box-lid-face{
  position:absolute; inset:0; background:linear-gradient(160deg,#c1481b,#8f350f);
  border-radius:6px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  box-shadow:0 10px 30px -10px rgba(0,0,0,.5);
}
.box-lid-face span{ font-family:var(--f-display); font-weight:700; color:var(--semolina); letter-spacing:.06em; font-size:1.4rem; }
.box-lid-sub{ font-size:.85rem !important; font-weight:500 !important; opacity:.85; letter-spacing:.2em !important; margin-top:2px; }

/* ==========================================================================
   REVIEWS CAROUSEL
   ========================================================================== */
.reviews-track{
  display:flex; gap:24px; overflow-x:auto; scroll-snap-type:x mandatory;
  scroll-behavior:smooth; padding:4px 4px 12px; margin:0 -4px;
  scrollbar-width:none;
}
.reviews-track::-webkit-scrollbar{ display:none; }
.review-card{
  margin:0; flex:0 0 min(340px,85vw); scroll-snap-align:start;
  background:var(--char-2); border:1px solid var(--fumo); border-radius:16px;
  padding:28px; box-shadow:var(--shadow-3d-sm);
}
.review-arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:2;
  width:44px; height:44px; border-radius:50%; display:flex; align-items:center;
  justify-content:center; background:var(--char-2); color:var(--semolina);
  border:1px solid var(--fumo); box-shadow:var(--shadow-3d-sm); cursor:pointer;
}
.review-arrow:hover{ background:var(--pomodoro); color:var(--ink); }
.review-arrow:active{ transform:translateY(-50%) scale(0.94); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{
  border-top: 1px solid var(--fumo);
  padding: 52px 0 34px;
  background: var(--char-2);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}
.footer-grid h4{ font-size:1rem; margin-bottom:.9em; }
.footer-grid p, .footer-grid a{ color: var(--semolina-dim); font-size:.92rem; }
.footer-grid a{ display:block; padding: 5px 0; transition: color .2s ease; }
.footer-grid a:hover{ color: var(--cornicione); }
.footer-social{ display:flex; gap:14px; margin-top:8px; }
.footer-social a{
  width:38px; height:38px; border:1px solid var(--fumo-soft); border-radius:50%;
  display:flex; align-items:center; justify-content:center; padding:0;
  background:var(--char-2); position:relative; top:0;
  box-shadow: 0 3px 0 0 var(--char), 0 3px 0 1px var(--fumo);
  transition: top .1s ease, box-shadow .1s ease, border-color .15s ease;
}
.footer-social a:hover{ border-color: var(--cornicione); top:-1px; box-shadow: 0 4px 0 0 var(--char), 0 4px 0 1px var(--fumo); }
.footer-social a:active{ top:2px; box-shadow:none; }
.footer-bottom{
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--fumo);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-family: var(--f-mono); font-size:.78rem; color: var(--semolina-dim);
}
@media (max-width: 760px){
  .footer-grid{ grid-template-columns: 1fr; gap: 30px; }
}

/* ==========================================================================
   UTILITIES shared across pages
   ========================================================================== */
.item-name{ font-family:var(--f-display); font-weight:600; font-size:1.08rem; margin:0 0 4px; color: var(--semolina); }
.item-desc{ color:var(--semolina-dim); font-size:.9rem; margin:0 0 6px; max-width:52ch; }
.item-tags{ display:flex; gap:6px; flex-wrap:wrap; }
.add-btn{
  background:var(--char-2); border:1px solid var(--fumo-soft); color:var(--semolina);
  border-radius:999px; padding:9px 16px; font-size:.82rem; font-weight:600;
  position:relative; top:0;
  box-shadow: 0 3px 0 0 var(--char), 0 3px 0 1px var(--fumo);
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .15s ease, top .15s ease;
  white-space:nowrap;
}
.add-btn:hover{ border-color:var(--pomodoro); background:var(--pomodoro); color:var(--ink); box-shadow: 0 4px 0 0 var(--pomodoro-deep); top:-1px; }
.add-btn:active{ box-shadow: 0 1px 0 0 var(--pomodoro-deep); top:2px; }
.add-btn.added{ background:var(--basilico); border-color:var(--basilico); color:var(--ink); }

.tag{
  display:inline-flex; align-items:center;
  font-family: var(--f-mono); font-size:.72rem; letter-spacing:.04em;
  padding: 5px 11px; border-radius:999px;
  border: 1px solid var(--fumo-soft); color: var(--semolina-dim);
}
.tag.spicy{ border-color: var(--rust); color: var(--rust); }
.tag.veg{ border-color: var(--basilico); color: var(--basilico); }
.price{ font-family: var(--f-mono); font-weight:700; color: var(--cornicione); white-space:nowrap; }

.section-head{ max-width: 640px; margin-bottom: 44px; }
.section-head p{ color: var(--semolina-dim); font-size: 1.05rem; }

.grain-note{
  font-family: var(--f-mono); font-size:.72rem; color: var(--fumo-soft);
  border:1px dashed var(--fumo-soft); border-radius:8px; padding:10px 14px;
}

/* ==========================================================================
   COLLAGE HERO — layered, overlapping "photo" cards instead of one flat shot
   ========================================================================== */
.collage{
  position:relative;
  min-height: 380px;
}
.collage-item{
  position:absolute;
  border-radius: 18px;
  border: 6px solid var(--char-2);
  box-shadow: var(--shadow-3d);
  overflow:hidden;
  background: var(--char-2);
}
.collage-item.round{ border-radius:50%; box-shadow: var(--shadow-3d-sm); }
.collage-item svg{ display:block; width:100%; height:100%; }

/* ==========================================================================
   PROMO BADGE — gold-bordered ticket, corner-pinned like an event callout
   ========================================================================== */
.promo-badge{
  position:absolute;
  background: var(--char);
  border: 1.5px solid var(--cornicione);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: var(--shadow-3d-sm);
  transform: rotate(-3deg);
}
.promo-badge .eyebrow{ margin-bottom:.3em; }
.promo-badge .headline{
  font-family: var(--f-condensed); font-weight:700; text-transform:uppercase;
  letter-spacing:.03em; font-size:1.05rem; color:var(--semolina); margin:0 0 4px;
}
.promo-badge .sub{ font-family:var(--f-mono); font-size:.72rem; color:var(--semolina-dim); }

/* condensed caps utility — for crest labels, tags, menu-board section titles */
.caps-label{
  font-family: var(--f-condensed); font-weight:600; text-transform:uppercase;
  letter-spacing:.08em; font-size:.82rem; color: var(--cornicione);
}

/* ==========================================================================
   DOTTED MENU LINE — classic "name ..... price" price-list row
   ========================================================================== */
.menu-line{
  display:flex; align-items:baseline; gap:8px;
  padding: 16px 0; border-bottom:1px solid var(--fumo);
}
.menu-line:last-child{ border-bottom:none; }
.menu-line .dots{
  flex:1 1 auto; min-width:24px;
  border-bottom: 2px dotted var(--fumo-soft);
  transform: translateY(-5px);
}
.menu-line-body{ display:flex; flex-direction:column; }
.menu-line-foot{ display:flex; align-items:center; gap:14px; margin-top:2px; }

/* ==========================================================================
   AVATAR — circular headshot placeholder for testimonials / chef bio
   ========================================================================== */
.avatar{
  width:52px; height:52px; border-radius:50%; flex-shrink:0;
  border:2px solid var(--cornicione);
  overflow:hidden; background:var(--fumo);
  box-shadow: 3px 3px 0 0 var(--char), 3px 3px 0 1px var(--fumo);
}
.avatar svg{ display:block; width:100%; height:100%; }
.avatar.lg{ width:96px; height:96px; box-shadow: var(--shadow-3d-sm); }

/* ==========================================================================
   THUMBNAIL GALLERY — square category tiles with label overlay
   ========================================================================== */
.thumb-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:18px; }
.thumb{
  position:relative; border-radius:16px; overflow:hidden; aspect-ratio:1;
  border:1px solid var(--fumo); display:block;
  box-shadow: var(--shadow-3d-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.thumb:hover, .thumb:focus-visible{ transform: translate(-2px,-2px); box-shadow: var(--shadow-3d); }
.thumb svg{ position:absolute; inset:0; width:100%; height:100%; transition: transform .5s ease; }
.thumb:hover svg, .thumb:focus-visible svg{ transform: scale(1.08); }
.thumb .thumb-label{
  position:absolute; left:0; right:0; bottom:0;
  padding: 12px 14px;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
  font-family: var(--f-condensed); text-transform:uppercase; letter-spacing:.04em;
  font-size:.88rem; color: var(--semolina);
}

/* ==========================================================================
   DISCOUNT BANNER — bold callout strip (menu-board style promo)
   ========================================================================== */
.discount-banner{
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
  background: repeating-linear-gradient(-45deg, var(--char-2), var(--char-2) 14px, var(--char) 14px, var(--char) 28px);
  border: 1px dashed var(--cornicione);
  border-radius: 16px; padding: 22px 26px;
  box-shadow: 5px 5px 0 0 var(--char), 5px 5px 0 1px var(--fumo);
}
.discount-banner .headline{ font-family:var(--f-condensed); font-weight:700; text-transform:uppercase; font-size:1.15rem; color:var(--cornicione); letter-spacing:.02em; }

/* ==========================================================================
   FORM FIELDS — recessed "carved in" 3D, the natural complement to the
   raised buttons. Shared across the Order and Contact pages.
   ========================================================================== */
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:.85rem; color:var(--semolina-dim); margin-bottom:6px; }
.field input, .field textarea, .field select{
  width:100%; background:var(--char); border:1px solid var(--fumo-soft); border-radius:10px;
  padding:11px 14px; color:var(--semolina); font-family:var(--f-body); font-size:.95rem;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.15);
}
.field textarea{ resize:vertical; min-height:70px; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible{
  border-color: var(--cornicione);
}
