/* Sufrat Al-Jamr — restaurant template. Charcoal night + kashi turquoise + saffron. */
:root {
  --coal: #15110E;
  --coal-2: #1F1915;
  --coal-3: #2A221D;
  --text: #F3EADB;
  --muted: #B6A895;
  --saffron: #F4A93B;
  --saffron-d: #D98A17;
  --kashi: #2FA39B;
  --kashi-d: #0E5F5B;
  --ember: #E4572E;
  --paper: #FBF8F2;
  --paper-ink: #2A1F18;
  --wa: #1FA855;
  --focus: #F4A93B;
  --r: 18px;
  --display: 'Lalezar', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --body: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tiles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Crect width='48' height='48' fill='%230E5F5B'/%3E%3Cg fill='%232FA39B'%3E%3Crect x='13' y='13' width='22' height='22'/%3E%3Crect x='13' y='13' width='22' height='22' transform='rotate(45 24 24)'/%3E%3C/g%3E%3Ccircle cx='24' cy='24' r='5' fill='%23F4A93B'/%3E%3Cg fill='%23E9F3EF'%3E%3Cpath d='M0 0h6L0 6zM48 0h-6l6 6zM0 48h6l-6-6zM48 48h-6l6-6z'/%3E%3C/g%3E%3Ccircle cx='0' cy='24' r='2.5' fill='%23E9F3EF'/%3E%3Ccircle cx='48' cy='24' r='2.5' fill='%23E9F3EF'/%3E%3Ccircle cx='24' cy='0' r='2.5' fill='%23E9F3EF'/%3E%3Ccircle cx='24' cy='48' r='2.5' fill='%23E9F3EF'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; scroll-padding-top: 72px; background: var(--coal); }
body {
  font-family: var(--body);
  background: var(--coal);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
html[lang="en"] body { line-height: 1.55; }
body.has-bar { padding-bottom: 84px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
img { background: var(--coal-3); }

/* ---------- Studio chip ---------- */
.studio-bar {
  position: fixed; z-index: 60; top: 12px; inset-inline-end: 12px;
  display: flex; gap: 6px;
}
.studio-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font: 600 12px/1 var(--body); padding: 8px 11px; border-radius: 999px;
  background: rgba(21,17,14,.78); color: var(--text); text-decoration: none;
  border: 1px solid rgba(243,234,219,.18); backdrop-filter: blur(8px);
}
.studio-chip:hover { border-color: var(--saffron); }
html[dir="rtl"] .studio-chip svg { transform: scaleX(-1); }

/* ---------- Header ---------- */
.top { position: relative; z-index: 5; }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--display); font-size: 24px; line-height: 1; letter-spacing: 0; padding-top: 4px; }
.top-nav { display: none; gap: 22px; }
.top-nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.top-nav a:hover { color: var(--text); }
.is-embed .top-in { padding-inline-end: 0; }
@media (min-width: 820px) { .top-nav { display: flex; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 8px 0 40px; overflow: hidden; }
.hero::before { /* ember glow */
  content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%;
  background: radial-gradient(60% 60% at 50% 100%, rgba(228,87,46,.28), transparent 70%);
  pointer-events: none;
}
.hero-in { position: relative; display: grid; gap: 28px; }
.hero-art { position: relative; order: -1; width: min(340px, 86%); margin-inline: auto; aspect-ratio: 4 / 5; }
.arch, .arch-tiles {
  position: absolute; inset: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V42C0 20 22 8 50 0c28 8 50 20 50 42v58z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V42C0 20 22 8 50 0c28 8 50 20 50 42v58z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.arch-tiles { background: var(--tiles) 0 0 / 32px 32px; transform: translate(-14px, 14px); opacity: .95; }
html[dir="ltr"] .arch-tiles { transform: translate(14px, 14px); }
.arch { background: radial-gradient(80% 60% at 50% 85%, #5A2A16, var(--coal-3) 70%); overflow: hidden; }
.arch img { position: absolute; inset: -4% 0 auto; width: 100%; height: 108%; object-fit: cover; object-position: 50% 45%; background: transparent; }
.hero-badge {
  position: absolute; inset-inline-end: -10px; bottom: 18%;
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--saffron); color: var(--coal);
  font-family: var(--display); font-size: 19px; line-height: 1.05;
  box-shadow: 0 0 0 6px var(--coal);
  transform: rotate(-8deg);
}
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: #9EE0D6;
  background: rgba(47,163,155,.14); border: 1px solid rgba(47,163,155,.4);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #3FD3A0; box-shadow: 0 0 0 4px rgba(63,211,160,.2); }
.status.closed { color: #F5B9A4; background: rgba(228,87,46,.12); border-color: rgba(228,87,46,.4); }
.status.closed .dot { background: var(--ember); box-shadow: 0 0 0 4px rgba(228,87,46,.2); }
.hero-title {
  font-family: var(--display); font-size: clamp(44px, 12vw, 84px); line-height: 1.12;
  color: var(--text);
}
html[lang="en"] .hero-title { line-height: 1.02; font-size: clamp(42px, 11vw, 80px); }
.hero-title span[lang] { display: block; }
.hero-title::after {
  content: ""; display: block; width: 88px; height: 8px; margin-top: 14px; border-radius: 4px;
  background: linear-gradient(90deg, var(--ember), var(--saffron));
}
.hero-lead { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.facts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.facts li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); }
.facts svg { color: var(--saffron); flex: none; }

@media (min-width: 900px) {
  .hero { padding: 24px 0 72px; }
  .hero-in { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; }
  .hero-art { order: 0; width: 100%; max-width: 440px; }
  .hero-badge { width: 104px; height: 104px; font-size: 23px; inset-inline-end: -26px; }
  .facts { grid-template-columns: repeat(3, auto); gap: 18px 26px; justify-content: start; }
  .facts li { font-size: 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0;
  font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--saffron); color: var(--coal); }
.btn-primary:hover { background: #FFBC55; }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(243,234,219,.35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.btn-tile { background: var(--kashi-d); color: #fff; margin-top: 18px; }
.btn-tile:hover { background: #127470; }
.btn-block { width: 100%; }

/* ---------- Table banner ---------- */
.table-banner { background: var(--tiles) 0 0 / 28px 28px; padding: 10px 0; }
.table-in {
  display: flex; align-items: center; gap: 14px;
  background: var(--paper); color: var(--paper-ink); border-radius: 14px; padding: 12px 16px;
}
.table-num {
  flex: none; font-family: var(--display); font-size: 22px; line-height: 1;
  background: var(--ember); color: #fff; padding: 10px 14px 8px; border-radius: 10px;
}
.table-in p { font-size: 15px; font-weight: 500; }

/* ---------- Menu ---------- */
.menu { padding: 40px 0 56px; background: var(--coal-2); border-top: 1px solid rgba(243,234,219,.06); }
.sec-title { font-family: var(--display); font-size: clamp(34px, 8vw, 52px); line-height: 1.15; }
.sec-sub { color: var(--muted); margin-top: 4px; font-size: 15px; }
.menu-head { margin-bottom: 18px; }

.cats {
  position: sticky; top: 0; z-index: 20;
  background: rgba(31,25,21,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(243,234,219,.08);
}
.cats-in {
  width: min(1200px, 100%); margin-inline: auto;
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.cats-in::-webkit-scrollbar { display: none; }
.cat {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 6px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 14px; color: var(--muted);
  background: var(--coal); border: 1px solid rgba(243,234,219,.1);
}
html[dir="rtl"] .cat { padding: 5px 6px 5px 14px; }
.cat svg { flex: none; }
.cat:hover { color: var(--text); }
.cat.on { background: var(--saffron); color: var(--coal); border-color: var(--saffron); }

.menu-grid { display: grid; gap: 28px; margin-top: 8px; }
.order-col { display: none; }
@media (min-width: 1100px) {
  .menu-grid { grid-template-columns: 1fr 340px; align-items: start; gap: 40px; }
  .order-col { display: block; position: sticky; top: 76px; }
  body.has-bar { padding-bottom: 0; }
  .order-bar { display: none !important; }
}

.cat-sec { padding-top: 26px; }
.cat-title {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--display); font-size: 28px; line-height: 1.2; color: var(--saffron);
  margin-bottom: 6px;
}
.cat-title::after { content: ""; flex: 1; height: 10px; background: var(--tiles) 0 0 / 10px 10px; opacity: .55; border-radius: 2px; }

.item {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start;
  padding: 16px 0; border-bottom: 1px dashed rgba(243,234,219,.12);
}
.thumb {
  width: 96px; height: 96px; border-radius: 22px; overflow: hidden; background: var(--coal-3);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.art { background: var(--coal); }
.thumb.art svg { width: 100%; height: 100%; }
.item-name { font-size: 18px; font-weight: 700; line-height: 1.35; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.tag {
  font-size: 11.5px; font-weight: 600; line-height: 1; padding: 5px 8px; border-radius: 6px;
  color: #BDEBE5; background: rgba(47,163,155,.18);
}
.item-desc { color: var(--muted); font-size: 14px; margin-top: 3px; }
.item-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.price { font-weight: 700; font-size: 17px; color: #8FE0D6; white-space: nowrap; }
.add {
  min-height: 44px; min-width: 76px; padding: 0 18px; border-radius: 999px; border: 0;
  background: var(--saffron); color: var(--coal); font-weight: 700; font-size: 15px;
}
.add:hover { background: #FFBC55; }
.step {
  display: inline-flex; align-items: center; border-radius: 999px;
  background: var(--coal); border: 1.5px solid var(--saffron);
}
.step button {
  width: 40px; height: 38px; border: 0; background: none; color: var(--saffron);
  font-size: 22px; font-weight: 600; line-height: 1; border-radius: 999px;
}
.step button:hover { background: rgba(244,169,59,.14); }
.step output { min-width: 26px; text-align: center; font-weight: 700; }
.item.in .thumb { box-shadow: 0 0 0 3px var(--saffron); }

@media (min-width: 640px) {
  .cat-sec { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .cat-title { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .item { grid-template-columns: 112px 1fr; }
  .thumb { width: 112px; height: 112px; }
}

/* Desktop live order column */
.order-card {
  background: var(--paper); color: var(--paper-ink); border-radius: var(--r);
  padding: 22px; position: relative;
}
.order-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 10px; border-radius: var(--r) var(--r) 0 0;
  background: var(--tiles) 0 0 / 10px 10px;
}
.oc-title { font-family: var(--display); font-size: 28px; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.oc-table { font-family: var(--body); font-size: 13px; font-weight: 700; background: var(--ember); color: #fff; padding: 4px 10px; border-radius: 8px; }
.oc-empty { text-align: center; padding: 12px 0 4px; color: #6E5E50; font-size: 14px; }
.oc-empty svg { margin: 6px auto 10px; }
.oc-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.oc-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; font-size: 14.5px; }
.oc-q { font-weight: 700; color: var(--kashi-d); }
.oc-p { font-weight: 600; white-space: nowrap; }
.oc-sub { display: flex; justify-content: space-between; border-top: 2px dashed #D9CDBA; padding-top: 12px; margin-bottom: 14px; font-size: 16px; }

/* Mobile order bar */
.order-bar {
  position: fixed; z-index: 40; inset-inline: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 0 10px 0 18px; border-radius: 999px; border: 0;
  background: var(--saffron); color: var(--coal);
  font: 700 16px/1 var(--body);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  animation: rise .35s ease both;
}
html[dir="rtl"] .order-bar { padding: 0 18px 0 10px; }
.order-bar[hidden] { display: none; }
.ob-count { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; background: var(--coal); color: var(--saffron); font-size: 15px; }
.ob-label { flex: 1; text-align: start; }
.ob-total { background: rgba(21,17,14,.12); padding: 12px 16px; border-radius: 999px; white-space: nowrap; }
@keyframes rise { from { transform: translateY(120%); } to { transform: none; } }

/* ---------- Visit ---------- */
.visit { padding: 56px 0; }
.visit-grid { display: grid; gap: 34px; }
.addr { color: var(--muted); margin-top: 8px; font-size: 16px; }
.visit h3 { font-family: var(--display); font-size: 24px; color: var(--saffron); margin-bottom: 10px; }
.hours dl { margin: 0; display: grid; gap: 0; }
.hours dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed rgba(243,234,219,.15); }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 600; text-align: end; }
.pacha-row dd { color: #8FE0D6; }
.pay-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pay-list li { display: grid; gap: 1px; padding: 12px 14px; border-radius: 14px; background: var(--coal-2); border: 1px solid rgba(243,234,219,.07); font-size: 14px; color: var(--muted); }
.pay-list b { color: var(--text); font-size: 16px; }
@media (min-width: 900px) {
  .visit { padding: 80px 0; }
  .visit-grid { grid-template-columns: 1.1fr 1fr 1fr; gap: 48px; }
}

/* ---------- Footer ---------- */
.tile-band { height: 28px; background: var(--tiles) 0 0 / 28px 28px; }
.foot { background: #0F0C0A; }
.foot-in { display: grid; gap: 18px; padding: 28px 0 36px; align-items: center; }
.foot-name { font-family: var(--display); font-size: 28px; line-height: 1.2; }
.foot-note { color: var(--muted); font-size: 14px; }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--coal-3); color: var(--text); }
.socials a:hover { background: var(--kashi-d); }
.credit { font-size: 13px; color: var(--muted); text-decoration: none; }
.credit:hover { color: var(--saffron); text-decoration: underline; }
@media (min-width: 820px) { .foot-in { grid-template-columns: 1fr auto auto; gap: 36px; } }

/* ---------- Sheets ---------- */
.sheet {
  border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px;
  max-height: 92dvh; border-radius: 24px 24px 0 0;
  background: var(--paper); color: var(--paper-ink);
}
.sheet::backdrop { background: rgba(10,8,6,.66); backdrop-filter: blur(3px); }
.sheet[open] { animation: up .28s ease both; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) { .sheet { margin: auto; border-radius: 24px; } }
.sheet-in { padding: 20px 18px 22px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sheet-head h2 { font-family: var(--display); font-size: 26px; line-height: 1.2; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #EDE5D7; display: grid; place-items: center; color: var(--paper-ink); flex: none; }
.sheet-items { list-style: none; margin: 0 0 16px; padding: 0; }
.sheet-items li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n p" "s s"; gap: 6px 10px; padding: 10px 0; border-bottom: 1px dashed #D9CDBA; align-items: center; }
@media (min-width: 340px) { .sheet-items li { grid-template-columns: 1fr auto 84px; grid-template-areas: "n s p"; } }
@media (min-width: 340px) and (max-width: 419px) { .sheet-items .step button { width: 34px; } .si-p { font-size: 14px; } }
.si-n { grid-area: n; font-weight: 600; display: grid; }
.si-n small { color: #7A6A5B; font-weight: 500; font-size: 13px; }
.sheet-items .step { grid-area: s; justify-self: start; }
.si-p { grid-area: p; font-weight: 700; text-align: end; white-space: nowrap; }
.si-empty { color: #7A6A5B; }
.step-light { background: #fff; border-color: #E2D6C3; }
.step-light button { color: var(--paper-ink); }
.step-light button:hover { background: #F3ECDF; }

.seg { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { font-weight: 700; margin-bottom: 8px; padding: 0; width: 100%; }
.seg-opt { flex: 1 1 0; min-width: 120px; position: relative; }
.seg-opt[hidden] { display: none; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-opt > span { display: grid; place-items: center; min-height: 46px; padding: 6px 10px; border-radius: 12px; background: #fff; border: 1.5px solid #E2D6C3; font-weight: 600; text-align: center; }
.seg-opt input:checked + span { background: var(--paper-ink); border-color: var(--paper-ink); color: var(--paper); }
.seg-opt input:focus-visible + span { outline: 3px solid var(--saffron-d); outline-offset: 2px; }

.fields { display: grid; gap: 12px; }
@media (min-width: 520px) { .fields { grid-template-columns: 1fr 1fr; } .f-wide { grid-column: 1 / -1; } }
.f { display: grid; gap: 5px; }
.f[hidden] { display: none; }
.fl { font-size: 14px; font-weight: 600; color: #5C4D40; }
.f input, .f select, .f textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px;
  border: 1.5px solid #E2D6C3; background: #fff; color: var(--paper-ink); font-size: 16px;
}
.f textarea { resize: vertical; min-height: 64px; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--kashi-d); outline: none; box-shadow: 0 0 0 3px rgba(47,163,155,.25); }
html[dir="rtl"] #phone { text-align: right; }
.err { color: #B3261E; font-weight: 600; font-size: 14px; min-height: 0; margin: 10px 0 0; }
.err:empty { display: none; }
.totals { margin: 16px 0; display: grid; gap: 6px; font-size: 15px; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; }
.totals .tot { font-size: 19px; font-weight: 800; border-top: 2px solid var(--paper-ink); padding-top: 10px; margin-top: 4px; }

/* WhatsApp preview: torn order chit */
.sheet-preview { background: var(--coal-2); color: var(--text); }
.sheet-preview .x { background: var(--coal-3); color: var(--text); }
.chit {
  position: relative; background: var(--paper); color: var(--paper-ink);
  padding: 26px 18px 30px; margin: 8px 4px 0;
  -webkit-mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 90deg, #0000 91deg) bottom / 16px 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 90deg, #0000 91deg) top / 16px 51% repeat-x;
          mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 90deg, #0000 91deg) bottom / 16px 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 90deg, #0000 91deg) top / 16px 51% repeat-x;
}
.chit-stamp {
  position: absolute; top: 22px; inset-inline-end: 16px;
  font-family: var(--display); font-size: 20px; line-height: 1; color: var(--ember);
  border: 2.5px solid var(--ember); border-radius: 10px; padding: 8px 10px 5px;
  transform: rotate(-9deg); opacity: .85;
}
.chit-msg {
  margin: 0; white-space: pre-wrap; word-break: break-word;
  font-family: var(--body); font-size: 14.5px; line-height: 1.75;
  max-height: 46dvh; overflow: auto; padding-inline-end: 4px;
}
.pv-note { color: var(--muted); font-size: 13px; margin: 14px 4px 0; }
.pv-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.pv-actions .btn { flex: 1 1 auto; white-space: nowrap; padding: 0 18px; }
.pv-actions .btn-wa { flex-grow: 2; }
.btn-ghost-dark { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(243,234,219,.3); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #22BB5F; }

/* Toast */
.toast {
  position: fixed; z-index: 70; left: 50%; bottom: 92px; transform: translate(-50%, 20px);
  background: var(--text); color: var(--coal); font-weight: 600; font-size: 14px;
  padding: 10px 16px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1100px) { .toast { bottom: 24px; } }

/* Table mode: lighter hero so the menu comes first */
.is-table .hero-cta .btn-ghost,
.is-table .hero-art,
.is-table .facts { display: none; }
.is-table .hero { padding-bottom: 28px; }
.is-table .hero-in { grid-template-columns: 1fr; }
.is-table .hero-title { font-size: clamp(36px, 9vw, 56px); }
.sheet-head h2:focus { outline: none; }

/* Embedded in the studio phone preview */
.is-embed .hero-art { width: min(300px, 80%); }

/* =====================================================================
   v2 — motion & craft system (tempo x0.9 for the restaurant)
   ===================================================================== */
:root {
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-inout: cubic-bezier(.65,0,.35,1);
  --ease-snap: cubic-bezier(.34,1.56,.64,1);
  --ease-lux: cubic-bezier(.16,1,.3,1);
  --ease-in: cubic-bezier(.55,0,1,.45);
  --d-1: 108ms; --d-2: 198ms; --d-3: 378ms; --d-4: 630ms; --d-5: 990ms;
}
.btn { transition: transform var(--d-2) var(--ease-out), background-color var(--d-1) ease, box-shadow var(--d-1) ease; }
.btn.is-magnetic { transition: background-color var(--d-1) ease, box-shadow var(--d-1) ease; }
.add, .step button { transition: background-color var(--d-1) ease, transform var(--d-2) var(--ease-snap); }
.add:active, .step button:active { transform: scale(.92); }

/* Hero is the only thing held back for its entrance (max 1.6s, never in table mode) */
.motion-pending .hero-copy > *, .motion-pending .hero-art { opacity: 0; }

/* Word masks — words only, Arabic letters stay joined */
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .14em .1em; margin-block: -.14em -.1em; }
.wi { display: inline-block; will-change: auto; }
html[lang="ar"] .wm, html[lang="ar"] .wi { letter-spacing: 0; }

/* Steam + embers over the hero dish */
.steam { position: absolute; z-index: 2; inset: -22% -12% 28%; width: 124%; height: 94%; pointer-events: none; mix-blend-mode: screen;
  -webkit-mask: radial-gradient(closest-side, #000 55%, transparent); mask: radial-gradient(closest-side, #000 55%, transparent); }
.embers {
  position: absolute; inset: auto 0 0; height: 46%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(70% 85% at 50% 105%, rgba(244,169,59,.5), rgba(228,87,46,.22) 45%, transparent 72%);
  transform-origin: 50% 100%;
  animation: glow 3.4s var(--ease-inout) infinite alternate;
}
@keyframes glow { from { opacity: .5; transform: scaleY(.9); } to { opacity: 1; transform: scaleY(1.06); } }
.arch::after { /* vignette so the dish reads "alinea dark" */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(21,17,14,.35), transparent 30%, transparent 70%, rgba(21,17,14,.45));
}
.hero-badge { z-index: 3; }

/* Menu photos: SVG plate underneath, photo on top when the file exists */
.thumb.has-ph { position: relative; }
.thumb.has-ph img { position: absolute; inset: 0; background: transparent; }
.item.in .thumb { box-shadow: 0 0 0 3px var(--saffron); transition: box-shadow var(--d-2) var(--ease-out); }

/* Add-to-order flight + counter pulse */
.fly { position: fixed !important; z-index: 80; margin: 0; pointer-events: none; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 28px rgba(0,0,0,.45) !important; will-change: transform, opacity; }
.pulse { animation: pulse var(--d-3) var(--ease-snap); }
@keyframes pulse { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }
#orderCard.pulse { animation: card-pulse var(--d-3) var(--ease-snap); }
@keyframes card-pulse { 0% { transform: none; } 40% { transform: translateY(-4px) scale(1.015); } 100% { transform: none; } }

/* Receipt prints in from the top, then the stamp lands */
.sheet-preview[open] .chit { animation: print var(--d-4) var(--ease-out) .08s both; }
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-10px); } to { clip-path: inset(0 0 0 0); transform: none; } }
.sheet-preview[open] .chit-stamp { animation: stamp .42s var(--ease-snap) .62s both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-9deg) scale(1.4); } to { opacity: .85; transform: rotate(-9deg) scale(1); } }
.sheet[open] { animation: up var(--d-3) var(--ease-out) both; }

/* ---------- Tea corner ---------- */
.tea { padding: 64px 0 72px; position: relative; overflow: hidden; background:
  radial-gradient(60% 50% at 20% 40%, rgba(47,163,155,.13), transparent 70%), var(--coal); }
.tea-grid { display: grid; gap: 40px; align-items: center; }
.tea-media { position: relative; width: min(360px, 84%); margin-inline: auto; }
.tea-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 200px 200px 22px 22px; overflow: hidden;
  background: radial-gradient(70% 55% at 50% 70%, #6B3414, #241A15 72%);
  box-shadow: 0 0 0 10px var(--coal), 0 0 0 12px rgba(47,163,155,.55);
}
.tea-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.tea-fallback { position: absolute; inset: 14% 10%; width: 80%; height: 72%; opacity: .95; }
.float { position: absolute; z-index: 2; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.fl-1 { top: 8%; inset-inline-start: -10%; transform: rotate(-18deg); }
.fl-2 { top: 46%; inset-inline-end: -8%; transform: rotate(24deg); }
.fl-3 { bottom: -6%; inset-inline-start: -8%; }
.fl-4 { top: -2%; inset-inline-end: 12%; transform: rotate(-30deg); }
.tea-sub { max-width: 44ch; margin-top: 10px; }
.tea-rows { display: grid; gap: 10px; margin-top: 22px; max-width: 460px; }
.tea-row.item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center;
  padding: 10px 12px; border: 1px solid rgba(243,234,219,.09); border-radius: 18px; background: var(--coal-2);
}
.tea-row .thumb { width: 64px; height: 64px; border-radius: 16px; }
.tr-body { display: grid; gap: 2px; }
.tr-n { font-weight: 700; font-size: 16px; line-height: 1.35; }
.tea-row .price { font-size: 15px; }
@media (min-width: 900px) {
  .tea { padding: 104px 0; }
  .tea-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; }
  .tea-media { width: 100%; max-width: 420px; }
}

/* ---------- Ember band ---------- */
.ember-band { position: relative; min-height: 420px; display: grid; align-items: end; overflow: hidden; background: #0F0C0A; }
.eb-media {
  position: absolute; inset: 0; margin: 0; overflow: hidden;
  background:
    radial-gradient(45% 60% at 50% 100%, rgba(244,169,59,.45), transparent 70%),
    radial-gradient(30% 40% at 30% 95%, rgba(228,87,46,.4), transparent 70%),
    repeating-linear-gradient(90deg, rgba(243,234,219,.05) 0 2px, transparent 2px 26px),
    #120D0A;
}
.eb-media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; background: transparent; }
.eb-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,12,10,.92), rgba(15,12,10,.2) 60%, rgba(15,12,10,.35)); }
.eb-copy { position: relative; z-index: 1; padding: 120px 0 44px; }
.eb-title { font-family: var(--display); font-size: clamp(44px, 11vw, 112px); line-height: 1.1; color: var(--text); }
html[lang="en"] .eb-title { line-height: 1; }
.eb-copy p { margin-top: 12px; max-width: 44ch; color: #E5D8C4; font-size: 17px; }
@media (min-width: 900px) { .ember-band { min-height: 560px; } .eb-copy { padding: 200px 0 72px; } }

/* ---------- Custom cursor (desktop, after JS) ---------- */
.cursor {
  position: fixed; z-index: 90; top: 0; left: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%; background: var(--saffron); pointer-events: none; mix-blend-mode: difference;
  opacity: 0; transition: width var(--d-2) var(--ease-out), height var(--d-2) var(--ease-out), margin var(--d-2) var(--ease-out), background-color var(--d-2), opacity var(--d-2);
}
.cursor.on { opacity: 1; }
.cursor.link { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--saffron); mix-blend-mode: normal; }
.cursor.off { opacity: 0; }
html.has-cursor body, html.has-cursor a, html.has-cursor button, html.has-cursor label { cursor: none; }
html.has-cursor input, html.has-cursor select, html.has-cursor textarea { cursor: auto; }
html.has-cursor dialog, html.has-cursor dialog * { cursor: auto; }
html.has-cursor dialog a, html.has-cursor dialog button, html.has-cursor dialog label { cursor: pointer; }

/* ---------- Motion switch in the footer ---------- */
.motion-toggle {
  justify-self: start; background: none; border: 1px solid rgba(243,234,219,.18); color: var(--muted);
  font-size: 13px; padding: 7px 12px; border-radius: 999px;
}
.motion-toggle:hover { color: var(--text); border-color: var(--saffron); }
@media (min-width: 820px) { .foot-in { grid-template-columns: 1fr auto auto auto; } }

/* ---------- No motion (footer switch) ---------- */
.no-motion *, .no-motion *::before, .no-motion *::after { animation: none !important; transition-duration: .01ms !important; }
.no-motion .steam { display: none; }
@media (prefers-reduced-motion: reduce) { .steam { display: none; } .embers { animation: none; opacity: .8; } }

/* Table mode keeps the tea quick-add but drops the decorative band */
.is-table .ember-band { display: none; }

/* ---------- Studio chips vs. sticky category bar ----------
   On narrow screens (and whenever the category bar is stuck) the back chip collapses to an arrow icon,
   and the header/category bar reserve room at the inline end so nothing ever sits under the chips. */
.studio-chip > span[lang] { transition: none; }
@media (max-width: 519px) {
  a.studio-chip > span[lang] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  a.studio-chip { width: 34px; height: 32px; justify-content: center; padding: 0; }
  html:not(.is-embed) .top-in { padding-inline-end: 124px; }
}
html.cats-stuck a.studio-chip > span[lang] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.cats-stuck a.studio-chip { width: 34px; height: 32px; justify-content: center; padding: 0; }
@media (max-width: 1500px) {
  html.cats-stuck:not(.is-embed) .cats-in { width: auto; margin-inline: 0 132px; padding-inline-end: 12px;
    -webkit-mask: linear-gradient(to var(--fade-dir, left), #000 calc(100% - 18px), transparent); mask: linear-gradient(to var(--fade-dir, left), #000 calc(100% - 18px), transparent); }
  html[dir="ltr"] { --fade-dir: right; }
}
.studio-bar { top: 12px; align-items: center; }
