/* Halal New York Gyro
 * Palette sampled off the trailer wrap itself — see assets/data/business.js.
 * Design rule: this is a street cart, not a Mediterranean dining room.
 * Loud, high-contrast, signage-first. It should feel like the trailer looks.
 */

/* ---------- tokens ---------- */
:root {
  --red:        #a3232f;
  --red-deep:   #6e161f;
  --red-ink:    #4a0d14;
  --gold:       #e3be55;
  --gold-deep:  #b8912f;
  --cream:      #fbf6ec;
  --paper:      #ffffff;
  --char:       #171214;
  --char-soft:  #2c2327;
  --grey:       #7d7378;
  --line:       rgba(23,18,20,.14);

  --open:       #2f9e4f;
  --soon:       #d98324;
  --shut:       #9b3a3a;

  --display: "Haettenschweiler", "Arial Narrow Bold", "Impact", "Franklin Gothic Bold", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --arabic: "Segoe UI", "Geeza Pro", "Noto Naskh Arabic", "Traditional Arabic", Tahoma, serif;

  --wrap: 1180px;
  --gut: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 3px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.6;
  color: var(--char);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .012em;
  line-height: .88;
  /* the wrap sets white type with a hard dark outline — reproduce it */
  -webkit-text-stroke: 0;
}
h1, h2, h3 { margin: 0 0 .5em; }
h1.display { font-size: clamp(2.9rem, 9vw, 6.2rem); }
h2.display { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h3.display { font-size: clamp(1.35rem, 2.6vw, 1.85rem); }

.outline-type {
  color: var(--cream);
  text-shadow:
    2px 0 0 var(--red-ink), -2px 0 0 var(--red-ink),
    0 2px 0 var(--red-ink), 0 -2px 0 var(--red-ink),
    2px 2px 0 var(--red-ink), -2px -2px 0 var(--red-ink),
    2px -2px 0 var(--red-ink), -2px 2px 0 var(--red-ink),
    0 6px 0 rgba(0,0,0,.18);
}

.eyebrow {
  font-family: var(--body);
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 .8rem;
}
.eyebrow--onred { color: var(--gold); }

.ar { font-family: var(--arabic); direction: rtl; unicode-bidi: isolate; line-height: 1.9; }

.lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); line-height: 1.55; max-width: 56ch; }

/* ---------- layout ---------- */
.wrap { width: min(100% - (var(--gut) * 2), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(3.2rem, 8vw, 6rem); }
.section--tight { padding-block: clamp(2.2rem, 5vw, 3.5rem); }
.section--red { background: var(--red); color: var(--cream); }
.section--ink { background: var(--char); color: var(--cream); }
.stack > * + * { margin-top: 1rem; }

/* the wrap's edge trim — diagonal red/gold hazard band */
.trim {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg, var(--gold) 0 12px, var(--red-deep) 12px 24px
  );
}

/* ---------- skip link ----------
 * Hidden by CLIPPING, never by offsetting off-canvas.
 * `left: -9999px` is fine in LTR but catastrophic in RTL: the overflow direction
 * inverts, so the offset becomes ~10,000px of real horizontal scroll on every
 * page the moment dir="rtl" is set. Measured 2026-08-02 on v2.html at 375px —
 * scrollWidth 10374 vs clientWidth 375. Do not reintroduce an off-canvas offset.
 */
.skip {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  position: fixed;
  inset-inline-start: .5rem; top: .5rem;
  width: auto; height: auto;
  padding: .7rem 1.1rem; margin: 0;
  overflow: visible;
  clip: auto; clip-path: none;
  z-index: 200;
  background: var(--char); color: var(--cream); font-weight: 700;
}

/* ---------- header ---------- */
.site-head { background: var(--char); color: var(--cream); position: relative; z-index: 60; }
.site-head__inner {
  display: flex; align-items: center; gap: 1rem;
  padding-block: .75rem; flex-wrap: wrap;
}
.brandmark { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brandmark__unit {
  width: 2.35rem; height: 2.35rem; flex: none;
  display: grid; place-items: center;
  background: var(--red); color: var(--cream);
  font-family: var(--display); font-size: 1.5rem; line-height: 1;
  border: 2px solid var(--gold);
}
.brandmark__name {
  font-family: var(--display); text-transform: uppercase;
  font-size: 1.28rem; line-height: .92; letter-spacing: .01em;
  color: var(--cream);
}
.brandmark__name span { display: block; color: var(--gold); font-size: .72rem; letter-spacing: .16em; font-family: var(--body); font-weight: 700; }

.nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.nav a {
  text-decoration: none; padding: .5rem .8rem;
  font-weight: 700; font-size: .88rem; letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 3px solid transparent; color: var(--cream);
}
.nav a:hover { color: var(--gold); }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--gold); }

.langtoggle {
  background: transparent; border: 2px solid rgba(251,246,236,.35); color: var(--cream);
  padding: .38rem .7rem; font-weight: 800; font-size: .78rem; letter-spacing: .08em;
  cursor: pointer; border-radius: var(--radius);
}
.langtoggle:hover { border-color: var(--gold); color: var(--gold); }

.callbtn {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--gold); color: var(--char-soft);
  padding: .5rem .9rem; text-decoration: none;
  font-weight: 800; font-size: .88rem; letter-spacing: .03em;
  border-radius: var(--radius);
}
.callbtn:hover { background: var(--cream); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--red-ink); color: var(--cream); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(74,13,20,.94) 0%, rgba(110,22,31,.78) 46%, rgba(23,18,20,.55) 100%);
}
.hero__inner { position: relative; padding-block: clamp(3rem, 9vw, 6.5rem); }
.hero__ayah {
  font-family: var(--arabic); direction: rtl;
  width: fit-content; max-width: 100%;
  color: var(--gold); font-size: clamp(1.5rem, 4vw, 2.4rem);
  margin: 0 0 .35rem; line-height: 1.8;
}
.hero__ayah-en { color: rgba(251,246,236,.62); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 1.8rem; }
.hero h1 { margin-bottom: .35rem; }
.hero__tag {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(1.1rem, 2.6vw, 1.7rem); color: var(--gold); letter-spacing: .03em; margin: 0 0 1.6rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem; text-decoration: none; cursor: pointer;
  font-weight: 800; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase;
  border: 3px solid transparent; border-radius: var(--radius);
  transition: transform .12s ease, background .16s ease, color .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--red-ink); border-color: var(--gold); }
.btn--gold:hover { background: var(--cream); border-color: var(--cream); }
.btn--ghost { background: transparent; color: var(--cream); border-color: rgba(251,246,236,.5); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--red { background: var(--red); color: var(--cream); border-color: var(--red); }
.btn--red:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn--block { width: 100%; }

/* ---------- open-now board ---------- */
.board {
  background: var(--char); color: var(--cream);
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
}
.board__head {
  display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap;
  padding: 1rem 1.2rem; border-bottom: 1px solid rgba(251,246,236,.16);
}
.board__title { font-family: var(--display); text-transform: uppercase; font-size: 1.4rem; letter-spacing: .02em; }
.board__clock { margin-left: auto; font-size: .82rem; color: rgba(251,246,236,.6); font-variant-numeric: tabular-nums; }
.board__list { list-style: none; margin: 0; padding: 0; }
.board__row {
  display: grid; align-items: center; gap: .35rem 1rem;
  grid-template-columns: 2.6rem 1fr auto auto;
  padding: .95rem 1.2rem;
  border-bottom: 1px solid rgba(251,246,236,.1);
}
.board__order {
  font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold, #e8b23a); text-decoration: none; white-space: nowrap;
  border: 1.5px solid currentColor; border-radius: 999px; padding: .3rem .8rem;
}
.board__order:hover { background: rgba(232,178,58,.12); }
.board__row:last-child { border-bottom: 0; }
.board__unit {
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  font-family: var(--display); font-size: 1.35rem;
  background: var(--red); border: 2px solid rgba(251,246,236,.28); color: var(--cream);
}
.board__where { min-width: 0; }
.board__name { font-weight: 800; letter-spacing: .02em; }
.board__addr { font-size: .84rem; color: rgba(251,246,236,.62); }
.board__state { display: flex; align-items: center; gap: .45rem; font-weight: 800; font-size: .84rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.dot { width: .62rem; height: .62rem; border-radius: 50%; flex: none; background: var(--grey); }
.is-open .dot { background: var(--open); box-shadow: 0 0 0 0 rgba(47,158,79,.6); animation: pulse 2.4s infinite; }
.is-soon .dot { background: var(--soon); }
.is-shut .dot { background: var(--shut); }
.is-open .board__state { color: #7fe0a0; }
.is-soon .board__state { color: #f0b464; }
.is-shut .board__state { color: rgba(251,246,236,.5); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47,158,79,.55); }
  70%  { box-shadow: 0 0 0 .55rem rgba(47,158,79,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,158,79,0); }
}
@media (prefers-reduced-motion: reduce) { .is-open .dot { animation: none; } }
.board__foot { padding: .85rem 1.2rem; font-size: .8rem; color: rgba(251,246,236,.55); background: rgba(0,0,0,.25); }

/* ---------- grids / cards ---------- */
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.7rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.split { display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--char); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__body > .btn { margin-top: auto; }

/* location card */
.loc {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.35rem; display: flex; flex-direction: column; gap: .55rem;
  position: relative; overflow: hidden;
}
.loc--flagship { border: 3px solid var(--red); }
.loc__unit {
  position: absolute; top: -.6rem; right: .4rem;
  font-family: var(--display); font-size: 5.2rem; line-height: 1;
  color: rgba(163,35,47,.10); pointer-events: none; user-select: none;
}
.loc__name { font-family: var(--display); text-transform: uppercase; font-size: 1.55rem; letter-spacing: .01em; position: relative; }
.loc__addr { font-size: .95rem; color: var(--char-soft); position: relative; }
.loc__state { display: flex; align-items: center; gap: .45rem; font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.loc.is-open .loc__state { color: #1e7a3c; }
.loc.is-soon .loc__state { color: #a6641a; }
.loc.is-shut .loc__state { color: var(--grey); }
.loc__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .5rem; position: relative; }
.loc__actions .btn { padding: .65rem 1rem; font-size: .8rem; }
.loc__hours { font-size: .85rem; color: var(--grey); }

/* ---------- menu ---------- */
.menugroup { margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.menugroup__head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; border-bottom: 3px solid var(--char); padding-bottom: .5rem; margin-bottom: 1.1rem; }
.menugroup__head .ar { color: var(--red); font-size: 1.3rem; }
.menulist { list-style: none; margin: 0; padding: 0; }
.menuitem {
  display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem;
  align-items: baseline; padding: .85rem 0; border-bottom: 1px dashed var(--line);
}
.menuitem__name { font-weight: 700; font-size: 1.08rem; }
.menuitem__ar { grid-column: 1; font-size: .95rem; color: var(--grey); }
.menuitem__price { font-family: var(--display); font-size: 1.5rem; color: var(--red); letter-spacing: .02em; }
.menuitem__price--tbd { font-family: var(--body); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }

/* ---------- unconfirmed badge ---------- */
.tbd {
  display: inline-flex; align-items: center; gap: .35rem;
  background: repeating-linear-gradient(-45deg, #fff4d6 0 8px, #ffe9b3 8px 16px);
  border: 1px solid var(--gold-deep); color: #6b4d05;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .5rem; border-radius: var(--radius);
}
.notice {
  background: #fff8e6; border: 2px solid var(--gold-deep); border-left-width: 8px;
  padding: 1rem 1.15rem; border-radius: var(--radius); font-size: .93rem;
}
.notice strong { display: block; margin-bottom: .25rem; }

/* ---------- form ---------- */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 800; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  font: inherit; padding: .75rem .85rem;
  border: 2px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--char); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field__hint { font-size: .8rem; color: var(--grey); }
.form__row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.consent { display: flex; align-items: flex-start; gap: .65rem; font-size: .86rem; line-height: 1.45; }
.consent input { width: auto; margin-top: .18rem; flex: 0 0 auto; }
.consent a { color: var(--red); font-weight: 800; }
.turnstile-wrap { display: grid; gap: .4rem; }
.turnstile-slot { min-height: 65px; max-width: 100%; overflow: hidden; }
.turnstile-slot--notice { min-height: 0; padding: .8rem; border: 2px solid var(--gold-deep); background: #fff8e6; font-weight: 700; }
.form button:disabled { opacity: .65; cursor: wait; }
.formstatus { padding: 1rem 1.15rem; border-radius: var(--radius); font-weight: 600; }
.formstatus--ok { background: #e8f6ec; border: 2px solid var(--open); }
.formstatus--err { background: #fdecec; border: 2px solid var(--shut); }

/* ---------- figure strip ---------- */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .35rem; }
.strip img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ---------- footer ---------- */
.site-foot { background: var(--char); color: rgba(251,246,236,.78); padding-block: clamp(2.4rem, 5vw, 3.6rem); font-size: .92rem; }
.site-foot a { color: var(--gold); }
.site-foot h4 { font-family: var(--display); text-transform: uppercase; color: var(--cream); font-size: 1.15rem; margin: 0 0 .6rem; letter-spacing: .02em; }
.foot-grid { display: grid; gap: 1.8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.foot-list { list-style: none; margin: 0; padding: 0; }
.foot-list li { margin-bottom: .35rem; }
.foot-legal { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(251,246,236,.14); font-size: .8rem; color: rgba(251,246,236,.5); }

/* ---------- build banner (never ships public) ---------- */
.buildbar {
  background: repeating-linear-gradient(-45deg, #1d1a1a 0 14px, #2a2424 14px 28px);
  color: #ffd98a; font-size: .78rem; font-weight: 700; letter-spacing: .05em;
  padding: .55rem 0; text-align: center; border-bottom: 2px solid var(--gold-deep);
}
.buildbar span { color: #fff; }

/* ---------- RTL ---------- */
html[dir="rtl"] body { font-family: var(--arabic); }
html[dir="rtl"] .brandmark { margin-right: 0; margin-left: auto; }
html[dir="rtl"] .board__clock { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .loc__unit { right: auto; left: .4rem; }
html[dir="rtl"] .notice { border-left-width: 2px; border-right-width: 8px; }
html[dir="rtl"] .menuitem { grid-template-columns: 1fr auto; }

/* ---------- utilities ---------- */
.muted { color: var(--grey); }
.center { text-align: center; }
.mt0 { margin-top: 0; }
.hide { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
