/* ==========================================================================
   THE SULTAN — Cinematic Dark Luxury
   Premium restaurant template · design system + animations
   --------------------------------------------------------------------------
   Contents
   0. Fonts & tokens          4. Awards strip
   1. Base & utilities        5. Story (pinned)
   2. Nav                     6. Menu bento
   3. Hero                    6c. Gallery · 7. Reviews · 8. Visit · 9. Footer
   10. Mobile action bar      11. Scroll-driven animations
   12. Reduced motion
   ========================================================================== */

/* ---------- 0 · Fonts & tokens ---------- */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  /* optional (not swap): never swaps after first paint, so the webfont
     can't cause layout shift. All three faces are preloaded in
     index.html and total ~100KB, so on any realistic connection they're
     ready AT first paint; on a very slow cold visit the metric-matched
     fallbacks below render instead (and the webfonts show from the next
     navigation, already cached). */
  font-display: optional;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-var-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: optional;
}
@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/jost-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: optional;
}
/* Metric-matched local fallbacks: while the webfonts load, Georgia/Arial
   render pre-scaled to the same line widths and line boxes, so the swap
   causes no reflow (this was the whole remaining mobile CLS, 0.27 —
   attributed by Lighthouse to "Web font loaded" in .hero__content).
   size-adjust values were measured empirically: actual rendered width of
   the real hero headline/sub strings in each font pair, not the fonts'
   xAvgCharWidth metadata (whose formulas differ between fonts and gave
   wildly wrong ratios). ascent/descent = webfont metrics ÷ size-adjust. */
@font-face {
  font-family: "Cormorant Garamond Fallback";
  src: local("Georgia");
  size-adjust: 89.4%;
  ascent-override: 103.36%;
  descent-override: 32.1%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Jost Fallback";
  src: local("Arial");
  /* 93%, not the string-width-measured 95.58%: at 95.58 the hero sub
     wraps to 3 lines in Arial where Jost takes 2 (375px viewport).
     Empirically, 90–94% reproduces Jost's line counts at every tested
     breakpoint (375/414/768/1024/1440) — 93 sits mid-band. */
  size-adjust: 93%;
  ascent-override: 115.05%;
  descent-override: 40.32%;
  line-gap-override: 0%;
}

:root {
  /* palette — cinematic dark luxury */
  --ink: #0e0d0b;          /* page base, warm near-black */
  --ink-2: #161411;        /* raised surfaces */
  --ink-3: #1f1c17;        /* borders on dark */
  --gold: #c9a45c;         /* antique gold accent (8.1:1 on ink) */
  --gold-soft: #a8853f;
  --ivory: #f3ead9;        /* body text */
  --ivory-dim: #cfc4ae;    /* secondary text */
  --burgundy: #5e1f24;     /* hover states */

  /* type */
  --serif: "Cormorant Garamond", "Cormorant Garamond Fallback", Georgia, serif;
  --sans: "Jost", "Jost Fallback", Arial, sans-serif;

  /* rhythm */
  --space: clamp(4rem, 10vw, 8.5rem);   /* section padding */
  --container: 72rem;
  --nav-h: 4.75rem;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 1 · Base & utilities ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: .015em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: fixed; top: .75rem; left: .75rem; z-index: 100;
  background: var(--gold); color: var(--ink);
  padding: .6rem 1.1rem; font-size: .85rem; text-decoration: none;
  translate: 0 -300%;
  transition: translate .3s var(--ease-out);
}
.skip-link:focus { translate: 0 0; }

/* thin gold rule — signature divider */
.gold-rule {
  width: 5.5rem; height: 1px; margin: 1.6rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* section headers */
.section-head { text-align: center; padding: var(--space) 1.5rem 3rem; }
.section-head__kicker {
  font-family: var(--sans); font-size: .78rem; font-weight: 400;
  letter-spacing: .38em; text-transform: uppercase; color: var(--gold);
}
.section-head__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 6.5vw, 4.5rem);
  line-height: 1.05; margin-top: .9rem; text-wrap: balance;
}

/* optional one-paragraph intro under a section title */
.section-head__lede {
  max-width: 40rem; margin: 1.6rem auto 0;
  font-size: 1rem; line-height: 1.65; color: var(--ivory-dim); text-wrap: pretty;
}

/* buttons — gold fill sweep on hover */
.btn {
  position: relative; display: inline-block; overflow: hidden;
  font-family: var(--sans); font-size: .82rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  padding: 1rem 2.2rem; border: 1px solid var(--gold);
  transition: color .35s var(--ease-out), border-color .35s var(--ease-out);
  isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }

.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold::before { background: var(--burgundy); }
.btn--gold:hover, .btn--gold:focus-visible { color: var(--ivory); border-color: var(--burgundy); }

.btn--ghost { background: transparent; color: var(--ivory); border-color: rgb(243 234 217 / .45); }
.btn--ghost::before { background: var(--gold); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--ink); border-color: var(--gold); }

/* button with a leading line icon (inherits the text colour on hover) */
.btn--icon { display: inline-flex; align-items: center; gap: .7rem; }
.btn--icon svg {
  width: 1.25rem; height: 1.25rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round;
}

/* ---------- 2 · Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgb(14 13 11 / .55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgb(201 164 92 / .14);
  transition: background .4s;
}
.nav__inner {
  max-width: var(--container); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 0 1.5rem;
  height: var(--nav-h);
  transition: height .4s var(--ease-out);
}
.nav--scrolled { background: rgb(14 13 11 / .85); }
.nav--scrolled .nav__inner { height: 3.6rem; }

/* logo mark is near-square (800×613) — constrain by nav height */
.nav__logo img {
  height: 3.4rem; width: auto;
  transition: height .4s var(--ease-out);
}
.nav--scrolled .nav__logo img { height: 2.7rem; }

.nav__links { display: flex; gap: 2.4rem; }
.nav__links a {
  font-size: .8rem; font-weight: 400; letter-spacing: .24em;
  text-transform: uppercase; text-decoration: none; color: var(--ivory);
  padding-block: .4rem;
  /* underline draw animation */
  background: linear-gradient(90deg, var(--gold), var(--gold)) no-repeat left bottom / 0% 1px;
  transition: background-size .4s var(--ease-out), color .3s;
}
.nav__links a:hover, .nav__links a:focus-visible { color: var(--gold); background-size: 100% 1px; }
/* 6 links (incl. Digital Menu) need tighter spacing just above the
   burger breakpoint, or labels wrap onto two lines */
.nav__links a { white-space: nowrap; }
@media (max-width: 1100px) {
  .nav__links { gap: 1.3rem; }
  .nav__links a { letter-spacing: .14em; }
}

.nav__actions { display: flex; align-items: center; gap: 1rem; }
.nav__book { padding: .7rem 1.5rem; font-size: .74rem; }

.nav__burger {
  display: none; flex-direction: column; gap: .45rem;
  background: none; border: 0; padding: .6rem .2rem; cursor: pointer;
}
.nav__burger span {
  width: 1.7rem; height: 1px; background: var(--gold);
  transition: transform .35s var(--ease-out);
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(.23rem) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-.23rem) rotate(-45deg); }

.mobile-menu {
  /* positioned out of .nav's own flow so the fixed header's box never
     grows to reserve the open panel's height — it overlays the page
     below instead. This also lets visibility (not the [hidden] attribute)
     govern the closed state: no JS timer is needed to match a display:none
     flip to the transition length. */
  position: absolute;
  top: 100%; left: 0; right: 0;
  border-top: 1px solid rgb(201 164 92 / .14);
  background: rgb(14 13 11 / .96);
  opacity: 0;
  visibility: hidden;
  translate: 0 -10px;
  /* visibility flips instantly on open (so it's immediately interactive)
     but is delayed until the fade-out finishes on close (so it stays
     visible/interactive through its own exit, then disappears) — same
     180ms both directions, no separate slower fallback anywhere else. */
  transition: opacity .18s var(--ease-out), translate .18s var(--ease-out),
    visibility 0s .18s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transition: opacity .18s var(--ease-out), translate .18s var(--ease-out),
    visibility 0s;
}
.mobile-menu ul { padding: 1rem 1.5rem 1.6rem; }
.mobile-menu a {
  display: block; padding: .85rem 0; text-decoration: none;
  font-family: var(--serif); font-size: 1.5rem; color: var(--ivory);
  border-bottom: 1px solid rgb(201 164 92 / .12);
}
.mobile-menu a:hover { color: var(--gold); }

@media (max-width: 860px) {
  .nav__links, .nav__book { display: none; }
  .nav__burger { display: flex; }
  /* Confirmed root cause of a real-device-only mobile-menu close lag:
     continuously re-blurring the autoplaying hero video behind .nav's
     backdrop-filter is a severe iOS Safari compositing cost that a
     Chrome-only test never surfaces (the same CSS transition genuinely
     runs in ~180ms in Chrome but drops frames on WebKit, stretching it to
     a visible ~1s stall). Removed outright here rather than toggled only
     during the menu's open/close lifecycle, since re-enabling it also
     re-triggers the same expensive compositing pass. */
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- 3 · Hero ---------- */

.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center;
  overflow: clip; text-align: center;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media video {
  position: absolute; inset: 0; /* video must stack OVER the poster img, not after it */
  width: 100%; height: 100%; object-fit: cover; object-position: center 65%;
}
/* video fades in over the poster once it is actually rendering frames */
.hero__media video { opacity: 0; transition: opacity 1.4s ease; }
.hero__media video.is-playing { opacity: 1; }

/* Ken Burns — slow settle; removed when a video takes over */
.hero--kenburns .hero__img {
  animation: kenburns 26s var(--ease-out) forwards;
}
@keyframes kenburns {
  from { transform: scale(1.14) translateY(-1.5%); }
  to   { transform: scale(1.02) translateY(0); }
}

.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(14 13 11 / .62) 0%, rgb(14 13 11 / .34) 40%, rgb(14 13 11 / .9) 100%);
}
/* subtle grain over the photo */
.hero__overlay::after {
  content: ""; position: absolute; inset: 0;
  background: url("../assets/texture-dark-1600.webp") center / cover;
  opacity: .16; mix-blend-mode: soft-light;
}

.hero__content {
  position: relative; z-index: 1;
  max-width: 58rem; padding: calc(var(--nav-h) + 3rem) 1.5rem 6.5rem; /* bottom clears the scroll cue */
}
.hero__kicker {
  font-size: .8rem; font-weight: 400; letter-spacing: .42em;
  text-transform: uppercase; color: var(--gold);
  opacity: 0; animation: fade-in 1.2s .2s var(--ease-out) forwards;
}
.hero__headline {
  font-family: var(--serif); font-weight: 500; color: var(--ivory);
  font-size: clamp(2.9rem, 8.5vw, 6.2rem);
  line-height: 1.04; margin-top: 1.4rem; text-wrap: balance;
}
.hero__headline .accent { color: var(--gold); font-style: italic; }

/* kinetic headline: words rise from behind a mask */
.hero__headline .word {
  display: inline-block; overflow: clip;
  vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em;
}
.hero__headline .word > span {
  display: inline-block;
  translate: 0 115%; rotate: 4deg;
  animation: word-rise 1.1s var(--ease-out) forwards;
  animation-delay: calc(.35s + var(--i) * 90ms);
}
@keyframes word-rise { to { translate: 0 0; rotate: 0deg; } }

.hero__sub {
  max-width: 34rem; margin: 1.8rem auto 0; color: var(--ivory-dim);
  opacity: 0; animation: fade-up 1.1s 1.15s var(--ease-out) forwards;
}
/* Book a Table across the top, View Menu + Digital Menu as a pair below */
.hero__ctas {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  width: min(100%, 30rem); margin: 2.6rem auto 0;
  opacity: 0; animation: fade-up 1.1s 1.35s var(--ease-out) forwards;
}
.hero__ctas .btn { padding-inline: 1rem; white-space: nowrap; }
.hero__cta-main { grid-column: 1 / -1; }
/* seasonal Festive Menu button: gold outline instead of ivory, own row on
   phones, a third column beside View Menu + Digital Menu from tablet up */
.hero__cta-festive { grid-column: 1 / -1; border-color: var(--gold); color: var(--gold); }
.hero__cta-festive span { font-size: .9em; margin-right: .35em; }
@media (min-width: 641px) {
  .hero__ctas:has(.hero__cta-festive) { grid-template-columns: repeat(3, 1fr); width: min(100%, 42rem); }
  .hero__cta-festive { grid-column: auto; }
}
@media (max-width: 400px) {
  .hero__ctas { gap: .75rem; }
  .hero__ctas .btn--ghost { letter-spacing: .14em; padding-inline: .5rem; }
}
@media (max-width: 340px) {
  .hero__ctas { grid-template-columns: 1fr; }
}

@keyframes fade-in { to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }

.hero__scrollcue {
  position: absolute; bottom: 2rem; left: 50%; translate: -50% 0; z-index: 1;
  width: 1px; height: 3.6rem; overflow: hidden;
  opacity: 0; animation: fade-in 1s 2s forwards;
}
.hero__scrollcue span {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, var(--gold));
  animation: cue-drop 2.2s ease-in-out infinite;
}
@keyframes cue-drop {
  0% { translate: 0 -100%; } 60%, 100% { translate: 0 100%; }
}

/* ---------- 4 · Awards strip ---------- */

.awards {
  border-block: 1px solid rgb(201 164 92 / .35);
  background:
    linear-gradient(180deg, rgb(201 164 92 / .07), rgb(201 164 92 / .03)),
    var(--ink-2);
}
.awards__inner {
  max-width: var(--container); margin-inline: auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 2.6rem 1.5rem;
}
.award {
  text-align: center; padding: .6rem 1.2rem;
  border-left: 1px solid rgb(201 164 92 / .18);
}
.award:first-child { border-left: 0; }
.award__value {
  font-family: var(--serif); font-weight: 500; color: var(--gold);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.award__value--sm { font-size: clamp(1.3rem, 2.3vw, 1.8rem); line-height: 1.3; padding-top: .35em; }
.award__label {
  margin-top: .3rem; font-size: .74rem; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ivory-dim);
}
@media (max-width: 760px) {
  .awards__inner { grid-template-columns: 1fr 1fr; gap: 1.6rem 0; padding-block: 2rem; }
  /* Google rating gets its own row: the label is too long for half a phone */
  .award:first-child { grid-column: 1 / -1; }
  .award:nth-child(2) { border-left: 0; }
}

/* ---------- 5 · Story — pinned chapter sequence ---------- */

.story { position: relative; }
.story__pin { position: relative; min-height: 100svh; overflow: clip; }
.story__media { position: absolute; inset: 0; }
.story__media img {
  width: 100%; height: 100%; object-fit: cover;
  will-change: transform; /* GSAP animates scale in pinned mode */
}
.story__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(14 13 11 / .78), rgb(14 13 11 / .48) 45%, rgb(14 13 11 / .88));
}
.story__scrim::after {
  content: ""; position: absolute; inset: 0;
  background: url("../assets/texture-dark-1600.webp") center / cover;
  opacity: .16; mix-blend-mode: soft-light;
}

.story__chapters {
  position: relative; z-index: 1; min-height: 100svh;
  display: grid; place-items: center;
  padding: 6rem 1.5rem;
}
.story__chapter {
  grid-area: 1 / 1; /* chapters stack on the same cell */
  max-width: 40rem; text-align: center;
  opacity: 0;
}
.story__chapter.is-active { opacity: 1; }
.story__year {
  display: block; font-family: var(--serif); font-style: italic;
  font-size: clamp(4.2rem, 11vw, 8rem); line-height: 1; color: var(--gold);
  opacity: .92;
}
.story__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 1.1rem;
}
.story__text { margin: 1.2rem auto 0; max-width: 32rem; color: var(--ivory-dim); }

.story__progress {
  position: absolute; right: clamp(1rem, 4vw, 3rem); top: 50%;
  translate: 0 -50%; z-index: 2;
  display: flex; flex-direction: column; gap: .9rem;
}
.story__progress i {
  width: .45rem; height: .45rem; border-radius: 50%;
  background: rgb(201 164 92 / .3);
  transition: background .4s, scale .4s;
}
.story__progress i.is-active { background: var(--gold); scale: 1.35; }

/* static fallback (mobile / reduced motion / no GSAP):
   chapters flow normally over a sticky image */
.story--static .story__pin { min-height: 0; overflow: visible; }
.story--static .story__media { position: sticky; top: 0; height: 100svh; z-index: 0; }
.story--static .story__chapters {
  display: block; min-height: 0;
  margin-top: -100svh; /* chapters scroll over the sticky image */
}
.story--static .story__chapter {
  opacity: 1; margin-inline: auto; padding: 22svh 0;
}
.story--static .story__progress { display: none; }

/* ---------- 5b · Offers & Set Menus (+ announcement bar) ---------- */

.offers { background: var(--ink); }
.offers[hidden] { display: none; }
.offers__grid {
  max-width: var(--container); margin-inline: auto;
  padding: 0 1.5rem calc(var(--space) * .6);
  display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr);
}

.offer {
  display: flex; flex-direction: column; gap: .9rem;
  padding: 2rem 1.8rem; background: var(--ink-2);
  border: 1px solid rgb(201 164 92 / .25);
  box-shadow: inset 0 0 0 5px var(--ink-2), inset 0 0 0 6px rgb(201 164 92 / .14);
}
.offer__kicker {
  font-size: .72rem; font-weight: 400; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold);
}
.offer__title {
  font-family: var(--serif); font-weight: 500; line-height: 1.1;
  font-size: clamp(1.9rem, 3.4vw, 2.4rem); margin-top: -.3rem;
}
.offer__lines { color: var(--ivory-dim); font-size: .95rem; line-height: 1.6; }
.offer__lines li + li { margin-top: .3rem; }
.offer__prices {
  display: flex; flex-wrap: wrap; gap: .8rem 1.8rem;
  padding: .9rem 0; border-block: 1px solid rgb(201 164 92 / .18);
}
/* 4 prices (brunch: 2 slots × 2/3 courses) → 2×2, one slot per row */
.offer__prices:has(> div:nth-child(4)) { display: grid; grid-template-columns: 1fr 1fr; }
.offer__prices dt {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-dim);
}
.offer__prices dd { font-family: var(--serif); font-size: 1.75rem; line-height: 1.15; color: var(--gold); }
.offer__days { font-size: .9rem; color: var(--ivory); }
.offer__note { font-size: .85rem; font-style: italic; color: var(--ivory-dim); }
/* pinned to the card bottom so buttons line up across a row */
.offer__cta { margin-top: auto; align-self: flex-start; padding: .85rem 1.6rem; }
/* an odd card out fills its row instead of leaving a gap beside it */
.offer:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .offers__grid { grid-template-columns: 1fr; }
  /* after the base rules above so they win; keeps brunch labels ("12–3pm · 2 courses") on one line at 375px */
  .offer { padding: 1.7rem 1.25rem; }
  .offer__prices dt { letter-spacing: .08em; }
}

/* full-menu tab badge (e.g. "Brunch" on Lunch) */
.menu-modal__badge {
  display: inline-block; margin-left: .35rem; padding: .1rem .4rem;
  font-size: .6rem; letter-spacing: .1em; vertical-align: .15em;
  color: var(--ink); background: var(--gold); border-radius: 2px;
}

/* top announcement bar — sits above the fixed nav, which moves down by
   the bar's measured height (--bar-h, set in js/main.js) */
.offer-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 51;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  min-height: 2.75rem; padding: .45rem 3.2rem .45rem 1rem;
  background: var(--gold); color: var(--ink);
  font-size: .85rem; font-weight: 400; text-align: center; line-height: 1.4;
}
.offer-bar[hidden] { display: none; }
.offer-bar__text { text-wrap: balance; }
@media (max-width: 640px) { .offer-bar { font-size: .78rem; padding-block: .35rem; } }
.offer-bar__link { color: inherit; font-weight: 500; text-underline-offset: 3px; }
.offer-bar__close {
  position: absolute; right: .3rem; top: 50%; translate: 0 -50%;
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  font-size: 1.5rem; line-height: 1; color: inherit;
}
.offer-bar__close:focus-visible { outline-color: var(--ink); }
.has-offer-bar .nav { top: var(--bar-h, 2.75rem); }
/* keeps the hero's first line clear of the taller bar + nav stack */
.has-offer-bar .hero__content { padding-top: calc(var(--nav-h) + var(--bar-h, 2.75rem) + 1.5rem); }
.has-offer-bar { scroll-padding-top: calc(var(--nav-h) + var(--bar-h, 2.75rem) + 1rem); }

/* ---------- 6 · Menu bento ---------- */

.menu { background: var(--ink); }
/* Digital Menu entry point under the Menu Highlights intro */
.menu__digital { margin-top: 2rem; }
.menu__digital-note {
  margin-bottom: .9rem; font-size: .78rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold);
}
.bento {
  max-width: var(--container); margin-inline: auto; padding: 0 1.5rem;
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 17rem;
}
/* all tiles span 2 rows — Meze/Desserts used to be 1 row (from when
   Desserts was a short typographic-only tile), but now every tile has a
   photo + heading + note + a hover-revealed dish list, so all need the
   same room or the shorter ones' dish list clips invisibly on hover
   (real bug: CSS state was correctly expanded, just clipped from view) */
.tile--large    { grid-column: span 7; grid-row: span 2; }
.tile--tall     { grid-column: span 5; grid-row: span 2; }
.tile--standard { grid-column: span 7; grid-row: span 2; }
.tile--compact  { grid-column: span 5; grid-row: span 2; }
/* full-width row on its own (3 tiles: Desserts fills row 2 alone). 2 rows
   like the others: at 1 row (~4:1) a photo can't fit a whole dish in frame. */
.tile--full     { grid-column: span 12; grid-row: span 2; }
/* image-less fallback (`image: null` in config): .tile__body is built to
   sit bottom-anchored over a photo, so at 2 rows tall with no photo there
   is a large bare gap above the heading. 1 row still fits heading + note
   + the hover-revealed dish list. */
@media (min-width: 861px) {
  .tile--full:not(:has(.tile__img)) { grid-row: span 1; }
}

@media (max-width: 860px) {
  .bento { grid-auto-rows: 15rem; }
  /* every tile gets 2 rows on mobile — dish lists are always visible on
     touch (no hover), so all tiles need the same extra height or their
     text overflows into the tile above (found while testing Meze &
     Starters, which previously got only 1 row here) */
  .tile--large, .tile--tall, .tile--standard, .tile--compact, .tile--full {
    grid-column: 1 / -1; grid-row: span 2;
  }
}

.tile {
  position: relative; overflow: clip; display: block;
  text-decoration: none; color: var(--ivory);
  background: var(--ink-2);
  border: 1px solid rgb(201 164 92 / .16);
  transition: translate .45s var(--ease-out),
              border-color .45s var(--ease-out),
              box-shadow .45s var(--ease-out);
}
.tile:hover, .tile:focus-visible {
  translate: 0 -4px;
  border-color: rgb(201 164 92 / .75);
  box-shadow: 0 0 0 1px rgb(201 164 92 / .4), 0 18px 44px -18px rgb(201 164 92 / .28);
}
.tile__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 1.1s var(--ease-out);
}
.tile:hover .tile__img, .tile:focus-visible .tile__img { transform: scale(1.05); }
.tile__shade {
  position: absolute; inset: 0;
  /* soft whole-image vignette for atmosphere when collapsed — the actual
     text-legibility guarantee lives on .tile__body itself below, since a
     gradient sized to the outer tile reads correctly on a tall tile
     (Charcoal Grill) but not on a shorter one (Desserts), where the same
     content sits proportionally higher up and falls outside the darkened
     zone. Keeping this shade AND the body's own scrim layers nicely. */
  background: linear-gradient(180deg, rgb(14 13 11 / 0) 55%, rgb(14 13 11 / .55) 100%);
}
.tile__body {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem 1.7rem;
  /* dark scrim sized to the BODY's own box, not the outer tile — as the
     dish list expands and the body grows taller, this gradient (0% = top
     of body) grows with it, so heading/note/prices always sit over a
     comfortably dark zone regardless of tile height or hover state */
  background: linear-gradient(180deg, rgb(14 13 11 / 0) 0%, rgb(14 13 11 / .82) 20%, rgb(14 13 11 / .9) 100%);
  /* belt-and-braces legibility guarantee regardless of gradient/photo —
     text-shadow is inherited by every child (heading, note, dish rows) */
  text-shadow: 0 1px 3px rgb(0 0 0 / .85), 0 2px 10px rgb(0 0 0 / .5);
}
.tile__cat {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.1;
}
.tile__note {
  margin-top: .25rem; font-size: .78rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
}
/* .tile__body is normally bottom-anchored (position: absolute, inset:
   auto 0 0 0) because it sits over a photo that fills the rest of the
   tile — with no photo behind it that left a large bare gap above the
   heading. Center the body vertically instead, only when image-less. */
.tile--full:not(:has(.tile__img)) .tile__body { inset: 0; display: flex; flex-direction: column; justify-content: center; }
/* the cake sits in the top of this crop, clear of the text at the bottom */
.tile--full .tile__img { object-position: 50% 0; }

/* dish list slides up on hover (always visible where hover is absent) */
.tile__dishes {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .55s var(--ease-out), opacity .45s var(--ease-out), margin-top .55s var(--ease-out);
  margin-top: 0;
}
.tile:hover .tile__dishes, .tile:focus-visible .tile__dishes {
  grid-template-rows: 1fr; opacity: 1; margin-top: .9rem;
}
@media (hover: none) {
  .tile__dishes { grid-template-rows: 1fr; opacity: 1; margin-top: .9rem; }
}
.tile__dishes > ul { overflow: hidden; }
.tile__dishes li {
  display: flex; align-items: baseline; gap: .8rem;
  font-size: .95rem; font-weight: 300; padding-block: .28rem;
}
.tile__dishes .dots {
  flex: 1; border-bottom: 1px dotted rgb(201 164 92 / .4);
  translate: 0 -.25em;
}
.tile__dishes .price { color: var(--gold); font-weight: 400; white-space: nowrap; }
/* a dish with no listed price ("Ask Server") — same row structure,
   quieter styling */
.tile__dishes .price--note {
  font-size: .74rem; font-weight: 400; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ivory-dim);
}

.menu__links {
  text-align: center; padding: 2.8rem 1.5rem 2rem;
  font-size: .84rem; letter-spacing: .12em; color: var(--ivory-dim);
  display: flex; align-items: baseline; justify-content: center;
  column-gap: 1.8rem; flex-wrap: wrap;
}
.menu__links a {
  color: var(--gold); text-decoration: none; text-transform: uppercase;
  letter-spacing: .2em; font-size: .78rem;
  background: linear-gradient(90deg, var(--gold), var(--gold)) no-repeat left bottom / 100% 1px;
  padding-bottom: .3rem; transition: color .3s;
}
.menu__links a:hover { color: var(--ivory); }
@media (max-width: 640px) {
  /* 4 links + label no longer read cleanly as one wrapped row at 375px —
     deliberate 2×2 grid instead: label on its own line, equal columns,
     consistent gaps (no organic wrap) */
  .menu__links {
    display: grid; grid-template-columns: repeat(2, 1fr);
    justify-items: center; row-gap: 1.15rem;
  }
  .menu__links-label { grid-column: 1 / -1; margin-bottom: .15rem; }
  /* seasonal 5th link gets its own row so the 2×2 stays intact */
  .menu__links a[data-menu="festive"] { grid-column: 1 / -1; }
}

/* allergy line — deliberately prominent (boxed, full ivory, not the dim
   footnote style) */
.menu__allergy {
  width: calc(100% - 2.5rem); max-width: 44rem;
  margin: 0 auto 2.2rem;
  padding: 1rem 1.4rem; text-align: center;
  font-size: .92rem; line-height: 1.55; color: var(--ivory);
  border: 1px solid rgb(201 164 92 / .45); border-left-width: 3px;
  background: rgb(201 164 92 / .06);
}
/* "All our food is halal" — the closing line of the menu section */
.menu__halal {
  text-align: center; padding: 0 1.5rem calc(var(--space) * .8);
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2rem); color: var(--gold);
}

/* ---------- 6b · Full menu modal (replaces opening raw PDFs) ---------- */

.menu-modal {
  border: 0; padding: 0; background: transparent; color: var(--ivory);
  max-width: 46rem; width: min(92vw, 46rem);
  max-height: 86svh; height: 86svh;
  margin: auto; /* center via UA dialog centering */
}
.menu-modal::backdrop {
  background: rgb(6 5 4 / .78);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.menu-modal[open] { display: flex; animation: menu-modal-in .35s var(--ease-out); }
@keyframes menu-modal-in {
  from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; }
}

.menu-modal__inner {
  display: flex; flex-direction: column; width: 100%; min-height: 0;
  background: var(--ink-2); border: 1px solid rgb(201 164 92 / .3);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / .6);
}

.menu-modal__close {
  position: absolute; top: .6rem; right: .7rem; z-index: 2;
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  background: rgb(14 13 11 / .5); border: 1px solid rgb(201 164 92 / .3);
  color: var(--ivory); font-size: 1.6rem; line-height: 1; cursor: pointer;
  transition: color .3s, border-color .3s, background .3s;
}
/* invisible hit-area extension: the visual button is 2.4rem (~38px),
   under the 44px minimum touch target — the pseudo-element widens the
   tappable box to ~46px per side without changing how it looks */
.menu-modal__close::after { content: ""; position: absolute; inset: -4px; }
.menu-modal__close:hover, .menu-modal__close:focus-visible {
  color: var(--gold); border-color: var(--gold); background: rgb(14 13 11 / .8);
}

.menu-modal__tabs {
  display: flex; flex: none; border-bottom: 1px solid rgb(201 164 92 / .2);
  /* clears the absolutely-positioned close button: .7rem right offset +
     2.4rem button width + its 4px ::after hit-area extension */
  padding-right: 3.5rem;
}
.menu-modal__tabs button {
  flex: 1; padding: 1.1rem .3rem; background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: .78rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ivory-dim);
  border-bottom: 2px solid transparent;
  transition: color .3s, border-color .3s;
}
.menu-modal__tabs button[aria-selected="true"] { color: var(--gold); border-color: var(--gold); }
.menu-modal__tabs button:hover { color: var(--ivory); }
@media (max-width: 640px) {
  /* 4 tabs + badges don't share one row at 320–640px: fixed 2×2 grid, so
     nothing scrolls and no label is shrunk */
  .menu-modal__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* seasonal 5th tab spans the top row so the 2×2 stays intact */
  .menu-modal__tabs button[data-menu="festive"] { grid-column: 1 / -1; }
  .menu-modal__tabs button {
    min-height: 2.75rem; padding: .7rem .15rem; white-space: nowrap; letter-spacing: .06em;
  }
  .menu-modal__badge { margin-left: .2rem; padding-inline: .3rem; letter-spacing: .04em; }
}
@media (max-width: 359px) {
  /* "À La Carte" + badge is wider than half a 320px phone: badge drops below */
  .menu-modal__badge { display: block; width: fit-content; margin: .2rem auto 0; }
}

/* dietary key — one quiet line pinned under the tab bar, present on
   every tab; the boxed letters echo .menu-modal__tags so the key reads
   as "this is what those little badges mean" */
.menu-modal__legend {
  flex: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: .5rem 1.6rem;
  padding: .55rem 1rem; margin: 0;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ivory-dim);
  border-bottom: 1px solid rgb(201 164 92 / .12);
}
@media (max-width: 640px) {
  /* 4 dietary badges don't fit one line at 375px — wrap onto two
     centered rows instead of overflowing or shrinking illegibly. */
  .menu-modal__legend { gap: .4rem 1rem; }
}
.menu-modal__legend strong {
  font-size: .62rem; font-weight: 500; letter-spacing: .06em;
  color: var(--gold); border: 1px solid rgb(201 164 92 / .4);
  padding: .1rem .35rem; margin-right: .45rem;
}

.menu-modal__body {
  overflow-y: auto; padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
  overscroll-behavior: contain; /* don't chain scroll to the page behind */
}
/* focusable for keyboard scrolling: ring drawn inside the scroll box */
.menu-modal__body:focus-visible { outline-offset: -3px; }

.menu-modal__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.1;
}
.menu-modal__subtitle {
  margin-top: .5rem; font-size: .82rem; letter-spacing: .05em;
  color: var(--gold);
}

.menu-modal__section { margin-top: 2.2rem; }
.menu-modal__section:first-of-type { margin-top: 1.8rem; }
.menu-modal__section-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: .8rem;
  font-size: .78rem; font-weight: 500; letter-spacing: .24em;
  text-transform: uppercase; color: var(--gold);
  padding-bottom: .6rem; border-bottom: 1px solid rgb(201 164 92 / .2);
}
.menu-modal__course-label {
  font-size: .68rem; font-weight: 400; letter-spacing: .04em;
  text-transform: none; color: var(--ivory-dim); white-space: nowrap;
}
.menu-modal__section-note {
  margin-top: .5rem; font-size: .82rem; color: var(--ivory-dim);
}

.menu-modal__list li { padding: .85rem 0; border-bottom: 1px solid rgb(243 234 217 / .08); }
.menu-modal__list li:last-child { border-bottom: 0; }
.menu-modal__row { display: flex; align-items: baseline; gap: .8rem; }
.menu-modal__name { font-size: 1rem; }
.menu-modal__tags {
  font-size: .62rem; font-weight: 500; letter-spacing: .06em;
  color: var(--gold); border: 1px solid rgb(201 164 92 / .4);
  padding: .1rem .35rem; margin-left: .4rem; vertical-align: middle;
  white-space: nowrap;
}
.menu-modal__row .dots {
  flex: 1; border-bottom: 1px dotted rgb(201 164 92 / .35); translate: 0 -.25em;
}
.menu-modal__price { color: var(--gold); font-weight: 400; white-space: nowrap; }
.menu-modal__desc { margin-top: .3rem; font-size: .86rem; color: var(--ivory-dim); }

.menu-modal__footnote {
  margin-top: 2rem; font-size: .86rem; font-style: italic; color: var(--gold);
}
.menu-modal__allergy {
  margin-top: 1.2rem; padding: .9rem 1.1rem;
  font-size: .88rem; line-height: 1.55; color: var(--ivory);
  border: 1px solid rgb(201 164 92 / .45); border-left-width: 3px;
  background: rgb(201 164 92 / .06);
}

@media (max-width: 640px) {
  .menu-modal { width: 100vw; max-width: 100vw; height: 100svh; max-height: 100svh; }
  .menu-modal__inner { border: 0; }
}

/* ---------- 6c · Gallery ---------- */

.gallery { background: var(--ink); padding-bottom: calc(var(--space) * .8); }
.gallery__slideshow { max-width: var(--container); margin-inline: auto; padding: 0 1.5rem; }
/* height reserved up front (16:9, same as every photo) so CLS stays 0 */
.gallery__stage {
  position: relative; aspect-ratio: 16 / 9; overflow: clip; touch-action: pan-y;
  background: var(--ink-2); border: 1px solid rgb(201 164 92 / .16);
}
.gallery__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .8s var(--ease-out), visibility 0s .8s;
}
.gallery__slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.gallery__slide figure { margin: 0; height: 100%; }
.gallery__img { width: 100%; height: 100%; object-fit: cover; }
/* a small dark label, not a gradient over the photo: keeps the ivory
   text readable on the lightest (grey-table) photos */
.gallery__caption {
  position: absolute; left: clamp(.6rem, 2vw, 1.1rem); bottom: clamp(.6rem, 2vw, 1.1rem);
  padding: .3rem .85rem .35rem; border-left: 2px solid var(--gold);
  font-family: var(--serif); font-size: clamp(1.05rem, 2.4vw, 1.5rem); line-height: 1.3; color: var(--ivory);
  background: rgb(14 13 11 / .8);
}
.gallery__controls {
  display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: 1rem;
}
.gallery__btn {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  background: transparent; color: var(--gold); cursor: pointer;
  border: 1px solid rgb(201 164 92 / .45);
  transition: background .3s, color .3s;
}
.gallery__btn:hover { background: var(--gold); color: var(--ink); }
.gallery__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gallery__btn svg {
  width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.gallery__icon-play, .gallery__btn--pause.is-paused .gallery__icon-pause { display: none; }
.gallery__btn--pause.is-paused .gallery__icon-play { display: block; }
.gallery__status {
  min-width: 4rem; text-align: center; font-size: .8rem; letter-spacing: .14em;
  color: var(--ivory-dim); font-variant-numeric: tabular-nums;
}

/* ---------- 7 · Reviews ---------- */

.reviews {
  background:
    linear-gradient(180deg, rgb(22 20 17 / .92), rgb(22 20 17 / .92)),
    url("../assets/texture-dark-1600.webp") center / cover fixed;
}
@media (max-width: 860px) {
  .reviews { background-attachment: scroll; } /* fixed bg janky on touch */
}

.reviews__carousel {
  position: relative; max-width: 46rem; margin-inline: auto;
  padding: 0 1.5rem; min-height: 21rem;
  display: grid; touch-action: pan-y;
}
.review {
  grid-area: 1 / 1; text-align: center; align-self: center;
  opacity: 0; translate: 0 14px; visibility: hidden;
  transition: opacity .9s var(--ease-out), translate .9s var(--ease-out), visibility 0s .9s;
}
.review.is-active { opacity: 1; translate: 0 0; visibility: visible; transition-delay: .15s, .15s, 0s; }
.review__stars { color: var(--gold); font-size: 1.05rem; letter-spacing: .55em; padding-left: .55em; }
.review__text {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(1.25rem, 2.8vw, 1.7rem); line-height: 1.4;
  margin-top: 1.4rem; text-wrap: pretty; border: 0; padding: 0;
}

.reviews__dots {
  display: flex; justify-content: center; gap: .7rem;
  padding: 2.2rem 0 calc(var(--space) * .8);
}
.reviews__dots button {
  width: 2.2rem; height: 2px; border: 0; cursor: pointer; padding: 0;
  background: rgb(201 164 92 / .25); transition: background .4s;
}
.reviews__dots button[aria-selected="true"] { background: var(--gold); }

/* ---------- 7b · Good to know (FAQ) ---------- */

.faq { background: var(--ink); }
.faq__list {
  max-width: 46rem; margin-inline: auto;
  padding: 0 1.5rem calc(var(--space) * .8);
}
.faq__item { border-bottom: 1px solid rgb(201 164 92 / .2); }
.faq__item:first-child { border-top: 1px solid rgb(201 164 92 / .2); }
.faq__q {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 44px; padding: 1.1rem 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.5rem);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+"; flex: none; font-family: var(--sans); font-size: 1.3rem;
  color: var(--gold); transition: rotate .3s var(--ease-out);
}
.faq__item[open] .faq__q::after { rotate: 45deg; }
.faq__q:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.faq__a { padding: 0 0 1.3rem; color: var(--ivory-dim); line-height: 1.65; }

/* ---------- 8 · Visit ---------- */

.visit { background: var(--ink); }
.visit__grid {
  max-width: var(--container); margin-inline: auto;
  padding: 0 1.5rem calc(var(--space) * .9);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem;
  align-items: center;
}
@media (max-width: 860px) {
  .visit__grid { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  /* tightened so "Book a Table" is reachable without excessive scrolling
     on a 375px phone — scoped to this section only, nothing else changes */
  .visit .section-head { padding: 1.75rem 1.5rem 1.25rem; }
  .visit .gold-rule { margin-top: 1rem; }
  /* explicit width: otherwise the base 4:3 ratio turns this height into a
     300px width, narrower than the column and 4px too wide at 320px */
  .visit__map { width: 100%; aspect-ratio: auto; height: 225px; }
  .visit__address { font-size: 1.05rem; line-height: 1.3; }
  .visit__hours { margin-top: .6rem; }
  .visit__contact li { padding-block: .1rem; }
  .visit__book { margin-top: .75rem; }
}

.visit__map {
  position: relative; aspect-ratio: 4 / 3; overflow: clip;
  background: var(--ink-2);
  border: 1px solid rgb(201 164 92 / .16); /* same as .tile's default border */
}
/* always-present dark/gold placeholder — the live map (iframe, lazy JS)
   layers on top of this. If the embed is blocked (ad blockers commonly
   block Google Maps) or JS fails, this stays visible instead of leaving
   an empty dark box with nothing in it. */
.visit__map-fallback {
  position: absolute; inset: 0; z-index: 0;
  display: grid; justify-items: center; align-content: center; gap: .9rem;
  padding: 2rem; text-align: center;
  background: radial-gradient(120% 120% at 50% 0%, rgb(201 164 92 / .08), transparent 60%), var(--ink-2);
}
.visit__map-pin { width: 2.2rem; height: 2.2rem; fill: var(--gold); opacity: .85; }
.visit__map-fallback-text { font-family: var(--serif); font-size: 1.2rem; color: var(--ivory-dim); }
.visit__map-fallback-link {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--gold);
  background: linear-gradient(90deg, var(--gold), var(--gold)) no-repeat left bottom / 0% 1px;
  padding-bottom: .3rem; transition: background-size .4s var(--ease-out), color .3s;
}
.visit__map-fallback-link:hover { color: var(--ivory); background-size: 100% 1px; }

.visit__map iframe {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; border: 0; display: block;
  /* Google's normal map colours (no filter); the gold border and dark
     section tie it into the theme */
}

.visit__info { text-align: left; }
.visit__address {
  font-family: var(--serif); font-style: normal; font-size: 1.55rem; line-height: 1.4;
}
.visit__address strong { color: var(--gold); font-weight: 500; }
.visit__hours {
  margin-top: 1.2rem; font-size: .82rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--ivory-dim);
}
.visit__contact { margin-top: 1.4rem; }
.visit__contact li { padding-block: .3rem; }
.visit__contact-link {
  display: inline-flex; align-items: center; gap: .65rem; min-height: 44px;
  text-decoration: none; color: var(--ivory);
  background: linear-gradient(90deg, var(--gold), var(--gold)) no-repeat left bottom / 0% 1px;
  transition: background-size .4s var(--ease-out), color .3s;
}
.visit__contact-link:hover, .visit__contact-link:focus-visible { color: var(--gold); background-size: 100% 1px; }
.visit__contact-icon { width: 1.1rem; height: 1.1rem; flex: none; color: var(--gold); }

/* Icon-only trust/social badges (Instagram, Google Reviews, TripAdvisor)
   — 44×44px circular tap targets regardless of the icon glyph's smaller
   visual size, per mobile tap-target guidance. */
.visit__badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.visit__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgb(201 164 92 / .3);
  transition: border-color .3s, background .3s, transform .3s;
}
.visit__badge:hover, .visit__badge:focus-visible {
  border-color: var(--gold); background: rgb(201 164 92 / .12); transform: scale(1.08);
}
.visit__badge-icon { width: 1.15rem; height: 1.15rem; color: var(--gold); }
.visit__book { margin-top: 2.2rem; }

/* ---------- 9 · Footer ---------- */

.footer {
  text-align: center; padding: calc(var(--space) * .7) 1.5rem 3rem;
  background: var(--ink-2); border-top: 1px solid rgb(201 164 92 / .16);
}
.footer__logo { width: clamp(6.5rem, 14vw, 8.5rem); height: auto; margin-inline: auto; opacity: .9; }
.footer__hours {
  margin-top: 1.3rem; font-size: .78rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--ivory-dim);
}
.footer__halal {
  margin-top: .7rem; font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; color: var(--gold);
}
.footer__social { display: flex; justify-content: center; gap: 2rem; margin-top: 1rem; }
.footer__social a {
  font-size: .85rem; text-decoration: none; color: var(--ivory);
  transition: color .3s;
}
.footer__social a:hover { color: var(--gold); }
.footer .gold-rule { margin-top: 2rem; }
.footer__legal { margin-top: 1.6rem; font-size: .78rem; color: var(--ivory-dim); }
.footer__credit {
  /* .65 (not lower) keeps ivory-dim ≥4.5:1 on the footer background at
     this small font size — .55 measured 4.02:1, a WCAG AA failure */
  display: block; margin-top: .5rem; opacity: .65;
  color: inherit; text-decoration: none; transition: color .3s, opacity .3s;
}
.footer__credit:hover, .footer__credit:focus-visible { color: var(--gold); opacity: .9; }
.footer__credit[hidden] { display: none; }

/* ---------- 10 · Mobile action bar ---------- */

.actionbar {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  display: none; grid-template-columns: 1fr 1.4fr;
  background: rgb(14 13 11 / .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgb(201 164 92 / .3);
  padding-bottom: env(safe-area-inset-bottom);
  translate: 0 105%;
  transition: translate .45s var(--ease-out);
}
.actionbar.is-visible { translate: 0 0; }
.actionbar a {
  padding: 1.05rem; text-align: center; text-decoration: none;
  font-size: .82rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
}
.actionbar__call { color: var(--ivory); }
.actionbar__book { background: var(--gold); color: var(--ink); }

@media (max-width: 860px) {
  .actionbar { display: grid; }
  /* .actionbar grows taller on notched/home-indicator phones via its own
     padding-bottom: env(safe-area-inset-bottom) — matching that here
     keeps this a constant 3.4rem buffer above the bar on every device,
     instead of a static value that only accounted for a zero-safe-area
     screen and shrank on real iPhones. */
  body { padding-bottom: calc(3.4rem + env(safe-area-inset-bottom)); }
}

/* ---------- 11 · Scroll-driven reveals ----------
   Base: IntersectionObserver adds .is-visible (works everywhere).
   Enhanced: native CSS scroll-driven animation takes over when supported. */

.reveal {
  opacity: 0; translate: 0 26px;
  transition: opacity .9s var(--ease-out), translate .9s var(--ease-out);
}
.reveal.is-visible { opacity: 1; translate: 0 0; }

/* bento tiles cascade with a per-tile delay */
.bento .tile { transition-delay: calc(var(--i, 0) * 90ms); }

@supports (animation-timeline: view()) {
  .reveal, .reveal.is-visible {
    opacity: 1; translate: none; transition: none;
    animation: scroll-reveal linear both;
    animation-timeline: view();
    animation-range: entry 5% entry 45%;
  }
  @keyframes scroll-reveal {
    from { opacity: 0; translate: 0 30px; }
    to   { opacity: 1; translate: 0 0; }
  }
  /* gold rules draw themselves as they enter */
  .gold-rule {
    animation: rule-draw linear both;
    animation-timeline: view();
    animation-range: entry 10% entry 60%;
  }
  @keyframes rule-draw {
    from { scale: 0 1; } to { scale: 1 1; }
  }
  /* subtle parallax drift on section kickers */
  .section-head__kicker {
    animation: kicker-drift linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 60%;
  }
  @keyframes kicker-drift {
    from { translate: 0 18px; opacity: 0; }
    30%  { opacity: 1; }
    to   { translate: 0 0; opacity: 1; }
  }
}

/* ---------- 12 · Reduced motion — everything falls back to simple fades */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .2s !important;
  }
  .hero--kenburns .hero__img { animation: none; transform: none; }
  .hero__headline .word > span { translate: 0 0; rotate: 0deg; animation: none; }
  .hero__kicker, .hero__sub, .hero__ctas, .hero__scrollcue { animation: none; opacity: 1; }
  .hero__scrollcue span { animation: none; }
  .reveal { opacity: 1; translate: 0 0; }
  @supports (animation-timeline: view()) {
    .reveal, .gold-rule, .section-head__kicker { animation: none; }
  }
  .mobile-menu { transition: none; }
}
