/* ==========================================================================
   IMPERIAL THAI RESTAURANT — Billings, Montana
   Design System v1.0
   Imperial Gold #D4AF37 · Royal Red #B00000 · Black #000000
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Brand */
  --gold:        #D4AF37;
  --gold-soft:   #E8CE72;
  --gold-deep:   #A8862A;
  --red:         #B00000;
  --red-deep:    #7A0000;
  --black:       #000000;

  /* Surfaces */
  --ink:         #0A0908;
  --ink-2:       #121010;
  --ink-3:       #1A1614;
  --line:        rgba(212,175,55,.28);
  --line-soft:   rgba(212,175,55,.14);

  /* Text — brightened for legibility on a near-black ground.
     Body 14.0:1, secondary 8.0:1 against --ink. */
  --cream:       #FBF8F1;
  --cream-dim:   #DED8CB;
  --cream-mute:  #ABA396;

  /* Type */
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Weights — one place to tune the whole site's heft */
  --w-body:    400;
  --w-medium:  500;
  --w-strong:  600;
  --w-head:    600;

  /* Scale */
  --step--1: clamp(.9rem, .87rem + .14vw, .97rem);
  --step-0:  clamp(1.06rem, 1.01rem + .22vw, 1.16rem);
  --step-1:  clamp(1.26rem, 1.15rem + .52vw, 1.58rem);
  --step-2:  clamp(1.55rem, 1.34rem + 1vw, 2.15rem);
  --step-3:  clamp(1.95rem, 1.54rem + 1.9vw, 3.05rem);
  --step-4:  clamp(2.45rem, 1.74rem + 3.4vw, 4.65rem);

  /* Space */
  --gut:  clamp(1.25rem, 4vw, 2.5rem);
  --sect: clamp(4rem, 9vw, 8rem);
  --wrap: 1240px;
  --wrap-narrow: 780px;

  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Header lockup — large on arrival, compact once scrolled.
     Lives on :root so .menu-nav and the mobile drawer can offset by it. */
  --hdr-h:     172px;
  --logo:      132px;
  --brand-sz:  3rem;
  --brand-sub: 1rem;
}
:root[data-scrolled="true"] {
  --hdr-h:     98px;
  --logo:      70px;
  --brand-sz:  1.75rem;
  --brand-sub: .74rem;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream-dim);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.68;
  font-weight: var(--w-body);
  /* NOT antialiased: on light-on-dark text that setting thins every stroke.
     Leaving smoothing at the browser default keeps the type visibly heavier. */
  -webkit-font-smoothing: auto;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--gold-soft); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--cream);
  font-weight: var(--w-head);
  line-height: 1.14;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p  { margin: 0 0 1.15em; max-width: 68ch; text-wrap: pretty; }

/* ---------- 3. UTILITIES ---------- */
.wrap { width: min(calc(100% - var(--gut) * 2), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(calc(100% - var(--gut) * 2), var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: var(--sect); position: relative; }
.section--tint { background: var(--ink-2); }
.skip {
  position: absolute; top: 0; left: 0; z-index: 999;
  background: var(--gold); color: var(--black); padding: .8rem 1.4rem; font-weight: 600;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { clip-path: none; left: 1rem; top: 1rem; }
.center { text-align: center; }
.center p { margin-inline: auto; }

/* Eyebrow */
.eyebrow {
  font-family: var(--sans);
  font-size: var(--step--1);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: var(--w-strong);
  margin: 0 0 1.1rem;
  display: block;
}

/* Lead paragraph */
.lead {
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.58;
  color: var(--cream);
  font-weight: var(--w-body);
}

/* Gold rule with lotus diamond */
.rule {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin: 2rem auto 2.6rem; max-width: 340px;
}
.rule::before, .rule::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.rule::after { background: linear-gradient(90deg, var(--gold), transparent); }
.rule i {
  width: 9px; height: 9px; background: var(--gold);
  transform: rotate(45deg); flex: none;
  box-shadow: 0 0 0 4px rgba(212,175,55,.16);
}
.rule--left { margin-inline: 0 auto; }
.rule--left::before { display: none; }

/* Thai pattern wash */
.pattern {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  /* Kept very low: the wash sits behind body copy, so texture must never
     compete with the text sitting on top of it. */
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='1'%3E%3Cpath d='M40 6c9 10 14 18 14 26 0 8-6 14-14 14S26 40 26 32c0-8 5-16 14-26z'/%3E%3Ccircle cx='40' cy='32' r='5'/%3E%3Cpath d='M0 60h80M40 60v20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 112px 112px;
}
.pattern + * { position: relative; z-index: 1; }

/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--sans); font-size: var(--step--1); font-weight: var(--w-strong);
  letter-spacing: .13em; text-transform: uppercase;
  padding: 1.05rem 2.2rem; border: 1px solid var(--gold);
  background: transparent; color: var(--gold); cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
  position: relative;
}
.btn:hover {
  background: var(--gold); color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -12px rgba(212,175,55,.6);
}
.btn--solid { background: var(--gold); color: var(--black); }
.btn--solid:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--black); }
.btn--red { background: var(--red); border-color: var(--red); color: var(--cream); }
.btn--red:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn-row--center { justify-content: center; }

/* ---------- 5. HEADER / NAV ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0,0,0,.92);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: var(--hdr-h);
  transition: min-height .4s var(--ease);
}
.brand { display: flex; align-items: center; gap: clamp(.7rem, 1.4vw, 1.1rem); }
.brand img {
  width: var(--logo); height: auto; aspect-ratio: 1217 / 1024;
  transition: width .4s var(--ease);
}
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--serif); font-size: var(--brand-sz); color: var(--gold);
  letter-spacing: .05em; font-weight: 600;
  transition: font-size .4s var(--ease);
}
.brand__sub {
  font-size: var(--brand-sub); letter-spacing: .26em; text-transform: uppercase;
  font-weight: var(--w-medium); color: var(--cream-dim); margin-top: .42rem;
  transition: font-size .4s var(--ease);
}
.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav a {
  font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase;
  color: var(--cream-dim); font-weight: var(--w-medium); padding: .4rem 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .35s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav .btn { padding: .7rem 1.4rem; }
.nav .btn:hover::after { width: 0; }

.burger {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--gold); padding: .6rem .75rem; cursor: pointer; line-height: 0;
}
.burger svg { width: 22px; height: 22px; }

@media (max-width: 1180px) and (min-width: 941px) {
  :root { --hdr-h: 148px; --logo: 108px; --brand-sz: 2.4rem; --brand-sub: .86rem; }
  :root[data-scrolled="true"] { --hdr-h: 90px; --logo: 62px; --brand-sz: 1.55rem; --brand-sub: .7rem; }
}
@media (max-width: 700px) {
  :root { --hdr-h: 128px; --logo: 96px; --brand-sz: 2.15rem; --brand-sub: .8rem; }
  :root[data-scrolled="true"] { --hdr-h: 78px; --logo: 52px; --brand-sz: 1.4rem; --brand-sub: .64rem; }
}
@media (max-width: 400px) {
  :root { --hdr-h: 112px; --logo: 82px; --brand-sz: 1.8rem; --brand-sub: .72rem; }
  :root[data-scrolled="true"] { --hdr-h: 72px; --logo: 46px; --brand-sz: 1.25rem; --brand-sub: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hdr__in, .brand img, .brand__name, .brand__sub, .menu-nav { transition: none; }
}

@media (max-width: 940px) {
  .burger { display: block; }
  /* Vertical padding must be 0 while closed: with box-sizing:border-box a
     max-height of 0 still renders padding, which leaks the first link. */
  .nav {
    position: fixed; inset: var(--hdr-h) 0 auto; flex-direction: column; align-items: stretch;
    background: #050404; border-bottom: 1px solid transparent;
    padding: 0 var(--gut); gap: 0;
    max-height: 0; overflow: hidden;
    transition: max-height .4s var(--ease), padding .4s var(--ease);
  }
  .nav[data-open="true"] {
    max-height: 80vh; overflow-y: auto;
    padding-block: .5rem 2rem; border-bottom-color: var(--line);
  }
  .nav a { padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 1.2rem; border-bottom: 1px solid var(--gold); }
}

/* ---------- 6. HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(560px, 88vh, 900px);
  display: grid; align-items: center;
  background:
    radial-gradient(120% 90% at 50% 108%, rgba(176,0,0,.28) 0%, transparent 58%),
    radial-gradient(90% 70% at 50% 0%, rgba(212,175,55,.13) 0%, transparent 62%),
    var(--ink);
  text-align: center;
  padding-block: clamp(5rem, 12vh, 9rem);
}
/* The silhouette sits behind the copy: the mask fades its spire out before it
   reaches the CTA row, so the temple reads as horizon rather than obstacle. */
.hero__temple {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(1320px, 148%); height: auto; opacity: .46;
  color: var(--gold); pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 4%, #000 46%);
  mask-image: linear-gradient(180deg, transparent 4%, #000 46%);
}
.hero__glow {
  position: absolute; left: 50%; bottom: -10%; transform: translateX(-50%);
  width: 70vw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,.16), transparent 62%);
  pointer-events: none;
}
.hero__in { position: relative; z-index: 2; }
.hero h1 { color: var(--cream); margin-bottom: .35em; }
.hero h1 em {
  font-style: normal; display: block;
  background: linear-gradient(100deg, var(--gold-deep), var(--gold-soft) 45%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__tag {
  font-family: var(--serif); font-size: var(--step-1); font-style: italic; font-weight: var(--w-medium);
  color: var(--cream); margin: 0 auto 2.4rem; max-width: 40ch;
}
.hero__meta {
  margin-top: 3rem; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem;
  justify-content: center; font-size: var(--step--1); font-weight: var(--w-medium);
  letter-spacing: .14em; text-transform: uppercase; color: var(--cream-dim);
}
.hero__meta span { display: inline-flex; align-items: center; gap: .6rem; }
.hero__meta span + span::before { content: "◆"; color: var(--gold); font-size: .55em; margin-right: .4rem; }

/* Page banner (interior pages) */
.banner {
  position: relative; overflow: hidden; text-align: center;
  padding-block: clamp(4rem, 11vw, 7.5rem);
  background:
    radial-gradient(100% 120% at 50% 100%, rgba(176,0,0,.22), transparent 60%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  border-bottom: 1px solid var(--line);
}
.banner h1 { margin-bottom: .25em; }
.banner p { margin-inline: auto; }

/* Breadcrumbs */
.crumbs {
  font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; font-weight: var(--w-medium);
  color: var(--cream-mute); margin-bottom: 1.4rem;
}
.crumbs a { color: var(--cream-mute); }
.crumbs a:hover { color: var(--gold); }
.crumbs span { color: var(--gold); margin-inline: .5rem; }

/* ---------- 7. GRIDS & CARDS ---------- */
.grid { display: grid; gap: clamp(1.2rem, 2.4vw, 2rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }

.card {
  background: var(--ink-2); border: 1px solid var(--line-soft);
  overflow: hidden; position: relative;
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover {
  border-color: var(--gold); transform: translateY(-6px);
  box-shadow: 0 24px 50px -28px rgba(0,0,0,.9), 0 0 0 1px rgba(212,175,55,.2);
}
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.07); }
.card__body { padding: 1.5rem 1.6rem 1.8rem; }
.card__body h3 { margin-bottom: .5rem; color: var(--gold); font-weight: var(--w-head); }
.card__body p { font-size: var(--step-0); line-height: 1.6; margin: 0; color: var(--cream-dim); }
.card__tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  background: rgba(0,0,0,.78); border: 1px solid var(--line);
  color: var(--gold); font-size: .66rem; letter-spacing: .18em;
  text-transform: uppercase; padding: .38rem .7rem;
}

/* Feature panel (image + text) */
.split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}
.split__img { position: relative; }
.split__img img { border: 1px solid var(--line); }
.split__img::after {
  content: ""; position: absolute; inset: 16px -16px -16px 16px;
  border: 1px solid var(--line-soft); z-index: -1;
}

/* ---------- 8. MENU PAGE ---------- */
.menu-nav {
  position: sticky; top: var(--hdr-h); z-index: 50;
  transition: top .4s var(--ease);
  background: rgba(10,9,8,.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  padding-block: .9rem;
}
.menu-nav ul {
  list-style: none; margin: 0; padding: 0; display: flex; gap: .4rem;
  overflow-x: auto; scrollbar-width: thin;
}
.menu-nav a {
  display: block; white-space: nowrap; padding: .5rem 1rem;
  font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; font-weight: var(--w-medium);
  color: var(--cream-dim); border: 1px solid transparent;
}
.menu-nav a:hover { color: var(--gold); border-color: var(--line); }

.menu-sect { padding-block: clamp(2.8rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line-soft); }
.menu-sect:last-of-type { border-bottom: 0; }
.menu-sect__head { margin-bottom: 2.4rem; }
.menu-sect__head h2 {
  color: var(--gold); display: flex; align-items: center; gap: 1.2rem;
  font-size: var(--step-2);
}
.menu-sect__head h2::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.menu-sect__head p { color: var(--cream-dim); font-size: var(--step-0); margin: .8rem 0 0; }

.dish-list { display: grid; gap: 1.9rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.dish {
  display: grid; grid-template-columns: clamp(84px, 21vw, 116px) 1fr; gap: 1.2rem;
  align-items: start; padding-bottom: 1.5rem;
  border-bottom: 1px dotted var(--line-soft);
}
/* Dish thumbnail */
.dish__media {
  margin: 0; aspect-ratio: 1; overflow: hidden; position: relative;
  border: 1px solid var(--line-soft); background: var(--ink-3);
  transition: border-color .4s var(--ease);
}
.dish:hover .dish__media { border-color: var(--line); }
.dish__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.96) saturate(1.04);
  transition: transform .7s var(--ease), filter .4s var(--ease);
}
.dish:hover .dish__media img { transform: scale(1.08); filter: brightness(1.04) saturate(1.08); }
/* Awaiting photography — a deliberate lotus tile, not a broken image */
.dish__media--soon {
  background-color: var(--ink-3);
  background-image:
    radial-gradient(circle at 50% 44%, rgba(212,175,55,.10), transparent 68%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23D4AF37' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' opacity='.5'%3E%3Cpath d='M32 11c6 8 9.5 15 9.5 21 0 6-4.2 10.5-9.5 10.5S22.5 38 22.5 32c0-6 3.5-13 9.5-21z'/%3E%3Cpath d='M22.5 42c-7.5-2-12.5-7-14.5-14.5 7.5-1 13.5 1 17.5 6.5'/%3E%3Cpath d='M41.5 42c7.5-2 12.5-7 14.5-14.5-7.5-1-13.5 1-17.5 6.5'/%3E%3Cpath d='M9 39c4.5 8.5 12 13 23 13s18.5-4.5 23-13'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: cover, 52%;
}
.dish__body { min-width: 0; }
.dish__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.dish__name { font-family: var(--serif); font-size: var(--step-1); font-weight: var(--w-head); color: var(--cream); margin: 0; }
.dish__price { font-family: var(--serif); font-size: var(--step-1); font-weight: var(--w-strong); color: var(--gold); white-space: nowrap; }
.dish__desc { font-size: var(--step-0); line-height: 1.58; color: var(--cream-dim); margin: .4rem 0 0; max-width: 48ch; }
.dish__thai { font-size: .78rem; letter-spacing: .1em; color: var(--gold-deep); display: block; margin-top: .15rem; }
.heat { color: var(--red); font-size: .8em; letter-spacing: .1em; margin-left: .4rem; }

/* Protein pricing — entrees, curry, noodles and rice share one price ladder,
   so the price lives in a panel rather than being repeated on every dish. */
.pricing {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(212,175,55,.08), transparent 62%), var(--ink-2);
  padding: clamp(1.6rem, 3.2vw, 2.6rem);
}
.pricing h3 { color: var(--gold); font-size: var(--step-2); margin-bottom: .3rem; }
.pricing__note { font-size: var(--step-0); color: var(--cream-dim); margin: 0 0 1.8rem; max-width: 62ch; }
.pricing__tiers {
  display: grid; gap: 0 3rem; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  list-style: none; margin: 0; padding: 0; max-width: 900px;
}
.pricing__tiers li {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: .75rem 0; border-bottom: 1px dotted var(--line-soft);
}
.pricing__tiers span { color: var(--cream); }
.pricing__tiers b { font-family: var(--serif); font-size: var(--step-1); color: var(--gold); font-weight: var(--w-strong); }

.price-band {
  display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; align-items: baseline;
  border: 1px solid var(--line-soft); padding: .75rem 1.15rem; margin-top: 1.2rem;
  font-size: var(--step-0); color: var(--cream-dim); width: fit-content;
}
.price-band b { color: var(--gold); font-weight: var(--w-strong); }

/* Dish with its own size / protein ladder (Pho, egg drop soup) */
/* .dish--block is retained only so older markup keeps the photo column. */
.dish--block { grid-template-columns: clamp(84px, 21vw, 116px) 1fr; }
.dish__opts { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .1rem; max-width: 40ch; }
.dish__opts li {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  font-size: var(--step-0); border-bottom: 1px dotted var(--line-soft); padding: .5rem 0;
}
.dish__opts b { font-family: var(--serif); color: var(--gold); font-weight: var(--w-strong); font-size: var(--step-0); }

.placeholder-note {
  border: 1px dashed var(--line); background: rgba(212,175,55,.045);
  padding: 1.1rem 1.4rem; font-size: var(--step--1); color: var(--gold-deep);
  margin-bottom: 2rem; letter-spacing: .04em;
}

/* ---------- 9. GALLERY ---------- */
.gallery { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.gallery figure {
  margin: 0; position: relative; overflow: hidden; aspect-ratio: 1;
  background: var(--ink-3); border: 1px solid var(--line-soft);
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover; filter: brightness(.94) saturate(1.04);
  transition: transform .9s var(--ease), filter .5s var(--ease);
}
.gallery figcaption {
  position: absolute; inset: auto 0 0; z-index: 2;
  padding: 2.4rem 1.1rem 1.1rem;
  background: linear-gradient(transparent, rgba(0,0,0,.94));
  font-size: var(--step-0); font-weight: var(--w-medium); color: var(--cream);
  transform: translateY(102%); transition: transform .45s var(--ease);
}
.gallery figure::after {
  content: ""; position: absolute; inset: 10px; border: 1px solid var(--gold);
  opacity: 0; transform: scale(1.04); transition: opacity .45s var(--ease), transform .45s var(--ease);
  z-index: 1; pointer-events: none;
}
.gallery figure:hover img { transform: scale(1.08); filter: brightness(.62); }
.gallery figure:hover::after { opacity: 1; transform: scale(1); }
.gallery figure:hover figcaption { transform: translateY(0); }
.gallery figure.is-tall { grid-row: span 2; aspect-ratio: 1 / 2; }
@media (max-width: 640px) { .gallery figure.is-tall { grid-row: span 1; aspect-ratio: 1; } }

/* ---------- 10. INFO / NAP ---------- */
.info-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.info {
  border: 1px solid var(--line-soft); background: var(--ink-2);
  padding: 2rem 1.8rem; transition: border-color .4s var(--ease);
}
.info:hover { border-color: var(--line); }
.info h3 { color: var(--gold); font-size: var(--step-1); font-weight: var(--w-head); margin-bottom: 1rem; }
.info p, .info address { font-style: normal; margin: 0; font-size: var(--step-0); line-height: 1.66; color: var(--cream-dim); }
.info a { color: var(--cream); border-bottom: 1px solid var(--line); }
.info a:hover { color: var(--gold); border-color: var(--gold); }

.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .62rem 0; border-bottom: 1px dotted var(--line-soft);
  font-size: var(--step-0);
}
.hours li:last-child { border-bottom: 0; }
.hours b { font-weight: var(--w-strong); color: var(--cream); letter-spacing: .04em; }
.hours span { color: var(--gold); font-weight: var(--w-medium); }
.hours .closed { color: var(--red); }

/* Height is set directly rather than via aspect-ratio + min-height:
   that combination forces the box wider than the viewport on phones. */
.map-embed {
  position: relative; width: 100%; height: clamp(300px, 46vw, 470px);
  border: 1px solid var(--line); background: var(--ink-3); overflow: hidden;
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }

/* ---------- 11. FAQ ---------- */
.faq { display: grid; gap: .8rem; max-width: 900px; }
.faq details {
  border: 1px solid var(--line-soft); background: var(--ink-2);
  transition: border-color .35s var(--ease);
}
.faq details[open] { border-color: var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.3rem 3.2rem 1.3rem 1.5rem;
  font-family: var(--serif); font-size: var(--step-1); font-weight: var(--w-head); color: var(--cream);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 1.5rem; font-family: var(--sans); font-weight: 300;
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--gold); }
.faq .faq__a { padding: 0 1.5rem 1.5rem; }
.faq .faq__a p { margin: 0; font-size: var(--step-0); line-height: 1.66; color: var(--cream-dim); }

/* ---------- 12. CTA STRIP ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: linear-gradient(135deg, var(--red-deep), var(--red) 55%, #8B0000);
  border-block: 1px solid var(--gold);
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.94); margin-inline: auto; }
.cta .btn { border-color: var(--gold); background: var(--gold); color: var(--black); }
.cta .btn:hover { background: #fff; border-color: #fff; }
.cta .btn--ghost { background: transparent; color: var(--gold); }
.cta .btn--ghost:hover { background: var(--gold); color: var(--black); }

/* Online ordering hand-off panel */
.order-cta {
  border: 1px solid var(--gold);
  background: linear-gradient(165deg, rgba(212,175,55,.11), transparent 64%), var(--ink-2);
  padding: clamp(2.2rem, 6vw, 4rem) clamp(1.4rem, 4vw, 3rem);
  text-align: center; position: relative; overflow: hidden;
}
.order-cta h3 { font-size: var(--step-2); color: var(--cream); margin-bottom: .6rem; }
.order-cta p { margin-inline: auto; max-width: 48ch; }
.order-cta__note { font-size: var(--step--1); color: var(--cream-mute); margin: 1.5rem 0 0; }
/* Scoped by class, not `.order-cta svg` — a descendant selector here also
   captured the arrow icon inside the button and blew it up to 44px. */
.order-cta__icon { width: 44px; height: 44px; margin: 0 auto 1.4rem; display: block; color: var(--gold); }
.btn--lg { font-size: var(--step-0); padding: 1.25rem 2.9rem; letter-spacing: .1em; }
.btn__ext { width: 1em; height: 1em; flex: none; }

/* ---------- 13. FORM ---------- */
.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.form label { display: block; font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; font-weight: var(--w-strong); color: var(--gold); margin-bottom: .5rem; }
.form input, .form select, .form textarea {
  width: 100%; background: var(--ink-3); border: 1px solid var(--line-soft);
  color: var(--cream); padding: .9rem 1rem; font-family: var(--sans); font-size: var(--step-0);
  transition: border-color .3s var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold); outline: none; }
.form textarea { min-height: 130px; resize: vertical; }

/* ---------- 14. FOOTER ---------- */
.ftr {
  background: #050404; border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: var(--step-0);
}
.ftr__grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.ftr h3 {
  font-family: var(--sans); font-size: var(--step--1); letter-spacing: .2em; font-weight: var(--w-strong);
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem;
}
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ftr a { color: var(--cream-dim); }
.ftr a:hover { color: var(--gold); }
.ftr address { font-style: normal; color: var(--cream-dim); line-height: 1.9; }
.ftr__bar {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  color: var(--cream-mute); font-size: var(--step--1);
}
/* Legible on purpose (AA, 4.9:1). Near-invisible keyword text reads as
   cloaking to Google and is a manual-action risk. */
.ftr__kw { margin-top: 1.4rem; color: #837B6C; font-size: .84rem; line-height: 1.85; max-width: 100%; }

/* ---------- 15. SEO PROSE ---------- */
.prose h2 { margin-top: 2.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--gold); margin-top: 1.9em; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.4em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--cream); font-weight: var(--w-strong); }

/* ---------- 16. REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 17. PRINT ---------- */
@media print {
  .hdr, .menu-nav, .cta, .ftr__kw, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  h1, h2, h3, .dish__name { color: #000; }
  .dish__price { color: #000; }
}

/* ---------- 18. LIGHTBOX ---------- */
.is-zoomable { cursor: zoom-in; }
.is-zoomable:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* Hover affordance so people know the photo opens */
.dish__media, .card__media, .gallery figure, .split__img { position: relative; }
.zoom-hint {
  position: absolute; right: .5rem; bottom: .5rem; z-index: 3;
  width: 30px; height: 30px; display: grid; place-items: center;
  background: rgba(0,0,0,.72); border: 1px solid var(--line); color: var(--gold);
  opacity: 0; transform: translateY(4px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
}
.zoom-hint svg { width: 15px; height: 15px; }
.dish:hover .zoom-hint,
.card:hover .zoom-hint,
.gallery figure:hover .zoom-hint,
.split__img:hover .zoom-hint,
.is-zoomable:focus-visible ~ .zoom-hint { opacity: 1; transform: none; }

.lb {
  position: fixed; inset: 0; z-index: 200;
  /* Opacity carries the scrim on its own — backdrop-filter is a bonus, not a
     dependency, since it silently no-ops in some browsers and screenshot engines. */
  background: rgba(4,3,3,.975);
  backdrop-filter: blur(10px);
  /* minmax(0,1fr) on BOTH axes: an auto column track sizes to the image's
     natural width, which on a phone stretches the bar past the viewport and
     clips the close button. */
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.lb[data-open="true"] { opacity: 1; visibility: visible; }

.lb__bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line-soft);
}
.lb__count {
  font-size: var(--step--1); letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream-mute); font-weight: var(--w-medium);
}
.lb__close, .lb__nav {
  background: rgba(0,0,0,.5); border: 1px solid var(--line); color: var(--gold);
  width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.lb__close svg, .lb__nav svg { width: 20px; height: 20px; }
.lb__close:hover, .lb__nav:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.lb__nav[disabled] { opacity: .28; cursor: default; }
.lb__nav[disabled]:hover { background: rgba(0,0,0,.5); color: var(--gold); border-color: var(--line); }

.lb__stage {
  position: relative; display: grid; place-items: center;
  grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr);
  padding: clamp(.75rem,2vw,1.5rem) clamp(3.4rem,8vw,5rem);
  min-width: 0; min-height: 0; overflow: hidden;
}
.lb__fig { margin: 0; display: grid; place-items: center; width: 100%; height: 100%; min-width: 0; min-height: 0; }
.lb__fig img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border: 1px solid var(--line); background: var(--ink-3);
  opacity: 0; transform: scale(.98);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.lb[data-open="true"] .lb__fig img { opacity: 1; transform: none; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__nav--prev { left: clamp(.25rem, 1.5vw, 1.5rem); }
.lb__nav--next { right: clamp(.25rem, 1.5vw, 1.5rem); }

.lb__cap {
  padding: 1.2rem clamp(1rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2.2rem);
  text-align: center; max-width: 66ch; margin-inline: auto;
  border-top: 1px solid var(--line-soft);
}
.lb__cap b {
  display: block; font-family: var(--serif); font-size: var(--step-1);
  color: var(--gold); font-weight: var(--w-head); margin-bottom: .3rem;
}
.lb__cap span { color: var(--cream-dim); font-size: var(--step-0); line-height: 1.55; }

@media (max-width: 640px) {
  .lb__close, .lb__nav { width: 42px; height: 42px; }
  .lb__cap { padding-bottom: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lb, .lb__fig img { transition: none; }
}

/* ---------- 19. COOKIE CONSENT + CONSENT-GATED MAP ---------- */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 190;
  background: rgba(5,4,4,.98);
  border-top: 1px solid var(--gold);
  padding: clamp(1.1rem, 2.5vw, 1.6rem) 0;
  transform: translateY(110%);
  transition: transform .45s var(--ease);
}
.cookie[data-open="true"] { transform: none; }
.cookie__in {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem clamp(1.5rem, 3vw, 2.5rem);
  justify-content: space-between;
}
.cookie__txt { flex: 1 1 340px; margin: 0; font-size: var(--step--1); line-height: 1.6; color: var(--cream-dim); max-width: 76ch; }
.cookie__txt b { color: var(--gold); font-family: var(--serif); font-size: var(--step-0); display: block; margin-bottom: .25rem; font-weight: var(--w-head); }
.cookie__act { display: flex; flex-wrap: wrap; gap: .7rem; flex: none; }
.cookie__act .btn { padding: .85rem 1.6rem; }

/* Google Maps only loads once the visitor allows it */
.map-embed { display: grid; }
.map-embed > iframe, .map-gate { grid-area: 1 / 1; }
.map-gate {
  display: grid; align-content: center; justify-items: center; gap: .55rem;
  padding: clamp(1.25rem, 4vw, 2.5rem); text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(212,175,55,.07), transparent 70%),
    var(--ink-3);
}
.map-gate[hidden] { display: none; }
.map-gate svg { width: 34px; height: 34px; color: var(--gold); margin-bottom: .3rem; }
.map-gate b { font-family: var(--serif); font-size: var(--step-1); color: var(--cream); font-weight: var(--w-head); }
.map-gate p { margin: 0; font-size: var(--step--1); color: var(--cream-dim); max-width: 44ch; }
.map-gate__note { color: var(--cream-mute) !important; }
.map-gate .btn-row { margin-top: .9rem; }
.map-gate .btn { padding: .8rem 1.5rem; }

@media (max-width: 620px) {
  .cookie__act { width: 100%; }
  .cookie__act .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .cookie { transition: none; } }
