/* ============================================================================
   NARI — styles. Mobile-first; desktop is a widening of the same layout.
   Palette is taken from the logo. Crimson is an accent, like the chili —
   never a background theme.
   ========================================================================== */

/* Self-hosted, no CDN call. `unicode-range` means a browser only downloads the
   Arabic files if Arabic characters actually appear — and they do here, so
   budget for all four. `swap` shows text immediately in a fallback rather than
   holding the page blank on slow Abu Dhabi mobile data. */
@font-face {
  font-family: 'Archivo Black';
  src: url('/assets/fonts/archivo-black-400-latin.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-400-latin.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('/assets/fonts/ibm-plex-sans-arabic-400-arabic.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url('/assets/fonts/ibm-plex-sans-arabic-700-arabic.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --charcoal: #332F30;
  --crimson:  #A5243D;
  --cream:    #F3E6D7;

  --ink:       var(--charcoal);
  --ink-soft:  #6b6462;
  --on-dark:   var(--cream);
  --on-dark-soft: #bdb2a6;
  --rule:      #ddcdbb;
  --rule-dark: #4b4546;

  /* Self-hosted above. System faces stay in the stack as a fallback for the
     moment before the woff2 lands, and for anything the subsets miss. */
  --font-display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --font-body:    "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar:      "IBM Plex Sans Arabic", "Segoe UI", "Geeza Pro", "Noto Naskh Arabic", Tahoma, sans-serif;

  --pad: clamp(1.1rem, 4.5vw, 2rem);
  --max: 46rem;
  --r: 14px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  /* room for the sticky cart bar */
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
}

img { max-width: 100%; height: auto; display: block; }

[lang="ar"] { font-family: var(--font-ar); line-height: 1.7; }

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

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .1rem;
  min-height: 52px; padding: .8rem 1.4rem;
  border: 0; border-radius: var(--r);
  font-family: var(--font-display); font-size: 1.02rem; letter-spacing: .01em;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn [lang="ar"] { font-size: .85em; font-weight: 400; opacity: .85; }

.btn--primary { background: var(--crimson); color: #fff; }
.btn--primary:hover { background: #8d1e34; }
.btn--primary:disabled { background: #c9bcae; color: #f4ece2; cursor: not-allowed; }

.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--rule); font-size: .92rem;
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--wide { width: 100%; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  padding: clamp(1.5rem, 6vw, 3rem) var(--pad) 0;
  max-width: var(--max); margin-inline: auto;
  text-align: center;
}
.hero__logo { width: clamp(140px, 42vw, 210px); height: auto; margin: 0 auto; }

.hero__slogan {
  font-family: var(--font-ar);
  font-size: clamp(2.4rem, 12vw, 4rem);
  line-height: 1.15; margin: .6rem 0 0; font-weight: 700;
}
.hero__slogan-en {
  font-family: var(--font-display);
  font-size: .82rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-soft); margin: .1rem 0 0;
}

.hero__line {
  display: flex; flex-direction: column; gap: .15rem;
  margin: 1.4rem 0 0; font-size: 1.05rem; color: var(--ink-soft);
}

.hero__cta { display: grid; gap: .6rem; margin: 1.6rem 0 0; }

.hero__shot {
  margin: clamp(1.5rem, 6vw, 2.5rem) 0 0;
  border-radius: var(--r); overflow: hidden;
}
.hero__shot img { width: 100%; }

/* ── Closed banner ─────────────────────────────────────────────────────── */
.closed-bar {
  background: var(--charcoal); color: var(--on-dark);
  padding: .85rem var(--pad); text-align: center;
  font-size: .95rem; margin-top: 1.5rem;
}
.closed-bar strong { color: #fff; }

/* ── Section headings ──────────────────────────────────────────────────── */
.section-h {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 8vw, 2.6rem); line-height: 1.1;
  text-transform: uppercase; letter-spacing: -.01em;
  margin: clamp(2.5rem, 9vw, 4rem) 0 0;
}
.section-h [lang="ar"] {
  text-transform: none; letter-spacing: 0;
  font-size: .72em; font-weight: 700; color: var(--ink-soft);
}
.section-h--sm { font-size: clamp(1.4rem, 6vw, 1.9rem); }

/* ── Menu ──────────────────────────────────────────────────────────────── */
.menu { max-width: var(--max); margin-inline: auto; padding: 0 var(--pad); }

.msec { margin-top: clamp(2rem, 7vw, 3rem); }

.msec__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .8rem; flex-wrap: wrap;
}
.msec__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  text-transform: uppercase; letter-spacing: -.005em; margin: 0;
}
.msec__title-ar { font-family: var(--font-ar); font-size: 1.1rem; font-weight: 700; color: var(--ink-soft); }

.badge {
  display: inline-block; background: var(--crimson); color: #fff;
  font-family: var(--font-display); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; padding: .3rem .6rem; border-radius: 5px;
}

.msec__note {
  font-size: .88rem; color: var(--ink-soft); font-style: italic;
  margin: .5rem 0 0; display: grid; gap: .1rem;
}

.mlist { list-style: none; margin: 1rem 0 0; padding: 0; }

/* One menu row. Price sits immediately after the name — never a leader line
   running to the far edge. Arabic mirrors on the right. */
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .1rem .8rem;
  padding: .95rem 0;
  border-top: 1px solid var(--rule);
}
.item__main { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.item__name { font-family: var(--font-display); font-size: 1.06rem; }
.item__price { font-family: var(--font-display); font-size: 1.06rem; white-space: nowrap; }
.item__price small { font-size: .66em; font-weight: 400; opacity: .65; margin-inline-start: .32em; }

.item__ar {
  grid-column: 2; grid-row: 1;
  font-family: var(--font-ar); font-size: .98rem; text-align: right;
  align-self: baseline;
}
.item__desc {
  grid-column: 1 / -1;
  font-size: .86rem; color: var(--ink-soft); margin: .15rem 0 0;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.item__desc [lang="ar"] { font-size: .95em; }

.item__thumb {
  grid-column: 1 / -1; margin-top: .6rem;
  border-radius: 10px; overflow: hidden; max-width: 190px;
}

/* Quantity stepper */
.item__add { grid-column: 1 / -1; margin-top: .65rem; }
.qty { display: inline-flex; align-items: center; gap: .1rem; }
.qty button {
  width: 44px; height: 44px; border: 1.5px solid var(--rule);
  background: transparent; color: inherit; font-size: 1.3rem; line-height: 1;
  cursor: pointer; border-radius: 10px;
}
.qty button:hover { border-color: currentColor; }
.qty__n { min-width: 2.4rem; text-align: center; font-family: var(--font-display); }
.add-btn {
  min-height: 44px; padding: .5rem 1.1rem;
  border: 1.5px solid var(--rule); border-radius: 10px;
  background: transparent; color: inherit; cursor: pointer;
  font-family: var(--font-display); font-size: .9rem;
}
.add-btn:hover { border-color: currentColor; }

/* ── Combos: charcoal panel, mirroring the dark logo variant ───────────── */
.msec--dark {
  background: var(--charcoal); color: var(--on-dark);
  border-radius: var(--r); padding: clamp(1.2rem, 5vw, 2rem);
  margin-inline: calc(var(--pad) * -.35);
}
.msec--dark .msec__title-ar,
.msec--dark .msec__note,
.msec--dark .item__desc { color: var(--on-dark-soft); }
.msec--dark .item { border-top-color: var(--rule-dark); }
.msec--dark .qty button,
.msec--dark .add-btn { border-color: var(--rule-dark); }

/* Family Feast — the strongest treatment on the page. */
.item--hero {
  background: var(--crimson); color: #fff;
  border-radius: 12px; border-top: 0;
  padding: 1.1rem; margin-top: .9rem;
}
.item--hero .item__desc { color: rgba(255,255,255,.85); }
.item--hero .item__name,
.item--hero .item__price { font-size: 1.2rem; }
.item--hero .qty button,
.item--hero .add-btn { border-color: rgba(255,255,255,.45); }
.item__tag {
  grid-column: 1 / -1;
  font-style: italic; font-size: .88rem; color: rgba(255,255,255,.9); margin: .3rem 0 0;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* ── Why Nari ──────────────────────────────────────────────────────────── */
.why { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.why__list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .1rem; }
.why__list li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--rule);
}
.why__list strong { font-family: var(--font-display); font-weight: 400; font-size: 1.02rem; }

.noscript {
  border: 1.5px solid var(--rule); border-radius: var(--r);
  padding: 1rem; margin-top: 1.5rem;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
  background: var(--charcoal); color: var(--on-dark);
  margin-top: clamp(3rem, 10vw, 5rem);
  padding: clamp(2rem, 8vw, 3.5rem) var(--pad) clamp(2.5rem, 8vw, 3rem);
  text-align: center;
}
.footer__logo { width: clamp(120px, 34vw, 170px); margin: 0 auto 1.5rem; }
.footer .btn--primary { max-width: 22rem; margin-inline: auto; }
.footer__phone { margin: 1rem 0 0; font-family: var(--font-display); font-size: 1.25rem; }
.footer__phone a { color: var(--on-dark); text-decoration: none; }

.footer__facts { list-style: none; margin: 1.8rem 0 0; padding: 0; font-size: .9rem; color: var(--on-dark-soft); }
.footer__facts li { display: grid; gap: .05rem; padding: .4rem 0; }

.footer__links { margin: 1.6rem 0 0; font-size: .95rem; }
.footer__links a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer__links span { margin: 0 .5rem; color: var(--on-dark-soft); }

.footer__alt { margin: 1.8rem 0 0; display: grid; gap: .2rem; }
.footer__alt a { color: var(--on-dark-soft); font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.footer__alt small { color: #8d857f; font-size: .78rem; }

/* ── Sticky cart bar ──────────────────────────────────────────────────── */
.cartbar {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  padding: .7rem var(--pad) calc(.7rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--rule);
}
.cartbar__open {
  width: 100%; max-width: var(--max); margin-inline: auto;
  display: flex; align-items: center; gap: .8rem;
  min-height: 54px; padding: .6rem 1rem .6rem .6rem;
  background: var(--crimson); color: #fff; border: 0; border-radius: var(--r);
  font-family: var(--font-display); font-size: 1.02rem; cursor: pointer;
}
.cartbar__count {
  min-width: 2rem; height: 2rem; display: grid; place-items: center;
  background: rgba(0,0,0,.22); border-radius: 8px; font-size: .95rem;
}
.cartbar__label { flex: 1; text-align: left; }

/* ── Order sheet ──────────────────────────────────────────────────────── */
.sheet {
  border: 0; padding: 0; max-width: 30rem; width: 100%;
  max-height: 92dvh; margin: auto auto 0;
  background: var(--cream); color: var(--ink);
  border-radius: var(--r) var(--r) 0 0;
}
@media (min-width: 34rem) { .sheet { margin: auto; border-radius: var(--r); } }
.sheet::backdrop { background: rgba(30,26,27,.55); }

.sheet__close-form { position: sticky; top: 0; display: flex; justify-content: flex-end; z-index: 2; }
.sheet__close {
  width: 44px; height: 44px; margin: .3rem;
  background: var(--cream); border: 0; border-radius: 50%;
  font-size: 1.8rem; line-height: 1; color: var(--ink-soft); cursor: pointer;
}
.sheet__body { padding: 0 var(--pad) calc(var(--pad) + env(safe-area-inset-bottom)); }
.sheet__h {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase;
  margin: 0 0 1rem;
}
.sheet__h [lang="ar"] { font-size: .78em; text-transform: none; color: var(--ink-soft); }
.sheet h3 { font-family: var(--font-display); font-size: 1.25rem; margin: .8rem 0 .2rem; }
.sheet [data-step] > p:not(.fineprint):not(.ref) { margin: .2rem 0; }

.bill { list-style: none; margin: 0; padding: 0; }
.bill li {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: .7rem; align-items: baseline;
  padding: .6rem 0; border-bottom: 1px solid var(--rule);
}
.bill__q { font-family: var(--font-display); color: var(--ink-soft); }
.bill__rm {
  background: none; border: 0; color: var(--ink-soft); cursor: pointer;
  font-size: 1.1rem; padding: 0 .3rem; min-width: 32px; min-height: 32px;
}

.bill__row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; font-size: .98rem;
}
.bill__row--sub { border-bottom: 1px solid var(--rule); color: var(--ink-soft); }
.bill__row--del { color: var(--ink-soft); }
.bill__row--total {
  border-top: 2px solid var(--ink); margin-top: .2rem;
  font-family: var(--font-display); font-size: 1.3rem;
}

.minwarn {
  background: #f6ddd1; border-radius: 10px; padding: .7rem .9rem;
  font-size: .9rem; margin: .6rem 0 0;
}

.field { display: block; margin: 1.1rem 0 0; }
.field__label {
  display: flex; justify-content: space-between; gap: .6rem;
  font-size: .85rem; color: var(--ink-soft); margin-bottom: .3rem;
}
.field__label small { font-weight: 400; opacity: .75; }
.field select, .field input, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem .8rem;
  font: inherit; font-size: 1rem;   /* 16px+ stops iOS zooming on focus */
  color: var(--ink); background: #fbf5ee;
  border: 1.5px solid var(--rule); border-radius: 10px;
}
.field textarea { min-height: auto; resize: vertical; }

.geo-status { font-size: .85rem; color: var(--ink-soft); margin: .45rem 0 0; min-height: 1.2em; }
.geo-status[data-ok="1"] { color: #2f6b3f; }
.geo-status[data-ok="0"] { color: var(--crimson); }

.fineprint { font-size: .82rem; color: var(--ink-soft); margin: .7rem 0 0; }
.ref {
  font-family: var(--font-display); font-size: 1.1rem;
  letter-spacing: .06em; margin: 0 0 .8rem;
}
.accepted { color: #2f6b3f; }
.rejected { color: var(--crimson); }

.spinner {
  width: 34px; height: 34px; margin: 1.2rem 0 .4rem;
  border: 3px solid var(--rule); border-top-color: var(--crimson);
  border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

.sheet [data-step] .btn { margin-top: 1.1rem; }

/* The delivery promise. Stated plainly rather than as fineprint — being vague
   about timing is what generates the "where is my food" message. */
.eta { margin: .6rem 0 0; font-weight: 700; font-size: 1.05rem; }

.remember { display: flex; align-items: flex-start; gap: .55rem;
            margin: .9rem 0 .2rem; font-size: .85rem; line-height: 1.35; }
.remember input { width: 1.05rem; height: 1.05rem; margin-top: .12rem; flex: none; }
.remember [lang="ar"] { display: block; opacity: .75; }
