/* =========================================================
   OUD | عُود — Beirut Coffee Lounge
   Palette pulled from the shop: cream arched walls, emerald
   kufic logo, pistachio teapot, brass and Persian rugs.
   ========================================================= */

:root {
  --cream: #F4EDE1;
  --paper: #FBF7EF;
  --sand: #E8DCC6;
  --stone: #CDBFA3;
  --ink: #26261E;
  --ink-soft: #5D594B;
  --emerald: #1F4B39;
  --emerald-2: #2C6A4F;
  --forest: #14261D;
  --olive: #5F6430;
  --pistachio: #C3CB76;
  --gold: #B8914A;
  --gold-2: #E2C27D;
  --coffee: #6B4426;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, sans-serif;
  --kufi: 'Reem Kufi', 'Geeza Pro', sans-serif;

  --arch: 999px 999px 18px 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 120px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[lang="ar"] { font-family: var(--kufi); direction: rtl; }
em { font-style: italic; color: var(--emerald-2); }
::selection { background: var(--gold-2); color: var(--forest); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; }
h2 { font-size: clamp(34px, 5.2vw, 64px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase; font-weight: 500;
  color: var(--olive); margin-bottom: 18px;
}
.eyebrow [lang="ar"] { letter-spacing: 0; font-size: 14px; }
.eyebrow.light { color: var(--gold-2); }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); display: inline-block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: .02em;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--emerald); color: var(--cream); box-shadow: 0 10px 30px -12px rgba(31,75,57,.6); }
.btn.primary:hover { background: var(--forest); transform: translateY(-2px); }
.btn.ghost { border: 1px solid currentColor; color: var(--emerald); }
.btn.ghost:hover { background: var(--emerald); color: var(--cream); border-color: var(--emerald); }
.note { display: inline-block; color: var(--gold); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px) rotate(-8deg); } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   LOADER
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  overflow: hidden;
}
.portal {
  position: absolute; left: 50%; top: 56%;
  width: 0; height: 0;
  transform: translate(-50%, -50%);
  border-radius: 999px 999px 0 0;
  box-shadow: 0 0 0 200vmax var(--cream);
  transition: width 1.5s var(--ease), height 1.5s var(--ease), top 1.5s var(--ease);
}
.loader-inner {
  position: relative; width: min(420px, 86vw); min-height: min(560px, 88vh);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .6s, transform .9s var(--ease);
}
.pour-scene { position: absolute; width: 100%; top: 0; transition: opacity .8s, transform 1.1s var(--ease); }
.glow { fill: var(--gold-2); opacity: 0; filter: blur(30px); animation: glow 2s 1.2s ease-out forwards; }
@keyframes glow { to { opacity: .35; } }

.pot { transform-origin: 0 0; opacity: 0; animation: potIn 1s .15s var(--ease) forwards, potBack .8s 2.25s var(--ease) forwards; }
@keyframes potIn { from { opacity: 0; transform: translate(60px, -90px) rotate(10deg); } to { opacity: 1; transform: rotate(-28deg); } }
@keyframes potBack { from { opacity: 1; transform: rotate(-28deg); } to { opacity: 1; transform: rotate(-6deg) translate(10px, -6px); } }
.pot-handle, .cup-handle { fill: none; stroke-width: 10; stroke-linecap: round; }
.pot-handle { stroke: #A9B25E; }
.cup-handle { stroke: #EFE9DF; }

.stream {
  fill: none; stroke: url(#streamGrad); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 180 400; stroke-dashoffset: 180;
  animation: pour 1.6s .95s cubic-bezier(.5,0,.5,1) forwards;
}
@keyframes pour { 0% { stroke-dashoffset: 180; } 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -190; } }

.liquid, .liquid-top { animation: fill 1.5s 1.2s var(--ease) forwards; }
@keyframes fill { to { transform: translateY(-78px); } }

.steam path { fill: none; stroke: var(--stone); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 130; stroke-dashoffset: 130; opacity: 0; }
.steam path:nth-child(1) { animation: steam 2.2s 2.4s ease-out forwards; }
.steam path:nth-child(2) { animation: steam 2.2s 2.55s ease-out forwards; }
.steam path:nth-child(3) { animation: steam 2.2s 2.7s ease-out forwards; }
@keyframes steam { 0% { opacity: 0; } 20% { opacity: .9; } 100% { stroke-dashoffset: 0; opacity: 0; transform: translateY(-20px); } }

.loader.stage-2 .pour-scene { opacity: 0; transform: translateY(-60px) scale(.8); }

.loader-brand { position: relative; text-align: center; margin-top: 30px; }
.loader-logo {
  width: min(250px, 58vw); height: auto; margin: 0 auto;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.3s var(--ease);
}
.loader.stage-2 .loader-logo { clip-path: inset(0 0 0 0); }
.loader-logo-wrap { filter: drop-shadow(0 12px 24px rgba(184,145,74,.35)); }
.loader-tag { display: grid; gap: 4px; margin-top: 22px; opacity: 0; transform: translateY(12px); transition: all .9s .6s var(--ease); }
.loader-tag span:first-child { font-size: 22px; color: var(--emerald); }
.loader-tag span:last-child { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink-soft); }
.loader.stage-2 .loader-tag { opacity: 1; transform: none; }

/* six oud strings that vibrate under the logo */
.loader-strings {
  width: min(300px, 70vw); margin: 26px auto 0; display: grid; gap: 7px; opacity: 0; transition: opacity .6s .3s;
}
.loader-strings i { display: block; height: 1.5px; background: linear-gradient(90deg, transparent, var(--gold) 15%, var(--gold) 85%, transparent); transform-origin: center; }
.loader.stage-2 .loader-strings { opacity: 1; }
.loader.stage-2 .loader-strings i { animation: vibrate .9s cubic-bezier(.3,0,.6,1) 3; }
.loader-strings i:nth-child(2) { animation-delay: .08s !important; }
.loader-strings i:nth-child(3) { animation-delay: .16s !important; }
.loader-strings i:nth-child(4) { animation-delay: .24s !important; }
.loader-strings i:nth-child(5) { animation-delay: .32s !important; }
.loader-strings i:nth-child(6) { animation-delay: .40s !important; }
@keyframes vibrate {
  0%, 100% { transform: scaleY(1); }
  10% { transform: scaleY(3) translateY(1px); } 20% { transform: scaleY(1) translateY(-1px); }
  30% { transform: scaleY(2.4) translateY(1px); } 45% { transform: scaleY(1.6); } 60% { transform: scaleY(1.2); }
}

.loader-count {
  position: fixed; right: var(--gutter); bottom: 28px;
  font-family: var(--kufi); font-size: 44px; color: var(--emerald); line-height: 1;
  display: flex; align-items: baseline; gap: 4px;
}
.loader-count small { font-size: 16px; color: var(--gold); }

.loader-choice {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; max-width: 92vw; margin-top: 30px;
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .8s var(--ease);
}
.loader.stage-3 .loader-choice { opacity: 1; transform: none; pointer-events: auto; }

.loader.leaving .loader-inner { opacity: 0; transform: scale(.94); }
.loader.leaving .loader-count { opacity: 0; transition: opacity .4s; }
.loader.leaving .portal { width: 230vmax; height: 260vmax; top: 120%; }
.loader.gone { display: none; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter);
  transition: background .4s, box-shadow .4s, transform .5s var(--ease);
}
.nav.solid { background: rgba(244, 237, 225, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.nav.hide { transform: translateY(-100%); }
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 30px; font-size: 14px; letter-spacing: .06em; }
.nav-links a { position: relative; padding: 6px 0; color: var(--ink-soft); transition: color .3s; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .4s var(--ease); }
.nav-links a:hover { color: var(--emerald); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 99px; background: var(--emerald); color: var(--cream); font-size: 14px; }
.nav-cta svg { width: 17px; height: 17px; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(24px, 5vw, 80px);
  padding: calc(var(--nav-h) + 30px) var(--gutter) 70px;
  overflow: hidden;
}
.hero-watermark {
  position: absolute; right: -2vw; bottom: -8vw; font-family: var(--kufi); font-weight: 700;
  font-size: clamp(220px, 34vw, 560px); line-height: 1; color: var(--sand); opacity: .55; pointer-events: none; user-select: none;
}
.hero-text { position: relative; z-index: 2; }
.hero-title { font-size: clamp(50px, 7.6vw, 112px); margin-bottom: 18px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line > * { display: inline-block; transform: translateY(105%); transition: transform 1.3s var(--ease); }
.hero-title .line:nth-child(2) > * { transition-delay: .12s; }
.hero-title em { transition-delay: .06s; }
body.ready .hero-title .line > * { transform: none; }
.hero-ar { font-size: clamp(22px, 2.4vw, 30px); color: var(--emerald); margin-bottom: 34px; text-align: left; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 38px; }
.hero-facts { list-style: none; display: flex; gap: 26px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 18px; height: 18px; color: var(--gold); }

.hero-arch { position: relative; justify-self: center; width: min(460px, 100%); aspect-ratio: 3 / 4; }
.arch-frame { position: absolute; inset: 0; border-radius: 999px 999px 24px 24px; overflow: hidden; background: var(--sand); box-shadow: 0 40px 80px -40px rgba(38,38,30,.5); }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 54% 56%; transform: scale(1.15); animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.28) translate(-3%, -2%); } }
.arch-outline { position: absolute; inset: -16px; border: 1px solid var(--gold); border-radius: 999px 999px 32px 32px; opacity: .6; }
.arch-outline::after { content: ''; position: absolute; inset: 8px; border: 1px dashed rgba(184,145,74,.45); border-radius: inherit; }
.hero-badge { position: absolute; left: -54px; bottom: 40px; width: 140px; height: 140px; border-radius: 50%; background: var(--forest); display: grid; place-items: center; box-shadow: 0 20px 40px -18px rgba(0,0,0,.5); }
.hero-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.hero-badge text { fill: var(--gold-2); font-family: var(--sans); font-size: 13.4px; letter-spacing: .2em; }
.hero-badge img { width: 62px; }
@keyframes spin { to { transform: rotate(360deg); } }

.sprig { position: absolute; color: var(--olive); opacity: .55; pointer-events: none; }
.sprig-a { width: 120px; height: 220px; top: 70px; left: 46%; transform-origin: bottom center; animation: sway 7s ease-in-out infinite; }
.sprig-b { width: 90px; height: 170px; bottom: 30px; right: 2%; transform: rotate(160deg); animation: sway2 9s ease-in-out infinite; color: var(--emerald-2); opacity: .35; }
@keyframes sway { 50% { transform: rotate(6deg); } }
@keyframes sway2 { 0%,100% { transform: rotate(160deg); } 50% { transform: rotate(150deg); } }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid var(--stone); border-radius: 99px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 60% { transform: translateY(14px); opacity: 0; } 61% { transform: none; opacity: 0; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: calc(var(--nav-h) + 10px); text-align: left; }
  .hero-arch { width: min(310px, 78vw); aspect-ratio: 4 / 4.5; order: -1; margin-top: 16px; }
  .hero-badge { width: 104px; height: 104px; left: -26px; bottom: 18px; }
  .hero-badge text { font-size: 13px; }
  .hero-badge img { width: 46px; }
  .sprig-a { left: auto; right: 0; top: 60px; width: 80px; }
  .scroll-cue { display: none; }
}

/* =========================================================
   STORY
   ========================================================= */
.story {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: center;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
}
.story-photos { position: relative; height: clamp(420px, 52vw, 640px); }
.arch-photo { position: absolute; overflow: hidden; border-radius: var(--arch); box-shadow: 0 30px 60px -30px rgba(38,38,30,.5); background: var(--sand); }
.arch-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.arch-photo:hover img { transform: scale(1.06); }
.arch-photo.p1 { left: 0; top: 8%; width: 46%; height: 72%; }
.arch-photo.p2 { left: 38%; top: 0; width: 38%; height: 60%; z-index: 2; border: 6px solid var(--cream); }
.arch-photo.p3 { right: 0; bottom: 0; width: 44%; height: 50%; border-radius: 18px 18px 999px 999px; }
.arch-photo.p1 img { object-position: 40% 50%; }
.story-text h2 { margin-bottom: 8px; }
.story-ar { font-size: 26px; color: var(--gold); margin-bottom: 26px; text-align: left; }
.story-text > p { color: var(--ink-soft); font-size: 17px; max-width: 520px; margin-bottom: 16px; }
.story-stats { display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--stone); }
.story-stats dt { font-family: var(--serif); font-size: clamp(44px, 5vw, 64px); color: var(--emerald); line-height: 1; }
.story-stats dd { font-size: 13px; letter-spacing: .08em; color: var(--ink-soft); margin-top: 6px; }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story-photos { height: 440px; }
}

/* Persian rug band (from the shop's own carpets) */
.rug-band { height: 46px; background: url('../assets/img/rug-band.png') repeat-x center / auto 100%; filter: saturate(.9); }

/* =========================================================
   SIGNATURES — eight strings
   ========================================================= */
.signatures {
  position: relative; background: var(--forest); color: var(--cream);
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  background-image: radial-gradient(ellipse at 20% 0%, rgba(44,106,79,.55), transparent 60%), radial-gradient(ellipse at 100% 100%, rgba(184,145,74,.18), transparent 50%);
}
.sig-head { max-width: 760px; margin-bottom: 56px; }
.sig-head h2 em { color: var(--gold-2); }
.sig-head p { color: rgba(244,237,225,.7); margin-top: 16px; font-size: 17px; }
.sig-strings { list-style: none; max-width: 1100px; margin: 0 auto; }
.sig {
  position: relative; display: grid; grid-template-columns: 56px auto 1fr auto; align-items: center; gap: 18px;
  padding: 18px 4px; cursor: pointer;
}
.sig svg.string { width: 100%; height: 44px; overflow: visible; pointer-events: none; }
.sig svg.string path { fill: none; stroke: var(--gold); stroke-width: var(--sw, 1.2); opacity: .55; transition: opacity .3s; }
.sig:hover svg.string path, .sig.plucked svg.string path { opacity: 1; stroke: var(--gold-2); }
.sig-num, .sig-name, .sig-price { position: relative; z-index: 1; }
.sig-num { font-family: var(--kufi); color: var(--gold-2); font-size: 22px; text-align: center; padding: 0; width: 46px; height: 46px; line-height: 46px; border-radius: 50%; border: 1px solid rgba(226,194,125,.45); transition: background .3s, color .3s; }
.sig:hover .sig-num, .sig.plucked .sig-num { background: var(--gold-2); color: var(--forest); }
.sig-name { justify-self: start; transition: transform .5s var(--ease); }
.sig:hover .sig-name { transform: translateX(10px); }
.sig-name small { display: block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(244,237,225,.55); }
.sig-name b { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3vw, 36px); line-height: 1.1; }
.sig-name span[lang] { font-size: 15px; color: var(--gold-2); margin-left: 10px; }
.sig-price { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 28px); color: var(--gold-2); white-space: nowrap; }
.sig-price small { font-family: var(--kufi); font-size: 13px; margin-left: 6px; color: rgba(244,237,225,.6); }
@media (max-width: 600px) {
  .sig { grid-template-columns: 38px auto 1fr auto; gap: 10px; padding: 14px 0; }
  .sig-num { width: 38px; height: 38px; line-height: 38px; font-size: 18px; }
  .sig svg.string { min-width: 16px; }
  .sig-name span[lang] { display: none; }
}

/* =========================================================
   MENU — one calm category at a time
   ========================================================= */
.menu {
  --bg: #F4EDE1; --fg: var(--ink); --muted: var(--ink-soft); --line: rgba(38,38,30,.12); --accent: var(--emerald-2);
  background: var(--bg); color: var(--fg);
  padding: clamp(80px, 10vw, 130px) var(--gutter) 0;
  transition: background .8s var(--ease), color .8s var(--ease);
}
.menu[data-sec="kitchen"] { --bg: #F1E6D3; }
.menu[data-sec="fresh"]   { --bg: #EBF0E5; --line: rgba(38,60,40,.13); }
.menu[data-sec="evening"] { --bg: #14261D; --fg: var(--cream); --muted: rgba(244,237,225,.6); --line: rgba(226,194,125,.18); --accent: var(--gold-2); }
.menu[data-sec="evening"] em { color: var(--gold-2); }
.menu[data-sec="evening"] .eyebrow { color: var(--gold-2); }
.menu-head { max-width: 920px; margin: 0 auto 36px; text-align: center; }
.menu-head .eyebrow { justify-content: center; }

.menu-bar { max-width: 920px; margin: 0 auto; }
.menu-row { display: flex; align-items: center; justify-content: center; gap: 8px; position: relative; }
.sec-tabs { display: flex; gap: clamp(14px, 4vw, 40px); justify-content: center; }
.sec-tab {
  position: relative; padding: 8px 2px; font-family: var(--serif); font-size: clamp(20px, 2.4vw, 26px);
  color: var(--muted); transition: color .4s;
}
.sec-tab::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 22px; height: 2px; margin-left: -11px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .5s var(--ease); }
.sec-tab:hover { color: var(--fg); }
.sec-tab.active { color: var(--fg); }
.sec-tab.active::after { transform: scaleX(1); }

.search { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; align-items: center; }
.search-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: color .3s, background .3s; z-index: 1; }
.search-btn:hover { color: var(--fg); background: var(--line); }
.search-btn svg { width: 18px; height: 18px; }
.search input {
  position: absolute; right: 0; width: 40px; height: 40px; opacity: 0; pointer-events: none;
  border: 1px solid var(--line); border-radius: 99px; background: var(--bg); color: var(--fg);
  font: inherit; font-size: 15px; padding: 0 44px 0 18px; transition: width .45s var(--ease), opacity .3s;
}
.search input:focus { outline: none; border-color: var(--gold); }
.search.open input { width: min(300px, calc(100vw - 2 * var(--gutter))); opacity: 1; pointer-events: auto; }

.cat-pills { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 22px auto 0; transition: opacity .3s; }
.cat-pill { font-size: 14px; padding: 7px 16px; border-radius: 99px; color: var(--muted); border: 1px solid transparent; transition: all .35s var(--ease); }
.cat-pill:hover { color: var(--fg); }
.cat-pill.active { color: var(--fg); border-color: var(--line); background: rgba(255,255,255,.45); }
.menu[data-sec="evening"] .cat-pill.active { background: rgba(255,255,255,.06); }
.menu.searching .cat-pill.active { background: none; border-color: transparent; color: var(--muted); }

.menu-panel { max-width: 920px; margin: 44px auto 0; min-height: 560px; transition: opacity .22s ease, transform .3s var(--ease); }
.menu-panel.out { opacity: 0; transform: translateY(8px); }
.panel-head { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin-bottom: 8px; }
.panel-head h3 { font-size: clamp(30px, 3.6vw, 40px); }
.panel-head span[lang] { font-size: 16px; color: var(--gold); }
.panel-note { text-align: center; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--muted); }
.panel-empty { text-align: center; padding-top: 60px; font-family: var(--serif); font-size: 22px; color: var(--muted); }

.rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; margin-top: 26px; }
.row {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(10px);
  animation: rowIn .6s var(--ease) var(--d, 0ms) forwards;
}
@keyframes rowIn { to { opacity: 1; transform: none; } }
button.row { cursor: pointer; }
.row-thumb {
  flex: none; width: 58px; height: 68px; border-radius: 999px 999px 10px 10px; overflow: hidden;
  background: rgba(184,145,74,.1); display: grid; place-items: center;
}
.row-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.row-thumb img.mark { width: 60%; height: auto; object-fit: contain; opacity: .55; }
button.row:hover .row-thumb img { transform: scale(1.1); }
.row-text { display: grid; min-width: 0; }
.row-name { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.2; }
.row-name span[lang] { display: block; font-size: 13px; font-weight: 400; color: var(--gold); text-align: left; margin-top: 2px; }
.row-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.row-lead { flex: 1; min-width: 12px; border-bottom: 1px dotted var(--line); transform: translateY(4px); }
.row .price { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--accent); }
.price small { font-family: var(--kufi); font-size: 11px; font-weight: 400; color: var(--muted); }
button.row:hover .row-name { color: var(--accent); }

.menu-foot { text-align: center; font-size: 12px; letter-spacing: .1em; color: var(--muted); padding: 40px 0 70px; }

@media (max-width: 760px) {
  .rows { grid-template-columns: 1fr; }
  .menu-row { justify-content: flex-start; padding-right: 44px; }
  .sec-tabs { justify-content: flex-start; gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .sec-tabs::-webkit-scrollbar, .cat-pills::-webkit-scrollbar { display: none; }
  .sec-tab { font-size: 20px; flex: none; }
  .cat-pills { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 14px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); }
  .cat-pill { flex: none; }
  .menu-panel { margin-top: 30px; min-height: 480px; }
  .row-thumb { width: 50px; height: 60px; }
  .row-name { font-size: 18px; }
  .row .price { font-size: 16px; }
}

/* =========================================================
   PLAY THE OUD
   ========================================================= */
.oud-sec {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  background: #14261D radial-gradient(ellipse at 70% 50%, rgba(44,106,79,.55), transparent 65%);
  color: var(--cream); overflow: hidden;
}
.oud-text h2 em { color: var(--gold-2); }
.oud-text > p { color: rgba(244,237,225,.7); font-size: 17px; margin: 16px 0 30px; max-width: 480px; }
.oud-steps { list-style: none; display: grid; gap: 18px; margin-bottom: 36px; max-width: 480px; }
.oud-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; color: rgba(244,237,225,.75); }
.oud-steps li > span { font-family: var(--kufi); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(226,194,125,.5); color: var(--gold-2); font-size: 20px; }
.oud-steps b { color: var(--cream); font-weight: 500; }

.now-playing {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  max-width: 460px; padding: 14px 20px 14px 14px; border-radius: 999px;
  background: rgba(244,237,225,.07); border: 1px solid rgba(226,194,125,.25);
}
.np-btn { width: 56px; height: 56px; border-radius: 50%; background: var(--gold-2); color: var(--forest); display: grid; place-items: center; transition: transform .3s var(--ease); }
.np-btn:hover { transform: scale(1.08); }
.np-btn svg { width: 24px; height: 24px; grid-area: 1 / 1; }
.np-pause, .is-playing .np-play { display: none; }
.is-playing .np-pause { display: block; }
.np-info { display: grid; gap: 2px; min-width: 0; }
.np-label { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); }
.np-info b { font-family: var(--serif); font-size: 20px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-bar { height: 3px; border-radius: 3px; background: rgba(244,237,225,.15); margin-top: 6px; overflow: hidden; }
.np-bar i { display: block; height: 100%; width: 0; background: var(--gold-2); }
.np-eq, .fab-eq { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.np-eq i, .fab-eq i { width: 3px; height: 4px; border-radius: 2px; background: var(--gold-2); transition: height .1s; }

.oud-stage { position: relative; display: grid; place-items: center; }
.oud-halo { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(226,194,125,.25), transparent 65%); top: 45%; opacity: .5; transition: transform .15s, opacity .3s; }
.oud-svg { position: relative; width: auto; height: min(84vh, 860px); max-width: 100%; touch-action: pan-y; user-select: none; -webkit-user-select: none; transform: rotate(-8deg); }
.oud-caption { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: rgba(244,237,225,.5); margin-top: 6px; }
.oud-strings path { fill: none; stroke: #F6EAD0; stroke-linecap: round; pointer-events: none; }
.oud-strings path.lit { stroke: var(--gold-2); filter: drop-shadow(0 0 4px rgba(226,194,125,.9)); }
.rosette { cursor: pointer; outline: none; }
.rosette .rose-spin { transform-box: view-box; }
.rose-icon { transition: opacity .4s, transform .4s var(--ease); transform-origin: 200px 640px; }
.ri-pause { display: none; }
.oud-sec.is-playing .ri-pause { display: block; }
.oud-sec.is-playing .ri-play { display: none; }
.oud-sec.is-playing .rose-icon { opacity: 0; transform: scale(.6); }
.oud-sec.is-playing .rosette:hover .rose-icon, .oud-sec.is-playing .rosette:focus-visible .rose-icon { opacity: 1; transform: none; }
.rosette:hover .rose-icon { transform: scale(1.1); }
.rosette:focus-visible circle:first-child { stroke: var(--gold-2); stroke-width: 3; }
.rose-ring-bg { fill: none; stroke: rgba(226,194,125,.18); stroke-width: 3; }
.rose-ring { fill: none; stroke: var(--gold-2); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 452.4; stroke-dashoffset: 452.4; }
.viz-bars line { stroke: var(--emerald); stroke-width: 3.6; stroke-linecap: round; opacity: .9; }
.strum-hint { animation: strum 2.4s ease-in-out infinite; pointer-events: none; }
.strum-hint circle { animation: strumDot 2.4s ease-in-out infinite; }
.strum-hint.off { display: none; }
@keyframes strumDot { 0%, 15% { transform: translateX(0); } 55%, 70% { transform: translateX(160px); } 100% { transform: translateX(0); } }
@keyframes strum { 0%, 100% { opacity: .9; } 85% { opacity: .2; } }
@media (max-width: 860px) {
  .oud-sec { grid-template-columns: 1fr; }
  .oud-svg { height: min(78vh, 700px); transform: rotate(0); }
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery { padding: clamp(80px, 10vw, 140px) var(--gutter); text-align: center; }
.gallery header { max-width: 760px; margin: 0 auto 50px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 16px; max-width: 1200px; margin: 0 auto 40px; }
.g { position: relative; overflow: hidden; border-radius: 18px; background: var(--sand); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.g:hover img { transform: scale(1.06); }
.g1 { grid-column: span 2; grid-row: span 2; border-radius: 999px 999px 18px 18px; }
.g2 { grid-row: span 2; }
.g6 { grid-row: span 2; border-radius: 999px 999px 18px 18px; }
.g4 { border-radius: 18px 18px 999px 999px; }
.ig-btn svg { width: 18px; height: 18px; }
@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .g1 { grid-column: span 2; }
}

/* =========================================================
   VISIT + FOOTER
   ========================================================= */
.visit { padding: 0 var(--gutter) clamp(80px, 10vw, 130px); }
.visit-card {
  max-width: 1100px; margin: 0 auto; text-align: center;
  background: var(--paper); border-radius: 999px 999px 32px 32px / 320px 320px 32px 32px;
  padding: clamp(70px, 9vw, 120px) clamp(20px, 5vw, 70px) clamp(40px, 5vw, 70px);
  border: 1px solid var(--sand); box-shadow: 0 40px 80px -50px rgba(38,38,30,.45);
}
.visit-logo { width: 110px; margin: 0 auto 18px; }
.visit-ar { font-size: 26px; color: var(--gold); margin: 6px 0 44px; text-align: center; }
.visit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 44px; }
.visit-grid > div { display: grid; justify-items: center; gap: 6px; color: var(--ink-soft); }
.visit-grid svg { width: 28px; height: 28px; color: var(--gold); margin-bottom: 6px; }
.visit-grid h3 { font-family: var(--sans); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--olive); font-weight: 500; }
.visit-grid b { color: var(--ink); font-weight: 500; }
.visit-grid .ar { text-align: center; font-size: 14px; }
.visit-grid a { border-bottom: 1px solid var(--gold); }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (max-width: 760px) { .visit-grid { grid-template-columns: 1fr; } .visit-card { border-radius: 999px 999px 24px 24px / 200px 200px 24px 24px; } }

.footer { background: var(--forest); color: rgba(244,237,225,.7); text-align: center; }
.footer-inner { padding: 60px var(--gutter) 110px; display: grid; justify-items: center; gap: 8px; }
.footer img { width: 130px; margin-bottom: 14px; }
.footer p { font-family: var(--serif); font-style: italic; font-size: 20px; }
.footer .small { font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: .12em; opacity: .6; }

/* =========================================================
   FLOATING SONG BUTTON
   ========================================================= */
.fab-wrap { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 10px; }
.fab-label {
  background: var(--forest); color: var(--cream); font-size: 13px; padding: 9px 16px; border-radius: 99px; white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.45);
  transform-origin: right center; transition: opacity .4s, transform .5s var(--ease);
}
.fab-wrap.collapsed .fab-label { opacity: 0; transform: scale(.85) translateX(10px); pointer-events: none; }
.fab-wrap.collapsed:hover .fab-label { opacity: 1; transform: none; }
.fab {
  --fab-hole: var(--cream);
  position: relative; width: 64px; height: 64px; border-radius: 50%;
  background: var(--cream); color: var(--emerald); display: grid; place-items: center;
  box-shadow: 0 14px 34px -12px rgba(0,0,0,.45), inset 0 0 0 1px rgba(184,145,74,.3);
  transition: transform .35s var(--ease), background .4s;
}
.fab:hover { transform: scale(1.08) rotate(-6deg); }
.fab::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--gold-2); opacity: 0; animation: ping 2.6s ease-out infinite; }
.fab-wrap.playing .fab::before { animation: none; }
@keyframes ping { 0% { opacity: .8; transform: scale(.9); } 80%, 100% { opacity: 0; transform: scale(1.35); } }
.fab-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.fab-ring-bg { fill: none; stroke: transparent; stroke-width: 3; }
.fab-ring-fg { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 182.2; stroke-dashoffset: 182.2; }
.fab-oud { width: 34px; height: 34px; transition: transform .5s var(--ease), opacity .3s; }
.fab-eq { position: absolute; opacity: 0; transition: opacity .3s; }
.fab-eq i { background: var(--gold-2); }
.fab-wrap.playing .fab { background: var(--forest); --fab-hole: var(--forest); }
.fab-wrap.playing .fab-oud { opacity: 0; transform: scale(.5) rotate(-30deg); }
.fab-wrap.playing .fab-eq { opacity: 1; }

/* =========================================================
   DISH MODAL
   ========================================================= */
.dish-modal {
  margin: auto; border: 0; padding: 0; width: min(860px, calc(100vw - 32px)); max-height: calc(100svh - 32px);
  border-radius: 28px; background: var(--paper); color: var(--ink); overflow: auto;
  display: none; grid-template-columns: 1fr 1fr;
}
.dish-modal[open] { display: grid; animation: modalIn .6s var(--ease); }
.dish-modal::backdrop { background: rgba(20,38,29,.6); backdrop-filter: blur(6px); }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.dm-media { padding: 22px; }
.dm-media img { width: 100%; height: 100%; min-height: 360px; max-height: 520px; object-fit: cover; border-radius: var(--arch); background: var(--sand); }
.dm-body { padding: 48px 36px 36px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.dm-cat { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--olive); }
.dm-body h3 { font-size: clamp(36px, 4vw, 48px); }
.dm-ar { font-size: 22px; color: var(--gold); }
.dm-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.dm-opts span { font-size: 13px; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--stone); color: var(--ink-soft); }
.dm-price { font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--emerald-2); margin: 8px 0 18px; }
.dm-price small { font-family: var(--kufi); font-size: 16px; color: var(--ink-soft); margin-left: 6px; }
.dm-close { position: absolute; top: 14px; right: 16px; width: 42px; height: 42px; border-radius: 50%; background: var(--cream); font-size: 26px; line-height: 1; z-index: 2; }
@media (max-width: 700px) {
  .dish-modal { grid-template-columns: 1fr; }
  .dm-media img { min-height: 0; aspect-ratio: 4/4; height: auto; }
  .dm-body { padding: 6px 24px 28px; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
  html { scroll-behavior: auto; }
}
