/* =========================================================
   Masaya · Cocina libanesa — styles
   ========================================================= */

:root {
  --cream: #f4ecdb;
  --cream-2: #ece2cb;
  --card: #fbf6ea;
  --paper: #ece8e2;          /* matches the hero video paper */
  --ink: #2a1712;
  --ink-2: #5b463c;
  --muted: #8a7466;
  --wine: #7a1a1f;
  --wine-2: #5c1216;
  --wine-3: #3e0b0e;
  --red: #b3262b;
  --gold: #b08e54;
  --gold-2: #d2b27a;
  --green: #1f7a3a;
  --wa: #25d366;
  --glovo: #ffc244;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --track: .3em;             /* letter-spacing for eyebrows (disabled for Arabic) */

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(84px, 11vw, 150px);
  --carpet-h: clamp(52px, 6.5vw, 84px);
  --radius: 18px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --shadow: 0 30px 60px -30px rgba(62, 11, 14, .35), 0 10px 20px -12px rgba(62, 11, 14, .18);
}

html[lang="ar"] {
  --serif: "Amiri", "Noto Naskh Arabic", serif;
  --sans: "Tajawal", "Noto Sans Arabic", system-ui, sans-serif;
  --track: 0;
}

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

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

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background:
    linear-gradient(rgba(244, 236, 219, .38), rgba(244, 236, 219, .38)),
    var(--cream-2) url("../img/damask-tile.webp") repeat;
  background-size: auto, 214px 270px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body { font-size: 17px; }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.center { text-align: center; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: var(--track); text-transform: uppercase;
  color: var(--gold);
}
html[lang="ar"] .eyebrow { font-size: 14px; }

.title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--wine);
  margin-top: 14px;
  text-wrap: balance;
}
.title em { font-style: italic; color: var(--ink); }
html[lang="ar"] .title { line-height: 1.35; letter-spacing: 0; }
html[lang="ar"] .title em, html[lang="ar"] em { font-style: normal; }

.lead { font-family: var(--serif); font-size: clamp(22px, 2.3vw, 27px); line-height: 1.45; color: var(--ink); }
.sub { color: var(--ink-2); max-width: 56ch; margin: 18px auto 0; text-wrap: pretty; }

.section { position: relative; padding-block: var(--section-y); scroll-margin-top: 20px; }
.dark.section { scroll-margin-top: calc(var(--carpet-h) + 10px); }
.section-head { text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--wine); --fg: #fbf3e4;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap;
  transition: transform .35s var(--ease), background-color .3s, box-shadow .35s var(--ease), color .3s;
}
html[lang="ar"] .btn { letter-spacing: 0; font-size: 15px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(62, 11, 14, .6); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-wine:hover { --bg: var(--wine-2); }
.btn-ghost { --bg: transparent; --fg: var(--wine); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { --bg: var(--wine); --fg: #fbf3e4; box-shadow: inset 0 0 0 1.5px var(--wine); }
.btn-cream { --bg: var(--cream); --fg: var(--wine); }
.btn-cream:hover { --bg: #fff8ea; }
.btn-glovo { --bg: var(--glovo); --fg: #2a1712; }
.btn-glovo:hover { --bg: #ffd06b; }
.btn-whatsapp { --bg: #1faa55; --fg: #fff; }
.btn-whatsapp:hover { --bg: #178f47; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 11px; }
.btn.full { width: 100%; }

.link { color: var(--wine); font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .4s var(--ease); }
.link:hover { background-size: 100% 1.5px; }
.link-btn { color: inherit; opacity: .8; text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }

/* ---------- Carpet borders (from the wallpaper) ---------- */
.carpet {
  position: absolute; inset-inline: 0; height: var(--carpet-h);
  background-repeat: repeat-x; background-size: auto 100%;
  pointer-events: none; z-index: 2;
}
.carpet-top { top: 0; background-image: url("../img/carpet-down.webp"); }
/* On dark sections the carpet body merges into the wine and its scallops rise into the cream above */
.dark > .carpet-top, .carpet-up {
  top: 1px; transform: translateY(-100%);
  background-image: url("../img/carpet-up.webp");
}
.story { padding-top: calc(var(--section-y) + var(--carpet-h) * .6); }

/* ---------- Dark sections ---------- */
.dark {
  color: #f3e6cf;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, .06), transparent 60%),
    linear-gradient(180deg, var(--wine) 0%, var(--wine-2) 100%);
  isolation: isolate;
}
.dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/damask-tile.webp") repeat; background-size: 214px 270px;
  mix-blend-mode: soft-light; opacity: .35;
}
.dark .title { color: #f7ead3; }
.dark .title em { color: var(--gold-2); }
.dark .eyebrow { color: var(--gold-2); }

/* =========================================================
   Loader
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--paper);
  transition: opacity .9s var(--ease), visibility .9s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-logo { width: min(240px, 56vw); height: auto; animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; transform: scale(.985); } }
.loader-bar { width: min(200px, 50vw); height: 1.5px; background: rgba(42, 23, 18, .12); overflow: hidden; border-radius: 2px; }
.loader-bar span { display: block; height: 100%; background: var(--wine); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
html[dir="rtl"] .loader-bar span { transform-origin: right; }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed; z-index: 50;
  top: max(12px, env(safe-area-inset-top)); inset-inline: 0;
  width: min(100% - 24px, 1240px); margin-inline: auto;
  display: flex; align-items: center; gap: 16px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: rgba(251, 246, 234, .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 12px 30px -18px rgba(62, 11, 14, .45);
  transition: transform .6s var(--ease), background-color .4s, box-shadow .4s;
}
html[dir="rtl"] .header { padding: 8px 22px 8px 8px; }
.header.hidden { transform: translateY(calc(-100% - 24px)); }
.header.on-hero { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.header.on-hero .lang-btn { background: rgba(251, 246, 234, .9); box-shadow: 0 8px 20px -12px rgba(30, 6, 8, .6); }

.brand { display: block; flex: 0 0 auto; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.brand img { height: 30px; width: auto; }
.header.on-hero .brand { opacity: 0; transform: translateY(-6px); pointer-events: none; }

.nav { display: flex; gap: clamp(14px, 2vw, 30px); margin-inline: auto; }
.nav a {
  position: relative; text-decoration: none;
  font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); opacity: .85; padding: 6px 0;
  transition: opacity .3s, color .3s;
}
html[lang="ar"] .nav a { letter-spacing: 0; font-size: 15px; }
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1.5px; background: var(--wine);
  transform: scaleX(0); transition: transform .4s var(--ease);
}
.nav a:hover, .nav a.active { opacity: 1; color: var(--wine); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.nav + .header-actions { margin-inline-start: 0; }

.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  transition: background-color .3s;
}
.lang-btn:hover { background: rgba(122, 26, 31, .08); }
.lang-btn svg { width: 17px; height: 17px; fill: var(--wine); }
.lang-list {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0;
  list-style: none; min-width: 170px; padding: 8px;
  background: var(--card); border-radius: 16px; box-shadow: var(--shadow);
  animation: pop .25s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.lang-list button {
  width: 100%; text-align: start; padding: 10px 14px; border-radius: 10px; font-size: 14px;
}
.lang-list button:hover { background: rgba(122, 26, 31, .07); }
.lang-list button[aria-selected="true"] { color: var(--wine); font-weight: 600; }

.burger { display: none; width: 42px; height: 42px; border-radius: 50%; position: relative; background: var(--wine); }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.6px; background: #fbf3e4; transition: transform .4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Drawer */
.drawer {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: center; gap: 36px;
  padding: calc(var(--carpet-h) + 60px) 28px 40px;
  background: linear-gradient(180deg, var(--wine), var(--wine-3));
  color: #f7ead3;
  animation: drawer-in .5s var(--ease);
}
.drawer[hidden] { display: none; }
@keyframes drawer-in { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0); } }
.drawer-carpet { position: absolute; top: 0; inset-inline: 0; height: var(--carpet-h); background: url("../img/carpet-down.webp") repeat-x; background-size: auto 100%; }
.drawer-nav { display: grid; gap: 6px; }
.drawer-nav a { font-family: var(--serif); font-size: 36px; line-height: 1.25; text-decoration: none; }
.drawer-nav a:active { color: var(--gold-2); }
.drawer-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer-langs button { min-width: 48px; height: 40px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(247, 234, 211, .35); font-size: 13px; font-weight: 600; }
.drawer-langs button[aria-pressed="true"] { background: var(--cream); color: var(--wine); }
.drawer-contact { display: grid; gap: 4px; font-size: 14px; opacity: .85; }
.drawer-contact a { text-decoration: none; }

/* =========================================================
   Hero scroll sequence
   ========================================================= */
.seq { position: relative; height: 430vh; background: var(--paper); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#seq-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.beat {
  position: absolute; left: 50%; top: 56%;
  width: min(92vw, 720px);
  transform: translate(-50%, -50%);
  text-align: center; opacity: 0; pointer-events: none;
  will-change: opacity, transform;
}
.beat-title {
  margin-top: 12px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 5.4vw, 70px); line-height: 1.02;
  color: var(--wine);
}
.beat-title em { font-style: italic; color: var(--ink); }
html[lang="ar"] .beat-title { line-height: 1.3; }

.hero-panel {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: min(92vw, 560px); text-align: center;
  display: grid; justify-items: center; gap: 16px;
}
.hero-panel.below { top: 0; }
.hero-panel.floating {
  bottom: max(36px, 6vh);
  padding: 26px 30px 22px;
  border-radius: 26px;
  background: rgba(251, 246, 234, .94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 40px 70px -30px rgba(30, 6, 8, .6), inset 0 0 0 1px rgba(176, 142, 84, .45), inset 0 0 0 5px rgba(251, 246, 234, .94), inset 0 0 0 6px rgba(176, 142, 84, .25);
  opacity: 0; pointer-events: none;
}
.hero-panel.floating.show { pointer-events: auto; }
.hero-ornament { position: relative; width: 120px; height: 12px; }
.hero-ornament::before { content: ""; position: absolute; inset: 50% 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero-ornament::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; background: var(--wine); transform: translate(-50%, -50%) rotate(45deg); box-shadow: 0 0 0 4px var(--paper); }
.hero-panel.floating .hero-ornament::after { box-shadow: 0 0 0 4px var(--card); }
.hero-rating { font-size: 13px; color: var(--ink-2); margin-top: -4px; }
.hero-rating strong { color: var(--wine); font-weight: 600; }
.hero-panel.below .hero-tagline { font-size: clamp(26px, 7.4vw, 34px); }
.hero-tagline { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; color: var(--ink); text-wrap: balance; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-address { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

.hint {
  position: absolute; left: 50%; bottom: max(26px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink);
  pointer-events: none;
}
.hint i { width: 1px; height: 44px; background: currentColor; opacity: .5; animation: drip 2.2s cubic-bezier(.65, 0, .35, 1) infinite; transform-origin: top; }
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =========================================================
   Story
   ========================================================= */
.story-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center;
}
.story-copy p { margin-top: 20px; color: var(--ink-2); max-width: 56ch; }
.story-copy .lead { margin-top: 28px; color: var(--ink); }
.signature { margin-top: 30px; font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--wine); }
html[lang="ar"] .signature { font-style: normal; }

.story-media { position: relative; min-height: 560px; }
.arch { position: relative; overflow: hidden; border-radius: 999px 999px var(--radius) var(--radius); box-shadow: var(--shadow); background: var(--cream); }
.arch img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
/* The frame stays put; the photo drifts inside it (kept separate from the reveal transform) */
.arch > .parallax { position: absolute; inset: -60px 0; will-change: transform; }
.arch:hover img { transform: scale(1.04); }
.arch-tall { width: 72%; aspect-ratio: 3 / 4.3; margin-inline-start: auto; outline: 1px solid rgba(176, 142, 84, .5); outline-offset: 10px; }
.arch-small { position: absolute; width: 40%; aspect-ratio: 3 / 4; inset-inline-start: 0; bottom: -6%; border: 6px solid var(--card); }
.stamp { position: absolute; inset-inline-start: 6%; top: 2%; width: 130px; height: 130px; }
.stamp svg { width: 100%; height: 100%; animation: spin 40s linear infinite; }
.stamp text { font-family: var(--sans); font-size: 13.5px; font-weight: 600; letter-spacing: .22em; fill: var(--wine); }
.stamp img { position: absolute; inset: 0; margin: auto; width: 30px; height: auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); margin-top: clamp(80px, 10vw, 130px); }
.pillar {
  position: relative; padding: 36px 30px 32px; text-align: center;
  background: rgba(251, 246, 234, .78); border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 20px 40px -30px rgba(62, 11, 14, .4);
}
.pillar::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(176, 142, 84, .35); border-radius: calc(var(--radius) - 6px); pointer-events: none; }
.pillar svg { width: 46px; height: 46px; margin: 0 auto 16px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--wine); line-height: 1.2; }
.pillar p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }

.location {
  display: grid; grid-template-columns: .85fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center;
  margin-top: clamp(90px, 12vw, 160px);
}
.location-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 4.6; }
.location-photo img { width: 100%; height: 100%; object-fit: cover; }
.location-copy p { margin-top: 20px; color: var(--ink-2); max-width: 52ch; }
.location-list { list-style: none; margin-top: 24px; display: grid; gap: 10px; }
.location-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(179, 38, 43, .15); flex: none; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.badge { display: grid; padding: 14px 20px; border-radius: 14px; background: var(--card); box-shadow: 0 10px 24px -18px rgba(62, 11, 14, .5); }
.badge strong { font-family: var(--serif); font-size: 26px; color: var(--wine); line-height: 1.1; }
.badge span { font-size: 13px; color: var(--muted); }

/* =========================================================
   Signature dishes
   ========================================================= */
.dish-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 32px) clamp(16px, 2vw, 28px); }
.dish { text-align: center; }
.dish .arch { aspect-ratio: 3 / 3.8; }
.dish:nth-child(even) { transform: translateY(40px); }
.dish-body { padding: 18px 6px 0; }
.dish h3 { font-family: var(--serif); font-weight: 600; font-size: 25px; line-height: 1.15; color: var(--wine); }
.dish .price { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--gold); }
.dish p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }

/* =========================================================
   Full menu
   ========================================================= */
.menu-card {
  position: relative;
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 56px);
}
.menu-card::before {
  content: ""; position: absolute; inset: 12px; border-radius: 20px; pointer-events: none;
  border: 1px solid rgba(176, 142, 84, .45);
  box-shadow: inset 0 0 0 4px var(--card), inset 0 0 0 5px rgba(176, 142, 84, .25);
}
.menu-tabs {
  position: relative; display: flex; gap: 8px; overflow-x: auto;
  padding: 4px 4px 14px; margin-inline: -4px;
  scrollbar-width: none; scroll-snap-type: x proximity;
  mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tab {
  flex: none; scroll-snap-align: start;
  height: 42px; padding: 0 18px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(176, 142, 84, .45);
  transition: background-color .3s, color .3s, box-shadow .3s;
}
html[lang="ar"] .menu-tab { letter-spacing: 0; font-size: 15px; }
.menu-tab:hover { color: var(--wine); }
.menu-tab[aria-selected="true"] { background: var(--wine); color: #fbf3e4; box-shadow: none; }

.menu-body { position: relative; margin-top: 26px; min-height: 280px; }
.menu-cat-title { display: flex; align-items: center; gap: 18px; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 42px); color: var(--wine); margin-bottom: 20px; }
.menu-cat-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(176, 142, 84, .6), transparent); }
html[dir="rtl"] .menu-cat-title::after { background: linear-gradient(-90deg, rgba(176, 142, 84, .6), transparent); }
.menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px clamp(28px, 5vw, 70px); list-style: none; }
.menu-list.fade-in { animation: menu-in .55s var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(10px); } }
.menu-item { padding: 14px 0; border-bottom: 1px dashed rgba(176, 142, 84, .35); }
.menu-item.has-photo { display: flex; align-items: flex-start; gap: 15px; }
.menu-item-main { flex: 1; min-width: 0; }
.menu-thumb {
  flex: none; width: 72px; height: 72px; padding: 0;
  border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 8px 18px -12px rgba(62, 11, 14, .55), inset 0 0 0 1px rgba(176, 142, 84, .35);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.menu-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.menu-thumb:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(62, 11, 14, .6), inset 0 0 0 1px rgba(176, 142, 84, .5); }
.menu-thumb:hover img { transform: scale(1.08); }
.menu-thumb.is-empty {
  display: grid; place-items: center; cursor: default;
  background: linear-gradient(160deg, #fffaf0, #f2e8d4);
  box-shadow: inset 0 0 0 1px rgba(176, 142, 84, .3);
}
.menu-thumb.is-empty svg { width: 30px; height: 30px; fill: none; stroke: rgba(176, 142, 84, .55); stroke-width: 1.1; }

/* Photo viewer */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(8px, 2vw, 24px);
  padding: clamp(14px, 3vw, 40px);
  background: rgba(30, 6, 8, .88);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fade-in .3s var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } }
.lightbox-figure { display: grid; justify-items: center; gap: 16px; min-width: 0; }
.lightbox-figure img {
  max-width: 100%; max-height: 74vh; border-radius: 18px; object-fit: contain;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
  animation: pop-in .4s var(--ease);
}
@keyframes pop-in { from { opacity: 0; transform: scale(.96); } }
.lightbox figcaption { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 14px; color: #f7ead3; font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); text-align: center; }
.lightbox figcaption b { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--gold-2); }
.lightbox-close, .lightbox-nav {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(251, 246, 234, .12); color: #f7ead3;
  transition: background-color .3s, transform .3s var(--ease);
}
.lightbox-close { position: absolute; top: clamp(12px, 2vw, 24px); inset-inline-end: clamp(12px, 2vw, 24px); z-index: 2; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(251, 246, 234, .25); }
.lightbox-close svg, .lightbox-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .lightbox-nav svg { transform: scaleX(-1); }
.menu-item-top { display: flex; align-items: baseline; gap: 10px; }
.menu-item-name { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.25; color: var(--ink); }
.menu-item-top .leader { flex: 1; border-bottom: 1.5px dotted rgba(176, 142, 84, .7); transform: translateY(-5px); min-width: 20px; }
.menu-item-price { font-weight: 600; font-size: 14.5px; color: var(--wine); white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-item-desc { margin-top: 3px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.spicy { display: inline-flex; vertical-align: middle; margin-inline-start: 6px; color: var(--red); }
.spicy svg { width: 15px; height: 15px; fill: currentColor; }
.menu-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(176, 142, 84, .35); }
.menu-foot p { font-size: 13.5px; color: var(--muted); max-width: 60ch; }

/* =========================================================
   Delivery (Glovo)
   ========================================================= */
.delivery { padding-top: clamp(20px, 4vw, 48px); padding-bottom: calc(clamp(20px, 4vw, 48px) + var(--carpet-h) * .5); }
.delivery-card {
  display: grid; grid-template-columns: minmax(180px, 280px) 1fr;
  align-items: center; gap: clamp(24px, 4vw, 56px);
  padding: clamp(22px, 3.4vw, 40px);
  background: var(--card); border-radius: 28px;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.delivery-card::before {
  content: ""; position: absolute; inset: 12px; border-radius: 20px; pointer-events: none;
  border: 1px solid rgba(176, 142, 84, .4);
}
.delivery-card::after {
  content: ""; position: absolute; inset-inline-end: -80px; top: -80px; width: 260px; height: 260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 194, 68, .28), transparent 70%);
  pointer-events: none;
}
.delivery-photo { border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 3 / 3.4; box-shadow: 0 20px 40px -28px rgba(62, 11, 14, .6); }
.delivery-photo img { width: 100%; height: 100%; object-fit: cover; }
.delivery-copy { position: relative; }
.delivery-copy .title { font-size: clamp(30px, 3.8vw, 50px); }
.delivery-copy > p { margin-top: 16px; color: var(--ink-2); max-width: 46ch; }
.delivery-copy .btn { margin-top: 26px; }
.delivery-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); max-width: 46ch; }

.hero-glovo {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 194, 68, .28); box-shadow: inset 0 0 0 1px rgba(176, 142, 84, .4);
  transition: background-color .3s, transform .3s var(--ease);
}
html[lang="ar"] .hero-glovo { letter-spacing: 0; font-size: 14px; }
.hero-glovo:hover { background: var(--glovo); transform: translateY(-1px); }
.hero-glovo svg { width: 15px; height: 15px; fill: currentColor; }
.chip-glovo svg { fill: #b58200; }
.chip-glovo:hover { background: var(--glovo); color: var(--ink); }
.chip-glovo:hover svg { fill: var(--ink); }

/* =========================================================
   Gallery
   ========================================================= */
.gallery { padding-top: calc(var(--section-y) * .9); }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 18px); }
.mosaic figure { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--wine-3); aspect-ratio: 9 / 14; }
.mosaic .m7 { grid-column: span 2; aspect-ratio: auto; }
.mosaic img, .mosaic video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mosaic figure:hover img, .mosaic figure:hover video { transform: scale(1.04); }
.mosaic figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 40px 18px 16px;
  font-family: var(--serif); font-size: 20px; line-height: 1.2; color: #fff;
  background: linear-gradient(transparent, rgba(30, 6, 8, .75));
}
.mosaic .m1 { border-radius: 999px 999px var(--radius) var(--radius); }
.mosaic .m6 { border-radius: 999px 999px var(--radius) var(--radius); }
.insta { display: flex; justify-content: center; margin-top: clamp(36px, 5vw, 56px); }
.insta .btn { white-space: normal; text-align: center; }

/* =========================================================
   Reviews
   ========================================================= */
.rating { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: clamp(36px, 5vw, 56px); }
.rating-num { font-family: var(--serif); font-size: clamp(64px, 8vw, 96px); line-height: 1; color: var(--wine); }
.stars { color: #e1a526; font-size: 22px; letter-spacing: 3px; }
.rating p { font-size: 14px; color: var(--ink-2); }

.review-track-wrap { margin-inline: calc(var(--gutter) * -1); }
.review-track {
  display: flex; gap: 20px; overflow-x: auto;
  padding: 10px var(--gutter) 30px;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.review-track::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 min(86vw, 380px); scroll-snap-align: start;
  display: flex; flex-direction: column;
  padding: 34px 30px 26px;
  background: var(--card); border-radius: 22px;
  box-shadow: 0 24px 40px -30px rgba(62, 11, 14, .45);
  position: relative;
}
.review::before { content: "“"; position: absolute; top: 4px; inset-inline-end: 22px; font-family: var(--serif); font-size: 110px; line-height: 1; color: rgba(176, 142, 84, .28); }
html[dir="rtl"] .review::before { content: "”"; }
.review .stars { font-size: 16px; }
.review blockquote { margin-top: 14px; font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--ink); flex: 1; }
html[lang="ar"] .review blockquote { font-size: 20px; line-height: 1.7; }
.review footer { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: #fbf3e4; background: var(--wine); flex: none; }
.review cite { font-style: normal; font-weight: 600; font-size: 14.5px; display: block; }
.review small { font-size: 12px; color: var(--muted); }
.review-controls { display: flex; justify-content: center; align-items: center; gap: 18px; }
.round { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(122, 26, 31, .35); transition: background-color .3s, box-shadow .3s; }
.round:hover { background: var(--wine); box-shadow: none; }
.round svg { width: 20px; height: 20px; fill: none; stroke: var(--wine); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.round:hover svg { stroke: #fbf3e4; }
html[dir="rtl"] .round svg { transform: scaleX(-1); }
.review-dots { display: flex; gap: 8px; }
.review-dots button { width: 8px; height: 8px; border-radius: 99px; background: rgba(122, 26, 31, .25); transition: width .4s var(--ease), background-color .3s; }
.review-dots button[aria-current="true"] { width: 26px; background: var(--wine); }
.reviews .center { margin-top: 30px; }

/* =========================================================
   Reservation
   ========================================================= */
.reserve-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.reserve-intro > p { margin-top: 20px; opacity: .9; max-width: 46ch; }
.steps { list-style: none; margin-top: 32px; display: grid; gap: 16px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps span { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; color: var(--wine); background: var(--gold-2); }
.steps p { padding-top: 4px; }
.reserve-photo { width: min(260px, 60%); aspect-ratio: 3 / 3.8; margin-top: 44px; }

.reserve-card {
  position: relative;
  background: var(--card); color: var(--ink);
  border-radius: 28px; padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55);
}
#reserve-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
html[lang="ar"] .field label, html[lang="ar"] .field .label { letter-spacing: 0; font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1px solid rgba(176, 142, 84, .5); border-radius: 14px;
  background: #fff; font-size: 16px;
  transition: border-color .25s, box-shadow .25s;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%237a1a1f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: right 14px center; padding-inline-end: 40px;
}
html[dir="rtl"] .field select { background-position: left 14px center; }
.field input[type="date"] { min-height: 50px; }
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 4px rgba(122, 26, 31, .12); }
.field.invalid input, .field.invalid select { border-color: var(--red); }
.err { color: var(--red); font-size: 13px; min-height: 0; }
.err:empty { display: none; }
.hint-text { font-size: 13px; color: var(--muted); }
.guests { display: flex; flex-wrap: wrap; gap: 8px; }
.guests button {
  width: 46px; height: 46px; border-radius: 50%;
  font-weight: 600; box-shadow: inset 0 0 0 1px rgba(176, 142, 84, .55); background: #fff;
  transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.guests button:hover { transform: translateY(-2px); }
.guests button[aria-checked="true"] { background: var(--wine); color: #fbf3e4; box-shadow: none; }
#reserve-form .btn { grid-column: 1 / -1; margin-top: 6px; min-height: 56px; font-size: 13px; }
.fine { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); text-align: center; }

.reserve-done { text-align: center; animation: menu-in .6s var(--ease); }
.done-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: #e6f6ec; }
.done-icon svg { width: 36px; height: 36px; fill: none; stroke: #1faa55; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .7s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.reserve-done h3 { font-family: var(--serif); font-size: 38px; font-weight: 500; color: var(--wine); }
.reserve-done > p { margin-top: 8px; color: var(--ink-2); }
.done-summary { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; text-align: start; margin: 26px auto 0; padding: 20px 24px; border-radius: 16px; background: #fff; max-width: 420px; }
.done-summary dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.done-summary dd { font-weight: 500; }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.done-actions .link-btn { flex-basis: 100%; margin-top: 6px; }

/* =========================================================
   Visit
   ========================================================= */
.visit-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: stretch; }
.info-block { margin-top: 32px; }
.info-block h3 { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
html[lang="ar"] .info-block h3 { letter-spacing: 0; font-size: 15px; }
.info-block p { margin-top: 8px; font-family: var(--serif); font-size: 24px; line-height: 1.35; }
.info-block .link { display: inline-block; margin-top: 8px; }
.hours { margin-top: 10px; border-collapse: collapse; font-size: 17px; }
.hours td { padding: 6px 0; }
.hours td:first-child { padding-inline-end: 28px; color: var(--ink-2); }
.hours td:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.open-badge { font-size: 11px; letter-spacing: .08em; padding: 4px 10px; border-radius: 99px; color: #fff; background: #1faa55; }
.open-badge.closed { background: var(--muted); }
.open-badge:empty { display: none; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 18px; border-radius: 999px; background: var(--card); text-decoration: none; font-weight: 500; font-size: 14.5px; box-shadow: 0 10px 20px -16px rgba(62, 11, 14, .6); transition: transform .3s var(--ease), background-color .3s, color .3s; direction: ltr; }
.chip svg { width: 18px; height: 18px; fill: var(--wine); transition: fill .3s; }
.chip:hover { transform: translateY(-2px); background: var(--wine); color: #fbf3e4; }
.chip:hover svg { fill: #fbf3e4; }
.map { min-height: 460px; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); border: 6px solid var(--card); }
.map iframe { width: 100%; height: 100%; min-height: 448px; border: 0; filter: sepia(.18) saturate(.9); }

/* =========================================================
   Footer
   ========================================================= */
.footer { position: relative; margin-top: var(--carpet-h); padding: 64px 0 28px; color: #eedfc5; background: linear-gradient(180deg, var(--wine-2), var(--wine-3)); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; }
.footer-logo { width: min(360px, 100%); height: auto; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer h4 { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 8px; }
html[lang="ar"] .footer h4 { letter-spacing: 0; font-size: 14px; }
.footer p { font-size: 14.5px; line-height: 1.8; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(238, 223, 197, .15); font-size: 13px; opacity: .75; }

/* Floating WhatsApp */
.fab-wa {
  position: fixed; z-index: 40; bottom: max(18px, env(safe-area-inset-bottom)); inset-inline-end: 18px;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45);
  transform: scale(0); transition: transform .5s var(--ease);
}
.fab-wa.show { transform: scale(1); }
.fab-wa svg { width: 30px; height: 30px; fill: currentColor; }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .dish.reveal.in:nth-child(even) { transform: translateY(40px); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .stamp svg, .hint i, .loader-logo { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: block; }
}

@media (max-width: 900px) {
  .story-grid, .location, .reserve-grid, .visit-grid, .footer-grid { grid-template-columns: 1fr; }
  .story-media { min-height: 0; margin-top: 10px; }
  .arch-tall { width: 78%; }
  .location-photo { aspect-ratio: 4 / 3.4; }
  .pillars { grid-template-columns: 1fr; }
  .dish-grid { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin-inline: auto; }
  .menu-list { grid-template-columns: 1fr; }
  .menu-thumb { width: 64px; height: 64px; border-radius: 14px; }
  .lightbox { grid-template-columns: 1fr; grid-template-areas: "figure"; }
  .lightbox-figure { grid-area: figure; }
  .lightbox-nav { position: absolute; bottom: max(18px, env(safe-area-inset-bottom)); }
  .lightbox-nav.prev { inset-inline-start: 22px; }
  .lightbox-nav.next { inset-inline-end: 22px; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .mosaic .m7 { aspect-ratio: 16 / 11; }
  .reserve-photo { display: none; }
  .map, .map iframe { min-height: 360px; }
  .delivery-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .delivery-photo { width: min(220px, 60%); }
  .delivery-copy > p, .delivery-note { margin-inline: auto; }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .header { padding-inline-start: 16px; gap: 8px; }
  html[dir="rtl"] .header { padding-inline-start: 8px; padding-inline-end: 16px; }
  .brand img { height: 25px; }
  .header-cta { display: none; }
  .dish-grid { gap: 26px 14px; }
  .dish:nth-child(even), .js .dish.reveal.in:nth-child(even) { transform: translateY(26px); }
  .dish h3 { font-size: 21px; }
  .dish p { font-size: 13.5px; }
  .stamp { width: 96px; height: 96px; }
  #reserve-form { grid-template-columns: 1fr 1fr; }
  .guests button { width: 42px; height: 42px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hero-panel .btn { min-height: 46px; padding: 0 20px; }
  .review blockquote { font-size: 19px; }
  #reserve-form .btn { white-space: normal; text-align: center; line-height: 1.35; letter-spacing: .08em; padding: 12px 18px; }
  .done-actions .btn { width: 100%; }
}
