/* ══ Opera Cafe — shared page furniture ═══════════════════════════════════
   Depends on tokens.css. Cream ground for content, dark stage for arrivals.
   Every inner page: topbar → hero → sections → sitefoot.                   */

body { background: var(--cream); color: var(--ink); }

/* Height of the sticky topbar. Anything that sticks or scroll-snaps below it
   offsets by this, so there is one number to change, not five. */
:root { --topbar-h: 68px; }
@media (max-width: 760px) { :root { --topbar-h: 117px; } }

html { scroll-behavior: smooth; }
/* anything an in-page link can land on clears the sticky bar */
.section[id], .menu-group[id] { scroll-margin-top: calc(var(--topbar-h) + 24px); }

.skip {
  position: absolute; left: -9999px;
  background: var(--gold); color: var(--ink);
  padding: var(--s-3) var(--s-6); z-index: 100;
}
.skip:focus { left: var(--s-4); top: var(--s-4); }

.wrap { width: min(var(--container), 100% - 2 * var(--s-6)); margin-inline: auto; }

/* ── topbar ────────────────────────────────────────────────────────────── */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14,10,4,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212,168,0,.3);
}
.topbar__inner {
  display: flex; align-items: center; gap: var(--s-6);
  min-height: var(--topbar-h);
  width: min(var(--container), 100% - 2 * var(--s-6));
  margin-inline: auto;
}
.topbar__home {
  display: flex; align-items: center; justify-content: center;
  min-width: var(--tap); min-height: var(--tap);
  gap: var(--s-3); text-decoration: none;
}
.topbar__home img { width: 34px; height: auto; }
.topbar__branch {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--on-stage);
  letter-spacing: .02em;
  white-space: nowrap;
}
.topbar nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: var(--s-1); }
.topbar nav a {
  display: inline-flex; align-items: center;
  min-height: var(--tap);
  padding: 0 var(--s-4);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--on-stage-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.topbar nav a:hover { color: var(--gold); }
.topbar nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

@media (max-width: 760px) {
  .topbar__inner { flex-wrap: wrap; gap: var(--s-2); padding-block: var(--s-3); }
  /* one scrolling row, never two — --topbar-h has to stay predictable */
  .topbar nav {
    margin-left: 0; width: 100%;
    flex-wrap: nowrap; overflow-x: auto;
    scrollbar-width: none;
  }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav a { flex: none; padding-inline: var(--s-3); }
}

/* ── hero ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: min(62svh, 520px);
  padding: var(--s-16) 0 var(--s-12);
  background: var(--stage);
  color: var(--on-stage);
  isolation: isolate;
  overflow: hidden;
}
.hero > img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.6) contrast(1.08) saturate(.88) sepia(.12);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(8,5,2,.94) 6%, rgba(8,5,2,.58) 55%, rgba(8,5,2,.4) 100%);
}
.hero--plain { min-height: 0; padding-block: var(--s-16) var(--s-12); }
.hero__eyebrow { color: var(--gold); }
.hero h1 {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: .96;
  letter-spacing: -.02em;
  margin: var(--s-3) 0 var(--s-4);
}
.hero p {
  max-width: 52ch;
  color: var(--on-stage-muted);
  font-size: var(--text-lg);
  margin: 0;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-8); }

/* ── sections ──────────────────────────────────────────────────────────── */

.section { padding-block: clamp(var(--s-16), 9vw, var(--s-32)); }
.section--alt { background: var(--cream-deep); }
.section--stage { background: var(--stage); color: var(--on-stage); }
.section--stage .lede { color: var(--on-stage-muted); }
.section--stage h2 { color: var(--on-stage); }

.section__head { max-width: var(--measure); margin-bottom: var(--s-12); }
.section__head h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -.015em;
  margin: var(--s-3) 0 0;
}
.section__head .lede {
  font-size: var(--text-lg);
  color: var(--fg-muted);
  margin: var(--s-4) 0 0;
  max-width: 58ch;
}
.section__head::after {
  content: ""; display: block;
  width: 4rem; height: 1px;
  margin-top: var(--s-6);
  background: var(--gold);
}

/* ── info grid (hours, address, contact) ───────────────────────────────── */

.grid {
  display: grid;
  gap: var(--s-8);
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.card {
  padding: var(--s-8);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.section--alt .card { background: var(--white); }
.card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--s-4);
}
.card p, .card address { font-style: normal; margin: 0 0 var(--s-2); }
.card a { color: var(--link); }

.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--border);
}
.hours li:last-child { border-bottom: 0; }
.hours span:last-child { color: var(--fg-muted); font-variant-numeric: tabular-nums; }

/* ── menu ──────────────────────────────────────────────────────────────── */

/* The bar must be a direct child of <main> — sticky only travels as far as its
   parent box, and a .wrap that hugs the nav gives it nowhere to go. */
.menu-nav {
  position: sticky; top: calc(var(--topbar-h) - 1px); z-index: 10;
  padding: var(--s-3) 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.menu-nav__inner {
  display: flex; flex-wrap: nowrap; gap: var(--s-2);
  overflow-x: auto;
  scrollbar-width: none;
  width: min(var(--container), 100% - 2 * var(--s-6));
  margin-inline: auto;
}
.menu-nav__inner::-webkit-scrollbar { display: none; }
.menu-nav a {
  flex: none;
  display: inline-flex; align-items: center;
  min-height: var(--tap); padding: 0 var(--s-4);
  font-size: var(--text-sm); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.menu-nav a:hover { background: var(--gold-soft); border-color: var(--gold); }

.menu-group { margin-bottom: clamp(var(--s-12), 6vw, var(--s-24));
  scroll-margin-top: calc(var(--topbar-h) + 72px); }
.menu-group > h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--gold);
  margin-bottom: var(--s-3);
}
.menu-group > .note {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  margin: 0 0 var(--s-8);
}

.menu-list { display: grid; gap: var(--s-6); }
@media (min-width: 860px) { .menu-list--two { grid-template-columns: 1fr 1fr; column-gap: var(--s-16); } }

.item { display: grid; gap: var(--s-2); }
.item__head {
  display: flex; align-items: baseline; gap: var(--s-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
}
/* The leader dots: the one thing a printed menu does that the web usually forgets.
   Only drawn when there is a price to lead the eye to — a dotted line running to
   nothing reads as missing content, not as typography. */
.item__head:has(.item__price)::after {
  content: ""; order: 1;
  flex: 1;
  height: 0;
  border-bottom: 1px dotted var(--border-strong);
  opacity: .5;
  transform: translateY(-.28em);
}
.item__name { order: 0; font-weight: 700; }
.item__price { order: 2; white-space: nowrap; color: var(--gold-deep); font-variant-numeric: tabular-nums; }
.item__qty { font-family: var(--font-ui); font-size: var(--text-sm); color: var(--fg-muted); }
.item p { margin: 0; color: var(--fg-muted); font-size: var(--text-sm); line-height: 1.55; }

.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tag {
  font-size: .6875rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .2rem .45rem;
  color: var(--gold-deep);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
}

/* Sample content that must not reach production — deliberately conspicuous. */
.sample {
  display: inline-block;
  margin-bottom: var(--s-4);
  padding: var(--s-2) var(--s-4);
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: #7A2E00;
  background: #FFE9D6;
  border: 1px dashed #C25A17;
  border-radius: var(--radius-sm);
}

/* ── forms ─────────────────────────────────────────────────────────────── */

.form { max-width: 42rem; }
.form__row { display: grid; gap: var(--s-6); }
@media (min-width: 620px) { .form__row--two { grid-template-columns: 1fr 1fr; } }
.form fieldset { border: 0; padding: 0; margin: 0 0 var(--s-8); }
.form legend {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  padding: 0;
  margin-bottom: var(--s-6);
}
.field :is(input, select, textarea):user-invalid { border-color: var(--danger); }
.field :is(input, select, textarea):user-invalid ~ .hint { color: var(--danger); }
.form__submit { margin-top: var(--s-4); }

/* ── clients ───────────────────────────────────────────────────────────── */

.clients {
  display: grid; gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  margin: 0; padding: 0;
}
/* hairlines drawn on the cells, not as a container background — an incomplete
   final row would otherwise leave a block of bare gold hanging off the end */
.clients li {
  list-style: none;
  box-shadow: 0 0 0 1px rgba(212,168,0,.3);
  display: grid; place-items: center;
  min-height: 7.5rem;
  padding: var(--s-6);
  background: var(--stage);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.25;
  text-align: center;
  color: var(--on-stage);
}

/* ── footer ────────────────────────────────────────────────────────────── */

.sitefoot {
  padding-block: var(--s-16) var(--s-12);
  background: var(--stage);
  color: var(--on-stage-muted);
  border-top: 1px solid rgba(212,168,0,.3);
}
.sitefoot h3 {
  font-family: var(--font-ui);
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--s-4);
}
.sitefoot a { color: var(--on-stage-muted); text-decoration-color: rgba(184,170,144,.4); }
.sitefoot a:hover { color: var(--gold); }
.sitefoot address { font-style: normal; }
.sitefoot ul:not(.social) { list-style: none; margin: 0; padding: 0; display: grid; }
/* footer lists are navigation, not prose — they need a real tap target */
.sitefoot ul a {
  display: inline-flex; align-items: center;
  min-height: var(--tap);
}
.sitefoot__legal {
  margin-top: var(--s-12);
  padding-top: var(--s-6);
  border-top: 1px solid rgba(212,168,0,.2);
  font-size: var(--text-sm);
  display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-8);
}
.sitefoot__mark { width: 40px; height: auto; margin-bottom: var(--s-4); }

.sitefoot h3.sitefoot__h3--spaced { margin-top: var(--s-6); }

/* A .sample that carries a sentence rather than a label reads as prose, not caps. */
.sample--note {
  display: block;
  max-width: 42rem;
  letter-spacing: .02em;
  text-transform: none;
  font-weight: 500;
  line-height: 1.5;
}
.sample a { color: inherit; }

/* ── social ────────────────────────────────────────────────────────────────
   Icon-only links. Brand glyphs are filled, not stroked — at 20px a stroked
   mark turns to mush and stops being recognisable, which is the whole job.
   Every one carries an aria-label; an icon with no accessible name is a
   dead end for anyone not looking at it.                                   */

.social { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--gold-deep);
  text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.social a:hover { color: var(--ink); background: var(--gold-soft); border-color: var(--gold); }
.social svg { width: 20px; height: 20px; display: block; }

/* on the dark stage the hairline and glyph both come from the gold */
.sitefoot .social a,
.foot .social a {
  border-color: rgba(212,168,0,.32);
  color: var(--on-stage-muted);
}
.sitefoot .social a:hover,
.foot .social a:hover { color: var(--stage); background: var(--gold); border-color: var(--gold); }

/* ── before you arrive ─────────────────────────────────────────────────────
   Parking and delivery are both "decide before you leave the house", so they
   share one band instead of stacking as two shouty panels.

   This uses the dark stage rather than a colour wash. A pale-yellow fill was
   the first attempt and it was wrong twice over: it read as highlighter next
   to a palette built on hairlines and paper, and Deliveroo's teal against pale
   yellow is an actively bad pair. On near-black the teal is the only saturated
   thing on screen, so it does its job without a fill fighting it.            */

.arrive__grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}
.arrive__item {
  display: grid;
  align-content: start;
  gap: var(--s-4);
  padding: clamp(var(--s-8), 3vw, var(--s-12));
  box-shadow: 0 0 0 1px rgba(212,168,0,.28);
}
.arrive__item svg.arrive__icon {
  width: 40px; height: 40px;
  color: var(--gold);
}
.arrive__item h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.1;
  color: var(--on-stage);
  margin: 0;
  text-wrap: balance;
}
.arrive__item p {
  margin: 0;
  color: var(--on-stage-muted);
  max-width: 44ch;
}
.arrive__item .btn { justify-self: start; margin-top: var(--s-2); }

/* Deliveroo's teal, carried only by the button. White on that teal is 2.0:1,
   so the label is ink at 9.2:1 — the same pairing our own gold button uses. */
.btn--deliveroo {
  background: #00CCBC;
  color: var(--ink);
  border-color: #00CCBC;
}
.btn--deliveroo:hover { background: #00B3A6; border-color: #00B3A6; }
.btn--deliveroo svg { width: 18px; height: 18px; }
