:root {
  --bg: #fef9f3;
  --paper: #fffdf9;
  --ink: #4a3b30;
  --ink-soft: #7a6858;
  --brown: #765843;
  --gold: #c9a46a;
  --gold-deep: #86622f;
  --tag: #efe4d8;
  --line: #e7dacb;
  --wa: #25d366;
  --radius: 14px;
  --font-ar: 'Tajawal', system-ui, sans-serif;
  --font-head: 'Rubik', 'Tajawal', sans-serif;
  --font-en: 'Lato', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ar);
  font-size: 17px;
  line-height: 1.7;
  -webkit-tap-highlight-color: transparent;
}
html[lang="en"] body { font-family: var(--font-en); }
html[lang="en"] .block-title, html[lang="en"] .section-title { font-family: var(--font-en); letter-spacing: .02em; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- الشريط العلوي ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px; padding-top: max(8px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-logo img { height: 44px; width: auto; }
.lang-btn {
  font: 600 14px/1 var(--font-en);
  color: var(--brown); background: var(--paper);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 16px; cursor: pointer;
  transition: transform .15s ease, background-color .15s;
}
html[lang="en"] .lang-btn { font-family: var(--font-ar); }
.lang-btn:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .lang-btn:hover { background: var(--tag); } }

/* ---------- الواجهة ---------- */
.hero {
  position: relative; overflow: hidden;
  text-align: center;
  padding: 24px 16px 36px;
}
.hero-logo { width: min(260px, 70vw); height: auto; margin: 8px auto 12px; position: relative; }
.tagline {
  font-family: var(--font-head); font-size: 20px; color: var(--brown);
  max-width: 30ch; margin: 0 auto 20px; position: relative;
}
html[lang="en"] .tagline { font-family: var(--font-en); font-size: 18px; }
.hero-actions { position: relative; margin-bottom: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 0; transition: transform .15s ease, filter .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brown); color: #fff; box-shadow: 0 6px 18px -8px rgba(90,60,40,.6); }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover { filter: brightness(1.08); } }
.btn svg { width: 20px; height: 20px; }

.socials { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; position: relative; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line); color: var(--brown);
  transition: transform .15s ease, background-color .15s;
}
.socials a:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .socials a:hover { background: var(--tag); } }
.socials svg { width: 22px; height: 22px; }

/* ---------- العروض ---------- */
.offers { padding: 8px 16px 28px; max-width: 900px; margin: 0 auto; }
.offers-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.offer {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #fff 0%, #f8eee2 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 16px;
}

.offer h3 { margin: 0 0 4px; font-family: var(--font-head); font-size: 20px; color: var(--ink); }
html[lang="en"] .offer h3 { font-family: var(--font-en); }
.offer p { margin: 0 0 8px; color: var(--ink-soft); white-space: pre-line; }
.offer .price { font-weight: 700; color: var(--gold-deep); font-size: 18px; }

/* ---------- شريط الأقسام ---------- */
.chips {
  position: sticky; top: 60px; z-index: 15;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 10px 16px; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  overscroll-behavior-x: contain;
}
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex: none; text-decoration: none; white-space: nowrap;
  padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 500;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft);
  transition: background-color .15s, color .15s, border-color .15s;
}
.chips a.active { background: var(--brown); border-color: var(--brown); color: #fff; }

.menu-head { text-align: center; margin: 26px 0 6px; color: var(--brown); line-height: 1.1; }
.menu-ar { display: block; font-family: var(--font-head); font-size: 30px; }
.menu-en { display: block; font-family: var(--font-en); font-size: 22px; letter-spacing: .25em; }

/* ---------- الأقسام ---------- */
.sections { max-width: 900px; margin: 0 auto; padding: 8px 16px 12px; display: grid; gap: 18px; }
.section {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px 14px; scroll-margin-top: 130px;
}
.section-title {
  display: inline-block; margin: 0 0 6px;
  font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--brown);
  background: var(--tag); padding: 2px 18px; border-radius: 4px;
}
.section-note { margin: 4px 0 8px; color: var(--gold-deep); font-weight: 700; }
.items { list-style: none; margin: 8px 0 0; padding: 0; }
.items li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.items li:last-child { border-bottom: 0; }
.item-text { flex: 1; min-width: 0; }
.item-name { font-weight: 500; }
.item-desc { display: block; font-size: 14px; color: var(--ink-soft); }
.item-price { flex: none; font-weight: 700; color: var(--gold-deep); white-space: nowrap; }
.item-price small { font-weight: 500; font-size: 13px; }

@media (min-width: 720px) {
  .items.cols { columns: 2; column-gap: 32px; }
  .items.cols li { break-inside: avoid; }
}

/* ---------- الملاحظات ---------- */
.notes { max-width: 900px; margin: 10px auto 0; padding: 12px 16px 24px; }
.block-title {
  text-align: center; font-family: var(--font-head); color: var(--brown);
  font-size: 26px; margin: 8px 0 14px;
}
.notes ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.notes li {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; position: relative; padding-inline-start: 38px;
}
.notes li::before {
  content: ""; position: absolute; inset-inline-start: 16px; top: 22px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
}
.notes li.important { background: #8a7263; color: #fff; border-color: #8a7263; font-weight: 700; }
.notes li.important::before { background: #fff; }

/* ---------- الفوتر ---------- */
.footer { text-align: center; padding: 24px 16px calc(96px + env(safe-area-inset-bottom)); }
.footer img { width: 90px; height: auto; margin: 0 auto 14px; }
.copy { color: var(--ink-soft); font-size: 14px; margin: 14px 0 0; }

/* ---------- زر الواتساب العائم ---------- */
.fab {
  position: fixed; z-index: 30;
  inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,.35);
  transition: transform .15s ease;
}
.fab:active { transform: scale(.94); }
.fab svg { width: 30px; height: 30px; }

/* ---------- بطاقات البكجات ---------- */
.pkgs {
  display: grid; gap: 14px; margin-top: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.pkg {
  display: flex; flex-direction: column;
  background: linear-gradient(170deg, #fff 0%, #faf3ea 100%);
  border: 1px solid var(--line); border-radius: 14px; padding: 16px;
}
.pkg-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px dashed var(--line);
}
.pkg-head h3 { margin: 0; font-family: var(--font-head); font-size: 19px; color: var(--ink); }
html[lang="en"] .pkg-head h3 { font-family: var(--font-en); font-size: 17px; }
.pkg-price { font-weight: 700; font-size: 22px; color: var(--gold-deep); white-space: nowrap; }
.pkg-price small { font-size: 13px; }
.pkg ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 4px; flex: 1; }
.pkg li { position: relative; padding-inline-start: 18px; font-size: 15px; color: var(--ink-soft); }
.pkg li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: .7em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.pkg-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 15px;
  color: var(--brown); background: var(--tag); transition: background-color .15s, transform .15s ease;
}
.pkg-btn svg { width: 18px; height: 18px; }
.pkg-btn:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .pkg-btn:hover { background: #e6d6c5; } }

/* ---------- التجاوب مع كل المقاسات ---------- */
/* جوالات صغيرة (iPhone SE وأصغر) */
@media (max-width: 360px) {
  body { font-size: 16px; }
  .section { padding: 18px 14px 10px; }
  .section-title { font-size: 21px; }
  .tagline { font-size: 18px; }
}

/* جوال بالعرض (landscape) — نصغّر الواجهة عشان المنيو يبان */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 12px 16px 20px; }
  .hero-logo { width: 150px; }
  .chips { top: 56px; }
}

/* آيباد عمودي وفوق */
@media (min-width: 768px) {
  body { font-size: 18px; }
  .topbar { padding-inline: 32px; }
  .hero { padding: 40px 32px 48px; }
  .hero-logo { width: 300px; }
  .tagline { font-size: 23px; }
  .chips { padding-inline: 32px; justify-content: safe center; }
  .sections, .offers, .notes { padding-inline: 32px; max-width: 1200px; }
  .section { padding: 26px 26px 18px; }
  .menu-ar { font-size: 36px; }
  .notes ul { grid-template-columns: 1fr 1fr; }
  .notes li.important { grid-column: 1 / -1; text-align: center; }
}

/* آيباد بالعرض ولابتوب: الأقسام القصيرة جنب بعض */
@media (min-width: 1024px) {
  .sections { grid-template-columns: 1fr 1fr; align-items: start; }
  .section.is-cards, .section.is-long { grid-column: 1 / -1; }
  .items.cols { columns: 3; }
  .hero-logo { width: 340px; }
  .fab { inset-inline-end: 28px; bottom: 28px; width: 62px; height: 62px; }
}

/* شاشات كبيرة */
@media (min-width: 1440px) {
  .sections, .offers, .notes { max-width: 1320px; }
  .pkgs { grid-template-columns: repeat(4, 1fr); }
}

/* ================= مطابقة هوية ملفات المنيو ================= */
.page { overflow-x: clip; }
.hero { padding-top: clamp(64px, 12vw, 150px); padding-bottom: clamp(48px, 9vw, 110px); }
.deco { position: absolute; pointer-events: none; user-select: none; height: auto; }
.deco-top { top: 0; left: 50%; transform: translateX(-50%); width: max(100%, 720px); max-width: 1500px; opacity: .85; }
.floral-bl { bottom: 0; left: 0; width: clamp(120px, 26vw, 300px); opacity: .55; }
.floral-br { bottom: 0; right: 0; width: clamp(120px, 26vw, 300px); opacity: .55; }
.hero-logo, .tagline, .hero-actions, .socials, .trust { position: relative; z-index: 1; }

/* عنوان القسم: شريط بيج بحروف متباعدة مثل «بـــكـجـات شـامـلـة» */
.section-title { font-weight: 500; padding: 4px 22px; border-radius: 2px; color: #8b6e58; }
.section { position: relative; }
.item-name { font-weight: 500; }
html[lang="en"] .item-name, html[lang="en"] .pkg li, html[lang="en"] .notes li { font-family: var(--font-en); }

/* أوراق على أطراف الأقسام (خلف البطاقات) — بالتناوب يمين/يسار مثل الملفات */
.section::before {
  content: ""; position: absolute; z-index: -1; top: 18px;
  width: clamp(38px, 6vw, 80px); aspect-ratio: 140 / 295;
  background: url(/img/leaf-right.png) center / contain no-repeat; opacity: .75;
  right: calc(-1 * clamp(26px, 4vw, 60px));
}
.section:nth-child(even)::before { right: auto; left: calc(-1 * clamp(26px, 4vw, 60px)); background-image: url(/img/leaf-left.png); }
.sections { position: relative; }

/* عنوان المنيو مثل «مـنـيـو / M e n u» */
.menu-ar { font-weight: 500; }
.menu-en { font-family: var(--font-en); font-weight: 400; }

/* شعار موثوق */
.trust { display: flex; justify-content: center; margin-top: 16px; }
.trust > a, .trust > span {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  padding: 8px 16px 8px 18px; border-radius: 12px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
}
.trust svg { width: 26px; height: 26px; color: #1f7a54; flex: none; }
.trust-text { display: grid; line-height: 1.3; text-align: start; }
.trust-text b { font-size: 15px; font-weight: 600; }
.trust-text small { font-size: 13px; color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) { .trust > a:hover { background: var(--tag); } }

/* ================= إحساس التطبيق على الجوال (mobile-native) ================= */
/* استجابة فورية للمس + بدون تأخير 300ms */
a, button, .chips a, .pkg-btn, .socials a { touch-action: manipulation; }
/* الضغط المطوّل ما يحدد نص الأزرار */
button, .btn, .chips a, .pkg-btn, .socials a, .fab, .lang-btn, .trust > a {
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.chips { scroll-snap-type: x proximity; }
.chips a { scroll-snap-align: center; }
.chips a:active { transform: scale(.96); }
.socials a, .chips a, .pkg-btn { min-height: 44px; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; }
/* بالشاشات العريضة: الأوراق بس على أطراف الأقسام اللي بعرض الصفحة كامل */
@media (min-width: 1024px) {
  .section:not(.is-cards):not(.is-long)::before { display: none; }
}

/* ================= impeccable: أجزاء المتصفح بألوان الهوية ================= */
::selection { background: #e9d9c4; color: var(--ink); }
html { caret-color: var(--brown); scrollbar-color: #cdb9a5 var(--bg); }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; border-radius: 6px; }
.item-price, .pkg-price, .offer .price { font-variant-numeric: tabular-nums lining-nums; }
.offer { border-top: 1px solid var(--line); }
.offer h3 { color: var(--brown); }
.section-note { font-weight: 500; }

.hero-h1 { margin: 0; position: relative; z-index: 1; }
