/* =========================================================
   مطعم كوارج · Kwareg Restaurant — Nizwa Souq, Oman
   الهوية: طين نزوى ochre + أخضر النخيل + أرشيف الحصى الدافئ
   ========================================================= */

/* ---------- 1. الرموز (Design tokens) ---------- */
:root {
  --cream: #fbf4e8;
  --cream-2: #f4e8d5;
  --cream-3: #eadbc2;
  --ink: #241610;
  --ink-soft: #6a5141;
  --ink-faint: #9b8574;
  --night: #180f08;
  --night-2: #241811;
  --brand: #c4702a;
  --brand-deep: #8e4a1b;
  --brand-light: #e8a35f;
  --palm: #2e5c4b;
  --palm-light: #6f9c86;
  --gold: #e2ae5b;
  --line: rgba(36, 22, 16, 0.14);
  --line-strong: rgba(36, 22, 16, 0.28);

  --font-display: "Reem Kufi", "Noto Kufi Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --font-latin: "Fraunces", Georgia, "Times New Roman", serif;

  --shadow-1: 0 1px 2px rgba(36, 22, 16, 0.06), 0 8px 24px -12px rgba(36, 22, 16, 0.18);
  --shadow-2: 0 2px 6px rgba(36, 22, 16, 0.08), 0 26px 50px -24px rgba(36, 22, 16, 0.34);
  --arch: 50% 50% 12px 12px / 38% 38% 12px 12px;
  --radius: 14px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  background-image:
    radial-gradient(1200px 620px at 88% -8%, rgba(196, 112, 42, 0.09), transparent 60%),
    radial-gradient(900px 500px at 6% 12%, rgba(46, 92, 75, 0.07), transparent 62%);
}

img,
svg,
video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.15rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.45rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p { margin: 0 0 1em; }

.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;
}

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 99;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 8px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.ltr { direction: ltr; unicode-bidi: isolate; }
.fr { direction: ltr; unicode-bidi: isolate; font-family: var(--font-latin); font-style: italic; }
.lat { font-family: var(--font-latin); }

/* ---------- 2. الشريط العلوي والتنقل ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 55;
  /* بلا backdrop-filter: المرشّح يجعل من الترويسة حاوية للعناصر المثبتة
     فتُحبس قائمة الجوال المنبثقة (position:fixed) داخل ارتفاعها. */
  background: #fbf4e8;
  border-bottom: 1px solid var(--line);
}

.head-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-inline-end: auto;
}

.brand-mark { width: 44px; height: 44px; flex: none; }

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name b {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-name span {
  font-family: var(--font-latin);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav a {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav a:hover { color: var(--ink); background: rgba(196, 112, 42, 0.1); }
.nav a[aria-current="page"] { color: var(--brand-deep); background: rgba(196, 112, 42, 0.14); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 0.9rem;
  bottom: 0.1rem;
  height: 3px;
  border-radius: 3px;
  background: var(--brand);
}

.head-actions { display: flex; align-items: center; gap: 0.5rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- 3. الأزرار والشارات ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(160deg, var(--brand), var(--brand-deep));
  color: #fff8ef;
  box-shadow: 0 12px 26px -14px rgba(142, 74, 27, 0.8);
}
.btn-primary:hover { box-shadow: 0 18px 34px -14px rgba(142, 74, 27, 0.85); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover { background: #fff; border-color: var(--brand); color: var(--brand-deep); }

.btn-wa { background: var(--palm); color: #f3fff8; box-shadow: 0 12px 26px -16px rgba(46, 92, 75, 0.9); }
.btn-wa:hover { background: #26503f; }

.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.88rem; }
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1.02rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(196, 112, 42, 0.14);
  color: var(--brand-deep);
  border: 1px solid rgba(196, 112, 42, 0.28);
}
.badge-palm { background: rgba(46, 92, 75, 0.12); color: #24503f; border-color: rgba(46, 92, 75, 0.3); }
.badge-live { background: rgba(46, 92, 75, 0.14); color: #21493a; }
.badge-live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2e7d5b;
  box-shadow: 0 0 0 0 rgba(46, 125, 91, 0.5);
  animation: pulse 2.4s infinite;
}
.badge-closed::before { background: #9b3d24; animation: none; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 125, 91, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(46, 125, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 125, 91, 0); }
}

/* ---------- 4. الحواشي الزخرفية (signature motifs) ---------- */
/* شريط مشكاة/أسنان حصن نزوى */
.battlement {
  height: 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='13' viewBox='0 0 24 13'%3E%3Cpath fill='%23c4702a' d='M0 13V7.4L6 0.6 12 7.4V13z'/%3E%3Cpath fill='%23c4702a' d='M12 13V7.4L18 0.6 24 7.4V13z'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 24px 13px;
  opacity: 0.85;
}

/* شريط نسيج أزرَة عمانية */
.weave {
  height: 12px;
  background-color: var(--cream-2);
  background-image:
    linear-gradient(45deg, var(--palm) 25%, transparent 25%, transparent 75%, var(--palm) 75%),
    linear-gradient(45deg, var(--palm) 25%, transparent 25%, transparent 75%, var(--palm) 75%);
  background-size: 12px 12px;
  background-position: 0 0, 6px 6px;
  opacity: 0.42;
}

.rule {
  border: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
  margin-block: 2rem;
}

/* ---------- 5. البطل (Hero) ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.2rem, 5vw, 4.4rem) 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brand-deep);
  margin-bottom: 1rem;
}
.kicker::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--brand);
}

.hero h1 { margin-bottom: 0.35em; }
.hero h1 em {
  font-style: normal;
  color: var(--brand);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0.06em;
  height: 0.42em;
  background: rgba(226, 174, 91, 0.35);
  z-index: -1;
  border-radius: 3px;
}

.hero-sub {
  font-family: var(--font-latin);
  font-size: 1.06rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

.hero-lead { max-width: 46ch; color: var(--ink-soft); font-size: 1.02rem; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.4rem; }

/* بطاقة الصورة المائلة مع قوس نزوي */
.hero-visual { position: relative; }
.hero-frame {
  position: relative;
  border-radius: var(--arch);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  border: 6px solid #fff;
  outline: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  transform: rotate(-1.2deg);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2.6rem 1.1rem 1rem;
  color: #fdf4e7;
  font-size: 0.85rem;
  background: linear-gradient(to top, rgba(24, 15, 8, 0.82), transparent);
}

.hero-stat {
  position: absolute;
  inset-inline-start: -1.2rem;
  bottom: 1.8rem;
  background: #fff9ef;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
  box-shadow: var(--shadow-1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transform: rotate(1.5deg);
}
.hero-stat b { font-size: 1.35rem; font-family: var(--font-display); line-height: 1; }
.hero-stat small { color: var(--ink-faint); font-size: 0.76rem; display: block; }

/* ---------- 6. شريط المعلومات ---------- */
.facts {
  margin-top: clamp(1.8rem, 4vw, 3rem);
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.2));
}
.facts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.facts-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  border-inline-end: 1px dashed var(--line);
}
.facts-list li:last-child { border-inline-end: 0; }
.facts-list svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.facts-list b { display: block; font-weight: 600; }
.facts-list small { color: var(--ink-faint); font-size: 0.78rem; }

/* ---------- 7. الأقسام ---------- */
.section { padding-block: clamp(2.8rem, 6vw, 4.6rem); }
.section-tight { padding-block: clamp(2rem, 4vw, 3rem); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.section-head p { max-width: 52ch; color: var(--ink-soft); margin: 0; }
.section-head h2 { margin-bottom: 0.2em; }

.tone-palm { color: var(--palm); }
.tone-brand { color: var(--brand-deep); }

/* خلفية داكنة للأقسام الليلية */
.night {
  background:
    radial-gradient(700px 320px at 15% 0%, rgba(196, 112, 42, 0.28), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color: #f2e5d3;
}
.night h1, .night h2, .night h3 { color: #fff6e9; }
.night p { color: rgba(242, 229, 211, 0.82); }
.night .section-head p { color: rgba(242, 229, 211, 0.72); }
.night .rule { background: repeating-linear-gradient(90deg, rgba(242, 229, 211, 0.3) 0 6px, transparent 6px 12px); }

/* ---------- 8. بطاقات الأطباق ---------- */
.dishes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: clamp(1rem, 2.4vw, 1.6rem);
}

.dish-card {
  position: relative;
  background: #fffaf1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-1);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.dish-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: rgba(196, 112, 42, 0.45);
}
.dish-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream-3); }
.dish-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.dish-card:hover .dish-media img { transform: scale(1.06); }
.dish-media .badge { position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(255, 250, 241, 0.94); }

.dish-body { padding: 0.95rem 1.05rem 1.1rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.dish-body h3 { margin: 0; font-size: 1.12rem; }
.dish-en { font-family: var(--font-latin); font-size: 0.82rem; color: var(--ink-faint); letter-spacing: 0.03em; }
.dish-note { font-size: 0.87rem; color: var(--ink-soft); margin: 0.2rem 0 0; }
.dish-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 0.6rem; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--brand-deep); }
.price small { font-size: 0.72rem; font-weight: 500; color: var(--ink-faint); }

/* ---------- 9. قائمة الطعام ---------- */
.menu-aside {
  position: sticky;
  top: 112px;
  align-self: start;
  display: none;
}
.menu-layout { display: grid; gap: 2rem; }

.menu-cat { margin-bottom: 2.6rem; scroll-margin-top: 120px; }
.menu-cat-head {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand);
  margin-bottom: 1.1rem;
}
.menu-cat-head h3 { margin: 0; font-size: 1.35rem; }
.menu-cat-head span { font-family: var(--font-latin); font-size: 0.85rem; color: var(--ink-faint); }
.menu-cat-head .count { margin-inline-start: auto; font-size: 0.8rem; color: var(--ink-faint); }

.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.3rem 0.8rem;
  padding: 0.55rem 0;
  border-bottom: 1px dotted var(--line-strong);
}
/* الإخفاء يعمل فقط عند وجود JavaScript، وإلا تظهر كل الأصناف في HTML الأولي */
.js .menu-item.is-hidden { display: none; }
.js .menu-cat[data-expanded="true"] .menu-item.is-hidden { display: grid; }
.js .more-btn { display: inline-flex; }
.more-btn { display: none; }

.mi-name { font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.mi-name .en { font-family: var(--font-latin); font-weight: 400; font-size: 0.82rem; color: var(--ink-faint); }
.mi-desc { grid-column: 1 / -1; font-size: 0.86rem; color: var(--ink-soft); margin: 0; }
.mi-price { font-family: var(--font-display); font-weight: 700; color: var(--brand-deep); white-space: nowrap; }
.mi-price small { font-size: 0.68rem; color: var(--ink-faint); font-weight: 500; }
.pop-star { color: var(--brand); font-size: 0.72rem; border: 1px solid rgba(196, 112, 42, 0.4); border-radius: 999px; padding: 0 0.5rem; background: rgba(196, 112, 42, 0.09); }

.more-btn {
  margin-top: 1rem;
  background: none;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-deep);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.more-btn:hover { background: rgba(196, 112, 42, 0.1); border-color: var(--brand); }

.menu-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.menu-jump a {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.2s var(--ease);
}
.menu-jump a:hover { border-color: var(--brand); background: #fff; color: var(--brand-deep); }

.note-card {
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--brand);
  background: #fffaf1;
  border-radius: 10px;
  padding: 1rem 1.15rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- 10. التقييمات ---------- */
.rating-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center;
  background: #fffaf1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: var(--shadow-1);
}
.rating-score { text-align: center; }
.rating-score b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4.4rem);
  line-height: 1;
  color: var(--brand-deep);
}
.rating-score .stars { display: flex; gap: 2px; justify-content: center; margin: 0.4rem 0 0.2rem; }
.rating-score small { color: var(--ink-faint); font-size: 0.85rem; }

.stars { color: var(--gold); }
.stars svg { width: 17px; height: 17px; }
.stars .off { color: var(--cream-3); }

.dist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.42rem; }
.dist li { display: grid; grid-template-columns: auto 1fr auto; gap: 0.7rem; align-items: center; font-size: 0.85rem; }
.dist .bar {
  height: 9px;
  border-radius: 999px;
  background: var(--cream-3);
  overflow: hidden;
}
.dist .bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-light), var(--brand));
  transition: width 1.1s var(--ease);
}
.dist .n { color: var(--ink-faint); font-variant-numeric: tabular-nums; }

.tags-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.tag {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s var(--ease);
}
.tag:hover { border-color: var(--palm); color: var(--palm); background: #fff; }
.tag b { font-variant-numeric: tabular-nums; color: var(--brand-deep); }
.tag.more { border-style: dashed; color: var(--ink-faint); }

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin-top: 2rem;
}
.review {
  background: #fffaf1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: var(--shadow-1);
  position: relative;
}
.review::before {
  content: "”";
  position: absolute;
  inset-inline-end: 0.9rem;
  top: 0.2rem;
  font-family: var(--font-latin);
  font-size: 3.4rem;
  color: rgba(196, 112, 42, 0.18);
  line-height: 1;
}
.review-head { display: flex; align-items: center; gap: 0.7rem; }
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff8ee;
  background: linear-gradient(150deg, var(--palm), #1f4437);
  flex: none;
}
.review:nth-child(2) .avatar { background: linear-gradient(150deg, var(--brand), var(--brand-deep)); }
.review:nth-child(3) .avatar { background: linear-gradient(150deg, #7a4c2b, #4a2c18); }
.review-who b { display: block; font-size: 0.98rem; }
.review-who small { color: var(--ink-faint); font-size: 0.78rem; }
.review-meta { margin-inline-start: auto; text-align: end; font-size: 0.78rem; color: var(--ink-faint); }
.review-text { margin: 0; font-size: 0.97rem; color: var(--ink); }
.review-tr {
  font-size: 0.87rem;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  padding-top: 0.6rem;
  display: flex;
  gap: 0.5rem;
  align-items: start;
}
.review-tr span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 0.4rem;
  flex: none;
  margin-top: 0.25rem;
}
.review-reply {
  background: rgba(46, 92, 75, 0.09);
  border: 1px solid rgba(46, 92, 75, 0.22);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  font-size: 0.9rem;
}
.review-reply b { display: block; font-size: 0.8rem; color: var(--palm); margin-bottom: 0.25rem; }
.review-foot { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--ink-faint); margin-top: auto; }

/* ---------- 11. المعرض ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.6rem; }
.filter {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}
.filter:hover { border-color: var(--brand); }
.filter[aria-pressed="true"] {
  background: var(--ink);
  color: #fdf4e7;
  border-color: var(--ink);
}

.gallery {
  columns: 4;
  column-gap: 0.9rem;
}
.g-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 0.9rem;
  font: inherit;
  text-align: start;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--cream-3);
  cursor: zoom-in;
}
.g-item img { width: 100%; height: auto; display: block; transition: transform 0.5s var(--ease); }
.g-item:hover img { transform: scale(1.05); }
.g-item figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.8rem 0.85rem 0.7rem;
  color: #fff6e9;
  font-size: 0.82rem;
  background: linear-gradient(to top, rgba(24, 15, 8, 0.85), transparent);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.6rem;
  text-align: start;
}
.g-item .cat { font-size: 0.7rem; opacity: 0.85; white-space: nowrap; }
.g-item[data-hidden="true"] { display: none; }
.g-empty { display: none; padding: 2.2rem 1rem; text-align: center; color: var(--ink-faint); border: 1px dashed var(--line-strong); border-radius: 12px; }
.g-empty.show { display: block; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  background: rgba(20, 12, 6, 0.9);
  padding: 1.2rem;
}
.lightbox.open { display: grid; }
.lightbox figure { margin: 0; max-width: min(1100px, 94vw); }
.lightbox img { max-height: 78vh; width: auto; margin-inline: auto; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.lightbox figcaption { color: #f2e5d3; font-size: 0.9rem; margin-top: 0.8rem; text-align: center; }
.lb-btn {
  position: absolute;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(242, 229, 211, 0.35);
  background: rgba(242, 229, 211, 0.12);
  color: #fdf4e7;
  display: grid;
  place-items: center;
}
.lb-btn:hover { background: rgba(242, 229, 211, 0.25); }
.lb-close { top: 1.1rem; inset-inline-end: 1.1rem; }
.lb-prev { top: 50%; inset-inline-start: 1rem; }
.lb-next { top: 50%; inset-inline-end: 1rem; }

/* ---------- 12. الصفحات الداخلية: مقدمة الصفحة ---------- */
.page-intro {
  padding-block: clamp(2rem, 5vw, 3.4rem) clamp(1rem, 2vw, 1.4rem);
  position: relative;
}
.page-intro .crumbs { font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 0.9rem; }
.page-intro .crumbs a:hover { color: var(--brand-deep); }
.page-intro p.lead { max-width: 62ch; font-size: 1.06rem; color: var(--ink-soft); }

.banner-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1.4rem;
}
.banner-strip div { background: #fffaf1; padding: 1rem 1.1rem; }
.banner-strip b { display: block; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 0.15rem; }
.banner-strip small { color: var(--ink-soft); font-size: 0.86rem; }

/* ---------- 13. عن المطعم / القصّة ---------- */
.story {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: start;
}
.story p { font-size: 1.02rem; }
.drop::first-letter {
  font-family: var(--font-display);
  font-size: 3.1rem;
  font-weight: 700;
  color: var(--brand);
  float: inline-start;
  margin-inline-end: 0.4rem;
  line-height: 0.95;
}

.pillars { display: grid; gap: 1rem; }
.pillar {
  border: 1px solid rgba(242, 229, 211, 0.22);
  border-radius: 12px;
  padding: 1.05rem 1.15rem;
  background: rgba(242, 229, 211, 0.05);
}
.pillar h3 { display: flex; align-items: center; gap: 0.55rem; font-size: 1.05rem; margin-bottom: 0.35rem; }
.pillar h3 svg { width: 20px; height: 20px; color: var(--brand-light); }
.pillar p { margin: 0; font-size: 0.92rem; }

.split-img {
  border-radius: var(--arch);
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--shadow-2);
  aspect-ratio: 3 / 4;
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 14. الوصول والموقع ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.4rem, 3.5vw, 2.6rem);
  align-items: start;
}
.info-card {
  background: #fffaf1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.info-card > header { padding: 1.1rem 1.25rem 0.4rem; }
.info-card > header h3 { margin: 0; }
.info-rows { list-style: none; margin: 0; padding: 0.4rem 1.25rem 1.25rem; }
.info-rows li { display: flex; gap: 0.85rem; padding: 0.65rem 0; border-top: 1px dashed var(--line); font-size: 0.94rem; }
.info-rows li:first-child { border-top: 0; }
.info-rows svg { width: 19px; height: 19px; color: var(--brand); flex: none; margin-top: 0.3rem; }
.info-rows b { display: block; font-size: 0.82rem; color: var(--ink-faint); font-weight: 600; }
.copy-btn {
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 6px;
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  color: var(--ink-soft);
}
.copy-btn:hover { border-color: var(--brand); color: var(--brand-deep); }

.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--line-strong);
  font-size: 0.94rem;
}
.hours li.today { background: rgba(196, 112, 42, 0.09); font-weight: 600; border-radius: 6px; padding-inline: 0.5rem; }
.hours .close { color: var(--brand-deep); font-variant-numeric: tabular-nums; }

.map-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream-2);
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-1);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-fallback {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.8rem 1rem;
  background: rgba(251, 244, 232, 0.94);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nearby { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.nearby li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  transition: all 0.2s var(--ease);
}
.nearby li:hover { border-color: var(--brand); transform: translateY(-2px); }
.nearby svg { width: 18px; height: 18px; color: var(--palm); flex: none; }
.nearby b { display: block; font-weight: 600; }
.nearby small { color: var(--ink-faint); font-size: 0.82rem; }

.faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  padding: 0 1.05rem;
  margin-bottom: 0.6rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.faq details[open] { border-color: rgba(196, 112, 42, 0.45); background: #fffaf1; }
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  padding: 0.85rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  flex: none;
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(196, 112, 42, 0.15);
  color: var(--brand-deep);
  font-size: 1rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.faq details[open] summary::before { content: "–"; background: var(--brand); color: #fff; }
.faq details p { padding-bottom: 0.9rem; margin: 0; font-size: 0.94rem; color: var(--ink-soft); }

/* ---------- 15. شريط الطلب العائم ---------- */
.order-dock {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 45;
  display: none;
  gap: 0.5rem;
  padding: 0.6rem clamp(0.8rem, 3vw, 1.2rem) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(24, 15, 8, 0.94);
  backdrop-filter: blur(8px);
  color: #fdf4e7;
  border-top: 1px solid rgba(226, 174, 91, 0.35);
}
.order-dock .btn { flex: 1; }
.order-dock .btn-ghost { border-color: rgba(253, 244, 231, 0.35); color: #fdf4e7; background: transparent; }

/* ---------- 16. التذييل ---------- */
.site-foot {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  background: var(--night);
  color: rgba(242, 229, 211, 0.78);
  padding-top: 1.2rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  padding-block: clamp(1.8rem, 4vw, 2.8rem) 1.4rem;
}
.site-foot h4 { color: #fff6e9; font-size: 1rem; margin-bottom: 0.7rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; font-size: 0.9rem; }
.site-foot a:hover { color: var(--brand-light); }
.foot-brand { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.8rem; }
.foot-brand .brand-mark { width: 40px; height: 40px; }
.foot-brand b { font-family: var(--font-display); font-size: 1.3rem; color: #fff6e9; }
.foot-note { font-size: 0.86rem; max-width: 34ch; }
.foot-bottom {
  border-top: 1px solid rgba(242, 229, 211, 0.16);
  padding-block: 1.1rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* ---------- 17. الحركات ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

.hero-frame, .hero-stat, .hero-copy > * { animation: rise 0.8s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.18s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.24s; }
.hero-visual { animation-delay: 0.2s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 18. الاستجابة ---------- */
@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .visit-grid, .story { grid-template-columns: 1fr; }
  .split-img { aspect-ratio: 16 / 10; }
}

@media (max-width: 880px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 60;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(24, 15, 8, 0.97);
    padding: 2rem;
    transform: translateY(-100%);
    transition: transform 0.35s var(--ease);
  }
  body.nav-open .nav { transform: none; }
  .nav a { color: #f5e9d8; font-size: 1.3rem; font-family: var(--font-display); padding: 0.6rem 0.8rem; }
  .nav a[aria-current="page"] { color: var(--brand-light); background: transparent; }
  .nav a[aria-current="page"]::after { background: var(--brand-light); }
  .nav-close { position: absolute; top: 1rem; inset-inline-end: 1rem; }
  body:not(.nav-open) .nav-close { display: none; }
  .head-actions .btn-desk { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-frame { aspect-ratio: 4 / 3; transform: none; }
  .hero-stat { inset-inline-start: auto; inset-inline-end: 0.8rem; bottom: 0.8rem; }
  .order-dock { display: flex; }
  .rating-panel { grid-template-columns: 1fr; text-align: center; }
  .tags-row, .filters { justify-content: center; }
  .gallery { columns: 2; }
  .facts-list { grid-template-columns: 1fr 1fr; }
  .facts-list li { border-inline-end: 0; border-top: 1px dashed var(--line); }
}

@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .facts-list { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .reviews { grid-template-columns: 1fr; }
}

@media print {
  .site-head, .order-dock, .filters, .lightbox { display: none !important; }
  body { background: #fff; }
}

/* ---------- حالات تضيفها سكربتات التحسين ---------- */
.site-head.scrolled {
  box-shadow: 0 8px 26px -18px rgba(36, 22, 16, 0.55);
  border-bottom-color: rgba(196, 112, 42, 0.35);
}
.badge-live.is-closed { background: rgba(142, 60, 40, 0.14); color: #7c3a24; }
.badge-live.is-closed::before { background: #8e4227; }
.day-flag {
  display: inline-block;
  margin-inline-start: 0.5rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff8ec;
  font-size: 0.68rem;
  font-weight: 600;
  vertical-align: middle;
}
.copy-btn.copied { background: rgba(46, 92, 75, 0.16); color: #21493a; border-color: transparent; }
body.lb-open { overflow: hidden; }
body.nav-open { overflow: hidden; }
