/* =================================================================
   شَمْل — كافيه شاي متخصص | بهلا، عُمان
   نظام التصميم الموحّد (RTL)
   ================================================================= */

/* ---------- المتغيّرات اللونية والخطوط ---------- */
:root {
  /* لوحة الألوان الأساسية */
  --gold:        #C9A96E;   /* الذهبي البيج */
  --gold-deep:   #B8965A;   /* ذهبي أعمق للـ hover */
  --brown:       #7A5230;   /* البني الدافئ */
  --night:       #2C2C3E;   /* الرمادي الليلي الداكن */
  --cream:       #FAF6EF;   /* الخلفية الفاتحة */
  --ink:         #1A1A1A;   /* الأسود الكاليغرافي */
  --cream-2:     #F3ECDF;   /* كريمي ثانوي */
  --line:        rgba(122, 82, 48, 0.16);

  /* الخطوط */
  --font-display: "Aref Ruqaa", "Tajawal", serif;       /* عناوين كاليغرافية */
  --font-body:    "Tajawal", "Cairo", sans-serif;        /* نصوص عربية */
  --font-en:      "Cormorant Garamond", "Playfair Display", serif; /* إنجليزي أنيق */

  /* مقاسات وإيقاع */
  --container: 1200px;
  --radius:    18px;
  --radius-sm: 12px;
  --shadow-soft: 0 14px 40px -18px rgba(44, 44, 62, 0.28);
  --shadow-card: 0 22px 60px -28px rgba(44, 44, 62, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- إعادة ضبط ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.85;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  font-size: 17px;
  /* لمسة نسيج ورقي خفيف للدفء */
  background-image:
    radial-gradient(1200px 600px at 100% -10%, rgba(201, 169, 110, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(122, 82, 48, 0.07), transparent 55%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- حاوية ---------- */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 40px, 820px); margin-inline: auto; }

/* ---------- العناوين ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.3; color: var(--ink); }
.display-xl { font-size: clamp(2.6rem, 6vw, 5rem); }
.display-lg { font-size: clamp(2.1rem, 4.5vw, 3.5rem); }
.display-md { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--brown);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; }
.lead { font-size: 1.15rem; color: #5a4a3a; max-width: 60ch; }
.text-gold  { color: var(--gold-deep); }
.text-brown { color: var(--brown); }

/* ---------- الأزرار ---------- */
.btn {
  --pad-y: 14px; --pad-x: 30px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  position: relative;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--ink);
  box-shadow: 0 14px 30px -12px rgba(201, 169, 110, 0.7);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -12px rgba(201, 169, 110, 0.85); }
.btn--outline { background: transparent; color: var(--brown); border-color: var(--gold); }
.btn--outline:hover { background: var(--gold); color: var(--ink); transform: translateY(-3px); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--block { width: 100%; }

/* =================================================================
   الشريط العلوي (Navbar) — ثابت عبر كل الصفحات
   ================================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 239, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, background .3s;
}
.nav.is-scrolled { box-shadow: var(--shadow-soft); background: rgba(250, 246, 239, 0.95); }
.nav__inner {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 78px; gap: 18px;
}
/* الشعار في أقصى اليمين (بداية RTL) */
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), var(--brown));
  display: grid; place-items: center;
  color: var(--cream); font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  box-shadow: var(--shadow-soft);
}
/* عند استخدام صورة الشعار بدل الحرف */
.brand__mark--img { background: none; box-shadow: none; padding: 0; object-fit: contain; border-radius: 50%; }
.footer .brand__mark--img { box-shadow: 0 6px 16px -6px rgba(0,0,0,.5); }
.brand__name { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; color: var(--ink); }
.brand__tag  { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .22em; color: var(--brown); margin-top: 3px; }

.nav__menu { display: flex; align-items: center; gap: 18px; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  padding: 8px 11px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--night);
  position: relative; white-space: nowrap; transition: color .25s, background .25s;
}
.nav__links a::after {
  content: ""; position: absolute; bottom: 2px; right: 11px; left: 11px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav__links a:hover { color: var(--brown); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--brown); }
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__cta { margin-inline-start: 4px; }

/* زر الهمبرغر */
.nav__burger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; cursor: pointer; position: relative;
}
.nav__burger span, .nav__burger span::before, .nav__burger span::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav__burger span { top: 50%; transform: translateY(-50%); }
.nav__burger span::before { top: -7px; }
.nav__burger span::after  { top: 7px; }
.nav.is-open .nav__burger span { background: transparent; }
.nav.is-open .nav__burger span::before { transform: rotate(45deg) translate(0, 7px); }
.nav.is-open .nav__burger span::after  { transform: rotate(-45deg) translate(0, -7px); }

/* قائمة الموبايل المنسدلة */
@media (max-width: 1120px) {
  .nav__burger { display: block; }
  .nav__menu {
    position: fixed; inset: 78px 0 auto 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 14px 20px 24px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .35s var(--ease), opacity .3s;
    display: flex;
  }
  .nav.is-open .nav__menu { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__links a { padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__links a::after { display: none; }
  .nav__cta { margin-top: 14px; }
  .nav__cta .btn { width: 100%; }
}

/* =================================================================
   الفواصل الزخرفية (أوراق الشاي)
   ================================================================= */
.divider { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 auto; padding: 8px 0; color: var(--gold); }
.divider::before, .divider::after { content: ""; height: 1px; width: min(28vw, 240px); background: linear-gradient(to var(--dir, left), transparent, var(--gold)); }
.divider svg { width: 38px; height: 38px; flex: none; }

/* =================================================================
   البطل (Hero)
   ================================================================= */
.hero { position: relative; min-height: 92vh; display: grid; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }

/* عرض شرائح الـ Hero — تلاشٍ ناعم + زووم خفيف (Ken Burns) */
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity 1.6s ease-in-out; will-change: opacity, transform; }
.hero__slide.is-active { opacity: 1; animation: heroZoom 7s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1.13); } }
@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: opacity .4s; }
  .hero__slide.is-active { animation: none; transform: none; }
}

/* مؤشرات الشرائح */
.hero__dots { position: absolute; bottom: 22px; right: 50%; transform: translateX(50%); z-index: 3; display: flex; gap: 9px; }
.hero__dots button { position: relative; width: 9px; height: 9px; border-radius: 999px; border: none; background: rgba(250,246,239,.45); cursor: pointer; padding: 0; transition: width .3s var(--ease), background .3s; }
/* مساحة لمس موسّعة غير مرئية (18×44) — تحترم حد 44px دون تغيير شكل النقطة */
.hero__dots button::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 18px; height: 44px; }
.hero__dots button.is-active { width: 26px; background: var(--gold); }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  /* تظليل أخف بكثير: داكن في جهة النص (اليمين) وأسفل الصورة، وشبه شفّاف على اليسار
     ← يُبقي تباين النص واضحاً ويُظهر الصور بنقاء أعلى */
  background:
    linear-gradient(to left,  rgba(20,20,26,.62) 0%, rgba(28,28,40,.30) 52%, rgba(20,20,26,.05) 100%),
    linear-gradient(to top,   rgba(18,18,24,.34) 0%, rgba(18,18,24,0) 32%);
}
.hero__inner { position: relative; z-index: 2; padding: 90px 0; }
.hero__logo {
  width: 92px; height: 92px; border-radius: 26px; display: grid; place-items: center; margin-bottom: 26px;
  background: linear-gradient(135deg, var(--gold), var(--brown));
  color: var(--cream); font-family: var(--font-display); font-size: 3rem;
  box-shadow: var(--shadow-card);
}
.hero h1 { color: var(--cream); margin-bottom: 18px; }
.hero h1 .gold { color: var(--gold); }
.hero__slogan { font-family: var(--font-display); color: var(--gold); font-size: clamp(1.4rem, 3vw, 2.1rem); margin-bottom: 14px; }
/* عبارات البطل المتغيّرة */
.hero__slogan#hero-rotator { display: flex; align-items: center; gap: 13px; min-height: 1.55em; }
.hero__slogan#hero-rotator::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 12px rgba(201,169,110,.75);
}
.hero__rotator-line {
  display: inline-block; will-change: opacity, transform, filter;
  transition: opacity .55s var(--ease), transform .55s var(--ease), filter .55s var(--ease);
}
.hero__rotator-line.is-leaving  { opacity: 0; transform: translateY(-15px); filter: blur(5px); }
.hero__rotator-line.is-entering { opacity: 0; transform: translateY(15px);  filter: blur(5px); }
.hero__sub { color: rgba(250,246,239,.85); font-size: 1.15rem; max-width: 52ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(250,246,239,.7); font-size: .8rem; letter-spacing: .2em; display: grid; justify-items: center; gap: 8px; }
.hero__scroll span { width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); animation: scrollPulse 2s infinite; }
@keyframes scrollPulse { 0%,100%{opacity:.3; transform: scaleY(.6);} 50%{opacity:1; transform: scaleY(1);} }

/* =================================================================
   الأقسام العامة
   ================================================================= */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tint { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.section--dark { background: var(--night); color: var(--cream); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--cream); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section__head .eyebrow { justify-content: center; }
.section__head h2 { margin: 14px 0 16px; }
.section__head p { color: #5a4a3a; font-size: 1.1rem; }
.section--dark .section__head p { color: rgba(250,246,239,.78); }

/* صفحة-عنوان (banner داخلي للصفحات) */
.page-hero { position: relative; padding: clamp(80px, 12vw, 150px) 0 clamp(48px, 7vw, 90px); overflow: hidden; background: var(--night); color: var(--cream); }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(201,169,110,.25), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(122,82,48,.3), transparent 55%);
}
.page-hero__inner { position: relative; z-index: 2; text-align: center; }
.page-hero h1 { color: var(--cream); margin: 16px 0 14px; }
.page-hero h1 .gold { color: var(--gold); }
.page-hero p { color: rgba(250,246,239,.82); max-width: 60ch; margin: 0 auto; font-size: 1.12rem; }
.page-hero .eyebrow { justify-content: center; color: var(--gold); }
.page-hero .eyebrow::before { background: var(--gold); }
.breadcrumb { position: relative; z-index: 2; font-size: .85rem; color: rgba(250,246,239,.6); text-align: center; margin-top: 22px; }
.breadcrumb a:hover { color: var(--gold); }

/* =================================================================
   صور placeholder أنيقة (حتى استبدالها بصورك)
   ================================================================= */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(122,82,48,.05) 0 14px, transparent 14px 28px),
    linear-gradient(135deg, var(--cream-2), #e6dcc8);
  display: grid; place-items: center; color: var(--brown); min-height: 220px;
  border: 1px dashed rgba(122,82,48,.35);
}
.ph::after { content: attr(data-label); font-family: var(--font-body); font-weight: 600; font-size: .85rem; opacity: .8; padding: 8px 16px; text-align: center; }
.ph svg { position: absolute; opacity: .22; width: 64px; height: 64px; }

/* بعد حقن الرسمة عبر art.js: تصبح صورة كاملة (تختفي حدود الـ placeholder) */
.ph.is-art { border: none; background: none; }
.ph.is-art::after { display: none; }
.ph.is-art .art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 1; }

/* بخار المشروبات الساخنة */
@keyframes artSteam { 0%,100% { opacity: .15; transform: translateY(2px); } 50% { opacity: .6; transform: translateY(-3px); } }
.art-steam { animation: artSteam 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
@media (prefers-reduced-motion: reduce) { .art-steam { animation: none; } }

/* صورة حقيقية متجاوبة */
.media { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.media:hover img { transform: scale(1.05); }

/* =================================================================
   شبكات وبطاقات
   ================================================================= */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.split--media-start .split__media { order: -1; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split--media-start .split__media { order: 0; } }

/* بطاقة ميزة */
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-soft);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.feature__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(201,169,110,.22), rgba(122,82,48,.18)); color: var(--brown);
}
.feature h3 { font-size: 1.35rem; margin-bottom: 8px; }
.feature p { color: #5a4a3a; font-size: .98rem; }

/* بطاقة صنف تشويقي (teaser) */
.teaser { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.teaser:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.teaser .ph, .teaser .media { border-radius: 0; aspect-ratio: 4/3; min-height: 0; }
.teaser__body { padding: 22px 22px 26px; }
.teaser__body h3 { font-size: 1.35rem; }
.teaser__en { font-family: var(--font-en); font-style: italic; color: var(--gold-deep); font-size: 1.05rem; }
.teaser__row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.price { font-family: var(--font-body); font-weight: 700; color: var(--brown); background: var(--cream-2); padding: 5px 14px; border-radius: 999px; font-size: .95rem; white-space: nowrap; }
.price small { font-weight: 600; opacity: .7; }

/* =================================================================
   صفحة القائمة (Menu)
   ================================================================= */
.menu-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.search {
  position: relative; flex: 1; min-width: 240px; max-width: 420px;
}
.search input {
  width: 100%; padding: 14px 48px 14px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,169,110,.18); }
.search svg { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); width: 20px; height: 20px; color: var(--brown); opacity: .6; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-family: var(--font-body); font-weight: 600; color: var(--night); cursor: pointer; font-size: .95rem;
  transition: all .25s var(--ease);
}
.filter:hover { border-color: var(--gold); color: var(--brown); }
.filter.is-active { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--ink); border-color: transparent; box-shadow: 0 10px 22px -12px rgba(201,169,110,.7); }

.menu-cat { margin-top: 56px; }
.menu-cat__head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.menu-cat__head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.menu-cat__emoji { font-size: 1.8rem; }

.dish {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-soft);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.dish:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.dish .ph, .dish .media { border-radius: 0; aspect-ratio: 4/3; min-height: 0; }
.dish__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dish__name { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; }
.dish__en { font-family: var(--font-en); font-style: italic; color: var(--gold-deep); font-size: 1rem; }
.dish__prices { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* بطاقة صنف نصية (اسم + سعر فقط، بلا صورة) */
.dish--text { position: relative; background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, var(--gold), var(--gold-deep)) border-box;
  border-top: 3px solid transparent; }
.dish--text .dish__body { padding: 20px 20px 22px; gap: 5px; }
.dish--text .dish__name { font-size: 1.3rem; }
.dish--text .dish__en { font-size: .92rem; }
.dish--text .price { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--ink); box-shadow: 0 6px 14px -8px rgba(201,169,110,.8); }
.dish--text .price.price--mini { background: var(--cream-2); color: var(--brown); box-shadow: none; }

/* زرّ «اطلب أونلاين» لكل صنف */
.dish__order {
  margin-top: 14px; align-self: stretch;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 14px; border-radius: 999px; text-decoration: none;
  font-family: var(--font-body); font-weight: 700; font-size: .85rem;
  color: var(--brown); background: transparent; border: 1.5px solid var(--gold);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.dish__order svg { width: 16px; height: 16px; flex: none; }
.dish__order:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--ink);
  transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(201,169,110,.85);
}
.no-results { text-align: center; padding: 60px 0; color: var(--brown); font-size: 1.1rem; display: none; }
.no-results.show { display: block; }

/* =================================================================
   النماذج (الحجز + التواصل)
   ================================================================= */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-card);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--night); font-size: .98rem; }
.field label .req { color: #b5532f; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--cream); font-family: var(--font-body); font-size: 1rem; color: var(--ink); transition: border .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,169,110,.18); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .9rem; color: #6b5a48; margin-top: 6px; }

/* =================================================================
   المعرض (Gallery)
   ================================================================= */
.masonry { columns: 3 260px; column-gap: 18px; }
.masonry > * { break-inside: avoid; margin-bottom: 18px; }
.masonry .ph { min-height: 200px; }
.masonry .ph:nth-child(3n) { min-height: 300px; }
.masonry .ph:nth-child(4n) { min-height: 250px; }

.ig-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .4s var(--ease); }
.ig-card:hover { transform: translateY(-5px); }
.ig-card .ph { border-radius: 0; aspect-ratio: 1; min-height: 0; }
.ig-card__foot { padding: 12px 16px; display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--brown); }

/* =================================================================
   مقتطفات وملتقطات (فيديو + لقطات)
   ================================================================= */
/* الفيديو الرئيسي (الـ section الرئيسي للصفحة) */
.feature-video {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/9; box-shadow: var(--shadow-card); border: 1px solid var(--line);
  cursor: pointer; background: var(--night);
}
.feature-video video, .feature-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-video .ph { border-radius: 0; min-height: 0; height: 100%; }
.media-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(26,26,26,.72), rgba(26,26,26,.05) 55%); display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(18px, 3vw, 34px); pointer-events: none; }
.media-overlay h3 { color: var(--cream); font-size: clamp(1.3rem, 2.6vw, 2rem); }
.media-overlay p { color: rgba(250,246,239,.82); font-size: .98rem; margin-top: 4px; }

/* زر التشغيل */
.play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; z-index: 2;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: grid; place-items: center; color: var(--ink);
  box-shadow: 0 14px 34px -10px rgba(201,169,110,.8); transition: transform .35s var(--ease);
}
.play-badge::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--gold); opacity: .55; animation: playPulse 2.4s ease-out infinite; }
.play-badge svg { margin-inline-start: 4px; }
@keyframes playPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.5); opacity: 0; } }
.feature-video:hover .play-badge, .reel:hover .play-badge { transform: translate(-50%, -50%) scale(1.1); }
@media (prefers-reduced-motion: reduce) { .play-badge::before { animation: none; } }

/* شبكة المقتطفات القصيرة (عمودية 9:16) */
.reels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 920px) { .reels { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .reels { grid-template-columns: 1fr 1fr; gap: 14px; } }
.reel {
  position: relative; aspect-ratio: 9/16; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft); border: 1px solid var(--line); cursor: pointer;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease); background: var(--night);
}
.reel:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.reel video, .reel img { width: 100%; height: 100%; object-fit: cover; }
.reel .ph { border-radius: 0; min-height: 0; height: 100%; }
.reel .play-badge { width: 54px; height: 54px; }
.reel__cap { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding: 14px 14px 16px; background: linear-gradient(0deg, rgba(26,26,26,.82), transparent); color: var(--cream); font-weight: 600; font-size: .92rem; pointer-events: none; }
.reel__cap span { display: block; font-family: var(--font-en); font-style: italic; font-weight: 400; color: var(--gold); font-size: .82rem; }

/* شارة المدة */
.media-dur { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; background: rgba(26,26,26,.7); color: var(--cream); font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }

/* نافذة التشغيل (Lightbox) */
.media-modal { position: fixed; inset: 0; z-index: 200; background: rgba(20,18,16,.92); display: none; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(6px); }
.media-modal.open { display: flex; }
.media-modal__inner { position: relative; width: min(100%, 920px); }
.media-modal__inner.portrait { width: min(100%, 420px); }
.media-modal video { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-card); display: block; background: #000; }
.media-modal__msg { background: var(--cream); border-radius: var(--radius); padding: 48px 28px; text-align: center; color: var(--brown); }
.media-modal__msg h3 { margin-bottom: 8px; }
.media-modal__close { position: absolute; top: -52px; inset-inline-start: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(250,246,239,.3); background: transparent; color: var(--cream); cursor: pointer; display: grid; place-items: center; transition: background .25s, transform .25s; }
.media-modal__close:hover { background: rgba(250,246,239,.14); transform: rotate(90deg); }

/* مشغّل فيديو عمودي (Reel) داخل القسم */
.video-portrait {
  position: relative; width: 100%; max-width: 340px; margin-inline: auto;
  aspect-ratio: 9/16; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card); background: #000; border: 1px solid var(--line);
}
.video-portrait video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* شارة "شاهد" تظهر فوق الفيديو قبل التشغيل */
.video-portrait__tag {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(26,26,26,.6); color: var(--cream); font-size: .75rem; font-weight: 700;
  padding: 5px 11px; border-radius: 999px; pointer-events: none;
}
.video-portrait__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff5a5a; animation: recBlink 1.6s infinite; }
@keyframes recBlink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .video-portrait__tag::before { animation: none; } }

/* معرض ملتقطات بمقاس موحّد (4:5) */
.gallery-tile { position: relative; aspect-ratio: 4/5; margin: 0; }
.gallery-tile figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 28px 16px 14px;
  color: #fff; font-family: var(--font-display); font-size: 1.1rem; z-index: 2;
  background: linear-gradient(0deg, rgba(26,26,26,.8), transparent); pointer-events: none;
}

/* شبكة فيديوهات زيارات المدارس */
.school-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .school-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .school-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; } }
.school-card { display: flex; flex-direction: column; }
.school-card__frame {
  position: relative; aspect-ratio: 9/16; border-radius: var(--radius); overflow: hidden;
  background: #000; box-shadow: var(--shadow-card); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.school-card:hover .school-card__frame { transform: translateY(-5px); box-shadow: 0 26px 60px -24px rgba(44,44,62,.55); }
.school-card__frame video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.school-card__tag {
  position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(26,26,26,.62); color: var(--cream); font-size: .72rem; font-weight: 700;
  padding: 4px 11px; border-radius: 999px; pointer-events: none;
}
.school-card__name {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; font-family: var(--font-display); font-size: 1.15rem; text-align: center; color: var(--ink);
}
.school-card__name .ic { color: var(--gold-deep); flex: none; }

/* =================================================================
   دليل بهلا (Guide)
   ================================================================= */
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; filter: saturate(.95) contrast(1.02); }

/* بطاقة عبارة أنيقة في صفحة تواصل معنا */
.contact-quote {
  position: relative; overflow: hidden; margin: 0; min-height: 300px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 32px; text-align: center; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--night) 0%, #3a3a52 100%);
  color: var(--cream); box-shadow: var(--shadow-card);
}
.contact-quote::before {
  content: "”"; position: absolute; top: -6px; inset-inline-start: 24px;
  font-family: var(--font-display); font-size: 7rem; line-height: 1;
  color: var(--gold); opacity: .2;
}
.contact-quote__leaf { width: 40px; height: 40px; color: var(--gold); margin-bottom: 16px; }
.contact-quote blockquote {
  margin: 0; position: relative; z-index: 1; max-width: 32ch;
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.65rem); line-height: 1.75;
}
.contact-quote blockquote .gold { color: var(--gold); }
.contact-quote figcaption { margin-top: 18px; color: var(--gold); font-size: .95rem; letter-spacing: .05em; }
.landmark { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.landmark:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.landmark .ph, .landmark .media { border-radius: 0; aspect-ratio: 16/10; min-height: 0; }
.landmark__body { padding: 22px; }
.landmark__body h3 { font-size: 1.3rem; margin-bottom: 6px; }
.landmark__meta { font-size: .85rem; color: var(--gold-deep); font-weight: 600; margin-bottom: 8px; }
.landmark__body p { color: #5a4a3a; font-size: .97rem; }

/* =================================================================
   لوحات معلومات التواصل
   ================================================================= */
.info-list { display: grid; gap: 18px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item__icon { width: 50px; height: 50px; flex: none; border-radius: 14px; background: linear-gradient(135deg, rgba(201,169,110,.25), rgba(122,82,48,.2)); display: grid; place-items: center; color: var(--brown); }
.info-item h4 { font-family: var(--font-body); font-weight: 700; margin-bottom: 2px; }
.info-item p, .info-item a { color: #5a4a3a; }
.info-item a:hover { color: var(--brown); }

.hours { display: grid; gap: 8px; }
.hours li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .98rem; }
.hours .open { color: #2e7d4f; font-weight: 700; }

/* =================================================================
   اقتباس / شريط دعوة
   ================================================================= */
.quote { text-align: center; max-width: 760px; margin: 0 auto; }
.quote p { font-family: var(--font-display); font-size: clamp(1.5rem, 3.5vw, 2.4rem); line-height: 1.6; color: var(--ink); }
.section--dark .quote p { color: var(--cream); }
.quote cite { display: block; margin-top: 18px; font-family: var(--font-body); font-style: normal; color: var(--gold-deep); font-weight: 600; }

/* شريط بصورة في الخلفية (Parallax) */
.photo-band { position: relative; isolation: isolate; color: var(--cream); padding: clamp(80px, 13vw, 170px) 0; background-size: cover; background-position: center; background-attachment: fixed; }
.photo-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(26,26,26,.78), rgba(44,44,62,.72)); }
.photo-band .quote p { color: var(--cream); }
@media (max-width: 768px) { .photo-band { background-attachment: scroll; } }

/* خلفية مميّزة لقسم فيديو بيت حِرفتي — تدرّج اتجاهي يبقي النص واضحاً */
.photo-band--craft::before {
  background:
    linear-gradient(100deg, rgba(20,18,28,.93) 26%, rgba(28,28,46,.74) 58%, rgba(122,82,48,.40) 100%),
    radial-gradient(700px 380px at 88% 12%, rgba(201,169,110,.22), transparent 60%);
}
.photo-band--craft h2, .photo-band--craft h3 { color: var(--cream); }

/* شبكة صور بإطار زجاجي أنيق */
.photo-grid .media { aspect-ratio: 3/4; position: relative; }
.photo-grid .media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); border-radius: var(--radius); pointer-events: none; }
.photo-grid .media__cap { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding: 16px 16px 14px; background: linear-gradient(0deg, rgba(26,26,26,.8), transparent); color: var(--cream); font-weight: 700; font-size: .95rem; }

/* =================================================================
   باقات بيت حِرفتي (بطاقات الأسعار)
   ================================================================= */
.pkg-group { margin-top: clamp(36px, 5vw, 56px); }
.pkg-group__title { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 28px; }
.pkg-group__title .emoji { font-size: 1.7rem; }
.pkg-group__title h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

.pkg {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 24px 26px; text-align: center; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; align-items: center;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.pkg:hover { transform: translateY(-7px); box-shadow: var(--shadow-card); border-color: var(--gold); }
.pkg__name { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.3; margin-bottom: 6px; }
.pkg__meta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brown); background: var(--cream-2); padding: 5px 14px; border-radius: 999px; font-size: .9rem; margin-bottom: 18px; }
.pkg__price { font-family: var(--font-display); font-weight: 700; color: var(--gold-deep); line-height: 1; margin-bottom: 4px; }
.pkg__price b { font-size: 2.7rem; }
.pkg__price span { font-size: 1rem; color: var(--brown); font-family: var(--font-body); }
.pkg__hint { font-size: .85rem; color: #6b5a48; margin-bottom: 20px; }
.pkg .btn { margin-top: auto; width: 100%; }

/* بطاقة مميّزة (الأكثر طلباً) */
.pkg--featured { border-color: var(--gold); box-shadow: 0 22px 60px -26px rgba(201,169,110,.7); }
.pkg--featured::before {
  content: "الأكثر طلباً"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--ink);
  font-family: var(--font-body); font-weight: 700; font-size: .78rem; padding: 5px 16px; border-radius: 999px;
  box-shadow: 0 8px 18px -6px rgba(201,169,110,.7); white-space: nowrap;
}

/* شريط عرض خاص */
.pkg-offer { margin-top: 26px; text-align: center; background: linear-gradient(120deg, rgba(201,169,110,.16), rgba(122,82,48,.1)); border: 1px dashed var(--gold); border-radius: var(--radius); padding: 18px 22px; color: var(--brown); font-weight: 600; }
.pkg-offer b { color: var(--gold-deep); }

.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--brown), var(--night)); color: var(--cream); border-radius: clamp(20px, 4vw, 36px); padding: clamp(40px, 6vw, 72px); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 90% 10%, rgba(201,169,110,.3), transparent 60%); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: var(--cream); margin-bottom: 14px; }
.cta-band p { color: rgba(250,246,239,.85); max-width: 54ch; margin: 0 auto 28px; }

/* =================================================================
   التذييل (Footer) — موحّد
   ================================================================= */
.footer { background: var(--ink); color: rgba(250,246,239,.78); padding: 64px 0 28px; position: relative; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer .brand__name { color: var(--cream); }
.footer__about p { margin-top: 16px; max-width: 36ch; font-size: .95rem; }
.footer h4 { font-family: var(--font-body); color: var(--gold); font-size: .85rem; letter-spacing: .15em; margin-bottom: 16px; }
.footer__links li { margin-bottom: 10px; }
.footer__links a { transition: color .2s, padding .2s; }
.footer__links a:hover { color: var(--gold); padding-inline-start: 6px; }
.footer__social { display: flex; gap: 12px; margin-top: 8px; }
.footer__social a { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(250,246,239,.18); display: grid; place-items: center; color: var(--cream); transition: all .3s var(--ease); }
.footer__social a:hover { background: var(--gold); color: var(--ink); transform: translateY(-3px); border-color: transparent; }
.footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(250,246,239,.12); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: .85rem; color: rgba(250,246,239,.55); }

/* زر واتساب عائم */
.wa-float {
  position: fixed; bottom: calc(22px + env(safe-area-inset-bottom)); left: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(37,211,102,.6);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08) translateY(-2px); }

/* زر إنستغرام عائم — فوق زر الواتساب مباشرةً بنفس المقاس */
.ig-float {
  position: fixed; bottom: calc(90px + env(safe-area-inset-bottom)); left: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; color: #fff;
  background: linear-gradient(45deg, #feda75 0%, #fa7e1e 25%, #d62976 55%, #962fbf 80%, #4f5bd5 100%);
  display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(214,41,118,.55);
  transition: transform .3s var(--ease);
}
.ig-float:hover { transform: scale(1.08) translateY(-2px); }

/* زر بيت حِرفتي عائم — فوق زر إنستغرام بتدرّج طيني من ألوان اللوحة */
.craft-float {
  position: fixed; bottom: calc(158px + env(safe-area-inset-bottom)); left: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; color: #fff;
  background: linear-gradient(45deg, var(--gold) 0%, var(--brown) 100%);
  display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(122,82,48,.55);
  transition: transform .3s var(--ease);
}
.craft-float:hover { transform: scale(1.08) translateY(-2px); }

/* تلميح يظهر باسم الأيقونة عند المرور — ينزلق من اليسار مع تلاشٍ */
.wa-float::after, .ig-float::after, .craft-float::after {
  content: attr(data-tip);
  position: absolute; left: calc(100% + 14px); top: 50%;
  transform: translate(-8px, -50%);
  background: var(--night); color: var(--cream);
  padding: 8px 13px; border-radius: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: .82rem; line-height: 1;
  white-space: nowrap; box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
/* مثلّث صغير يشير نحو الأيقونة */
.wa-float::before, .ig-float::before, .craft-float::before {
  content: ""; position: absolute; left: calc(100% + 8px); top: 50%;
  transform: translate(-8px, -50%);
  border: 6px solid transparent; border-right-color: var(--night);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.wa-float:hover::after, .ig-float:hover::after, .craft-float:hover::after,
.wa-float:hover::before, .ig-float:hover::before, .craft-float:hover::before {
  opacity: 1; visibility: visible; transform: translate(0, -50%);
}

/* =================================================================
   حركات الكشف عند التمرير (Scroll Reveal)
   ================================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto; }
}

/* =================================================================
   حركات GSAP السينمائية — الجيل الثاني
   ================================================================= */

/* تسليم القيادة الكاملة لـ GSAP — إبطال أساس .reveal المخفي */
html.gsap-on .reveal { opacity: 1; transform: none; transition: none; }

/* شريط تقدّم التمرير — خط ذهبي ثابت بالأعلى */
#scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: #C9A96E;
  transform-origin: right center; /* RTL: يمتد من اليمين */
  transform: scaleX(0);
  z-index: 9999;
  pointer-events: none;
  will-change: transform;
}

/* مساحة إضافية لخلفية البطل: yPercent:45 + scale:1.1 يحتاجان 55% headroom */
html.gsap-on .hero__bg { top: -55%; bottom: auto; height: 160%; will-change: transform; }

/* احتواء الفيضان في split__media — يمنع خروج scale:0.92 خارج الإطار */
.split__media { overflow: hidden; }

/* GPU compositing hints — فقط عند تشغيل GSAP لتجنّب تأثيرات will-change الدائمة */
html.gsap-on .split__text,
html.gsap-on .split__media,
html.gsap-on .feature,
html.gsap-on .teaser,
html.gsap-on .gallery-tile,
html.gsap-on .media { will-change: transform, opacity; }

/* ضمان عدم وجود clip-path مسبق على العناوين يعطّل بداية الأنيميشن */
.display-lg, .display-md { clip-path: none; }

/* Lenis: تعطيل scroll-behavior الأصلي */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* أدوات مساعدة */
.center { text-align: center; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 44px; }
.stack > * + * { margin-top: 16px; }

/* =================================================================
   تحسينات الفعالية (طبقة الجودة) — لا تغيّر أي لون أو ميزة
   ① وصول لوحة المفاتيح   ② دقّة كسر أسطر العناوين
   ================================================================= */

/* ① مؤشّر تركيز واضح عند التنقّل بلوحة المفاتيح (Tab) فقط.
   :focus-visible لا يظهر لمستخدم الفأرة إطلاقاً، فلا تغيّر بصرياً.
   يستخدم ألوان اللوحة الحالية (--gold على الفاتح، --cream على الداكن). */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
.hero__dots button:focus-visible,
.reel:focus-visible,
[data-video]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}
/* على الخلفيات الداكنة نستبدل الحلقة بالكريمي لتباينٍ أعلى */
.hero :is(a, button):focus-visible,
.section--dark :is(a, button):focus-visible,
.site-footer :is(a, button):focus-visible,
.wa-float:focus-visible,
.hero__dots button:focus-visible {
  outline-color: var(--cream);
}
/* احترام تفضيل تقليل الشفافية للنقر بلوحة المفاتيح يبقى كما هو */

/* ② توزيع أسطر العناوين بأناقة (يمنع الكلمة اليتيمة) — تحسين تدريجي
   تتجاهله المتصفحات غير الداعمة دون أي ضرر. */
.display-xl, .display-lg, .display-md,
.section__head h2, .page-hero h1 {
  text-wrap: balance;
}
.lead, .section__head > p, .hero__sub {
  text-wrap: pretty;
}

/* =================================================================
   نافذة حجز باقات «بيت حِرفتي» — اختيار الباقة + عدد الأشخاص
   تبني رسالة واتساب كاملة. تستخدم ألوان اللوحة الحالية فقط.
   ================================================================= */
.bk-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.bk-modal.open { display: flex; }
.bk-modal__overlay { position: absolute; inset: 0; background: rgba(26,26,26,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.bk-modal__dialog {
  position: relative; width: min(520px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 30px 26px;
  animation: bkIn .35s var(--ease);
}
@keyframes bkIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.bk-modal__close {
  position: absolute; top: 14px; left: 14px; width: 38px; height: 38px;
  display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%;
  background: #fff; color: var(--brown); cursor: pointer; transition: all .25s var(--ease);
}
.bk-modal__close:hover { background: var(--night); color: var(--cream); border-color: var(--night); }
.bk-modal__head { margin-bottom: 22px; padding-left: 34px; }
.bk-modal__head h3 { font-family: var(--font-display); font-size: 1.55rem; color: var(--ink); margin: 4px 0 6px; }
.bk-modal__sub { color: #6b5a48; font-size: .95rem; line-height: 1.6; }
.bk-opt { color: #9b8a76; font-weight: 400; font-size: .8rem; }
.bk-stepper { display: flex; align-items: center; gap: 10px; }
.bk-stepper__btn {
  width: 46px; height: 46px; flex: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--brown); font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: all .2s var(--ease);
}
.bk-stepper__btn:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.bk-stepper input { text-align: center; font-weight: 700; max-width: 96px; }
.bk-form select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%237A5230' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 16px center; padding-left: 42px;
}

/* =================================================================
   تحسينات الجوال (طبقة الجودة) — لا تغيّر أي لون أو ميزة
   ① منع التمرير الأفقي  ② استجابة لمس فورية  ③ توهّج لمس بلون اللوحة
   ================================================================= */

/* ① حركات GSAP الأفقية (x:100/40) قد تتجاوز الحافة مؤقتاً على الجوال؛
   overflow-x: clip يقصّ الفائض دون تعطيل التمرير الناعم (Lenis) أو الالتصاق. */
html { overflow-x: clip; }

/* ② إزالة تأخير النقر 300ms  ③ استبدال وميض النقر الأزرق الافتراضي بلون ذهبي خفيف */
a, button, .btn, input, select, textarea, summary, label,
[role="button"], [tabindex] {
  -webkit-tap-highlight-color: rgba(201, 169, 110, .22);
  touch-action: manipulation;
}
