/* Khubz & Sweet: the brand tokens from her Claude Design system, then the page. The kit (dana-ui.css) supplies the components. */
:root {
  --bg: #EDD7B5;            /* cream paper */
  --band: #F3E0C0;          /* lifted paper band */
  --card: #F7E7C8;          /* light cream */
  --ink: #3A1708;           /* deep brown text */
  --choc: #4E2613;          /* chocolate: headings, solid buttons, price pill */
  --accent: #9F641D;        /* wheat gold as text (readable on cream) */
  --gold: #BE8340;          /* gold rings, dividers, ornaments */
  --on-accent: #F7E7C8;
  --wa: #1F7A4A;            /* WhatsApp action, used only on the WhatsApp buttons */
  --muted: color-mix(in srgb, var(--ink) 72%, transparent);
  --dim: color-mix(in srgb, var(--ink) 48%, transparent);
  --line: color-mix(in srgb, var(--choc) 16%, transparent);
  --glass: color-mix(in srgb, var(--card) 72%, transparent);
  --display: "Amiri", "Noto Naskh Arabic", serif;
  --body: "Tajawal", "Segoe UI", sans-serif;
  --latin: "Cormorant Garamond", Georgia, serif;
  --mono: var(--body);
  --h1: clamp(3rem, 1.6rem + 5.2vw, 6.4rem);
  --h2: clamp(2.3rem, 1.4rem + 3.4vw, 4.2rem);
  --h3: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem);
  --radius: 24px;
}
html:lang(en) { --display: "Cormorant Garamond", Georgia, serif; --h1: clamp(3.1rem, 1.6rem + 5.6vw, 6.8rem); }
html { scroll-padding-top: 96px; }
body { font: 400 1.0625rem/1.75 var(--body); color: var(--ink); }
:focus-visible { outline-color: var(--choc); }

/* paper grain over everything, quiet */
/* the paper grain: a small tile behind the page (a fixed blended layer over everything cost every scroll frame on iPhone) */
body { background-image: url(img/grain.png); }
.band { background-image: url(img/grain.png); }

/* ---------- type: Arabic needs air above and below, and never negative tracking ---------- */
.h1, .h2, .h3 { color: var(--choc); font-weight: 700; letter-spacing: 0; }
.h1 { line-height: 1.22; } .h2 { line-height: 1.3; } .h3 { line-height: 1.35; }
html:lang(en) .h1, html:lang(en) .h2 { font-weight: 600; line-height: 1.02; letter-spacing: -0.01em; }
.h1 em, .h2 em, .h3 em { font-style: normal; color: var(--accent); }
html:lang(en) .h1 em, html:lang(en) .h2 em { font-style: italic; }
.mask .w, .mask .line { padding-block: 0.18em 0.28em; margin-block: -0.18em -0.28em; }
.label { font: 700 0.86rem/1.3 var(--body); letter-spacing: 0.02em; text-transform: none; color: var(--accent); }
html:lang(en) .label { font: 600 0.8rem/1.3 var(--latin); letter-spacing: 0.22em; text-transform: uppercase; }
.lede { color: var(--muted); max-width: 46ch; line-height: 1.8; }
bdi { unicode-bidi: isolate; }
[hidden] { display: none !important; }
img { height: auto; }                      /* width/height attributes reserve space; CSS keeps the true shape */

/* ---------- demo bar ---------- */
.demo-bar { position: relative; z-index: 41; background: var(--choc); color: var(--card); text-align: center; font-size: 0.82rem; padding: 7px var(--gutter); }

/* ---------- nav ---------- */
.nav { inset: 46px 0 auto 0; }
.nav.is-scrolled { inset-block-start: 12px; }
.nav__bar { padding-inline: 18px 8px; border-color: color-mix(in srgb, var(--gold) 45%, transparent); background: color-mix(in srgb, var(--card) 78%, transparent);
  box-shadow: 0 18px 40px -28px color-mix(in srgb, var(--choc) 60%, transparent); }
.nav__brand img { height: 46px; width: auto; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: 0.98rem; }
.nav__links a:hover { color: var(--choc); }
.nav__links a::after { left: 0; right: 0; background: var(--gold); }
.icon-btn { border-color: var(--line); color: var(--choc); }
.lang-btn span { font: 700 0.78rem/1 var(--latin); letter-spacing: 0.08em; }
html:lang(en) .lang-btn span { font: 700 0.9rem/1 var(--body); letter-spacing: 0; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 16px 8px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--choc); color: var(--card); font-weight: 700; font-size: 0.92rem; transition: transform 400ms var(--ease); }
.cart-btn:hover { transform: translateY(-2px); }
.cart-count { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 0.85rem; }
.cart-btn.bump { animation: bump 600ms var(--ease); }
@keyframes bump { 30% { transform: scale(1.12); } }
.menu { background: color-mix(in srgb, var(--bg) 96%, transparent); }
.menu a { font-family: var(--display); font-weight: 700; color: var(--choc); }

/* ---------- buttons ---------- */
.btn { font-weight: 700; font-size: 1rem; }
.btn--solid { background: var(--choc); color: var(--card); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .25), 0 18px 34px -18px color-mix(in srgb, var(--choc) 80%, transparent); }
.btn--solid:hover { background: #5d2f18; }
.btn--ghost { border-color: color-mix(in srgb, var(--choc) 30%, transparent); background: color-mix(in srgb, var(--card) 50%, transparent); color: var(--choc); }
.btn--ghost:hover { background: var(--card); border-color: var(--gold); }
.btn--wa { background: var(--wa); color: #fff; box-shadow: inset 0 -2px 0 rgb(0 0 0 / .2), 0 18px 34px -18px rgb(31 122 74 / .8); }
.btn--wa:hover { background: #18663d; }
.btn--block { width: 100%; }
[dir="rtl"] .btn .arr svg { transform: none; } [dir="rtl"] .btn .arr svg + svg { transform: translateX(140%); }
[dir="rtl"] .btn:hover .arr svg:first-child { transform: translateX(-140%); } [dir="rtl"] .btn:hover .arr svg + svg { transform: none; }
[dir="ltr"] .btn .arr { transform: scaleX(-1); }

.pill { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--choc); color: var(--card);
  font: 800 0.92rem/1 var(--body); letter-spacing: 0.01em; white-space: nowrap; }
.pill--soon { background: transparent; color: var(--accent); border: 1px dashed color-mix(in srgb, var(--gold) 70%, transparent); font-weight: 700; font-size: 0.82rem; }

/* ---------- 1 · hero ---------- */
.hero { position: relative; min-height: max(100svh, 700px); display: grid; align-items: center; overflow: hidden; isolation: isolate;
  padding: 150px 0 96px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 26% 52%, color-mix(in srgb, #fff3dc 70%, transparent), transparent 70%); }
[dir="ltr"] .hero::before { background: radial-gradient(60% 70% at 74% 52%, color-mix(in srgb, #fff3dc 70%, transparent), transparent 70%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero .h1 { margin-top: 22px; max-width: 11ch; }
.hero .lede { margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.actions--center { justify-content: center; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 0; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 560px; }
.facts > div { flex: 1 1 150px; padding-inline-end: 18px; }
.facts > div + div { padding-inline-start: 18px; border-inline-start: 1px solid var(--line); }
.facts dt { font-size: 0.8rem; color: var(--accent); font-weight: 700; }
.facts dd { font-weight: 800; color: var(--choc); margin-top: 2px; font-size: 1rem; }
.facts small { font-weight: 500; color: var(--muted); font-size: 0.8rem; }

.hero__plate { position: relative; justify-self: center; width: min(100%, 600px); }
.plate { position: relative; aspect-ratio: 1; }
.plate__img { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: cover; border-radius: 50%;
  box-shadow: 0 40px 80px -36px color-mix(in srgb, var(--choc) 85%, transparent), 0 0 0 6px var(--card); }
.plate__ring { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; animation: spin 90s linear infinite; }
/* the ring is a picture (img/ring.webp, drawn by tools/ring/): iPhone browsers cannot join Arabic letters along a curved path */
@keyframes spin { to { transform: rotate(-360deg); } }
.hero__seal { position: absolute; width: 24%; height: auto; inset-inline-end: -3%; inset-block-end: -1%; z-index: 2; filter: drop-shadow(0 16px 24px rgb(58 23 8 / .3));
  transform: rotate(-8deg); }
/* steam: soft wisps rising off the warm plate */
.steam { position: absolute; inset: 12% 30% 50%; pointer-events: none; mix-blend-mode: screen; }
.steam i { position: absolute; bottom: 0; width: 28%; height: 70%; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgb(255 250 240 / .85), transparent); filter: blur(10px);
  animation: rise 7s var(--ease) infinite; animation-delay: calc(var(--d) * 1s); inset-inline-start: var(--x); }
.steam i:nth-child(1) { --x: 6%; --d: 0; } .steam i:nth-child(2) { --x: 30%; --d: 1.4; } .steam i:nth-child(3) { --x: 52%; --d: 2.8; }
.steam i:nth-child(4) { --x: 70%; --d: 4.2; } .steam i:nth-child(5) { --x: 40%; --d: 5.6; }
@keyframes rise { 0% { opacity: 0; transform: translateY(40%) scale(.6, .9); } 25% { opacity: .75; } 70% { opacity: .35; }
  100% { opacity: 0; transform: translateY(-80%) scale(1.25, 1.5) skewX(6deg); } }
.hero__cue { position: absolute; inset-inline-start: 50%; bottom: 22px; translate: -50% 0; color: var(--accent); font: 700 0.75rem/1 var(--body); letter-spacing: 0.04em; text-transform: none; }
[dir="rtl"] .hero__cue { translate: 50% 0; }

/* ---------- section heads ---------- */
.head { grid-template-columns: 1fr 1.6fr; }
.head > p:last-child { max-width: 52ch; }
.filters { display: flex; justify-content: flex-start; margin-bottom: 36px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.filters::-webkit-scrollbar { display: none; }
.seg { background: color-mix(in srgb, var(--card) 70%, transparent); border-color: color-mix(in srgb, var(--gold) 40%, transparent); flex: none; }
.seg button { font-weight: 700; color: var(--muted); font-size: 0.95rem; padding: 0 20px; }
.seg__pill { background: var(--choc); left: 0; right: auto; }
.js .seg button[aria-pressed="true"] { color: var(--card); }

/* ---------- 2 · menu ---------- */
.dishes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.dish { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--card); overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold) 32%, transparent); box-shadow: 0 24px 50px -40px color-mix(in srgb, var(--choc) 80%, transparent);
  transition: transform 700ms var(--ease), box-shadow 700ms var(--ease), opacity 400ms; }
.dish:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -38px color-mix(in srgb, var(--choc) 90%, transparent); }
.dish[hidden] { display: none; }
.dish__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--band); }
.dish__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease); }
.dish:hover .dish__img img { transform: scale(1.05); }
.dish__body { display: flex; flex-direction: column; flex: 1; padding: 18px 22px 20px; }
.dish__cat { font-size: 0.78rem; font-weight: 700; color: var(--accent); }
.dish__ar { font: 700 1.55rem/1.35 "Amiri", serif; color: var(--choc); margin-top: 2px; }
.dish__en { font: 600 0.82rem/1.3 var(--latin); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.dish__note { margin-top: 6px; font-size: 0.88rem; color: var(--muted); }
.dish__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }
html:lang(en) .dish__ar { order: 2; font-size: 1.1rem; color: var(--muted); }
html:lang(en) .dish__en { order: 1; font: 600 1.45rem/1.2 var(--latin); letter-spacing: 0; text-transform: none; color: var(--choc); margin-top: 2px; }
html:lang(en) .dish__cat { order: 0; } html:lang(en) .dish__note { order: 3; } html:lang(en) .dish__foot { order: 4; }
/* add / stepper (made by app.js) */
.add { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--choc); background: transparent; color: var(--choc); font-weight: 800; font-size: 0.92rem;
  transition: background var(--t-hover), color var(--t-hover), transform 400ms var(--ease); }
.add:hover { background: var(--choc); color: var(--card); }
.add:active { transform: scale(.95); }
.stepper { display: inline-flex; align-items: center; border-radius: 999px; background: var(--choc); color: var(--card); }
.stepper button { width: 44px; height: 44px; border: 0; background: none; color: inherit; font-size: 1.25rem; font-weight: 700; cursor: pointer; border-radius: 50%; }
.stepper button:hover { background: rgb(255 255 255 / .1); }
.stepper output { min-width: 22px; text-align: center; font-weight: 800; }
.noscript { margin-top: 24px; font-weight: 700; } .noscript a { text-decoration: underline; }


/* ---------- 3 · gallery: the elastic strips ----------
   Each poster is a strip. The open one is exactly as wide as her poster needs (--ar = its own width / height),
   so the poster shows whole, never cropped; its name, price and the add button sit under it.
   Desktop: strips side by side. Phone: strips stacked, the open one drops down to the full poster. */
.elastic { --gh: clamp(520px, 74svh, 680px); --info: 168px; display: flex; gap: 12px; height: var(--gh); }
.el { position: relative; flex: 1 1 0; min-width: 58px; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px;
  background: var(--card); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  box-shadow: 0 30px 60px -46px color-mix(in srgb, var(--choc) 90%, transparent);
  transition: flex-grow 800ms var(--ease), flex-basis 800ms var(--ease); }
.el.is-open { flex: 0 0 calc((var(--gh) - var(--info)) * var(--ar)); }
.el[hidden] { display: none; }
.el__poster { position: relative; display: block; flex: 1 1 auto; min-height: 0; overflow: hidden; background: var(--band); }
.el__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%;
  transition: transform 1200ms var(--ease); }
.el:not(.is-open) .el__poster img { object-position: 50% 80%; }  /* closed: the food part, under the dark tab gradient (no filters: they made iPhone stutter) */
.el.is-open .el__poster { cursor: zoom-in; }
.el.is-open .el__poster:hover img { transform: scale(1.03); }
.el__poster:focus-visible { outline: 2px solid var(--choc); outline-offset: -3px; }
/* the closed strip: a slice of the poster, her dish name down the spine like a book */
.el__tab { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px;
  padding: 18px 0; border: 0; cursor: pointer; color: var(--card); font: inherit;
  background: linear-gradient(to top, rgb(58 23 8 / .95), rgb(58 23 8 / .58) 55%, rgb(58 23 8 / .38));
  transition: opacity 500ms var(--ease), visibility 0s; }
.el__name { writing-mode: vertical-rl; font: 700 1.3rem/1 "Amiri", serif; white-space: nowrap; max-height: 72%; overflow: hidden; text-overflow: ellipsis; }
html:lang(en) .el__name { font: 600 1.15rem/1 var(--latin); letter-spacing: .04em; }
.el__plus { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgb(247 231 200 / .6); }
.el__plus::before, .el__plus::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 1.5px; margin-top: -0.75px; background: currentColor; }
.el__plus::after { transform: rotate(90deg); }
.el__tab:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.el.is-open .el__tab { opacity: 0; visibility: hidden; transition: opacity 300ms, visibility 0s 300ms; }
/* the open card's details, under the poster */
.el__info { flex: none; height: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 0 18px; overflow: hidden; opacity: 0;
  transition: height 800ms var(--ease), padding 800ms var(--ease), opacity 300ms; }
.el.is-open .el__info { height: var(--info); padding-block: 14px 16px; opacity: 1;
  transition: height 800ms var(--ease), padding 800ms var(--ease), opacity 500ms 380ms; }
.el__text { display: flex; flex-direction: column; min-width: 0; }
.el__cat { font-size: .82rem; font-weight: 700; color: var(--accent); }
.el__ar { font: 700 1.45rem/1.35 "Amiri", serif; color: var(--choc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.el__en { font: 600 .82rem/1.3 var(--latin); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.el__note { display: none; }
html:lang(en) .el__ar { order: 2; font-size: 1rem; color: var(--muted); }
html:lang(en) .el__en { order: 1; font: 600 1.35rem/1.25 var(--latin); letter-spacing: 0; text-transform: none; color: var(--choc); }
.el__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
/* scripts off: every poster open in a simple grid */
html:not(.js) .elastic { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); height: auto; }
html:not(.js) .el__poster { flex: none; aspect-ratio: var(--ar); }
html:not(.js) .el__tab { display: none; }
html:not(.js) .el__info { height: auto; opacity: 1; padding-block: 14px 16px; }

/* lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100dvh; margin: 0; color: var(--ink); }
.lightbox::backdrop { background: rgb(42 16 5 / .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox__in { position: relative; height: 100%; display: grid; place-items: center; padding: 24px 72px; }
.lightbox__img { height: auto; max-height: calc(100dvh - 150px); width: auto; max-width: 100%; border-radius: 18px; box-shadow: 0 40px 80px -30px #000; }
.lightbox__bar { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; justify-content: center; margin-top: 14px; padding: 10px 10px 10px 22px;
  background: var(--card); border-radius: 999px; }
[dir="rtl"] .lightbox__bar { padding: 10px 22px 10px 10px; }
.lightbox__in { grid-template-rows: 1fr auto; }
.lightbox__ar { font: 700 1.3rem/1.2 "Amiri", serif; color: var(--choc); }
.lightbox__en { font: 600 0.72rem/1.2 var(--latin); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.lightbox__close { position: absolute; inset-block-start: 18px; inset-inline-end: 18px; background: var(--card); }
.lb-nav { position: absolute; inset-block-start: 50%; translate: 0 -50%; background: var(--card); }
.lb-nav--prev { inset-inline-start: 16px; } .lb-nav--next { inset-inline-end: 16px; }
[dir="ltr"] .lb-nav svg { transform: scaleX(-1); }
.lightbox[open] .lightbox__in { animation: lb-in 500ms var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } }

/* ---------- 4 · pinned chapter ---------- */
.track { position: relative; height: calc(var(--steps) * 80vh + 100vh); }
.pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-top: 60px; }
.pin__copy .h2 { margin-top: 14px; }
.steps { display: grid; margin-top: 34px; }
.step { position: relative; padding-inline-start: 64px; }
.step__n { position: absolute; inset-inline-start: 0; top: 2px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--gold); color: var(--choc); font: 800 1.1rem/1 var(--body); background: var(--card); }
.step .h3 { margin-top: 0; } .step p { margin-top: 10px; color: var(--muted); max-width: 40ch; }
.route { height: min(calc(100svh - 150px), 720px); width: auto; max-width: 100%; justify-self: center; overflow: visible; } /* sized by height so the last stop never drops below the pinned screen */
.route path { fill: none; stroke-linecap: round; }
.route__base { stroke: var(--line); stroke-width: 2; stroke-dasharray: 2 9; }
.route__gold { stroke: var(--gold); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); }
.route__wheat { stroke: var(--gold); stroke-width: 1.6; opacity: calc((var(--p, 0) - 0.92) * 12); }
.stop circle { fill: var(--card); stroke: var(--gold); stroke-width: 1.5; transition: fill 500ms, stroke-width 500ms; }
.stop path, .stop rect { fill: none; stroke: var(--choc); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; opacity: .35; transition: opacity 500ms, stroke 500ms; }
.stop.on circle { fill: var(--choc); stroke-width: 3; } .stop.on path, .stop.on rect { stroke: var(--card); opacity: 1; }

/* ---------- 5 · numbers ---------- */
.numbers { padding-block: clamp(64px, 8vw, 112px); }
.stats { grid-template-columns: repeat(4, 1fr); background: color-mix(in srgb, var(--gold) 35%, transparent); border-color: color-mix(in srgb, var(--gold) 35%, transparent); }
.stats > * { text-align: center; }
.stat b { font: 800 clamp(2.4rem, 1.6rem + 2.6vw, 3.8rem)/1.1 var(--body); color: var(--choc); }
.stat b small { font: 700 0.42em/1 var(--body); color: var(--accent); margin: 0 0.25em; }
.stat span { color: var(--muted); font-size: 0.98rem; }

/* ---------- 6 · story ---------- */
.story { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.story__seal img { width: min(100%, 420px); margin-inline: auto; filter: drop-shadow(0 30px 40px rgb(58 23 8 / .28)); }
.story .h2 { margin-top: 14px; }
.story .lede { margin-top: 18px; max-width: 52ch; }
.placeholder-tag { display: inline-block; margin-top: 18px; padding: 4px 12px; border: 1px dashed var(--gold); border-radius: 999px; font-size: 0.8rem; color: var(--accent); font-weight: 700; }

/* ---------- 7 · reviews ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { background: var(--card); border-color: color-mix(in srgb, var(--gold) 35%, transparent); border-style: dashed; }
.quote blockquote { font: 700 1.3rem/1.6 "Amiri", serif; color: var(--choc); }
html:lang(en) .quote blockquote { font: 600 1.3rem/1.4 var(--latin); }
.quote figcaption { margin-top: 20px; color: var(--muted); font-size: 0.9rem; }

/* ---------- 8 · closing ---------- */
.close { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding-block: clamp(110px, 15vw, 200px); }
.close::before { content: ""; position: absolute; inset: 10% 15%; z-index: -1; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--gold) 55%, transparent);
  box-shadow: 0 0 0 12px color-mix(in srgb, var(--bg) 100%, transparent), 0 0 0 13px color-mix(in srgb, var(--gold) 35%, transparent); }
.close .h1 { margin: 18px auto 0; max-width: 12ch; }
.close .lede { margin: 20px auto 0; }
.close .label { justify-content: center; }

/* ---------- footer ---------- */
.foot { background: #3A1708; color: color-mix(in srgb, var(--card) 78%, transparent); border: 0; padding-top: 72px; }
.foot__grid { grid-template-columns: 1.4fr 1fr 1fr; }
.foot__brand img { width: 170px; height: auto; }
.foot__brand p { margin-top: 14px; max-width: 30ch; }
.foot__h { color: var(--gold); font-weight: 800; margin-bottom: 8px; }
.foot__grid > div > a, .foot__grid > div > p:not(.foot__h) { display: flex; min-height: 44px; align-items: center; }
.foot a:hover { color: var(--card); }
.foot__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 22px;
  border-top: 1px solid rgb(247 231 200 / .14); font-size: 0.82rem; color: rgb(247 231 200 / .55); }

/* ---------- cart drawer ---------- */
.drawer { padding: 0; border: 0; width: min(460px, 100vw); max-width: none; height: 100dvh; max-height: none;
  background: var(--bg); color: var(--ink); box-shadow: 0 0 80px -20px rgb(58 23 8 / .6); }
.drawer::backdrop { background: rgb(42 16 5 / .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer[open] { animation: drawer-in 550ms var(--ease); }
@keyframes drawer-in { from { transform: translateX(-100%); } }
[dir="ltr"] .drawer[open] { animation-name: drawer-in-ltr; } @keyframes drawer-in-ltr { from { transform: translateX(100%); } }
.drawer__in { display: flex; flex-direction: column; height: 100%; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer__step { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; padding: 8px 22px 22px; }
.drawer__step[hidden] { display: none; }
.lines { flex: 1; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; }
.line__name { font: 700 1.15rem/1.3 "Amiri", serif; color: var(--choc); }
.line__price { font-size: 0.86rem; color: var(--muted); }
.line .stepper { transform: scale(.88); transform-origin: center; }
.empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; color: var(--muted); padding: 40px 0; }
.empty img { width: 110px; opacity: .85; }
.totals { position: sticky; bottom: -22px; margin: 0 -22px -22px; padding: 18px 22px 22px; background: var(--bg); border-top: 1px solid var(--line); display: grid; gap: 8px; }
.totals > div { display: flex; justify-content: space-between; align-items: baseline; }
.totals b { font-weight: 800; color: var(--choc); }
.totals .grand { padding-top: 8px; border-top: 1px dashed var(--line); font-size: 1.12rem; }
.totals__note { font-size: 0.84rem; color: var(--accent); font-weight: 600; }
.totals .btn { margin-top: 8px; }
.totals--final { position: static; margin: 8px 0 0; padding: 16px 0 0; }
.details { gap: 14px; }
.back { align-self: flex-start; min-height: 44px; border: 0; background: none; color: var(--accent); font-weight: 700; cursor: pointer; padding: 0; }
[dir="ltr"] .back span[aria-hidden] { display: inline-block; transform: scaleX(-1); }
.fld { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.fld > span, .fld legend { font-size: 0.86rem; font-weight: 700; color: var(--choc); padding: 0; }
.fld input, .fld textarea { width: 100%; min-height: 48px; padding: 10px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--choc) 22%, transparent);
  background: var(--card); color: var(--ink); font: 500 1rem/1.4 var(--body); transition: border-color var(--t-hover), box-shadow var(--t-hover); }
.fld textarea { resize: vertical; }
.fld input:focus, .fld textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent); }
.fld input[aria-invalid="true"] { border-color: #a33; }
.fld[hidden] { display: none; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: grid; gap: 2px; min-height: 60px; padding: 10px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--choc) 22%, transparent);
  background: var(--card); transition: border-color var(--t-hover), background var(--t-hover); }
.choice b { color: var(--choc); font-weight: 800; } .choice small { font-size: 0.78rem; color: var(--muted); }
.choice input:checked + span { border-color: var(--choc); background: color-mix(in srgb, var(--gold) 22%, var(--card)); box-shadow: inset 0 0 0 1px var(--choc); }
.choice input:focus-visible + span { outline: 2px solid var(--choc); outline-offset: 2px; }
.form-msg { min-height: 1.2em; color: #8a2a12; font-weight: 700; font-size: 0.9rem; }

/* toast */
.toast { position: fixed; inset-inline: 0; bottom: 22px; z-index: 80; width: max-content; max-width: calc(100vw - 32px); margin-inline: auto; padding: 12px 20px; border-radius: 999px;
  background: var(--choc); color: var(--card); font-weight: 700; font-size: 0.92rem; box-shadow: 0 20px 40px -20px rgb(58 23 8 / .8);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 400ms, transform 500ms var(--ease); }
.toast.on { opacity: 1; transform: none; }

/* ---------- phone ---------- */
@media (max-width: 1060px) { .dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .nav { inset-block-start: 42px; }
  .cart-btn__label { display: none; } .cart-btn { padding-inline: 12px 6px; }
  .nav__brand img { height: 40px; }
  .hero { padding: 120px 0 72px; min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__plate { order: -1; width: min(86vw, 420px); }
  .hero .h1 { max-width: 12ch; }
  .hero__cue { display: none; }
  .facts > div { flex-basis: 100%; padding-inline: 0 !important; border: 0 !important; display: flex; justify-content: space-between; align-items: baseline; }
  .head { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .story { grid-template-columns: 1fr; } .story__seal img { width: 220px; }
  .quotes { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .lightbox__in { padding: 64px 12px 16px; }
  .lb-nav { inset-block-start: auto; bottom: 96px; translate: none; }
  .lightbox__img { height: auto; max-height: calc(100dvh - 220px); }
  .lightbox__bar { border-radius: 22px; padding: 12px 16px; }
  .track { height: auto; } .pin { position: static; height: auto; display: block; padding-block: var(--section); }
  .route { display: none; }
  .steps { display: grid; gap: 30px; } .step { opacity: 1 !important; transform: none !important; visibility: visible !important; }
  .close::before { inset: 8% -30%; }
}

/* ---------- reduced motion: the finished, still picture ---------- */
@media (prefers-reduced-motion: reduce) {
  .plate__ring, .steam i { animation: none; } .steam i { opacity: .45; transform: translateY(-10%) scale(1.1); }
  .track { height: auto; } .pin { position: static; height: auto; padding-block: var(--section); }
  .steps { gap: 30px; } .step { opacity: 1; transform: none; visibility: visible; }
  .route { --p: 1; } .stop circle { fill: var(--choc); } .stop path, .stop rect { stroke: var(--card); opacity: 1; }
  .dish, .dish__img img, .el, .el__poster, .el__poster img, .el__info, .el__tab, .cartbar { transition: none !important; }
}

/* pinned chapter, wide screens with scripts: one step at a time, stacked in place */
@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  .js .steps { display: grid; }
  .js .step { grid-area: 1 / 1; opacity: 0; transform: translateY(16px); visibility: hidden;
    transition: opacity 500ms var(--ease), transform 700ms var(--ease), visibility 0s 500ms; }
  .js .step.on { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
}
/* the drawer sits on the end side: left in Arabic, right in English */
.drawer { position: fixed; inset-block: 0; inset-inline-end: 0; inset-inline-start: auto; margin: 0 !important; }

/* =====================================================================
   PHONE FIRST (2026-11-29): most of her customers arrive on a phone, from Instagram or WhatsApp.
   ===================================================================== */
.cartbar { display: none; }
@media (max-width: 860px) {
  :root { --section: 76px; }
  /* smooth on iPhone: no live blur behind the floating nav, no blended steam, each gallery card paints on its own */
  .nav__bar { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--card) 96%, transparent); }
  .menu { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  .steam { mix-blend-mode: normal; } .steam i { filter: none; background: radial-gradient(closest-side, rgb(255 250 240 / .5), transparent); }
  .el { contain: layout paint; }
  .drawer::backdrop, .lightbox::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .numbers, #story, .close, .foot { content-visibility: auto; contain-intrinsic-size: auto 700px; }
  /* 1 · the first screen carries the order button: smaller plate, button right under the headline */
  .hero { padding: 100px 0 52px; }
  .hero__grid { gap: 18px; }
  .hero__plate { width: min(64vw, 300px); }
  .hero__copy { display: flex; flex-direction: column; }
  .hero .h1 { margin-top: 12px; }
  .hero .actions { order: 3; margin-top: 22px; flex-wrap: nowrap; }
  .hero .actions .btn { flex: 1 1 0; justify-content: center; padding-inline: 16px; }
  .hero .lede { order: 4; margin-top: 22px; }
  .hero .facts { order: 5; margin-top: 26px; }

  /* 2 · the cart lives at the bottom, under the thumb, once something is in it */
  .cartbar { display: block; position: fixed; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45;
    transition: transform 550ms var(--ease), opacity 350ms, visibility 0s; }
  .cartbar[hidden] { display: block !important; transform: translateY(150%); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform 450ms var(--ease), opacity 300ms, visibility 0s 450ms; }
  .cartbar__btn { width: 100%; min-height: 62px; display: flex; align-items: center; gap: 12px; padding-block: 8px; padding-inline: 10px 8px;
    border: 0; border-radius: 999px; cursor: pointer; font: inherit; text-align: start; background: var(--choc); color: var(--card);
    box-shadow: 0 22px 40px -18px rgb(58 23 8 / .75), 0 0 0 1px color-mix(in srgb, var(--gold) 55%, transparent); }
  .cartbar__btn:active { transform: scale(.98); }
  .cartbar__icon { position: relative; flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgb(247 231 200 / .12); }
  .cartbar__icon b { position: absolute; top: -3px; inset-inline-end: -3px; min-width: 22px; height: 22px; padding: 0 5px; display: grid; place-items: center;
    border-radius: 999px; background: var(--gold); color: var(--ink); font-size: .8rem; font-weight: 800; }
  .cartbar__text { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
  .cartbar__label { font-weight: 800; font-size: 1rem; }
  .cartbar__sum { font-size: .86rem; color: rgb(247 231 200 / .82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cartbar__go { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px;
    background: var(--gold); color: var(--ink); font-weight: 800; }
  [dir="ltr"] .cartbar__go svg { transform: scaleX(-1); }
  .has-cart .foot { padding-bottom: 92px; }
  .has-cart .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }

  /* 3 + 4 · categories fit the screen and stay at the top while the menu scrolls */
  .filters { margin-bottom: 22px; }
  .filters .seg { display: flex; width: 100%; }
  .seg button { flex: 1 1 auto; padding: 0 8px; font-size: .92rem; white-space: nowrap; }
  #menu .filters { position: sticky; top: 80px; z-index: 30; margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter);
    background: var(--bg) url(img/grain.png); box-shadow: 0 14px 18px -16px rgb(58 23 8 / .35); }
  .dishes { scroll-margin-top: 150px; }

  /* 7 · gallery stacked: tap a strip, it opens to the whole poster */
  .elastic { flex-direction: column; height: auto; gap: 10px; container-type: inline-size; }
  .el, .el.is-open { flex: none; min-width: 0; border-radius: 20px; scroll-margin-top: 96px; }
  .el__poster { flex: none; height: 88px; transition: height 560ms var(--ease); }
  .el.is-open .el__poster { height: calc(100cqw / var(--ar)); }
  .el__tab { flex-direction: row; justify-content: space-between; align-items: center; padding: 0 18px;
    background: linear-gradient(to left, rgb(58 23 8 / .95), rgb(58 23 8 / .66) 60%, rgb(58 23 8 / .5)); }
  [dir="ltr"] .el__tab { background: linear-gradient(to right, rgb(58 23 8 / .95), rgb(58 23 8 / .66) 60%, rgb(58 23 8 / .5)); }
  .el__name { writing-mode: horizontal-tb; font-size: 1.45rem; max-height: none; max-width: 78%; }
  .el__info, .el.is-open .el__info { height: auto; }
  .el__info { max-height: 0; transition: max-height 560ms var(--ease), padding 560ms var(--ease), opacity 250ms; }
  .el.is-open .el__info { max-height: 240px; transition: max-height 560ms var(--ease), padding 560ms var(--ease), opacity 350ms 220ms; }
  .el.no-anim, .el.no-anim * { transition: none !important; }
  html:not(.js) .elastic { display: flex; }
  html:not(.js) .el__poster { height: auto; }

  /* 5 · the order form keeps its total and the send button pinned under the thumb */
  .details { scroll-padding-bottom: 170px; }
  .totals--final { padding-top: 12px; }

  /* 8 · less scrolling: reviews swipe sideways, the footer keeps only what is new */
  .quotes { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 10px; scrollbar-width: none; }
  .quotes::-webkit-scrollbar { display: none; }
  .quote { flex: 0 0 84%; scroll-snap-align: center; }
  .foot { padding-top: 48px; }
  .foot__grid { gap: 18px; }
  .foot__grid > div:nth-child(3) { display: none; }
  .foot__grid > div:nth-child(2) { display: flex; flex-wrap: wrap; column-gap: 24px; }
  .foot__grid > div:nth-child(2) .foot__h { flex-basis: 100%; margin-bottom: 0; }
  .foot__legal { margin-top: 24px; }
  .foot__grid > div:nth-child(2) > a { padding-inline: 6px; margin-inline: -6px; }

  /* 9 · nothing under 13px on a phone */
  .facts dt, .facts small, .placeholder-tag, .foot__legal { font-size: .86rem; }
  .choice small { font-size: .84rem; }
  .pill--soon { font-size: .86rem; }
}

/* 3 · compact menu cards: photo beside the words, price and add button on one row */
@media (max-width: 520px) {
  .dishes { grid-template-columns: 1fr; gap: 12px; }
  .dish { display: grid; grid-template-columns: 112px 1fr; border-radius: 20px; }
  .dish:hover { transform: none; }
  .dish__img { aspect-ratio: auto; height: 100%; min-height: 124px; }
  .dish__body { padding: 12px 14px; }
  .dish__cat { display: none; }
  .dish__ar { font-size: 1.24rem; line-height: 1.3; margin-top: 0; }
  .dish__en { font-size: .84rem; letter-spacing: .1em; }
  html:lang(en) .dish__en { font-size: 1.22rem; }
  .dish__note { margin-top: 2px; font-size: .86rem; }
  .dish__foot { flex-wrap: nowrap; gap: 8px; padding-top: 10px; }
  .dish .pill { min-height: 32px; padding: 0 11px; }
  .add { padding: 0 14px; }
  .nav__end { gap: 4px; }
}

/* 5 · the pinned send bar (all screens: the form is long everywhere) */
.sendbar { position: sticky; bottom: -22px; z-index: 2; display: grid; gap: 6px; margin: 6px -22px -22px; padding: 12px 22px calc(18px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -20px 30px -26px rgb(58 23 8 / .55); }
.sendbar .grand { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.12rem; }
.sendbar .grand b { font-weight: 800; color: var(--choc); }
.sendbar .form-msg { min-height: 0; }
.sendbar .btn { margin-top: 4px; }

/* 6 · step 3 of the drawer: «طلبك جاهز» (order number, summary, the real WhatsApp link) */
.done__head { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 18px 0 10px; }
.done__head img { width: 84px; height: 84px; }
.done__code { margin: 0; padding: 6px 18px; border-radius: 999px; background: var(--choc); color: var(--on-accent); font: 800 1.15rem/1.4 var(--body); }
.done__lede { margin: 0; color: var(--muted); max-width: 30ch; }
.done__lines { flex: 1; list-style: none; margin: 8px 0 0; padding: 0; }
.done__lines li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.done__lines li > span:first-child { font: 700 1.08rem/1.35 var(--display); color: var(--choc); }
.done__lines li b { color: var(--accent); font: 700 0.95rem var(--body); white-space: nowrap; }
.done__lines li > span:last-child { font-weight: 700; white-space: nowrap; color: var(--ink); }
.done__hint { margin: 0; text-align: center; font-size: 0.84rem; color: var(--muted); }
.sendbar .back { justify-self: center; align-self: center; }
.btn[disabled] { opacity: .7; cursor: progress; }
/* the honeypot: invisible to people and screen readers, only bots fill it */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
