/* ==========================================================================
   THE CODE PIZZA BAR — design system
   Minimal, editorial, contemporary Italian. Warm paper, charcoal type,
   refined serif headings, flat rectangular buttons, hairline borders.
   Colour comes from the food photography, not from the interface.
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -webkit-text-size-adjust: 100%; }

/* ---------- 2. Design tokens ---------- */
:root {
  /* surfaces */
  --paper:    #F4F1EA;   /* page */
  --paper-2:  #ECE8DE;   /* alternate band */
  --surface:  #FBFAF6;   /* raised blocks, inputs */
  --line:     #D8D3C6;   /* hairlines */
  --line-2:   #BDB7A8;   /* stronger hairline */

  /* type */
  --ink:      #26282B;   /* headings, body strong */
  --text:     #4A4D51;   /* body */
  --muted:    #6C6F73;   /* secondary */

  /* action + accents */
  --green:    #1C7F47;   /* nav buttons */
  --green-2:  #14663A;   /* hover */
  --slate:    #343E49;   /* primary buttons, CTA band */
  --slate-2:  #232B34;   /* hover */
  --olive:    #2F4A38;   /* photo panel fallback */
  --accent:   #A6432D;   /* single warm accent: links, prices */
  --accent-2: #86321F;
  --gold:     #A67F2E;   /* review stars only */
  --ok:       #2F6B45;

  --ff-serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --ff-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r: 3px;               /* the only corner radius */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --sec: clamp(64px, 8vw, 112px);
  --ease: cubic-bezier(.22,.61,.36,1);
  --emblem: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%2326282B' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='24' cy='24' r='21'/%3E%3Ccircle cx='24' cy='24' r='16.5' stroke-width='1'/%3E%3Cpath d='M24 7.5v33M9.7 15.75l28.6 16.5M9.7 32.25l28.6-16.5' stroke-width='1'/%3E%3Ccircle cx='24' cy='24' r='2.2' fill='%2326282B' stroke='none'/%3E%3Ccircle cx='31' cy='15' r='1.6' fill='%2326282B' stroke='none'/%3E%3Ccircle cx='15.5' cy='19' r='1.6' fill='%2326282B' stroke='none'/%3E%3Ccircle cx='32' cy='31' r='1.6' fill='%2326282B' stroke='none'/%3E%3Ccircle cx='19' cy='33' r='1.6' fill='%2326282B' stroke='none'/%3E%3C/svg%3E");
  --emblem-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23F4F1EA' stroke-width='.7' stroke-linecap='round'%3E%3Ccircle cx='24' cy='24' r='21'/%3E%3Ccircle cx='24' cy='24' r='16.5' stroke-width='.5'/%3E%3Cpath d='M24 7.5v33M9.7 15.75l28.6 16.5M9.7 32.25l28.6-16.5' stroke-width='.5'/%3E%3C/svg%3E");
}

/* ---------- 3. Base ---------- */
body {
  font-family: var(--ff-sans); font-size: 16px; line-height: 1.7;
  color: var(--text); background: var(--paper); overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--slate); color: #fff; }
.container { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); color: var(--ink); padding: 10px 16px; border: 1px solid var(--ink); z-index: 999; }

a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--slate); outline-offset: 3px;
}

h1, h2, h3, h4 { font-family: var(--ff-serif); color: var(--ink); font-weight: 500; line-height: 1.15; }

/* eyebrow: small uppercase label */
.eyebrow {
  display: block; margin-bottom: 18px;
  font-family: var(--ff-sans); font-size: 11.5px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}

.section-h2 {
  font-size: clamp(30px, 3.6vw, 46px); font-weight: 500; letter-spacing: .005em; line-height: 1.12; color: var(--ink);
}
.section-h2 .accent, .page-hero h1 i, .cta-band h2 i { font-style: italic; color: inherit; }

/* scroll reveal — restrained */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 4. Buttons (one primary, one outline) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 24px;
  border: 1px solid var(--slate); border-radius: var(--r);
  font-family: var(--ff-sans); font-size: 13.5px; font-weight: 500; letter-spacing: .04em;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  background: transparent; color: var(--slate);
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--slate); color: #fff; }
.btn-primary, .btn-green { background: var(--slate); color: #fff; }
.btn-primary:hover, .btn-green:hover { background: var(--slate-2); border-color: var(--slate-2); }
.btn-outline, .btn-ghost { background: transparent; color: var(--slate); }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }
button[disabled] { opacity: .6; cursor: progress; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1; color: var(--ink); }
.brand-mark {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--emblem) center / contain no-repeat;
}
.brand-text b { display: block; font-family: var(--ff-serif); font-size: 21px; font-weight: 600; letter-spacing: .04em; color: var(--ink); }
.brand-text em {
  display: block; margin-top: 4px; font-style: normal;
  font-family: var(--ff-sans); font-size: 9px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
nav[aria-label="Primary navigation"] { margin-left: auto; }
.site-nav { display: flex; align-items: center; gap: 12px; list-style: none; }
.site-nav li:nth-child(4) { margin-right: 4px; }
.site-nav a {
  position: relative; display: inline-block; padding: 6px 0;
  font-size: 13px; font-weight: 400; letter-spacing: .01em; color: var(--ink); text-decoration: none;
}
.site-nav a:not(.nav-book)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav a:not(.nav-book):hover::after,
.site-nav a[aria-current="page"]:not(.nav-book)::after { transform: scaleX(1); }
.site-nav a.nav-book {
  padding: 9px 12px; border-radius: var(--r); background: var(--green); color: #fff;
  font-size: 11px; font-weight: 500; letter-spacing: .05em; white-space: nowrap; text-transform: uppercase;
  transition: background-color .2s;
}
.site-nav a.nav-book:hover { background: var(--green-2); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 11px 10px; }
.nav-toggle span { display: block; height: 1px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span + span { margin-top: 7px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 6. Homepage hero: photograph | text panel ---------- */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(680px, calc(100vh - 72px)); min-height: min(680px, calc(100svh - 72px));
}
.hero-photo {
  position: relative; min-height: 360px;
  background-color: var(--olive);
  /* photo first; if the file is missing the emblem shows instead */
  background-image: url("../images/hero.webp"), var(--emblem-light);
  background-size: cover, min(46%, 300px);
  background-position: center, center;
  background-repeat: no-repeat;
}
.hero-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 6vw, 96px) clamp(28px, 5.5vw, 88px);
}
.hero h1 {
  font-size: clamp(30px, 3.5vw, 50px); font-weight: 500; line-height: 1.16;
  letter-spacing: .07em; text-transform: uppercase; margin-bottom: 26px; max-width: 12em;
}
.hero-sub { font-size: 16px; line-height: 1.75; color: var(--text); max-width: 30em; margin-bottom: 8px; }
.hero-contact { font-size: 15px; color: var(--ink); margin-bottom: 30px; }
.hero-contact a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.hero-contact a:hover { border-color: var(--ink); }
.hero-more { margin-top: 26px; font-size: 13.5px; color: var(--muted); }
.hero-more a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.hero-more a:hover { text-decoration-color: var(--ink); }
.hero-more .open-status { display: block; margin-top: 6px; }

/* hero: three big links only */
.hero-links { display: flex; flex-direction: column; }
.hero-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-family: var(--ff-serif); font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
  font-size: clamp(30px, 4vw, 56px); line-height: 1.1; color: var(--ink); text-decoration: none;
  padding: .55em 0; border-bottom: 1px solid var(--line-2); transition: padding .3s var(--ease), color .2s;
}
.hero-links a:first-child { border-top: 1px solid var(--line-2); }
.hero-links a span { font-family: var(--ff-sans); font-size: .7em; transition: transform .3s var(--ease); }
.hero-links a:hover, .hero-links a:focus-visible { padding-left: .3em; color: var(--accent); }
.hero-links a:hover span, .hero-links a:focus-visible span { transform: translateX(6px); }

/* ---------- 6b. Homepage hero — Tricolore edition ---------- */
.tri {
  --verde: #0F8A4F; --verde-d: #0A6B3C; --verde-t: #E6F3EA;
  --bianco: #FFFFFF;
  --rosso: #C8252F; --rosso-d: #A61D26;
  --crema: #FBF7EE;
  --tricolore: linear-gradient(90deg, var(--verde) 0 33.34%, var(--bianco) 33.34% 66.67%, var(--rosso) 66.67% 100%);
  /* on light backgrounds the white band needs a touch of tone to stay visible */
  --tricolore-l: linear-gradient(90deg, var(--verde) 0 33.34%, #E2DDD1 33.34% 66.67%, var(--rosso) 66.67% 100%);
}
.hero {
  position: relative; overflow: hidden; background: var(--crema); border-bottom: 0;
}
/* flag hem along the bottom of the hero */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; z-index: 3;
  background: var(--tricolore-l);
}
.hero-split { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }

/* photo: warm grade, slow drift */
.hero-photo { overflow: hidden; background: var(--verde-d); }
.hero-photo::before {
  content: ""; position: absolute; inset: 0;
  background: url("../images/hero.webp") center / cover no-repeat;
  filter: saturate(1.12) contrast(1.04);
  transform: scale(1.08); animation: heroDrift 22s var(--ease) forwards;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 30% 45%, transparent 55%, rgba(20,18,14,.28) 100%),
    linear-gradient(90deg, transparent 70%, rgba(200,37,47,.10) 100%);
}
@keyframes heroDrift { to { transform: scale(1); } }

/* vertical tricolore ribbon on the seam */
.hero-flag { display: flex; width: 36px; position: relative; z-index: 2; box-shadow: 6px 0 24px -10px rgba(38,40,43,.25); }
.hero-flag i { flex: 1; transform-origin: top; animation: flagDrop .9s var(--ease) both; }
.hero-flag i:nth-child(1) { background: var(--verde); }
.hero-flag i:nth-child(2) { background: var(--bianco); animation-delay: .12s; }
.hero-flag i:nth-child(3) { background: var(--rosso); animation-delay: .24s; }
@keyframes flagDrop { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* text panel: cream with a soft glow and a faint emblem watermark */
.hero-text {
  position: relative; isolation: isolate;
  background:
    radial-gradient(70% 60% at 85% 12%, rgba(15,138,79,.07), transparent 70%),
    radial-gradient(60% 55% at 90% 95%, rgba(200,37,47,.035), transparent 70%),
    var(--crema);
}
.hero-text::before {
  content: ""; position: absolute; z-index: -1; right: -90px; bottom: -90px; width: 380px; height: 380px;
  background: var(--emblem) center / contain no-repeat; opacity: .035;
  animation: slowSpin 120s linear infinite;
}
@keyframes slowSpin { to { transform: rotate(360deg); } }

/* small flag ornament above the links */
.hero-orn { display: flex; gap: 6px; margin-bottom: clamp(22px, 3vw, 36px); }
.hero-orn i { width: 34px; height: 4px; border-radius: 2px; animation: rise .7s var(--ease) .35s both; }
.hero-orn i:nth-child(1) { background: var(--verde); }
.hero-orn i:nth-child(2) { background: var(--bianco); box-shadow: inset 0 0 0 1px rgba(38,40,43,.18); }
.hero-orn i:nth-child(3) { background: var(--rosso); }

/* the three links */
.hero .hero-links a {
  position: relative; isolation: isolate; font-weight: 600; letter-spacing: .05em;
  padding: .5em .35em .5em 0; border-color: rgba(38,40,43,.14);
  animation: rise .8s var(--ease) both;
  transition: padding .45s var(--ease), color .3s, border-color .3s;
}
.hero .hero-links a:nth-child(1) { animation-delay: .45s; }
.hero .hero-links a:nth-child(2) { animation-delay: .58s; }
.hero .hero-links a:nth-child(3) { animation-delay: .71s; }
.hero .hero-links a:first-child { border-top-color: rgba(38,40,43,.14); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* colour wash that sweeps in on hover */
.hero .hero-links a::before {
  content: ""; position: absolute; inset: -1px -.35em -1px -.35em; z-index: -1;
  background: var(--wash); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
/* round arrow chip in the flag colour */
.hero .hero-links a span {
  flex: none; display: grid; place-items: center;
  width: 1.15em; height: 1.15em; border-radius: 50%; font-size: .62em; line-height: 1;
  color: var(--chip-ink); background: var(--chip);
  box-shadow: 0 6px 16px -6px var(--chip-glow), inset 0 0 0 1px var(--chip-ring, transparent);
  transition: transform .45s var(--ease), background .3s, color .3s;
}
.hero .hl-verde  { --chip: var(--verde);  --chip-ink: #fff; --chip-glow: rgba(15,138,79,.55); --wash: var(--verde); --hover: #fff; }
.hero .hl-bianco { --chip: var(--bianco); --chip-ink: var(--ink); --chip-glow: rgba(38,40,43,.25); --chip-ring: rgba(38,40,43,.18); --wash: #fff; --hover: var(--ink); }
.hero .hl-rosso  { --chip: var(--rosso);  --chip-ink: #fff; --chip-glow: rgba(200,37,47,.5); --wash: var(--rosso); --hover: #fff; }

.hero .hero-links a:hover, .hero .hero-links a:focus-visible { padding-left: .45em; color: var(--hover); }
.hero .hero-links a:hover::before, .hero .hero-links a:focus-visible::before { transform: scaleX(1); }
.hero .hero-links a:hover span, .hero .hero-links a:focus-visible span { transform: translateX(-4px) rotate(-45deg) scale(1.08); }
.hero .hl-bianco:hover::before, .hero .hl-bianco:focus-visible::before { box-shadow: 0 10px 30px -12px rgba(38,40,43,.25); }
.hero .hero-links a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.hero .hl-verde:hover span, .hero .hl-verde:focus-visible span { background: #fff; color: var(--verde); }
.hero .hl-rosso:hover span, .hero .hl-rosso:focus-visible span { background: #fff; color: var(--rosso); }

/* live open status (set by site.js) */
.open-status { font-weight: 500; color: var(--ok); }
.open-status[data-state="closed"] { color: var(--accent); }
.open-status[data-state="soon"] { color: var(--gold); }
.hero-tag .dot, .hours-open-pill .dot { display: none; }

/* ---------- 7. Info strip ---------- */
.strip { background: var(--paper-2); border-bottom: 1px solid var(--line); color: var(--ink); }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; padding: 16px 0; font-size: 13px; letter-spacing: .02em; }
.strip-inner > span { padding: 0 22px; }
.strip-inner > span + span { border-left: 1px solid var(--line-2); }
.strip a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.strip a:hover { border-color: var(--ink); }
.strip .open-status[data-state="closed"] { color: var(--accent); }
@media (max-width: 1279px) {
  .strip-inner { flex-direction: column; align-items: center; gap: 6px; }
  .strip-inner > span { padding: 0; border: 0 !important; text-align: center; }
}

/* ---------- 8. Inner-page header (asymmetric editorial) ---------- */
.page-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(44px, 6vw, 84px) 0 clamp(40px, 5vw, 68px); }
.page-hero .container {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  column-gap: clamp(32px, 6vw, 104px); row-gap: 0; align-items: end;
}
.page-hero .container > * { grid-column: 2; }
.page-hero .container > .crumbs,
.page-hero .container > .eyebrow,
.page-hero .container > h1 { grid-column: 1 / -1; }
.page-hero h1 {
  font-size: clamp(34px, 4.6vw, 62px); font-weight: 500; line-height: 1.08; letter-spacing: .005em;
  margin-bottom: 26px; max-width: 17em;
}
.page-hero p.lead { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.75; color: var(--text); max-width: 34em; }
.page-hero p.lead a { color: var(--ink); text-underline-offset: 3px; }
.page-hero .btn-group { margin-top: 4px; }
.page-hero .open-status { display: inline-block; margin-left: 4px; }
.crumbs { font-size: 12px; letter-spacing: .06em; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.crumbs a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- 9. Generic sections ---------- */
.section, .about, .menu-section, .reviews-section, .why, .neighbourhood, .functions, .faq-section, .contact-section { padding: var(--sec) 0; background: var(--paper); }
.section.alt, .menu-section, .why, .faq-section { background: var(--paper-2); }
.faq-section.plain { background: var(--paper); }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 48px; }
.section-header .section-h2 { max-width: 640px; }
.link-more, .map-link, .dish-more { color: var(--ink); font-size: 13.5px; font-weight: 500; letter-spacing: .04em; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.link-more { display: inline-flex; gap: 8px; margin-top: 26px; }
.link-more:hover, .map-link:hover, .dish-more:hover { color: var(--accent); border-color: var(--accent); }
.map-link { display: inline-block; margin-top: 20px; }
.link-row { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.link-row .link-more { margin-top: 14px; }
.fine { font-size: 13.5px; color: var(--muted); }

/* long-form prose (suburb + SEO pages) */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.12; margin: 52px 0 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 24px; margin: 30px 0 10px; }
.prose p, .prose li { font-size: 16.5px; line-height: 1.8; color: var(--text); }
.prose p + p, .prose ul + p { margin-top: 16px; }
.prose ul { margin: 14px 0 0 20px; }
.prose li + li { margin-top: 6px; }
.prose a, .faq-item p a, .lead-copy a, .steps a, .menu-note-card a, .field-hint a, .choice small a,
.neighbourhood-body a, .functions-body a, .about-body a, .why-item p a, .form-status a:not(.btn) {
  color: var(--accent); text-underline-offset: 3px;
}
.prose a:hover, .about-body a:hover, .faq-item p a:hover { color: var(--accent-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.section > .container > .prose { margin-top: 22px; }

.answer-box { background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--ink); padding: 24px 28px; margin: 8px 0; }
.answer-box p { font-family: var(--ff-serif); font-size: 22px; line-height: 1.45; color: var(--ink); }
.chef-card { border-top: 1px solid var(--ink); padding: 26px 0 0; margin-top: 30px; }
.chef-card h3 { margin-top: 0; }
.press-card { max-width: 760px; margin: 0 auto 48px; text-align: center; padding: 0 8px; }
.press-card blockquote { font-family: var(--ff-serif); font-style: italic; font-weight: 500; font-size: clamp(24px, 3vw, 34px); line-height: 1.25; color: var(--ink); }
.press-card figcaption { margin-top: 16px; font-size: 13px; letter-spacing: .04em; color: var(--muted); }
.press-card figcaption a { color: var(--ink); text-underline-offset: 3px; }
.press-card.left { text-align: left; margin: 26px 0 0; padding: 0; }
.order-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 32px; margin-top: 20px; list-style: none; }
.order-list li { border-top: 1px solid var(--line); padding: 16px 0; font-size: 14.5px; line-height: 1.65; color: var(--text); }
.order-list li b { display: block; color: var(--ink); font-weight: 500; font-size: 15.5px; margin-bottom: 2px; }

/* comparison table */
.table-wrap { overflow-x: auto; margin-top: 20px; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 15px 16px; border-bottom: 1px solid var(--line); color: var(--text); line-height: 1.6; }
.compare thead th { border-bottom: 1px solid var(--ink); color: var(--ink); font-weight: 500; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.compare tbody th { color: var(--ink); font-weight: 500; white-space: nowrap; }
.compare tr.ours td, .compare tr.ours th { background: var(--surface); }
@media (max-width: 640px) {
  .compare { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { border: 1px solid var(--line); margin-bottom: 12px; }
  .compare tbody th { background: var(--paper-2); white-space: normal; border-bottom: 1px solid var(--line); }
  .compare tr.ours th { background: var(--slate); color: #fff; }
  .compare td { border-bottom: 0; padding: 8px 16px; }
  .compare td:last-child { padding-bottom: 16px; }
  .compare td::before { content: attr(data-label); display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
}

/* ---------- 10. Home: about / story ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 104px); align-items: start; }
.about-sticky { position: sticky; top: 110px; }
.about-photo { margin: 28px 0 0; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 492 / 553; object-fit: cover; border-radius: var(--r); }
.about-photo-wide { margin-top: 34px; max-width: 460px; }
.about-photo-wide img { aspect-ratio: 441 / 499; }
.about-body p { font-size: 16.5px; line-height: 1.85; color: var(--text); margin-bottom: 18px; }
.pull-quote { font-family: var(--ff-serif); font-size: clamp(24px, 2.6vw, 32px); font-style: italic; line-height: 1.35; color: var(--ink); border-top: 1px solid var(--ink); padding-top: 22px; margin-top: 30px; }
.about-badges { display: flex; flex-direction: column; gap: 0; margin-top: 30px; }
.about-badge { padding: 12px 0; border-top: 1px solid var(--line); font-size: 13.5px; letter-spacing: .04em; color: var(--ink); }
.about-badge:last-child { border-bottom: 1px solid var(--line); }

/* ---------- 11. Home: menu preview columns ---------- */
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(28px, 4vw, 56px); }
.menu-item { position: relative; border-top: 1px solid var(--ink); padding: 26px 0 8px; background: none; }
.menu-num { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.menu-price { font-size: 12.5px; letter-spacing: .04em; color: var(--accent); }
.menu-item h3 { font-size: 30px; font-weight: 500; margin-bottom: 12px; }
.menu-item p { font-size: 15px; line-height: 1.75; color: var(--text); margin-bottom: 18px; }
.menu-examples { font-size: 13px; line-height: 1.7; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.menu-item a.stretched { position: absolute; inset: 0; z-index: 1; }
.menu-item:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.menu-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 48px; }

/* ---------- 12. Reviews ---------- */
.reviews-head { max-width: 720px; margin: 0 auto; text-align: center; }
.review-rating-summary { display: inline-flex; align-items: center; gap: 24px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 20px 8px; margin: 32px auto 8px; }
.review-rating-summary .big-score { font-family: var(--ff-serif); font-size: 64px; font-weight: 500; line-height: .9; color: var(--ink); }
.rrs-meta { text-align: left; }
.rrs-meta .stars, .review-stars, .hp-stars { color: var(--gold); letter-spacing: 3px; font-size: 18px; line-height: 1; }
.rrs-meta p { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(28px, 4vw, 56px); margin-top: 52px; }
.review-card { border-top: 1px solid var(--line-2); padding: 24px 0 8px; }
.review-stars { font-size: 14px; margin-bottom: 14px; }
.review-text { font-family: var(--ff-serif); font-size: 21px; line-height: 1.45; color: var(--ink); margin-bottom: 18px; }
.review-author { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.themes { margin-top: 56px; }
.theme-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; margin-top: 18px; }
.theme-list li { border-top: 1px solid var(--line); padding: 18px 0; }
.theme-list b { display: block; font-family: var(--ff-serif); font-size: 22px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.theme-list span { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------- 13. "Why" and other icon blocks (icons removed, text carries it) ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(28px, 4vw, 56px); margin-top: 48px; }
.why-item { border-top: 1px solid var(--ink); padding: 24px 0 8px; }
.why-icon, .cd-icon { display: none; }
.why-item h3 { font-size: 26px; margin-bottom: 10px; }
.why-item p { font-size: 15px; line-height: 1.75; color: var(--text); }

/* ---------- 14. Neighbourhood ---------- */
.neighbourhood-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: start; margin-top: 40px; }
.neighbourhood-body p { font-size: 16px; line-height: 1.85; margin-bottom: 16px; }
.suburb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.suburb-tags .suburb-tag { border: 1px solid var(--line-2); padding: 5px 12px; border-radius: var(--r); font-size: 12px; letter-spacing: .06em; text-transform: none; color: var(--ink); }
.transport-card { border-top: 1px solid var(--ink); padding-top: 8px; }
.transport-list { list-style: none; }
.transport-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.6; color: var(--text); }
.transport-list li::before { content: none; }
.map-embed { margin-top: 24px; border: 1px solid var(--line); line-height: 0; }
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; filter: grayscale(.55) contrast(.95); }

/* ---------- 15. Functions (private events) ---------- */
.functions-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 104px); align-items: start; }
.functions-body { font-size: 16px; line-height: 1.85; margin-bottom: 26px; }
.functions-perks { list-style: none; display: grid; gap: 0; margin-bottom: 32px; }
.functions-perks li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.functions-perks li:last-child { border-bottom: 1px solid var(--line); }
.fn-card { background: var(--surface); border: 1px solid var(--line); padding: clamp(28px, 4vw, 44px); }
.fn-card-label { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.fn-card-title { font-size: clamp(30px, 3vw, 40px); margin-bottom: 20px; line-height: 1.12; }
.fn-card-title em { font-style: italic; }
.fn-card-body, .fn-quote { font-size: 15px; line-height: 1.75; }
.fn-quote { font-family: var(--ff-serif); font-size: 21px; font-style: italic; color: var(--ink); }
.fn-cite { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.fn-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 20px; }
.steps { list-style: none; counter-reset: s; margin: 22px 0 8px; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; font-size: 15px; line-height: 1.65; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 1px; font-family: var(--ff-serif); font-size: 18px; color: var(--muted); }
.steps b { color: var(--ink); font-weight: 500; }
.functions .steps + .functions-perks { margin-top: 26px; }
.functions .btn-group { margin-top: 8px; }

/* ---------- 16. FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 4vw, 56px); margin-top: 48px; }
.faq-list { border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; font-family: var(--ff-serif); font-size: 21px; font-weight: 500; line-height: 1.25; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; flex-shrink: 0; width: 11px; height: 11px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1px 100% no-repeat;
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { font-size: 15px; line-height: 1.8; color: var(--text); padding: 0 0 24px; max-width: 46em; }

/* ---------- 17. Contact / hours / locations ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact-details { display: flex; flex-direction: column; margin-top: 8px; }
.cd-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cd-row:first-child { border-top: 1px solid var(--ink); }
.cd-text { font-size: 15px; line-height: 1.65; }
.cd-text strong { display: block; margin-bottom: 3px; font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cd-text a { color: var(--ink); text-underline-offset: 3px; }
.hours-card { background: var(--surface); border: 1px solid var(--line); padding: clamp(28px, 4vw, 40px); }
.hours-card h3 { font-size: 28px; margin-bottom: 8px; }
.hours-open-pill { display: block; margin-bottom: 18px; font-size: 13px; font-weight: 500; color: var(--ok); }
.hours-open-pill[data-state="closed"] { color: var(--accent); }
.hours-open-pill[data-state="soon"] { color: var(--gold); }
.hours-row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.hours-row:last-of-type { border-bottom: 0; }
.hours-row span:first-child { color: var(--muted); }
.hours-row span:last-child { color: var(--ink); font-weight: 500; text-align: right; }
.hours-note { font-size: 12.5px; color: var(--muted); margin-top: 16px; line-height: 1.6; }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 4vw, 56px); margin-top: 28px; }
.loc-card { border-top: 1px solid var(--ink); padding: 24px 0 8px; }
.loc-card h3 { font-size: 26px; margin-bottom: 12px; }
.loc-card p { font-size: 15px; line-height: 1.75; margin-bottom: 12px; }
.hours-list { list-style: none; margin: 0 0 12px; }
.hours-list li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text); }
.hours-list b { color: var(--ink); font-weight: 500; }

/* ---------- 18. Suburb directory ---------- */
.suburb-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(28px, 4vw, 56px); margin-top: 36px; }
.suburb-card { display: block; border-top: 1px solid var(--ink); padding: 24px 0 26px; color: inherit; text-decoration: none; transition: background-color .25s; }
.suburb-card:hover { background: var(--surface); }
.suburb-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.suburb-card h3 { font-size: 28px; margin: 6px 0 8px; }
.suburb-card p { font-size: 14.5px; line-height: 1.7; color: var(--text); }
.suburb-card .suburb-tag, .suburb-tag { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.suburb-links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 14px 0 0; }
.suburb-links a { color: var(--ink); font-size: 14px; text-underline-offset: 3px; }
.suburb-links a:hover { color: var(--accent); }

/* ---------- 19. Full menu page ---------- */
.menu-tabs { position: sticky; top: 72px; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.menu-tabs ul { list-style: none; display: flex; gap: 28px; overflow-x: auto; padding: 0; scrollbar-width: none; }
.menu-tabs ul::-webkit-scrollbar { display: none; }
.menu-tabs a { position: relative; display: block; white-space: nowrap; padding: 16px 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.menu-tabs a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform .25s var(--ease); }
.menu-tabs a:hover, .menu-tabs a.active { color: var(--ink); }
.menu-tabs a:hover::after, .menu-tabs a.active::after { transform: scaleX(1); }
.menu-cat { padding: 64px 0 8px; scroll-margin-top: 140px; }
.menu-cat:last-of-type { padding-bottom: 80px; }
.menu-cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.menu-cat-head h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1; }
.menu-cat-head h2 i { font-style: italic; color: var(--muted); }
.menu-cat-head p { font-size: 14px; color: var(--muted); }
.dish-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 72px); }
.dish { padding: 22px 0; border-bottom: 1px solid var(--line); }
.dish-top { display: flex; align-items: baseline; gap: 12px; }
.dish h3 { font-size: 24px; font-weight: 500; line-height: 1.15; }
.dish .dots { flex: 1; min-width: 20px; border-bottom: 1px dotted var(--line-2); transform: translateY(-5px); }
.dish .price { font-size: 15px; font-weight: 500; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dish p { font-size: 14.5px; line-height: 1.7; color: var(--text); margin-top: 8px; }
.dish.has-thumb { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: start; }
.dish-thumb { width: 120px; height: 120px; max-width: none; object-fit: cover; background: var(--paper-2); border-radius: var(--r); }
.dish-body { min-width: 0; }
.dish-photo { padding-top: 0; overflow: hidden; }
.dish-img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin: 0 0 16px; background: var(--paper-2); }
.dish-link { display: block; color: inherit; text-decoration: none; }
.dish-more { display: inline-block; margin-top: 12px; }
.dish-list:has(.dish-photo) { grid-template-columns: repeat(3, 1fr); }
.tag { display: inline-block; margin: 12px 8px 0 0; padding: 2px 8px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tag.veg { border-color: var(--ok); color: var(--ok); }
.tag.hot { border-color: var(--accent); color: var(--accent); }
.menu-note { font-size: 13px; color: var(--muted); margin-top: 18px; }
.menu-note-card { margin-top: 26px; padding: 20px 0 0; border-top: 1px solid var(--line); }
.menu-note-card p { font-size: 14px; line-height: 1.7; color: var(--muted); }
.menu-note-card p + p { margin-top: 8px; }
.menu-note-card .tag { margin-top: 0; }

/* ---------- 20. Order / book ---------- */
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(28px, 4vw, 56px); }
.choice { display: flex; flex-direction: column; border-top: 1px solid var(--ink); padding: 26px 0 8px; }
.choice h3, .choice .choice-h { font-family: var(--ff-serif); font-size: 30px; font-weight: 500; line-height: 1.1; margin-bottom: 10px; color: var(--ink); }
.choice p { flex: 1; font-size: 14.5px; line-height: 1.75; margin-bottom: 24px; }
.choice .btn { align-self: flex-start; }
.choice small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.split .section-h2 { margin-bottom: 18px; }
.split .lead-copy { font-size: 16px; line-height: 1.8; }

/* ---------- 21. Forms ---------- */
.form-card { position: relative; background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 12px 14px; min-height: 46px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 116px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.field-hint { font-size: 13.5px; color: var(--text); background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.form-actions p { font-size: 13px; color: var(--muted); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { display: grid; gap: 8px; margin-top: 20px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 14px; font-weight: 400; line-height: 1.6; color: var(--ink); outline: none; }
.form-status strong { font-size: 15px; font-weight: 600; }
.form-status.ok { background: #EEF3EC; border-color: #B8CDBB; }
.form-status.ok strong { color: var(--ok); }
.form-status.warn { background: var(--paper-2); }
.form-summary { white-space: pre-wrap; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; user-select: all; }
.form-status-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-status-actions .btn { min-height: 40px; padding: 9px 18px; }

/* ---------- 22. CTA band ---------- */
.cta-band { background: var(--slate); color: #fff; padding: clamp(52px, 6vw, 84px) 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 500; line-height: 1.1; color: #fff; }
.cta-band p { color: rgba(255,255,255,.72); margin-top: 8px; }
.cta-band p a { color: #fff; text-underline-offset: 3px; }
.cta-band .btn { border-color: rgba(255,255,255,.7); color: #fff; }
.cta-band .btn:hover { background: #fff; border-color: #fff; color: var(--slate); }
.cta-band .btn-primary { background: #fff; border-color: #fff; color: var(--slate); }
.cta-band .btn-primary:hover { background: transparent; color: #fff; border-color: #fff; }

/* ---------- 23. Footer ---------- */
footer { background: var(--paper-2); border-top: 1px solid var(--line); color: var(--text); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(32px, 5vw, 72px); margin-bottom: 52px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-family: var(--ff-serif); font-size: 24px; font-weight: 600; letter-spacing: .03em; color: var(--ink); }
.footer-tagline { font-size: 14px; line-height: 1.75; max-width: 30em; }
.footer-hours { font-size: 14px; line-height: 1.8; margin-top: 16px; }
.footer-hours strong { color: var(--ink); font-weight: 500; }
.footer-col h4, .footer-col .footer-h { margin-bottom: 18px; font-family: var(--ff-sans); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; line-height: 1.4; color: var(--muted); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col ul li a { font-size: 14px; color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.footer-col ul li a:hover { border-color: var(--ink); }
.footer-bar { border-top: 1px solid var(--line-2); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; font-size: 12px; color: var(--muted); }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 55; width: 44px; height: 44px;
  border: 1px solid var(--slate); border-radius: var(--r); background: var(--paper); color: var(--slate); font-size: 18px; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s, background-color .2s, color .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--slate); color: #fff; }

/* 404 */
.notfound { padding: clamp(64px, 10vw, 120px) 0; text-align: center; }
.notfound .btn-group { justify-content: center; margin-top: 28px; }

/* ---------- 24. Mobile quick-action bar ---------- */
.action-bar { display: none; }

/* ---------- 25. Responsive ---------- */
@media (max-width: 1200px) {
  .site-nav { gap: 22px; }
  .brand-text em { display: none; }
}
@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { min-height: 0; aspect-ratio: 16 / 10; order: -1; }
  .hero-text { padding: 44px var(--gutter) 56px; }
  .hero h1 { max-width: none; }
  .page-hero .container { grid-template-columns: 1fr; }
  .page-hero .container > * { grid-column: 1; }
  .about-grid, .functions-grid, .contact-grid, .neighbourhood-grid, .split, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-grid { gap: 0; }
  .about-sticky { position: static; }
  .menu-grid, .reviews-grid, .why-grid, .choice-grid { grid-template-columns: 1fr; gap: 12px; }
  .theme-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .dish-list:has(.dish-photo) { grid-template-columns: 1fr; }
}
@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  nav[aria-label="Primary navigation"] { margin-left: 0; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; max-height: calc(100vh - 72px); overflow-y: auto;
    transform: translateY(-6px); opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .site-nav.open { transform: none; opacity: 1; pointer-events: auto; visibility: visible; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav li:has(.nav-book) { border: 0; padding-top: 10px; }
  .site-nav a { display: block; padding: 15px 0; font-size: 15px; }
  .site-nav a:not(.nav-book)::after { display: none; }
  .site-nav a.nav-book { text-align: center; padding: 14px 22px; }
}
@media (max-width: 760px) {
  .nav-inner { min-height: 64px; }
  .site-nav { max-height: calc(100vh - 64px); }
  .menu-tabs { top: 64px; }
  .dish-list, .form-grid, .suburb-grid, .loc-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
  .review-rating-summary { flex-direction: column; gap: 10px; text-align: center; }
  .rrs-meta { text-align: center; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .menu-tabs ul { gap: 22px; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero .btn-group .btn { flex: 1 1 auto; }

  .action-bar {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: var(--paper); border-top: 1px solid var(--line-2);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .action-bar a {
    display: flex; align-items: center; justify-content: center; min-height: 52px; min-width: 0;
    padding: 6px 6px; text-align: center; line-height: 1.25; overflow-wrap: anywhere;
    font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
    color: var(--ink); text-decoration: none; border-left: 1px solid var(--line);
  }
  .action-bar a:first-child { border-left: 0; }
  .action-bar a.ab-primary { background: var(--slate); color: #fff; border-left-color: var(--slate); }
  .action-bar a span { display: none; }
  body { padding-bottom: calc(52px + env(safe-area-inset-bottom)); }
  .to-top { bottom: calc(64px + env(safe-area-inset-bottom)); right: 14px; }
}
@media (max-width: 520px) {
  .theme-list { grid-template-columns: 1fr; }
  .dish.has-thumb { grid-template-columns: 88px 1fr; gap: 14px; }
  .dish-thumb { width: 88px; height: 88px; }
  .btn-group .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Tricolore hero — stacked layout */
@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-flag { width: auto; height: 12px; order: 0; box-shadow: 0 6px 18px -8px rgba(38,40,43,.3); }
  .hero-flag i { transform-origin: left; animation-name: flagSlide; }
  .hero-text { order: 1; padding-bottom: 60px; }
  .hero-text::before { width: 260px; height: 260px; right: -70px; bottom: -70px; }
  .hero .hero-links a { font-size: clamp(26px, 7.4vw, 44px); }
}
@keyframes flagSlide { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* =====================================================================
   Tricolore homepage — everything below is scoped to <body class="tri"> (every page)
   ===================================================================== */

/* header: flag hem under the sticky bar */
.tri .site-header { border-bottom: 0; }
.tri .site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: var(--tricolore-l); box-shadow: 0 1px 0 rgba(38,40,43,.08);
}
.tri .site-nav a:not(.nav-book)::after { background: var(--rosso); }

/* eyebrows get a mini flag in front */
.tri .eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--verde-d); font-weight: 600; }
.tri .eyebrow::before {
  content: ""; width: 36px; height: 4px; border-radius: 2px; flex: none;
  background: var(--tricolore-l); box-shadow: 0 0 0 1px rgba(38,40,43,.10);
}
.tri .section-h2 .accent { color: var(--rosso); }

/* buttons */
.tri .btn-primary, .tri .btn-green { background: var(--verde); border-color: var(--verde); color: #fff; }
.tri .btn-primary:hover, .tri .btn-green:hover { background: var(--verde-d); border-color: var(--verde-d); color: #fff; }
.tri .btn-ghost, .tri .btn-outline { border-color: var(--rosso); color: var(--rosso); background: transparent; }
.tri .btn-ghost:hover, .tri .btn-outline:hover { background: var(--rosso); border-color: var(--rosso); color: #fff; }
.tri .btn { transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.tri .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(38,40,43,.45); }

/* info strip: clean white band, flag-coloured dots between items */
.tri .strip { background: #fff; border-bottom: 1px solid rgba(38,40,43,.08); }
.tri .strip-inner { padding: 18px 0; }
.tri .strip-inner > span + span { border-left: 0; position: relative; }
.tri .strip-inner > span + span::before {
  content: ""; position: absolute; left: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: var(--verde);
}
.tri .strip-inner > span:nth-child(odd)::before { background: var(--rosso); }
.tri .strip a { border-bottom-color: var(--verde); }
.tri .strip a:hover { color: var(--verde-d); }
.tri .open-status { color: var(--verde); font-weight: 600; }
.tri .open-status[data-state="closed"] { color: var(--rosso); }

/* about */
.tri .about { background: var(--crema); position: relative; }
.tri .about-body > p:first-child::first-letter {
  float: left; font-family: var(--ff-serif); font-weight: 600; font-size: 4.3em; line-height: .82;
  padding: 6px 12px 0 0; color: var(--rosso);
}
.tri .link-more { color: var(--verde-d); border-bottom: 2px solid var(--verde); }
.tri .link-more:hover { color: var(--rosso); border-color: var(--rosso); }

/* menu: soft basil band, white cards with flag caps */
.tri .menu-section { background: var(--verde-t); position: relative; }
.tri .menu-grid { gap: clamp(20px, 2.6vw, 32px); }
.tri .menu-item {
  background: #fff; border-top: 0; border-radius: var(--r); padding: 34px 30px 26px;
  box-shadow: 0 1px 0 rgba(38,40,43,.06), 0 18px 40px -26px rgba(10,60,35,.45);
  overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tri .menu-item::before, .tri .review-card::before, .tri .why-item::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--verde);
}
.tri .menu-item:nth-child(2)::before, .tri .review-card:nth-child(2)::before, .tri .why-item:nth-child(3n+2)::before { background: var(--tricolore-l); }
.tri .menu-item:nth-child(3)::before, .tri .review-card:nth-child(3)::before, .tri .why-item:nth-child(3n)::before { background: var(--rosso); }
.tri .menu-item:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(38,40,43,.06), 0 28px 50px -24px rgba(10,60,35,.5); }
.tri .menu-item:hover h3 { text-decoration: none; color: var(--verde-d); }
.tri .menu-num { font-family: var(--ff-serif); font-size: 26px; font-weight: 600; letter-spacing: .02em; color: var(--verde); }
.tri .menu-item:nth-child(2) .menu-num { color: var(--ink); }
.tri .menu-item:nth-child(3) .menu-num { color: var(--rosso); }
.tri .menu-price { font-family: var(--ff-sans); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; color: var(--rosso-d); }
.tri .menu-examples { border-top-style: dashed; color: var(--text); }

/* reviews */
.tri .reviews-section { background: var(--crema); }
.tri .review-rating-summary { border-top: 0; border-bottom: 0; position: relative; }
.tri .review-rating-summary::before, .tri .review-rating-summary::after {
  content: ""; position: absolute; left: 0; right: 0; height: 3px; background: var(--tricolore-l);
}
.tri .review-rating-summary::before { top: 0; }
.tri .review-rating-summary::after { bottom: 0; opacity: .5; }
.tri .review-rating-summary .big-score { color: var(--rosso); font-weight: 600; }
.tri .rrs-meta .stars { color: var(--verde); }
.tri .press-card figcaption a { color: var(--verde-d); text-decoration-color: var(--verde); }
.tri .reviews-grid { gap: clamp(20px, 2.6vw, 32px); }
.tri .review-card {
  position: relative; overflow: hidden; background: #fff; border-top: 0; border-radius: var(--r); padding: 34px 30px 26px;
  box-shadow: 0 1px 0 rgba(38,40,43,.06), 0 18px 40px -28px rgba(38,40,43,.45);
}
.tri .review-author { color: var(--verde-d); font-weight: 600; }
.tri .review-card:nth-child(3) .review-author { color: var(--rosso); }

/* why: bright white with flag-capped items */
.tri .why { background: #fff; }
.tri .why-grid { gap: 36px clamp(28px, 4vw, 56px); }
.tri .why-item { position: relative; border-top: 0; padding-top: 30px; }
.tri .why-item::before { height: 3px; width: 64px; right: auto; border-radius: 2px; transition: width .5s var(--ease); }
.tri .why-item:hover::before { width: 100%; }
.tri .why-item p a { color: var(--rosso); text-decoration-color: currentColor; }

/* call-to-action band: basil green with a flag hem */
.tri .cta-band {
  position: relative; overflow: hidden; background: var(--verde-d);
  background-image:
    radial-gradient(80% 140% at 100% 0%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(60% 120% at 0% 100%, rgba(0,0,0,.14), transparent 60%);
}
.tri .cta-band::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--tricolore);
}
.tri .cta-band::after {
  content: ""; position: absolute; right: -80px; top: 50%; width: 320px; height: 320px; transform: translateY(-50%);
  background: var(--emblem-light) center / contain no-repeat; opacity: .14; pointer-events: none;
}
.tri .cta-band .container { position: relative; z-index: 1; }
.tri .cta-band p { color: rgba(255,255,255,.9); }
.tri .cta-band .btn-primary { background: #fff; border-color: #fff; color: var(--verde-d); }
.tri .cta-band .btn-primary:hover { background: #fff; color: var(--verde-d); }
.tri .cta-band .btn-outline { background: var(--rosso); border-color: var(--rosso); color: #fff; }
.tri .cta-band .btn-outline:hover { background: var(--rosso-d); border-color: var(--rosso-d); color: #fff; }

/* footer */
.tri footer { position: relative; background: var(--crema); border-top: 0; }
.tri footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tricolore-l); }
.tri .footer-col .footer-h { color: var(--verde-d); font-weight: 600; }
.tri .footer-col ul li a:hover { color: var(--rosso); border-color: var(--rosso); }

/* back-to-top + mobile action bar */
.tri .to-top { border-color: var(--verde); color: var(--verde); }
.tri .to-top:hover { background: var(--verde); color: #fff; }
@media (max-width: 760px) {
  .tri .action-bar { border-top: 0; box-shadow: 0 -3px 0 0 transparent; }
  .tri .action-bar::before { content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 3px; background: var(--tricolore-l); }
  .tri .action-bar a.ab-primary { background: var(--verde); border-left-color: var(--verde); }
  .tri .action-bar a:last-child { background: var(--rosso); color: #fff; border-left-color: var(--rosso); }
}
@media (max-width: 960px) {
  .tri .menu-grid, .tri .reviews-grid { row-gap: 20px; }
}

/* =====================================================================
   Tricolore — inner pages
   ===================================================================== */

/* page header: cream with soft glows, a flag ribbon on the left edge, flag hem underneath */
.tri .page-hero {
  position: relative; overflow: hidden; border-bottom: 0;
  background:
    radial-gradient(55% 80% at 92% 10%, rgba(15,138,79,.08), transparent 70%),
    radial-gradient(45% 70% at 100% 100%, rgba(200,37,47,.04), transparent 70%),
    var(--crema);
  padding-bottom: calc(clamp(40px, 5vw, 68px) + 6px);
}
.tri .page-hero::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 18px;
  background: var(--tricolore); transform-origin: top; animation: flagDrop .9s var(--ease) both;
  box-shadow: 4px 0 16px -8px rgba(38,40,43,.3);
}
.tri .page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--tricolore-l);
}
.tri .page-hero .container { position: relative; }
.tri .page-hero .container::after {
  content: ""; position: absolute; right: -120px; top: 50%; width: 340px; height: 340px; margin-top: -170px; z-index: -1;
  background: var(--emblem) center / contain no-repeat; opacity: .045; animation: slowSpin 120s linear infinite; pointer-events: none;
}
.tri .page-hero { isolation: isolate; }
.tri .page-hero h1 i { color: var(--rosso); }
.tri .page-hero p.lead a { color: var(--verde-d); text-decoration-color: var(--verde); }
.tri .crumbs a { color: var(--verde-d); border-bottom-color: rgba(15,138,79,.35); }
.tri .crumbs a:hover { color: var(--rosso); border-color: var(--rosso); }

/* section rhythm: cream / basil / white */
.tri .section, .tri .neighbourhood, .tri .functions, .tri .contact-section { background: var(--crema); }
.tri .section.alt, .tri .faq-section { background: var(--verde-t); }
.tri .faq-section.plain { background: #fff; }

/* long-form text */
.tri .prose h2 { border-top: 0; background: var(--tricolore-l) left top / 72px 3px no-repeat; }
.tri .prose h2:first-child { background: none; }
.tri .prose a, .tri .faq-item p a, .tri .lead-copy a, .tri .steps a, .tri .menu-note-card a, .tri .field-hint a, .tri .choice small a,
.tri .neighbourhood-body a, .tri .functions-body a, .tri .about-body a, .tri .form-status a:not(.btn) { color: var(--rosso); text-decoration-color: currentColor; }
.tri .prose a:hover, .tri .about-body a:hover, .tri .faq-item p a:hover { color: var(--verde-d); }
.tri .answer-box { background: #fff; border: 0; border-left: 5px solid var(--verde); border-radius: var(--r); box-shadow: 0 16px 36px -26px rgba(10,60,35,.5); }
.tri .chef-card, .tri .pull-quote, .tri .transport-card { border-top: 0; background: var(--tricolore-l) left top / 72px 3px no-repeat; }
.tri .pull-quote { color: var(--verde-d); }
.tri .compare thead th { border-bottom: 2px solid var(--verde); color: var(--verde-d); }
.tri .compare tr.ours td, .tri .compare tr.ours th { background: var(--verde-t); }
.tri .compare tr.ours th { color: var(--verde-d); font-weight: 600; }
.tri .order-list li b { color: var(--verde-d); }
.tri .theme-list li { border-top: 3px solid var(--verde); }
.tri .theme-list li:nth-child(3n+2) { border-top-color: #E2DDD1; }
.tri .theme-list li:nth-child(3n) { border-top-color: var(--rosso); }

/* shared "card" treatment: white, soft shadow, flag cap */
.tri .fn-card, .tri .hours-card, .tri .form-card {
  position: relative; overflow: hidden; background: #fff; border: 0; border-radius: var(--r);
  box-shadow: 0 1px 0 rgba(38,40,43,.06), 0 22px 46px -30px rgba(10,60,35,.5);
}
.tri .fn-card::before, .tri .hours-card::before, .tri .form-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--tricolore-l);
}
.tri .fn-card-label { color: var(--verde-d); font-weight: 600; }
.tri .fn-card-title em { color: var(--rosso); }
.tri .fn-quote { color: var(--verde-d); }

/* ruled cards cycle green / flag / red */
.tri .loc-card, .tri .suburb-card, .tri .choice { border-top: 0; position: relative; }
.tri .loc-card::before, .tri .suburb-card::before, .tri .choice::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--verde);
}
.tri .loc-card:nth-child(3n+2)::before, .tri .suburb-card:nth-child(3n+2)::before, .tri .choice:nth-child(3n+2)::before { background: var(--tricolore-l); }
.tri .loc-card:nth-child(3n)::before, .tri .suburb-card:nth-child(3n)::before, .tri .choice:nth-child(3n)::before { background: var(--rosso); }
.tri .suburb-card { padding-left: 16px; padding-right: 16px; transition: background-color .3s, transform .35s var(--ease), box-shadow .35s; border-radius: var(--r); }
.tri .suburb-card:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 18px 36px -26px rgba(10,60,35,.5); }
.tri .suburb-card:hover h3 { color: var(--verde-d); text-decoration: none; }
.tri .suburb-card .suburb-tag, .tri .suburb-tag { color: var(--verde-d); }
.tri .suburb-tags .suburb-tag { border-color: rgba(15,138,79,.45); background: #fff; transition: background-color .2s, color .2s; }
.tri .suburb-tags .suburb-tag:hover { background: var(--verde); color: #fff; }
.tri .suburb-links a { color: var(--verde-d); }
.tri .suburb-links a:hover { color: var(--rosso); }
.tri .dish-more, .tri .map-link { color: var(--verde-d); border-bottom: 2px solid var(--verde); }
.tri .dish-more:hover, .tri .map-link:hover { color: var(--rosso); border-color: var(--rosso); }

/* lists, steps, perks */
.tri .steps li::before { color: var(--rosso); font-weight: 600; }
.tri .functions-perks li { position: relative; padding-left: 22px; }
.tri .functions-perks li::before {
  content: ""; position: absolute; left: 2px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--verde);
}
.tri .functions-perks li:nth-child(even)::before { background: var(--rosso); }
.tri .about-badge { position: relative; padding-left: 20px; }
.tri .about-badge::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--verde);
}
.tri .about-badge:nth-child(even)::before { background: var(--rosso); }
.tri .about-photo img { box-shadow: 0 26px 50px -30px rgba(38,40,43,.55); }
.tri .hours-list b, .tri .hours-row span:last-child { color: var(--ink); }

/* FAQ */
.tri .faq-item summary::after {
  background:
    linear-gradient(var(--verde), var(--verde)) center / 100% 2px no-repeat,
    linear-gradient(var(--verde), var(--verde)) center / 2px 100% no-repeat;
  width: 13px; height: 13px;
}
.tri .faq-item[open] summary { color: var(--verde-d); }
.tri .faq-item[open] summary::after {
  background:
    linear-gradient(var(--rosso), var(--rosso)) center / 100% 2px no-repeat,
    linear-gradient(var(--rosso), var(--rosso)) center / 2px 100% no-repeat;
}
.tri .faq-item summary:hover { color: var(--verde-d); }

/* contact details + hours */
.tri .cd-row:first-child { border-top: 3px solid var(--verde); }
.tri .cd-text strong { color: var(--verde-d); font-weight: 600; }
.tri .cd-text a { color: var(--rosso); }
.tri .hours-open-pill { color: var(--verde); font-weight: 600; }
.tri .hours-open-pill[data-state="closed"] { color: var(--rosso); }
.tri .map-embed { border: 0; border-radius: var(--r); overflow: hidden; box-shadow: 0 20px 40px -28px rgba(38,40,43,.55); }
.tri .map-embed iframe { filter: none; }

/* forms */
.tri .field input:focus, .tri .field select:focus, .tri .field textarea:focus { border-color: var(--verde); box-shadow: 0 0 0 3px rgba(15,138,79,.18); }
.tri .field-hint { background: var(--verde-t); border-color: rgba(15,138,79,.25); }

/* menu page */
.tri .menu-tabs { background: rgba(251,247,238,.96); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(38,40,43,.08); }
.tri .menu-tabs a::after { height: 3px; bottom: -1px; background: var(--tricolore-l); }
.tri .menu-tabs a:hover, .tri .menu-tabs a.active { color: var(--verde-d); }
.tri .menu-cat-head { border-bottom: 0; background: var(--tricolore-l) left bottom / 100% 3px no-repeat; }
.tri .menu-cat-head h2 i { color: var(--rosso); }
.tri .dish .price { color: var(--rosso-d); font-weight: 600; }
.tri .dish { transition: background-color .25s; }
.tri .dish h3 { transition: color .25s; }
.tri .dish:hover h3 { color: var(--verde-d); }
.tri .dish-thumb { box-shadow: 0 10px 22px -14px rgba(38,40,43,.5); }
.tri .tag.veg { border-color: var(--verde); color: var(--verde-d); background: var(--verde-t); }
.tri .tag.hot { border-color: var(--rosso); color: #fff; background: var(--rosso); }
.tri .menu-note-card { border-top: 0; background: var(--tricolore-l) left top / 72px 3px no-repeat; }

@media (max-width: 760px) {
  .tri .page-hero::before { width: 9px; }
  .tri .page-hero .container::after { width: 220px; height: 220px; right: -80px; margin-top: -110px; }
}

body.tri { background: var(--crema); }


/* ---------- Page headers: falling ingredients (canvas added by site.js) ---------- */
.tri .page-hero .hero-ingredients {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0 40%, #000 60%); mask-image: linear-gradient(90deg, transparent 0 40%, #000 60%);
}
.tri .page-hero .container { position: relative; z-index: 1; }
.tri .page-hero.has-ingredients .container::after { display: none; }          /* drop the spinning emblem */
/* text stacks on the left so the right side is open for the ingredients */
.tri .page-hero .container { display: block; min-height: clamp(260px, 26vw, 340px); }
.tri .page-hero .container > * { max-width: min(640px, 56%); }
.tri .page-hero .container > .crumbs { max-width: none; }
.tri .page-hero h1 { max-width: min(680px, 58%); }
.tri .page-hero p.lead { margin-bottom: 22px; }
@media (max-width: 760px) {
  .tri .page-hero .container { min-height: 0; }
  .tri .page-hero .container > *, .tri .page-hero h1 { max-width: none; }
  .tri .page-hero .container > * { position: relative; }
  .tri .page-hero .hero-ingredients {
    -webkit-mask-image: linear-gradient(90deg, transparent 0 48%, rgba(0,0,0,.55) 70%, #000 88%);
    mask-image: linear-gradient(90deg, transparent 0 48%, rgba(0,0,0,.55) 70%, #000 88%);
  }
}
@media (max-width: 760px) {
  .tri .page-hero .hero-ingredients { opacity: .6; }
  .tri .page-hero h1, .tri .page-hero p.lead, .tri .page-hero .eyebrow, .tri .page-hero .crumbs {
    text-shadow: 0 0 10px var(--crema), 0 0 18px var(--crema), 0 0 2px var(--crema);
  }
}

/* same three actions in every page header */
.tri .page-hero .hero-cta { margin-top: 4px; }
.tri .page-hero .container > .hero-cta { max-width: none; }
.tri .page-hero .hero-sublink { margin-top: 14px; font-size: 13.5px; }
.tri .page-hero .hero-sublink a { color: var(--verde-d); text-decoration: none; border-bottom: 1.5px solid var(--verde); padding-bottom: 1px; }
.tri .page-hero .hero-sublink a:hover { color: var(--rosso); border-color: var(--rosso); }
@media (max-width: 760px) {
  .tri .page-hero .hero-cta .btn { flex: 1 1 100%; }
}

/* =====================================================================
   Four order actions (lunch / dinner × pick up / delivery) — header + every hero
   Lunch = verde, Dinner = rosso
   ===================================================================== */
.tri .site-nav a.nav-book { background: var(--verde); }
.tri .site-nav a.nav-book:hover { background: var(--verde-d); }
.tri .site-nav a.nav-book.nav-dinner { background: var(--rosso); }
.tri .site-nav a.nav-book.nav-dinner:hover { background: var(--rosso-d); }
.site-nav { gap: 10px; }
.site-nav a.nav-book { padding: 9px 10px; letter-spacing: .03em; }
.site-nav li:nth-child(4) { margin-right: 8px; }

.tri .btn-rosso { background: var(--rosso); border-color: var(--rosso); color: #fff; }
.tri .btn-rosso:hover { background: var(--rosso-d); border-color: var(--rosso-d); color: #fff; }

/* homepage hero: four rows instead of three */
.hero .hero-links a { font-size: clamp(22px, 2.35vw, 40px); letter-spacing: .03em; }
.hero .hero-links a:nth-child(4) { animation-delay: .84s; }

/* inner heroes: 2 × 2 grid so the four buttons read as lunch row / dinner row */
.tri .page-hero .hero-cta { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 12px; }
.tri .page-hero .hero-cta .btn { justify-content: center; text-align: center; }
@media (max-width: 760px) {
  .tri .page-hero .hero-cta { grid-template-columns: 1fr 1fr; }
  .tri .page-hero .hero-cta .btn { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 960px) {
  .hero .hero-links a { font-size: clamp(18px, 5.1vw, 36px); letter-spacing: .01em; gap: 12px; }
}

/* =====================================================================
   Static heroes — no motion, paints on first frame (Core Web Vitals)
   Ingredients are a pre-rendered image, not a canvas animation.
   ===================================================================== */
/* inner heroes: lunch-menu poster fills the right half (static image, no animation) */
.tri .page-hero.has-poster .container::after { display: none; }
.tri .page-hero.has-poster .container { min-height: clamp(520px, 44vw, 640px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.tri .page-hero.has-poster .container > .hero-cta { width: auto; }
.tri .page-hero .hero-side-poster {
  position: absolute; z-index: 0; top: 24px; bottom: 30px; left: 50%; right: 0;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.tri .page-hero .hero-side-poster img {
  height: 100%; width: auto; max-width: calc(100% - 48px); object-fit: contain; display: block;
  border-radius: 4px; box-shadow: 0 18px 40px -18px rgba(38,40,43,.45);
}
@media (max-width: 760px) {
  .tri .page-hero.has-poster { display: flex; flex-direction: column; }
  .tri .page-hero.has-poster .container { min-height: 0; order: 1; }
  .tri .page-hero .hero-side-poster { position: static; order: 2; padding: 26px var(--gutter) 0; }
  .tri .page-hero .hero-side-poster img { width: 100%; max-width: 480px; height: auto; }
}
/* homepage poster */
.hero-photo.hero-poster { background: #15110f; min-height: 0; }
.hero-photo.hero-poster::before, .hero-photo.hero-poster::after { content: none; }
.hero-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 960px) { .hero-photo.hero-poster { aspect-ratio: 4 / 5; } }
@media (max-width: 760px) { .hero-photo.hero-poster { aspect-ratio: 4 / 5; } }

/* kill every hero animation */
.hero-photo::before, .hero-flag i, .hero-text::before, .hero-orn i,
.hero .hero-links a, .tri .page-hero::before, .tri .page-hero .container::after {
  animation: none !important;
}
.hero-photo::before { transform: none; }

/* homepage: poster column shrinks to the poster's exact width (no black bars); buttons take the rest and scale up */
@media (min-width: 961px) {
  .hero { --hh: min(680px, calc(100vh - 72px)); }
  @supports (height: 100svh) { .hero { --hh: min(680px, calc(100svh - 72px)); } }
  .hero-split { grid-template-columns: calc(var(--hh) * 2 / 3) auto minmax(0, 1fr); height: var(--hh); min-height: 0; }
  .hero-photo.hero-poster { min-height: 0; background: none; }
  .hero-poster img { object-fit: cover; }
  .hero-text { container-type: inline-size; padding: clamp(24px, 5vh, 56px) clamp(32px, 4vw, 72px); }
  .hero .hero-orn { margin-bottom: 22px; }
  .hero .hero-links a { font-size: clamp(24px, min(6.1cqi, calc((var(--hh) - 200px) / 8.6)), 76px); letter-spacing: .02em; }
}
/* phones/tablets: no dark box behind the poster */
@media (max-width: 960px) {
  .hero-photo.hero-poster { background: var(--crema); padding-top: 12px; }
  .hero-poster img { top: 12px; height: calc(100% - 12px); }
}
@media (max-width: 760px) {
  .hero-text { padding-top: 18px; padding-bottom: 28px; }
  .hero .hero-orn { margin-bottom: 12px; }
  .hero .hero-links a { padding-top: .42em; padding-bottom: .42em; }
}
/* homepage: flag ribbon on the LEFT of the poster; poster never cropped (sits above the bottom flag hem) */
@media (min-width: 961px) {
  .hero-split { grid-template-columns: auto calc((var(--hh) - 6px) * 2 / 3) minmax(0, 1fr); }
  .hero-flag { order: -1; box-shadow: -6px 0 24px -10px rgba(38,40,43,.25); }
  .hero-photo.hero-poster { height: calc(var(--hh) - 6px); align-self: start; }
  .hero-poster img { object-fit: contain; }
}
/* homepage: tricolore ribbon on BOTH sides of the poster, touching it */
.hero-flag-r { display: none; }
@media (min-width: 961px) {
  .hero-split { grid-template-columns: auto calc((var(--hh) - 6px) * 2 / 3) auto minmax(0, 1fr); }
  .hero-flag { order: 1; }
  .hero-photo.hero-poster { order: 2; }
  .hero-flag-r { display: flex; order: 3; box-shadow: 6px 0 24px -10px rgba(38,40,43,.25); }
  .hero-text { order: 4; }
}
\n\n/* Homepage hero video — sourced from the original The Code Pizza Bar hero */
.hero-video-wrap { position: relative; overflow: hidden; background: var(--verde-d); }
.hero-video-wrap::before { display: none !important; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
  transform: scale(1.015); background: url("../images/hero.webp") center / cover no-repeat;
}
.hero-video-shade {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(120% 90% at 30% 45%, transparent 55%, rgba(20,18,14,.24) 100%),
              linear-gradient(90deg, transparent 72%, rgba(200,37,47,.08) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-video-wrap { background: url("../images/hero.webp") center / cover no-repeat; }
}

/* FIX 2026-10-02: video hero participates in the same desktop grid slot as the old poster. */
@media (min-width: 961px) {
  .hero-split { grid-template-columns: auto calc((var(--hh) - 6px) * 2 / 3) auto minmax(0, 1fr); }
  .hero-video-wrap { order: 2; width: 100%; height: calc(var(--hh) - 6px); min-height: 0; align-self: start; background: url("../images/hero.webp") center / cover no-repeat; }
  .hero-flag { order: 1; }
  .hero-flag-r { display: flex; order: 3; }
  .hero-text { order: 4; }
}
@media (max-width: 960px) {
  .hero-video-wrap { min-height: 58vw; background: url("../images/hero.webp") center / cover no-repeat; }
}


/* Full-bleed homepage video hero */
.hero.hero-full-video {
  position: relative;
  width: 100%;
  height: min(760px, calc(100vh - 108px));
  min-height: 560px;
  overflow: hidden;
  background: #17130f url("../images/hero.webp") center / cover no-repeat;
  border-bottom: 0;
  isolation: isolate;
}
.hero-full-video .hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-full-video .hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(8,7,5,.24), rgba(8,7,5,.12) 42%, rgba(8,7,5,.38));
}
.hero-center-links {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px var(--gutter);
  text-align: center;
}
/* Option F: rounded glass pills with a tricolore stripe that widens on hover */
.hero-center-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 224px;
  padding: .6em 1.1em .66em;
  border-radius: 999px;
  overflow: hidden;
  color: #fff;
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(12,10,8,.38);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.hero-center-links a::after {
  content: "";
  position: absolute;
  left: 22%; right: 22%; bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, #0F8A4F 0 33.34%, #fff 33.34% 66.67%, #C8252F 66.67% 100%);
  transition: left .35s var(--ease), right .35s var(--ease);
}
.hero-center-links a:hover,
.hero-center-links a:focus-visible {
  transform: translateY(-1px);
  background: rgba(12,10,8,.55);
  outline: none;
}
.hero-center-links a:hover::after,
.hero-center-links a:focus-visible::after { left: 0; right: 0; }
.hero-center-links a.lunch:hover,
.hero-center-links a.lunch:focus-visible { box-shadow: inset 0 0 0 1.5px #0F8A4F; }
.hero-center-links a.dinner:hover,
.hero-center-links a.dinner:focus-visible { box-shadow: inset 0 0 0 1.5px #C8252F; }
.hero-center-links a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 960px) {
  .hero.hero-full-video { height: calc(100svh - 76px); min-height: 540px; }
}
@media (max-width: 560px) {
  .hero.hero-full-video { min-height: 520px; }
  .hero-center-links { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-full-video .hero-bg-video { display: none; }
}

/* ---------- Restaurant logo (header, footer, homepage hero) ---------- */
.brand-logo { width: 56px; height: 56px; flex-shrink: 0; display: block; object-fit: contain; }
.footer-logo { width: 72px; height: 72px; flex-shrink: 0; display: block; object-fit: contain; }
.hero-logo { margin: 0 0 14px; line-height: 0; }
.hero-logo img {
  display: block;
  width: clamp(150px, 26vh, 220px);
  height: auto;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,.45));
}
@media (max-width: 960px) {
  .brand-logo { width: 48px; height: 48px; }
}
@media (max-width: 560px) {
  .brand-logo { width: 44px; height: 44px; }
  .hero-logo { margin-bottom: 10px; }
  .hero-logo img { width: clamp(130px, 38vw, 180px); }
}

/* Hide iOS/Android native play overlay on the background video (shows in Low Power Mode) */
.hero-bg-video::-webkit-media-controls,
.hero-bg-video::-webkit-media-controls-panel,
.hero-bg-video::-webkit-media-controls-overlay-play-button,
.hero-bg-video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; opacity: 0; }
.hero-bg-video { pointer-events: none; }
.hero-bg-video.is-blocked { display: none; }

/* ---------- Drinks section (menu page) ---------- */
.drinks-head { display: grid; grid-template-columns: 1fr; align-items: center; gap: 24px 40px; }
.drinks-head-text p { margin-top: 12px; }
.drinks-poster { display: block; width: 100%; max-width: 1100px; margin: 0 auto; border-radius: var(--r); overflow: hidden; box-shadow: 0 16px 34px -20px rgba(38,40,43,.55); transition: transform .3s var(--ease); }
.drinks-poster:hover { transform: translateY(-2px); }
.drinks-poster img { display: block; width: 100%; height: auto; image-rendering: auto; }
.drink-group { padding-top: 28px; scroll-margin-top: 140px; }
.drink-group-h { font-size: 24px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.drink-group .dish-top h4 { font-size: 1.17em; }
.price-gb small { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-left: 4px; }
.price-gb small:first-child { margin-left: 0; }
@media (max-width: 760px) {
  .drinks-head { grid-template-columns: 1fr; }
}

/* Drink product shots: bottles/glasses on white — show whole, not cropped */
.dish-thumb.drink-thumb { object-fit: contain; background: #fff; border: 1px solid var(--line); }

/* Homepage poster features (About + Functions hero posters) */
.poster-section { padding: clamp(28px, 5vw, 56px) 0; }
.poster-feature { margin: 0 auto; max-width: 520px; }
.promo-feature { margin: 0 auto; max-width: 760px; }
.promo-feature img { width: 100%; height: auto; }
.poster-feature a { display: block; border-radius: var(--r); overflow: hidden; box-shadow: 0 18px 38px -22px rgba(38,40,43,.55); transition: transform .3s var(--ease); }
.poster-feature a:hover { transform: translateY(-2px); }
.poster-feature img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) { .poster-feature { max-width: 440px; } }
