/* ==========================================================================
   Mashawi Alamal — css/site.css (B1 foundation sheet, loaded on every page)
   --------------------------------------------------------------------------
   CONTRACT: every page (menu, catering, watch, afandina has its own) codes
   against the class names defined here. Sections are labeled [CONTRACT].
   Tokens per DESIGN-SPEC §1 — locked. No raw hex outside :root (rgba values
   in the hero scrim are the exact values prescribed by DESIGN-SPEC §4.1).
   Mobile-first: base = mobile, desktop arrives via min-width media queries.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens [CONTRACT — locked, DESIGN-SPEC §1]
   -------------------------------------------------------------------------- */
:root {
  /* dark base */
  --bg:        #16130F;  /* charcoal */
  --bg-raise:  #1E1A15;  /* raised panels/cards */
  --bg-deep:   #0F0D0A;  /* hero/footer depth */
  --ink:       #F1E9DD;  /* warm white text on dark */
  --ink-dim:   #B8AA97;  /* muted text on dark — AA on --bg for ≥16px only */
  /* ember + brass */
  --ember:     #E8590C;  /* primary accent — flames */
  --ember-hi:  #F08C00;  /* hover/gradient partner */
  --brass:     #C9A227;  /* secondary accent — used sparingly (Afandina link, dividers) */
  /* market (the ONE light section) */
  --cream:     #F4EDDE;  /* butcher-paper */
  --cream-ink: #26211B;  /* text on cream */
  --cream-dim: #6B6053;  /* muted on cream */
  /* function */
  --line:      #332C23;  /* hairlines on dark */
  --ok:        #2F9E44;
  /* type */
  --font-display: "Fraunces", Georgia, serif;      /* Latin display, use font-variation opsz */
  --font-body:    "Inter", system-ui, sans-serif;
  --font-ar:      "Cairo", "Tajawal", "Geeza Pro", sans-serif; /* Arabic text — readable naskh-style; kufi failed owner review */
  --radius: 14px;
  --shadow-card: 0 10px 30px rgba(0,0,0,.35);

  /* studio additions (kept tokenized so no raw hex appears outside :root) */
  --paper: #FFFFFF;          /* button text on --ember, per DESIGN-SPEC §1 contrast note */
  --header-h: 68px;          /* header height, used for offsets */
  --bp-bar: 720px;           /* mobile sticky bar / hero video breakpoint */
  --bp-nav: 880px;           /* desktop nav breakpoint */
}

/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

html:focus-within { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.65 var(--font-body);
  /* room for the mobile sticky order bar (removed once the bar hides) */
  padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  min-height: 100vh;
  min-height: 100svh;
}

img, video { display: block; max-width: 100%; height: auto; }
img { border-radius: var(--radius); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p, ul, ol, figure, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
figure { margin: 0; }

a { color: var(--ember-hi); text-decoration: none; }
a:hover { color: var(--ink); }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: color-mix(in srgb, var(--ember) 32%, transparent); color: var(--ink); }

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

/* in-page anchors clear the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* honeypot — never visible to humans [CONTRACT: forms.js relies on name="company"] */
.capture-form input[name="company"],
.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. Layout [CONTRACT]
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}
.container--narrow { max-width: 860px; }

.section {
  position: relative;
  padding-block: clamp(64px, 11vw, 116px);
  background: var(--bg);
  color: var(--ink);
}
.section--dark { background: var(--bg); color: var(--ink); }        /* explicit dark (default) */
.section--rule { border-top: 1px solid var(--line); }               /* hairline between dark sections */
.section--market {                                                 /* THE light section */
  background: var(--cream);
  color: var(--cream-ink);
}

/* subtle butcher-paper grain on the cream section (pure CSS/SVG, no assets) */
.section--market::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  border-radius: inherit;
}

/* section header rhythm */
.section-head { display: grid; gap: 14px; max-width: 700px; margin-bottom: clamp(36px, 6vw, 56px); }
.section-head--center { margin-inline: auto; justify-items: center; text-align: center; }

/* --------------------------------------------------------------------------
   4. Typography helpers [CONTRACT]
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 0.78rem/1.5 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember-hi);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--ember); flex: none; }
.section-head--center .eyebrow::before { display: none; }

.section-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 90;
  font-weight: 560;
  font-size: clamp(1.95rem, 4.6vw + 0.6rem, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

/* Arabic accent — always real text; element carries lang="ar" dir="rtl" [CONTRACT] */
.ar {
  font-family: var(--font-ar);
  font-weight: 600;
  unicode-bidi: isolate;
}
.section-title .ar {
  display: block;
  margin-top: 12px;
  font-size: 0.62em;
  line-height: 1.75;
  letter-spacing: 0;
  color: var(--brass);
  text-align: left; /* align with the LTR composition; dir="rtl" still governs the text itself */
}
.section-head--center .section-title .ar { text-align: center; }
.section-title .ar--inline { display: inline; margin-top: 0; }

.lead {
  font-size: clamp(1.05rem, 1.4vw + 0.7rem, 1.2rem);
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 62ch;
}

.fine-print {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-dim);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 0.95rem/1.3 var(--font-body);
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s;
}
.text-link::after { content: "→"; transition: transform 0.2s; }
.text-link:hover { color: var(--ember-hi); border-color: var(--ember); }
.text-link:hover::after { transform: translateX(3px); }

/* market (cream) recolors */
.section--market .eyebrow { color: var(--cream-dim); }
.section--market .eyebrow::before { background: var(--brass); }
.section--market .section-title { color: var(--cream-ink); }
.section--market .section-title .ar { color: var(--cream-dim); }
.section--market .lead { color: var(--cream-dim); }
.section--market .fine-print { color: var(--cream-dim); }
.section--market a { color: var(--cream-ink); }
.section--market .text-link { color: var(--cream-ink); border-color: color-mix(in srgb, var(--cream-ink) 25%, transparent); }
.section--market .text-link:hover { color: var(--ember); border-color: var(--ember); }
.section--market :focus-visible { outline-color: var(--ember); }

/* --------------------------------------------------------------------------
   5. Buttons, badges, cards [CONTRACT]
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 0.95rem/1 var(--font-body);
  padding: 14px 22px;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }

.btn--ember { background: var(--ember); color: var(--paper); }
.btn--ember:hover { background: var(--ember-hi); color: var(--paper); }

.btn--ghost {
  background: color-mix(in srgb, var(--bg) 45%, transparent);
  border-color: color-mix(in srgb, var(--ink) 30%, transparent);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: color-mix(in srgb, var(--bg) 70%, transparent); }

.btn--brass { border-color: var(--brass); color: var(--brass); }
.btn--brass:hover { background: var(--brass); color: var(--bg-deep); }

/* ghost on cream needs dark ink */
.section--market .btn--ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--cream-ink) 35%, transparent);
  color: var(--cream-ink);
}
.section--market .btn--ghost:hover { border-color: var(--cream-ink); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 0.7rem/1.2 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid color-mix(in srgb, var(--brass) 45%, transparent);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.section--market .badge { color: var(--cream-dim); border-color: color-mix(in srgb, var(--cream-ink) 25%, transparent); }

.card {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(18px, 3vw, 26px);
}

/* --------------------------------------------------------------------------
   6. Header [CONTRACT]
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s;
}
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 96%, transparent); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.site-header__wordmark {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-right: auto;
  text-decoration: none;
  line-height: 1.1;
  padding-block: 10px;
}
.site-header__en {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 20;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
}
.site-header__ar { font-size: 0.78rem; color: var(--brass); }

.site-nav { display: none; }
.site-nav a {
  font: 500 0.92rem/1.2 var(--font-body);
  color: var(--ink-dim);
  padding: 8px 2px;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"],
.site-nav a[aria-current="true"] { color: var(--ember-hi); }

.header-ctas { display: none; gap: 10px; }
.header-ctas .btn { padding: 11px 18px; min-height: 42px; font-size: 0.9rem; }

/* CTA density (DESIGN-SPEC §10): while a hero carrying its own CTAs fills the
   viewport (js/site.js toggles body.hero-active via IntersectionObserver),
   the header pair hides — never more than 2 different actions in view. */
body.hero-active .header-ctas { display: none; }

/* hamburger [CONTRACT] */
.hamburger {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s;
}
.hamburger:hover { border-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.hamburger__bars { position: relative; width: 20px; height: 14px; }
.hamburger__bars span {
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.18s ease, top 0.22s ease;
}
.hamburger__bars span:nth-child(1) { top: 0; }
.hamburger__bars span:nth-child(2) { top: 6px; }
.hamburger__bars span:nth-child(3) { top: 12px; }
.hamburger[aria-expanded="true"] .hamburger__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__bars span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* full-screen mobile menu — plain, links reachable instantly [CONTRACT]
   Closed state MUST be untouchable: a fixed full-viewport element at
   opacity:0 alone still eats every tap below the header (wave-2 bug).
   visibility + pointer-events guard it; JS also carries `hidden`. */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow-y: auto;
  background: var(--bg-deep);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0s linear 0.18s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.18s ease;
}
.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-h) + 26px);
  padding-bottom: 48px;
}
.mobile-menu__link {
  font: 600 1.35rem/1.3 var(--font-body);
  color: var(--ink);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__link .ar { display: block; font-size: 0.85rem; color: var(--ink-dim); margin-top: 2px; text-align: left; }
.mobile-menu__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }

body.menu-open { overflow: hidden; }

/* desktop chrome */
@media (min-width: 721px) {
  .header-ctas { display: flex; }
}
@media (min-width: 880px) {
  .site-nav { display: flex; gap: 26px; }
  .hamburger { display: none; }
}

/* --------------------------------------------------------------------------
   7. Mobile sticky order bar [CONTRACT] — Call | Text, ≤720px only
   -------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: color-mix(in srgb, var(--bg-deep) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
}
.sticky-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-inline: 5px;
  border-radius: 999px;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
}
.sticky-cta__btn--call { border: 1px solid var(--line); color: var(--ink); }
.sticky-cta__btn--call:hover { border-color: var(--ink); }
.sticky-cta__btn--ember { background: var(--ember); color: var(--paper); }
.sticky-cta__btn--ember:hover { background: var(--ember-hi); }

body.menu-open .sticky-cta { opacity: 0; pointer-events: none; }

@media (min-width: 721px) {
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}

/* --------------------------------------------------------------------------
   8. Footer [CONTRACT]
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: clamp(56px, 9vw, 88px) 0 36px;
}
.site-footer__strap {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 40;
  font-weight: 560;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--ink);
}
.site-footer__strap .ar { color: var(--brass); font-size: 0.8em; margin-inline-start: 12px; }

.site-footer__fires { display: grid; gap: 10px; margin: 20px 0 40px; }
.site-footer__fires li {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 0.95rem;
}
.site-footer__fires strong { color: var(--ink); font-weight: 600; }
.site-footer__fires a { color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.site-footer__fires a:hover { color: var(--ember-hi); border-color: var(--ember); }

.site-footer__grid { display: grid; gap: 32px; margin-bottom: 40px; }
.site-footer__col h3 {
  font: 600 0.78rem/1.4 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 12px;
}
.site-footer__col p, .site-footer__col li { color: var(--ink-dim); font-size: 0.95rem; }
.site-footer__list { display: grid; gap: 6px; }
.site-footer__list--tight { gap: 4px; }
.site-footer__col a { color: var(--ink); }
.site-footer__col a:hover { color: var(--ember-hi); }
.site-footer__addr { font-style: normal; display: grid; gap: 6px; }

.site-footer__base {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: grid;
  gap: 8px;
}
.site-footer__legal { color: var(--ink-dim); font-size: 0.85rem; }

@media (min-width: 880px) {
  .site-footer__grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; }
}

/* --------------------------------------------------------------------------
   9. Menu rows [CONTRACT — Dishoom pattern: name — price — one sentence]
   -------------------------------------------------------------------------- */
.menu-rows { border-top: 1px solid var(--line); }
.menu-row { padding: 18px 0 16px; border-bottom: 1px solid var(--line); }
.menu-row__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
}
.menu-row__name { font: 600 1.05rem/1.35 var(--font-body); color: var(--ink); }
.menu-row__name .ar {
  color: var(--ink-dim);
  font-size: 0.92em;
  margin-inline-start: 8px;
}
.menu-row__name .badge { margin-inline-start: 8px; transform: translateY(-2px); }
.menu-row__price {
  font: 600 1.05rem/1.35 var(--font-body);
  font-variant-numeric: tabular-nums;
  color: var(--ember-hi);
  margin-left: auto;
}
.menu-row__desc { margin-top: 4px; font-size: 0.95rem; line-height: 1.55; color: var(--ink-dim); max-width: 58ch; }

.section--market .menu-rows,
.section--market .menu-row { border-color: color-mix(in srgb, var(--cream-ink) 16%, transparent); }
.section--market .menu-row__name { color: var(--cream-ink); }
.section--market .menu-row__name .ar { color: var(--cream-dim); }
.section--market .menu-row__price { color: var(--cream-ink); }
.section--market .menu-row__desc { color: var(--cream-dim); }

/* --------------------------------------------------------------------------
   10. Split hours / wayfinding / capture form [CONTRACT]
   -------------------------------------------------------------------------- */
.split-hours { display: grid; gap: 14px; }
.split-hours__block {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.split-hours__title {
  font: 600 0.78rem/1.4 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember-hi);
  margin-bottom: 8px;
}
.split-hours__rows { display: grid; gap: 2px; font-size: 1rem; color: var(--ink); }
.split-hours__rows span { color: var(--ink-dim); font-size: 0.95rem; }

.section--market .split-hours__block {
  background: color-mix(in srgb, var(--cream-ink) 4%, var(--cream));
  border-color: color-mix(in srgb, var(--cream-ink) 18%, transparent);
}
.section--market .split-hours__title { color: var(--cream-dim); }
.section--market .split-hours__rows { color: var(--cream-ink); }
.section--market .split-hours__rows span { color: var(--cream-dim); }

@media (min-width: 720px) {
  .split-hours { grid-template-columns: 1fr 1fr; gap: 16px; }
}

.wayfinding-step { display: flex; align-items: flex-start; gap: 14px; }
.wayfinding-step + .wayfinding-step { margin-top: 18px; }
.wayfinding-step__num {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ember) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--ember) 42%, transparent);
  color: var(--ember-hi);
  font: 600 0.9rem/1 var(--font-body);
  font-variant-numeric: tabular-nums;
}
.wayfinding-step p { font-size: 0.98rem; color: var(--ink); padding-top: 5px; }
.wayfinding-step p span { display: block; color: var(--ink-dim); font-size: 0.9rem; }

.section--market .wayfinding-step__num {
  background: color-mix(in srgb, var(--cream-ink) 6%, transparent);
  border-color: color-mix(in srgb, var(--cream-ink) 30%, transparent);
  color: var(--cream-ink);
}
.section--market .wayfinding-step p { color: var(--cream-ink); }

.capture-form { display: grid; gap: 12px; max-width: 520px; }
.capture-form__label { font: 600 0.85rem/1.4 var(--font-body); letter-spacing: 0.04em; color: var(--ink-dim); }
.section--market .capture-form__label { color: var(--cream-dim); }

.capture-form__row { display: grid; gap: 10px; }
.capture-form__row .btn { width: 100%; }
.capture-form__status { min-height: 1.4em; font-size: 0.95rem; color: var(--ink-dim); }
.capture-form__status a { border-bottom: 1px solid currentColor; }
.capture-form__status.is-ok { color: var(--ok); }
.capture-form__status.is-err { color: var(--ember-hi); }

.field {
  width: 100%;
  font: 400 1rem/1.4 var(--font-body);
  color: var(--ink);
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field::placeholder { color: color-mix(in srgb, var(--ink-dim) 70%, transparent); }
.field:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ember) 22%, transparent);
}

.section--market .field {
  background: color-mix(in srgb, var(--cream-ink) 3%, var(--cream));
  color: var(--cream-ink);
  border-color: color-mix(in srgb, var(--cream-ink) 25%, transparent);
}
.section--market .field::placeholder { color: color-mix(in srgb, var(--cream-dim) 80%, transparent); }
.section--market .field:focus { border-color: var(--ember); }

@media (min-width: 600px) {
  .capture-form__row { grid-template-columns: 1fr auto; }
  .capture-form__row .btn { width: auto; }
}

/* --------------------------------------------------------------------------
   11. Hero (#top) — full-viewport video, poster-first
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 92vh;
  min-height: 92svh;
  background: var(--bg-deep);
  overflow: hidden;
}
.hero__video,
.hero__scrim { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__video { object-fit: cover; }
/* scrim: exact values prescribed by DESIGN-SPEC §4.1 */
.hero__scrim {
  background: linear-gradient(180deg,
    rgba(15,13,10,.55),
    rgba(15,13,10,.25) 45%,
    rgba(15,13,10,.78));
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 48px;
  padding-bottom: clamp(88px, 12vh, 128px);
  display: grid;
  gap: 18px;
  justify-items: start;
}
.hero__eyebrow { color: var(--ember-hi); }
.hero__title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144;
  font-weight: 600;
  font-size: clamp(2.4rem, 8.5vw + 0.4rem, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
.hero__title .ar {
  display: block;
  margin-top: 12px;
  font-size: 0.42em;
  text-transform: none;
  letter-spacing: 0;
  color: var(--brass);
  text-align: left; /* align with the LTR composition; dir="rtl" still governs the text itself */
}
.hero__line {
  font-size: clamp(1.08rem, 1.6vw + 0.75rem, 1.3rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 34ch;
  text-shadow: 0 1px 14px color-mix(in srgb, var(--bg-deep) 55%, transparent);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.hero__scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 4px;
  font: 600 0.68rem/1 var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  padding: 8px;
}
.hero__scroll:hover { color: var(--ink); }
.hero__scroll svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   12. Hours / address strip
   -------------------------------------------------------------------------- */
.strip { background: var(--bg-raise); border-bottom: 1px solid var(--line); }
.strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding-block: 14px;
  font-size: 0.9rem;
  color: var(--ink-dim);
}
.strip__cell { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.strip__cell strong { font-weight: 600; color: var(--ink); }
.strip__cell--last { margin-left: auto; margin-inline-start: auto; }

/* --------------------------------------------------------------------------
   13. Mechanic (#butcher-grill) — You pick it. We grill it.
   -------------------------------------------------------------------------- */
.mech__media {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(72vw, 320px);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  margin-bottom: clamp(28px, 5vw, 44px);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.mech__media figure { scroll-snap-align: start; display: grid; gap: 8px; }
.mech__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.mech__media figcaption { font-size: 0.8rem; color: var(--ink-dim); }

.mech__steps { display: grid; gap: 0; margin-bottom: clamp(28px, 5vw, 44px); }

.halal-stamp {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid color-mix(in srgb, var(--brass) 40%, transparent);
  border-radius: var(--radius);
  padding: 18px 20px;
  max-width: 720px;
}
.halal-stamp__mark { flex: none; width: 34px; height: 34px; margin-top: 2px; }
.halal-stamp strong {
  display: block;
  font: 600 0.78rem/1.4 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 4px;
}
.halal-stamp p { font-size: 0.95rem; line-height: 1.6; color: var(--ink); max-width: 52ch; }

@media (min-width: 880px) {
  .mech__media {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: unset;
    overflow-x: visible;
  }
  .mech__steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .mech__steps .wayfinding-step + .wayfinding-step { margin-top: 0; }
}

/* --------------------------------------------------------------------------
   14. Market (#market) — the one light section
   -------------------------------------------------------------------------- */
.market__grid { display: grid; gap: 28px; align-items: start; }
.market__photos { display: grid; gap: 14px; }
.market__photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--cream-ink) 12%, transparent);
}
.market__body { display: grid; gap: 22px; }
.market__hours-note { margin-top: 2px; }

@media (min-width: 920px) {
  .market__grid { grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); }
  .market__photos { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* --------------------------------------------------------------------------
   15. Afandina spotlight (id="afandina") — brass-led panel
   -------------------------------------------------------------------------- */
.spot__panel {
  position: relative;
  background: var(--bg-deep);
  border: 1px solid color-mix(in srgb, var(--brass) 45%, transparent);
  outline: 1px solid color-mix(in srgb, var(--brass) 18%, transparent);
  outline-offset: 6px;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
}
.spot__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
}
.spot__body { padding: clamp(26px, 4.5vw, 48px); display: grid; gap: 16px; justify-items: start; align-content: center; }
.spot__title { text-transform: uppercase; }
.spot__title .ar { color: var(--brass); }
.spot__body .lead { color: var(--ink-dim); }
.spot__meta { display: flex; align-items: center; gap: 10px; color: var(--ink-dim); font-size: 0.85rem; }

@media (min-width: 920px) {
  .spot__panel { grid-template-columns: 1.1fr 1fr; }
  .spot__media img { aspect-ratio: auto; min-height: 100%; }
}

/* --------------------------------------------------------------------------
   16. Coming soon (#coming-soon) — the third fire
   -------------------------------------------------------------------------- */
.soon { text-align: center; }
.soon .section-head { justify-items: center; }
.soon__form { margin-inline: auto; }
.soon__divider {
  width: 44px;
  height: 1px;
  background: var(--brass);
  margin: 6px auto 0;
}
.soon .fine-print { margin-top: 4px; }

/* --------------------------------------------------------------------------
   17. Watch strip (#watch)
   -------------------------------------------------------------------------- */
.watch-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}
.watch-card { display: grid; gap: 8px; text-decoration: none; }
.watch-card__frame {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-raise);
  transition: border-color 0.2s, transform 0.2s;
}
.watch-card:hover .watch-card__frame { border-color: color-mix(in srgb, var(--ember) 55%, transparent); transform: translateY(-3px); }
.watch-card img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 0; }
.watch-card__caption { font-size: 0.85rem; line-height: 1.45; color: var(--ink-dim); }
.watch-card:hover .watch-card__caption { color: var(--ink); }

@media (min-width: 880px) {
  .watch-strip__grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}

/* --------------------------------------------------------------------------
   18. Visit (#visit)
   -------------------------------------------------------------------------- */
.visit__grid { display: grid; gap: clamp(32px, 6vw, 56px); }
.visit__addr { display: grid; gap: 14px; justify-items: start; }
.visit__address-lines { font-style: normal; font-size: 1.1rem; line-height: 1.6; color: var(--ink); }
.visit__address-lines span { color: var(--ink-dim); }
.visit__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.visit__hours { margin-top: 26px; }
.visit__hours .fine-print { margin-top: 10px; }
.visit__note { font-size: 0.95rem; color: var(--ink-dim); max-width: 46ch; }

@media (min-width: 920px) {
  .visit__grid { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   19. Shared utilities [CONTRACT]
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.mini-title {
  font: 600 0.78rem/1.4 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 20px;
}
.section--market .mini-title { color: var(--cream-dim); }

.u-mt-md { margin-top: 16px; }
.u-mt-lg { margin-top: 28px; }
.u-mt-xl { margin-top: 40px; }

/* --------------------------------------------------------------------------
   20. Skip link + motion preferences
   -------------------------------------------------------------------------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ember);
  color: var(--paper);
  font: 600 0.9rem/1 var(--font-body);
  padding: 12px 18px;
  border-radius: 999px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .text-link:hover::after { transform: none; }
}
