@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("assets/fonts/NotoSansArabic-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  --stage: #071633;
  --stage-0: rgba(7, 22, 51, 0);
  --navy: #092d74;
  --navy-mid: #0e2a66;
  --surface: #0f2557;
  --surface-2: #163271;
  --line: rgba(183, 195, 224, .16);
  --text: #ffffff;
  --text-2: #b7c3e0;
  --text-3: #8fa0c8;
  --gold: #e7a420;
  --gold-ink: #071633;
  --font: "Montserrat", "Noto Sans Arabic", system-ui, sans-serif;
  --pad: 20px;
  --r: 18px;
  --r-s: 12px;
  --badge-h: 44px;
  --bar-h: 60px;
  --tabs-h: 56px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--stage); color-scheme: dark; }
body {
  margin: 0;
  font: 500 16px/1.5 var(--font);
  color: var(--text);
  background: var(--stage);
  min-height: 100dvh;
  padding-bottom: calc(var(--badge-h) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}
html:lang(ar), html:lang(fa) { --font: "Noto Sans Arabic", "Montserrat", system-ui, sans-serif; }
html:lang(ar) body, html:lang(fa) body { line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--s { width: 16px; height: 16px; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.money small { font-size: .62em; font-weight: 700; margin-inline-start: .12em; vertical-align: .1em; }
.sample-tag { display: block; font-size: 11px; font-weight: 700; line-height: 1.2; letter-spacing: .02em; color: var(--text-2); white-space: nowrap; }

.concept-badge {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30;
  min-height: var(--badge-h);
  padding: 7px 16px calc(7px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-mid); color: var(--text); border-top: 1px solid var(--line);
  font: 600 11.5px/1.35 "Montserrat", system-ui, sans-serif; text-align: center;
}
.draft {
  margin: 0; padding: 7px var(--pad);
  background: rgba(231, 164, 32, .14); color: var(--gold);
  font-size: 12.5px; font-weight: 600;
}

/* The stage: a photo bleeding into the navy ground */
.stage { position: relative; height: 50dvh; min-height: 330px; overflow: hidden; background: var(--navy-mid); }
.stage--tall { height: 52dvh; min-height: 380px; }
.stage-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.stage::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(7, 22, 51, .35) 0, var(--stage-0) 28%, var(--stage-0) 55%, var(--stage) 100%);
}

/* Landing: what the guest sees right after the tap */
/* Landing: MADO's own archive photograph instead of a plate, captioned with where the craft comes from */
.stage--archive { margin: 0; height: 54dvh; min-height: 360px; }
.stage--archive .stage-photo { object-position: 50% 30%; }
.stage--archive::after { background: linear-gradient(to bottom, rgba(7, 22, 51, .8) 0, rgba(7, 22, 51, .45) 18%, var(--stage-0) 32%, var(--stage-0) 46%, rgba(7, 22, 51, .7) 72%, var(--stage) 100%); }
.heritage {
  position: absolute; z-index: 1; inset-inline: var(--pad); top: 66px;
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--text);
}
.heritage::before { content: ""; width: 22px; height: 2px; border-radius: 1px; background: var(--gold); flex: none; }
html:lang(ar) .heritage, html:lang(fa) .heritage { letter-spacing: 0; font-size: 14px; }
.landing { min-height: calc(100dvh - var(--badge-h)); display: flex; flex-direction: column; }
.top { position: absolute; inset-inline: 0; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 16px var(--pad) 0; }
.tap { position: relative; z-index: 1; margin-top: -96px; padding: 0 var(--pad); }
.table-no { font-size: 84px; line-height: .95; font-weight: 800; letter-spacing: -.04em; }
html:lang(ar) .table-no, html:lang(fa) .table-no { letter-spacing: 0; line-height: 1.15; font-size: 66px; }
.where { margin-top: 10px; font-size: 17px; font-weight: 700; display: flex; flex-wrap: wrap; column-gap: 8px; align-items: baseline; }
.where span { font-weight: 500; font-size: 14px; color: var(--text-2); }
.tap .draft { margin: 14px calc(-1 * var(--pad)) 0; }
.lang-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 14px; color: var(--text-2); }
.lang-line b { color: var(--text); font-weight: 700; }
.link { color: var(--gold); font-weight: 700; font-size: 14px; padding: 10px 0; min-height: 44px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 22px; border-radius: 999px;
  font-size: 16px; font-weight: 700; transition: transform .2s var(--ease), background-color .2s;
}
.btn:active { transform: scale(.98); }
.btn--gold:hover { background: #f0b23a; }
.btn--gold { background: var(--gold); color: var(--gold-ink); margin-top: 8px; font-size: 17px; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--text-2); min-height: 52px; font-size: 14px; padding: 0 12px; text-align: center; line-height: 1.25; }
.btn--ghost:hover, .btn--ghost:active { background: rgba(255, 255, 255, .08); }
.btn--plain { background: var(--surface-2); color: var(--text); margin-top: 16px; width: 100%; }
.review { margin-top: auto; padding: 26px var(--pad) 22px; }
.review h2 { font-size: 17px; font-weight: 700; }
.review p { font-size: 14px; color: var(--text-2); margin-top: 2px; }
.review-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.review .review-off { color: var(--gold); margin-top: 10px; }

/* Header bar and chips */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 10px;
  min-height: var(--bar-h); padding: 8px 14px 8px var(--pad);
  background: var(--stage); color: var(--text);
}
[dir="rtl"] .bar { padding: 8px var(--pad) 8px 14px; }
.bar-end { margin-inline-start: auto; display: flex; gap: 8px; }
.logo img { height: 30px; width: auto; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--text);
  font-size: 14px; font-weight: 700; transition: background-color .2s;
}
.chip:hover, .chip:active, .round:hover { background: rgba(255, 255, 255, .18); }
.bar--sub h1 { font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar--sub { padding-inline-start: 10px; }
.round {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--text);
}

/* Category tabs, sticky under the bar, scroll sideways */
.tabs {
  position: sticky; top: var(--bar-h); z-index: 9; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  min-height: var(--tabs-h); padding: 8px var(--pad); background: var(--stage); scroll-snap-type: x proximity;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs > * {
  flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 700; scroll-snap-align: start;
  transition: background-color .2s, color .2s;
}
.tabs > :hover { color: var(--text); }
.tabs > [aria-current] { background: var(--gold); color: var(--gold-ink); }

/* Menu home: one swipeable rail per category */
.home { padding: 0 0 28px; }
.home-head { padding: 14px var(--pad) 4px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.home-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.home-head p { color: var(--text-2); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-sec { padding-top: 18px; }
.rail-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 var(--pad) 10px; }
.rail-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.rail-head span { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; color: var(--gold); }
.rail-head .ico { width: 16px; height: 16px; }
.rail {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--pad) 4px;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail > li { flex: none; width: 156px; scroll-snap-align: start; }
.card {
  display: grid; gap: 6px; border-radius: var(--r); background: var(--surface); overflow: hidden; padding-bottom: 12px;
  transition: transform .2s var(--ease);
}
.card:hover, .tile:hover { background: var(--surface-2); }
.card:active { transform: scale(.97); }
.card img { width: 156px; height: 156px; object-fit: cover; }
.card-name { padding: 4px 12px 0; font-size: 13.5px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card-price { padding: 0 12px; font-size: 18px; font-weight: 800; color: var(--gold); }
.card-price .absent, .tile-meta .absent { font-size: 12px; font-weight: 600; color: var(--text-2); line-height: 1.3; display: block; }

/* Category: a two-up photo grid */
.grid { padding: 6px var(--pad) 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: grid; gap: 6px; border-radius: var(--r); background: var(--surface); overflow: hidden; padding-bottom: 12px; transition: transform .2s var(--ease); }
.tile:active { transform: scale(.97); }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.tile-name { padding: 4px 12px 0; font-size: 14px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-meta { padding: 0 12px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tile-meta .money { font-size: 18px; font-weight: 800; color: var(--gold); }
.portion { font-size: 12.5px; font-weight: 600; color: var(--text-2); }

/* Item detail */
.detail { position: relative; }
.round--float { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; background: rgba(7, 22, 51, .55); backdrop-filter: blur(8px); }
.detail-body { position: relative; margin-top: -72px; padding: 0 var(--pad) 28px; }
.detail-body h1 { font-size: 28px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
html:lang(ar) .detail-body h1, html:lang(fa) .detail-body h1 { letter-spacing: 0; line-height: 1.4; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.price-big { font-size: 40px; line-height: 1; font-weight: 800; color: var(--gold); letter-spacing: -.02em; min-width: 0; }
.price-big .absent { display: block; font-size: 14px; line-height: 1.35; color: var(--text-2); letter-spacing: 0; }
.branch-pick {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  background: var(--surface-2); color: var(--text); font-size: 14px; font-weight: 700; white-space: nowrap; flex: none;
}
.detail-body .draft { margin: 14px calc(-1 * var(--pad)) 0; }
.portion-line { margin-top: 14px; display: flex; gap: 8px; align-items: baseline; font-size: 14px; color: var(--text-2); }
.portion-line b { color: var(--text); font-size: 15px; }
.detail-body h2 { margin-top: 24px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.allergens { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px 4px; margin-top: 12px; }
.allergens li { display: grid; justify-items: center; align-content: start; gap: 6px; font-size: 11px; font-weight: 700; line-height: 1.2; text-align: center; }
.pict {
  width: 48px; height: 48px; padding: 11px; border-radius: 999px; background: var(--surface-2); color: var(--gold);
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.none { margin-top: 10px; font-size: 14px; color: var(--text-2); }
.note { margin-top: 12px; font-size: 13px; color: var(--text-3); }
.lead { margin-top: 22px; font-size: 16px; font-weight: 600; line-height: 1.5; }
.long { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.ingredients { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.stamp { margin-top: 22px; font-size: 12.5px; color: var(--text-3); font-weight: 600; }

/* Sheets */
.sheet {
  margin: auto auto 0; width: 100%; max-width: 520px; max-height: 86dvh; overflow: auto;
  padding: 22px var(--pad) 0;
  border: 0; border-radius: 24px 24px 0 0; background: var(--navy-mid); color: var(--text);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .45);
}
.sheet::backdrop { background: rgba(2, 8, 24, .7); }
.sheet[open] { animation: rise .4s var(--ease); }
.sheet h2 { font-size: 20px; font-weight: 800; outline: none; }
.hint { margin-top: 4px; font-size: 14px; color: var(--text-2); }
.sheet .concept-badge { position: sticky; margin: 18px calc(-1 * var(--pad)) 0; }
.options { margin-top: 14px; display: grid; gap: 8px; }
.option {
  width: 100%; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; padding-inline-start: 16px;
  background: var(--surface); border-radius: 14px; text-align: start; transition: background-color .2s;
}
.option:hover { background: var(--surface-2); }
.option[aria-pressed="true"] { background: var(--surface-2); outline: 2px solid var(--gold); outline-offset: -2px; }
.option-text { flex: 1; display: grid; }
.options--grid { grid-template-columns: 1fr 1fr; }
.options--grid .option { min-height: 60px; padding-inline: 14px 8px; }
.option-name { font-weight: 700; font-size: 16px; }
.option-sub { font-size: 13px; color: var(--text-2); font-weight: 600; }
.option-price { font-weight: 800; font-size: 18px; color: var(--gold); }
.option-price .absent { font-size: 12px; color: var(--text-2); display: block; max-width: 120px; text-align: end; line-height: 1.3; }
.tick { width: 24px; color: var(--gold); display: inline-flex; }

@keyframes rise { from { transform: translateY(48px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
#app > * { animation: enter .45s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.noscript { padding: 24px; }
#app { max-width: 480px; margin: 0 auto; }
@media (min-width: 520px) { #app { min-height: 100dvh; box-shadow: 0 0 0 1px var(--line); } }
