/* =========================================================
   La Villa 103 — production menu
   Palette and type are the demo's: ink / ivory / gold,
   Cormorant Garamond + Manrope (Amiri + Tajawal in Arabic).
   ========================================================= */

:root {
  --ink: #0b0a09;
  --ink-2: #141210;
  --ink-3: #1b1814;
  --ivory: #f3ead8;
  --muted: rgba(243, 234, 216, 0.64);
  --faint: rgba(243, 234, 216, 0.4);
  --line: rgba(243, 234, 216, 0.1);
  --line-2: rgba(243, 234, 216, 0.16);
  --gold: #d6b47a;
  --gold-hi: #f1dcaa;
  --gold-lo: #8a6a36;
  --gold-soft: rgba(214, 180, 122, 0.14);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --top: calc(64px + env(safe-area-inset-top));
  --nav: 50px;
  --gutter: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); scroll-padding-top: calc(var(--top) + var(--nav) + 6px); }
body {
  font-variant-numeric: lining-nums;
  margin: 0; min-height: 100vh; min-height: 100svh; background: var(--ink); color: var(--ivory);
  font: 400 15px/1.55 var(--sans); letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body.is-intro { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* soft warm vignette behind everything */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(80% 50% at 50% -10%, rgba(214, 180, 122, 0.09), transparent 70%),
    radial-gradient(60% 40% at 50% 110%, rgba(214, 180, 122, 0.05), transparent 70%);
}
/* subtle film grain (desktop only, see touch rules) */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow { font: 600 10.5px/1 var(--sans); letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); }

/* gold ornament: line — diamond — line */
.ornament { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--gold); }
.ornament span { width: 56px; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.ornament span:last-child { transform: scaleX(-1); }
.ornament i { width: 6px; height: 6px; transform: rotate(45deg); border: 1px solid currentColor; }
.ornament.small span { width: 34px; }
.ornament.small i { width: 5px; height: 5px; }

/* =========================================================
   Opening logo experience
   ========================================================= */
#intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; cursor: pointer; }
.intro-bg {
  position: absolute; inset: 0;
  background: radial-gradient(70% 55% at 50% 46%, #1d1810 0%, #0d0b09 55%, #050404 100%);
  transition: opacity 1s var(--ease) .15s;
}
.intro-halo {
  position: absolute; left: 50%; top: 46%; width: 130vmin; height: 130vmin; transform: translate(-50%, -50%) scale(.6);
  background: radial-gradient(closest-side, rgba(241, 220, 170, 0.22), rgba(214, 180, 122, 0.08) 45%, transparent 70%);
  opacity: 0; animation: halo 3.2s var(--ease) .5s forwards;
}
@keyframes halo { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 60% { opacity: 1; } 100% { opacity: .75; transform: translate(-50%, -50%) scale(1); } }
#introDust { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .6s; }

.intro-center { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; margin-top: -4vh; }
.intro-stage { position: relative; width: min(64vw, 300px); aspect-ratio: 1; }

.intro-ring { position: absolute; inset: -9%; width: 118%; height: 118%; transform: rotate(-90deg); overflow: visible; transition: opacity .5s, transform 1s var(--ease); }
.intro-ring circle { fill: none; stroke: url(#ringGold); stroke-width: .7; stroke-linecap: round; stroke-dasharray: 610; stroke-dashoffset: 610; animation: ring 1.9s var(--ease-io) .25s forwards; }
.intro-ring circle.r2 { stroke-width: .35; stroke-dasharray: 579; stroke-dashoffset: -579; opacity: .6; animation-delay: .45s; }
@keyframes ring { to { stroke-dashoffset: 0; } }

.intro-logo {
  position: absolute; inset: 0; opacity: 0;
  clip-path: circle(0% at 50% 50%); -webkit-clip-path: circle(0% at 50% 50%);
  filter: blur(14px) brightness(1.6); transform: scale(.9);
  animation: logoIn 1.8s var(--ease) .75s forwards;
  will-change: transform, filter, clip-path;
}
.intro-logo img { width: 100%; height: 100%; filter: drop-shadow(0 0 22px rgba(214, 180, 122, 0.22)); }
@keyframes logoIn {
  0% { opacity: 0; clip-path: circle(0% at 50% 50%); -webkit-clip-path: circle(0% at 50% 50%); filter: blur(14px) brightness(1.6); transform: scale(.9); }
  25% { opacity: 1; }
  70% { clip-path: circle(72% at 50% 50%); -webkit-clip-path: circle(72% at 50% 50%); }
  100% { opacity: 1; clip-path: circle(72% at 50% 50%); -webkit-clip-path: circle(72% at 50% 50%); filter: blur(0) brightness(1); transform: scale(1); }
}
/* golden light sweep, masked to the logo artwork */
.intro-shine {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(../assets/brand/logo.webp) center / 100% 100% no-repeat; mask: url(../assets/brand/logo.webp) center / 100% 100% no-repeat;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 244, 214, 0) 42%, rgba(255, 246, 222, .95) 50%, rgba(255, 244, 214, 0) 58%, transparent 65%) 0 0 / 320% 100% no-repeat;
  background-position: 130% 0;
  animation: shine 1.5s cubic-bezier(.5, 0, .3, 1) 2.2s forwards;
}
@keyframes shine { to { background-position: -30% 0; } }

.intro-caption { display: flex; align-items: center; gap: 14px; }
.intro-rule { width: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); animation: rule 1.2s var(--ease) 2.4s forwards; }
.intro-rule:last-child { transform: scaleX(-1); }
@keyframes rule { to { width: 48px; } }
.intro-tag {
  font: 500 11px/1 var(--sans); letter-spacing: 0.9em; text-transform: uppercase; color: var(--gold-hi); padding-inline-start: .6em;
  opacity: 0; animation: tagIn 1.4s var(--ease) 2.5s forwards;
}
@keyframes tagIn { to { opacity: .85; letter-spacing: 0.6em; } }

.intro-skip {
  position: absolute; bottom: calc(22px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  min-height: 44px; padding: 0 18px; font: 600 10px/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--faint);
  opacity: 0; animation: fade .6s ease 1.2s forwards; transition: color .3s;
}
.intro-skip:hover { color: var(--ivory); }
@keyframes fade { to { opacity: 1; } }

/* exit */
#intro.out .intro-bg, #intro.out .intro-halo { opacity: 0 !important; transition: opacity 1s var(--ease) .1s; animation: none; }
#intro.out #introDust, #intro.out .intro-caption, #intro.out .intro-skip { opacity: 0; transition: opacity .4s; animation: none; }
#intro.out .intro-ring { opacity: 0; transform: rotate(-90deg) scale(1.25); }
#intro.out .intro-shine { display: none; }
#intro.gone { pointer-events: none; }

/* returning visitor in the same session: a short version */
.intro-short .intro-ring, .intro-short .intro-caption, .intro-short .intro-skip { display: none; }
.intro-short .intro-logo { animation: logoQuick .8s var(--ease) .05s forwards; }
.intro-short .intro-halo { animation-duration: 1s; animation-delay: 0s; }
.intro-short .intro-shine { animation-delay: .5s; animation-duration: 1s; }
@keyframes logoQuick { from { opacity: 0; filter: blur(8px); transform: scale(.94); clip-path: circle(72%); -webkit-clip-path: circle(72%); } to { opacity: 1; filter: none; transform: none; clip-path: circle(72%); -webkit-clip-path: circle(72%); } }

/* page content rises in as the intro opens */
body.is-intro main, body.is-intro .topbar > :not(.brand) { opacity: 0; transform: translateY(16px); }
main, .topbar > * { transition: opacity 1s var(--ease) .2s, transform 1.2s var(--ease) .15s; }
body.is-intro .brand img { opacity: 0; }

/* =========================================================
   Top bar
   ========================================================= */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--top); padding: env(safe-area-inset-top) var(--gutter) 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: rgba(11, 10, 9, 0.97);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid transparent; transition: border-color .4s;
}
body[data-view="menu"] .topbar { border-bottom-color: transparent; }
.brand { grid-column: 2; grid-row: 1; display: block; width: 46px; height: 46px; }
.brand img { width: 100%; height: 100%; transition: opacity .3s; }
.back {
  grid-column: 1; grid-row: 1; justify-self: start; display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
  padding-block: 8px; padding-inline: 6px 12px; margin-inline-start: -6px; border-radius: 999px;
  font: 600 10.5px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
  transition: color .3s, opacity .4s, transform .4s var(--ease);
}
.back svg { width: 20px; height: 20px; }
.back:hover { color: var(--ivory); }
.back[data-hidden] { opacity: 0 !important; pointer-events: none; transform: translateX(-6px) !important; }

.lang-btn {
  grid-column: 3; grid-row: 1; justify-self: end; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px 0 12px;
  border-radius: 999px; border: 1px solid rgba(214, 180, 122, 0.4); background: rgba(214, 180, 122, 0.06);
  color: var(--ivory); transition: border-color .3s, background .3s;
}
.lang-btn:hover { border-color: var(--gold); background: var(--gold-soft); }
.lang-btn svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.lang-label { font: 600 13px/1 var(--sans); }
.lang-label:lang(ar) { font: 500 15px/1 'Tajawal', 'Geeza Pro', 'Noto Sans Arabic', system-ui, sans-serif; padding-top: 2px; }
.lang-label:lang(fr) { font: 600 12px/1 'Manrope', system-ui, sans-serif; letter-spacing: 0.06em; }

main { padding-top: var(--top); }
.view.enter { animation: viewIn .7s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } }

/* =========================================================
   Home
   ========================================================= */
#home { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter) calc(36px + env(safe-area-inset-bottom)); }
.home-hero { position: relative; padding: 34px 4px 30px; text-align: center; }
.home-hero .ornament { margin-bottom: 18px; }
.home-title { margin: 14px 0 12px; font: 400 clamp(56px, 17vw, 112px)/0.88 var(--serif); letter-spacing: -0.015em; }
.home-title em { font-style: italic; color: var(--gold); background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, #b8925a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-inline-end: .06em; }
.home-sub { margin: 0 auto; max-width: 32ch; color: var(--muted); font-size: 14px; }

.lang-seg { display: inline-flex; gap: 4px; margin-top: 24px; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02); }
.lang-seg a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; min-width: 116px; padding: 0 20px; border-radius: 999px; font: 500 14px/1 'Manrope', system-ui, sans-serif; color: var(--muted); transition: background .35s, color .35s; }
.lang-seg a[lang="ar"] { font: 500 16px/1 'Tajawal', 'Geeza Pro', 'Noto Sans Arabic', system-ui, sans-serif; }
.lang-seg a.active { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--ink); font-weight: 600; box-shadow: 0 6px 18px -8px rgba(214, 180, 122, 0.6); }

/* category cards */
.cat-grid { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cat-grid li { display: flex; opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.cat-grid li.in { opacity: 1; transform: none; }
.cat-card {
  position: relative; flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 10px 10px 14px; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  transition: border-color .45s, transform .5s var(--ease), background .45s;
}
.cat-card::before { /* thin gold top highlight */
  content: ''; position: absolute; inset: 0 18% auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(214, 180, 122, 0.55), transparent); opacity: .5; transition: opacity .45s;
}
.cat-card:hover { border-color: rgba(214, 180, 122, 0.4); background: linear-gradient(180deg, rgba(214, 180, 122, 0.08), rgba(255, 255, 255, 0.015)); }
.cat-card:hover::before { opacity: 1; }
.cat-card:active { transform: scale(0.98); }

.arch { position: relative; overflow: hidden; border-radius: 999px 999px 16px 16px; background: var(--ink-3); box-shadow: 0 0 0 1px rgba(214, 180, 122, 0.18), 0 20px 36px -18px rgba(0, 0, 0, 0.95); }
.arch img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .6s; }
.arch::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); background: linear-gradient(180deg, transparent 55%, rgba(11, 10, 9, 0.45)); pointer-events: none; }
.arch.blank { display: grid; place-items: center; background: radial-gradient(80% 70% at 50% 35%, rgba(214, 180, 122, 0.2), transparent 70%), linear-gradient(180deg, #1d1912, #0f0d0b); }
.arch.blank svg { width: 42%; height: auto; color: var(--gold); opacity: .9; }
.cat-card .arch { aspect-ratio: 4 / 4.4; }
.cat-card:hover .arch img { transform: scale(1.06); }

.cc-meta { display: flex; flex-direction: column; gap: 5px; padding: 0 4px; min-width: 0; }
.cc-num { font: 600 10.5px/1 var(--sans); letter-spacing: 0.2em; color: var(--gold); font-variant-numeric: tabular-nums; }
.cc-name { font: 500 clamp(21px, 5.6vw, 27px)/1.05 var(--serif); letter-spacing: -0.003em; overflow-wrap: anywhere; }
.cc-count { font-size: 11.5px; color: var(--faint); }
.cc-flag {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%); z-index: 2; white-space: nowrap;
  padding: 6px 10px; border-radius: 999px; font: 600 9px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-hi); background: rgba(11, 10, 9, 0.78); border: 1px solid rgba(214, 180, 122, 0.45);
}
.cat-card.is-off .arch img { filter: grayscale(.75) brightness(.6); }

.view-all {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; margin: 26px auto 0; padding: 16px 26px; border-radius: 999px;
  border: 1px solid rgba(214, 180, 122, 0.45); color: var(--gold-hi); font: 600 11px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase;
  transition: background .35s, border-color .35s, color .35s;
}
.view-all svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.view-all:hover { background: var(--gold-soft); border-color: var(--gold); color: var(--ivory); }
.view-all:hover svg { transform: translateX(4px); }

.foot { margin-top: 40px; text-align: center; color: var(--faint); font-size: 12px; }
.foot .ornament { margin-bottom: 14px; }
.foot p { margin: 4px 0; }

/* =========================================================
   Menu: sticky category bar
   ========================================================= */
.cat-nav {
  position: sticky; top: var(--top); z-index: 30; height: var(--nav); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
  background: rgba(11, 10, 9, 0.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  mask: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav-track { position: relative; display: flex; align-items: stretch; gap: 2px; width: max-content; min-width: 100%; height: 100%; padding: 0 14px; margin: 0 auto; justify-content: center; }
.cat-nav a {
  position: relative; display: flex; align-items: center; padding: 0 13px; white-space: nowrap;
  font: 500 13px/1 var(--sans); letter-spacing: 0.03em; color: var(--faint); transition: color .4s;
}
.cat-nav a:hover { color: var(--muted); }
.cat-nav a.active { color: var(--ivory); }
.cat-nav a.off::after { content: ''; width: 4px; height: 4px; margin-inline-start: 6px; border-radius: 50%; background: var(--faint); }
.cat-nav-ink { position: absolute; left: 0; bottom: 0; width: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-hi), var(--gold)); box-shadow: 0 0 12px rgba(214, 180, 122, 0.7); transition: transform .55s var(--ease), width .55s var(--ease); }

/* =========================================================
   Menu: sections
   ========================================================= */
.menu-body { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: 46px 0 8px; scroll-margin-top: calc(var(--top) + var(--nav)); }
.sec + .sec { border-top: 1px solid var(--line); margin-top: 30px; }

.sec-head { display: grid; grid-template-columns: 1fr 108px; gap: 18px; align-items: end; margin-bottom: 22px; }
.sec-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sec-num { display: flex; align-items: center; gap: 10px; font: 600 11px/1 var(--sans); letter-spacing: 0.22em; color: var(--gold); font-variant-numeric: tabular-nums; }
.sec-num::after { content: ''; width: 34px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.sec-kicker { font: 600 10px/1.3 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--faint); }
.sec-name { font: 500 clamp(40px, 11.5vw, 60px)/0.95 var(--serif); letter-spacing: -0.012em; overflow-wrap: anywhere; }
.sec-count { font-size: 12px; color: var(--muted); }
.sec-head .arch { aspect-ratio: 4 / 5; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.sec-head .arch img { transform: scale(1.12); }
.sec-head.in .arch img { transform: scale(1); }

/* unavailable notice (pizzas) */
.notice {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 14px 16px; border-radius: 16px;
  border: 1px solid rgba(214, 180, 122, 0.35); background: linear-gradient(90deg, rgba(214, 180, 122, 0.12), rgba(214, 180, 122, 0.03));
  color: var(--gold-hi); font-size: 13.5px; line-height: 1.4;
}
.notice svg { width: 20px; height: 20px; flex: none; color: var(--gold); }
.sec.is-off .sec-head .arch img { filter: grayscale(.75) brightness(.6); }

/* sub-groups */
.group + .group { margin-top: 30px; }
.group-title { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font: 500 italic 24px/1.1 var(--serif); color: var(--gold-hi); }
.group-title::before { content: ''; width: 6px; height: 6px; flex: none; transform: rotate(45deg); border: 1px solid var(--gold); }
.group-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(214, 180, 122, 0.4), transparent); }

/* items */
.items { list-style: none; margin: 0; padding: 0; }
.item { padding: 15px 2px 14px; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item-line { display: flex; align-items: baseline; gap: 10px; }
.item-name { font: 500 21px/1.2 var(--serif); letter-spacing: 0.002em; min-width: 0; font-variant-numeric: lining-nums; }
.leader { flex: 1; min-width: 18px; height: 1px; transform: translateY(-4px); background-image: radial-gradient(circle, rgba(214, 180, 122, 0.45) 0.7px, transparent 1.1px); background-size: 6px 2px; background-repeat: repeat-x; background-position: 0 50%; }
.price { flex: none; white-space: nowrap; font: 600 20px/1 var(--serif); color: var(--gold); font-variant-numeric: lining-nums tabular-nums; }
.price small { font: 600 10px/1 var(--sans); letter-spacing: 0.14em; color: rgba(214, 180, 122, 0.75); margin-inline-start: 3px; }
.item-desc { margin-top: 4px; font-size: 13px; color: var(--muted); }
.item.is-extra .item-name { font-style: italic; color: var(--muted); }

/* dish with a photo (added by the owner from /admin) */
.item.has-photo { display: grid; grid-template-columns: 62px 1fr; gap: 14px; align-items: center; }
.item-photo { width: 62px; height: 70px; border-radius: 999px 999px 12px 12px; }
.item-photo img { width: 100%; height: 100%; object-fit: cover; }
.item-body { min-width: 0; }
.item.is-off .item-photo img { filter: grayscale(.8) brightness(.6); }

/* unavailable item */
.item.is-off .item-name { color: rgba(243, 234, 216, 0.55); }
.badge-off {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; padding: 6px 11px; border-radius: 999px;
  font: 600 9.5px/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-hi); background: rgba(214, 180, 122, 0.08); border: 1px solid rgba(214, 180, 122, 0.32);
}
.badge-off::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(214, 180, 122, 0.8); }

/* "Poisson selon l'arrivage du jour" */
.daily {
  position: relative; margin-top: 22px; padding: 20px 18px; border-radius: 18px; text-align: center;
  border: 1px solid rgba(214, 180, 122, 0.3); background: radial-gradient(90% 120% at 50% 0%, rgba(214, 180, 122, 0.1), transparent 70%);
}
.daily p { font: 500 italic 22px/1.25 var(--serif); color: var(--gold-hi); }
.daily .ornament { margin-bottom: 10px; }

.menu-foot { max-width: 760px; margin: 50px auto 0; padding: 0 var(--gutter) calc(40px + env(safe-area-inset-bottom)); }
.to-top { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); font: 600 10.5px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); transition: color .3s, border-color .3s; }
.to-top svg { width: 18px; height: 18px; }
.to-top:hover { color: var(--ivory); border-color: var(--gold); }

/* =========================================================
   Larger screens
   ========================================================= */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .sec-head { grid-template-columns: 1fr 140px; }
}
@media (min-width: 900px) {
  .cat-grid { grid-template-columns: repeat(5, 1fr); }
  .home-hero { padding-top: 56px; }
  .menu-body { max-width: 1040px; }
  .sec { display: grid; grid-template-columns: 300px 1fr; column-gap: 64px; align-items: start; padding-top: 64px; }
  .sec-head { position: sticky; top: calc(var(--top) + var(--nav) + 28px); grid-template-columns: 1fr; grid-row: 1 / span 9; margin: 0; align-items: start; }
  .sec-head .arch { order: -1; width: 200px; }
  .sec > :not(.sec-head) { grid-column: 2; }
  .sec-name { font-size: 54px; }
  .item-name { font-size: 22px; }
}

/* =========================================================
   Phones & touch devices — cheaper surfaces for smooth scrolling
   ========================================================= */
@media (pointer: coarse) {
  body::after { display: none; }
  .topbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(11, 10, 9); }
  .cat-nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(11, 10, 9, 0.96); }
}
@media (max-width: 359px) {
  :root { --gutter: 12px; }
  .cat-grid { gap: 9px; }
  .sec-head { grid-template-columns: 1fr 88px; }
  .item-name { font-size: 19px; }
  .price { font-size: 18px; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .2s !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .intro-logo { opacity: 1; clip-path: none; -webkit-clip-path: none; filter: none; transform: none; animation: none !important; }
  .intro-ring circle { stroke-dashoffset: 0; animation: none !important; }
  .intro-shine, #introDust, .intro-halo { display: none; }
  .intro-rule { width: 48px; animation: none !important; }
  .intro-tag { opacity: .85; letter-spacing: .6em; animation: none !important; }
  .reveal, .cat-grid li { opacity: 1; transform: none; }
}

/* =========================================================
   Arabic (right-to-left)
   Arabic fonts, no letter-spacing (it breaks joined letters),
   larger small text, taller line-height, mirrored direction.
   ========================================================= */
[dir="rtl"] {
  --serif: 'Amiri', 'Geeza Pro', 'Noto Naskh Arabic', 'Times New Roman', serif;
  --sans: 'Tajawal', 'Geeza Pro', 'Noto Sans Arabic', system-ui, -apple-system, sans-serif;
}
[dir="rtl"] body, [dir="rtl"] body *:not(.lang-seg a[lang="fr"]):not(.lang-label:lang(fr)):not(.intro-skip) { letter-spacing: 0 !important; }
[dir="rtl"] .eyebrow, [dir="rtl"] .sec-kicker { font-size: 13.5px; font-weight: 700; line-height: 1.4; }
[dir="rtl"] .intro-tag { font-size: 18px; font-family: 'Amiri', 'Geeza Pro', serif; padding: 0; animation-name: fade; opacity: 0; }
[dir="rtl"] .intro-skip, [dir="rtl"] .back, [dir="rtl"] .to-top, [dir="rtl"] .view-all { font-size: 14px; }
[dir="rtl"] .home-title { font-size: clamp(54px, 16vw, 100px); line-height: 1.3; }
[dir="rtl"] .home-sub { line-height: 1.8; font-size: 15px; }
[dir="rtl"] .cc-name { font-size: clamp(20px, 5.4vw, 26px); line-height: 1.45; }
[dir="rtl"] .cc-count { font-size: 13px; }
[dir="rtl"] .cc-flag, [dir="rtl"] .badge-off { font-size: 12.5px; font-weight: 700; }
[dir="rtl"] .cat-nav a { font-size: 15px; }
[dir="rtl"] .sec-name { font-size: clamp(30px, 8.6vw, 54px); line-height: 1.35; }
[dir="rtl"] .sec-count { font-size: 13.5px; }
[dir="rtl"] .group-title { font-style: normal; font-size: 24px; line-height: 1.5; }
[dir="rtl"] .item-name { font-size: 22px; line-height: 1.55; }
[dir="rtl"] .item-desc, [dir="rtl"] .foot { font-size: 13.5px; line-height: 1.8; }
[dir="rtl"] .price { font-family: 'Tajawal', 'Geeza Pro', system-ui, sans-serif; font-weight: 500; font-size: 19px; }
[dir="rtl"] .price small { font-size: 13px; font-weight: 500; }
[dir="rtl"] .daily p { font-style: normal; font-size: 22px; line-height: 1.6; }
[dir="rtl"] .notice { font-size: 15px; }
[dir="rtl"] .dir-icon { transform: scaleX(-1); }
[dir="rtl"] .view-all:hover svg { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .back[data-hidden] { transform: translateX(6px) !important; }
[dir="rtl"] .sec-num::after, [dir="rtl"] .group-title::after { transform: scaleX(-1); }
[dir="rtl"] .leader { transform: translateY(-6px); }
