/* ==========================================================================
   ROYAL EXHAUST — الأنماط المخصّصة (الهوية البصرية + الحركة السينمائية)
   يعمل فوق Tailwind. هنا كل ما يخصّ: الألوان، التوهّجات، القوام،
   الأنيميشن، اللودر، اللايتبوكس، ودعم RTL والموبايل.
   ========================================================================== */

/* ---------- 1) متغيّرات الهوية (عدّل الألوان من هنا) ---------- */
:root {
  --bg:        #0E0E10;   /* أسود فحمي */
  --surface:   #1A1A1D;   /* رمادي جرافيت (بطاقات) */
  --surface-2: #151517;
  --line:      #2A2A2E;   /* حدود */
  --gold:      #C9A24B;   /* الذهبي الملكي */
  --gold-lt:   #E6C067;
  --amber:     #F2851E;   /* كهرماني — التوهّج وأزرار CTA */
  --steel:     #B7BCC2;   /* فضي معدني */
  --red:       #9E1B1B;   /* أحمر غامق — بحذر شديد */
  --text:      #F4F2EC;   /* نص فاتح */
  --muted:     #9A968C;   /* نص خافت */

  --gold-grad:  linear-gradient(120deg, var(--gold) 0%, var(--gold-lt) 50%, var(--gold) 100%);
  --amber-glow: 0 0 0 1px rgba(242,133,30,.35), 0 8px 30px -6px rgba(242,133,30,.45);
  --gold-glow:  0 0 0 1px rgba(201,162,75,.5), 0 10px 36px -10px rgba(201,162,75,.4);

  --nav-h: 76px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --container: 1200px;
}

/* ---------- 2) أساسيات ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Cairo', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  /* قوام كربوني خفيف جدًا في الخلفية */
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(201,162,75,.06), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(242,133,30,.05), transparent 55%);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--gold); color: #000; }

/* الإنجليزية والأرقام بخط Oswald مع تباعد حروف */
.font-oswald, .en-term, .trust-num, .lang-toggle, .count, .plus,
[dir="ltr"] body, .loc-row__d[dir="ltr"], .js-tel, .js-tel-text {
  font-family: 'Oswald', sans-serif;
  letter-spacing: .04em;
}
:lang(en) { font-family: 'Oswald', 'Cairo', sans-serif; }

/* حاوية موحّدة */
.section-wrap { max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

/* تركيز واضح لإمكانية الوصول */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, .gal-item:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 8px;
}

/* أيقونات */
.ic { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- 3) اللودر ---------- */
.loader {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__inner { display: grid; justify-items: center; gap: 22px; }
.loader__logo {
  width: clamp(150px, 40vw, 210px); height: auto;
  filter: drop-shadow(0 0 24px rgba(201,162,75,.35));
  animation: logoPulse 2.2s var(--ease) infinite;
}
.loader__bar { width: 160px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.loader__bar span {
  display: block; height: 100%; width: 40%;
  background: var(--gold-grad);
  animation: loaderSlide 1.1s var(--ease) infinite;
}
@keyframes logoPulse { 0%,100%{ filter: drop-shadow(0 0 18px rgba(201,162,75,.25)); } 50%{ filter: drop-shadow(0 0 34px rgba(242,133,30,.5)); } }
@keyframes loaderSlide { 0%{ transform: translateX(-120%);} 100%{ transform: translateX(420%);} }
/* في RTL نعكس مسار الشريط أفقيًا بدل تكرار الـ keyframes (لا يصحّ وضع محدِّد قبل @keyframes) */
[dir="rtl"] .loader__bar { transform: scaleX(-1); }

/* ---------- 4) الشريط العلوي ---------- */
.navbar {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(14,14,16,.55);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.navbar.is-scrolled {
  background: rgba(12,12,14,.92);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -16px rgba(0,0,0,.9);
}
.nav-inner {
  max-width: var(--container); margin-inline: auto; height: 100%;
  padding-inline: clamp(16px, 4vw, 40px);
  display: flex; align-items: center; gap: 18px;
}
.nav-logo { display: flex; align-items: center; flex: none; }
.nav-logo img { height: 48px; width: auto; transition: transform .4s var(--ease), filter .4s var(--ease); }
.nav-logo:hover img { transform: scale(1.04); filter: drop-shadow(0 0 14px rgba(201,162,75,.45)); }

.nav-links { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; margin-inline-start: auto; }
.nav-link {
  position: relative; padding: 10px 14px; font-weight: 600; font-size: .98rem; color: var(--text);
  transition: color .25s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; inset-block-end: 4px; inset-inline: 14px;
  height: 2px; background: var(--gold-grad); border-radius: 2px;
  transform: scaleX(0); transform-origin: var(--und-origin, right);
  transition: transform .3s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--gold-lt); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.lang-toggle {
  display: inline-grid; place-items: center; min-width: 44px; height: 40px; padding-inline: 12px;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--steel);
  font-weight: 600; font-size: .85rem; letter-spacing: .08em;
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold-lt); }
.lang-toggle--wide { width: 100%; height: 52px; }

.nav-burger {
  display: none; width: 48px; height: 48px; place-items: center; font-size: 24px;
  background: transparent; border: 1px solid var(--line); border-radius: 12px; color: var(--text);
  margin-inline-start: auto;
}

/* ---------- 5) قائمة الموبايل ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(12,12,14,.98);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column; padding: 20px clamp(20px,6vw,40px) 40px;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .5s var(--ease-out), visibility .5s;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.mobile-menu__head img { height: 46px; width: auto; }
.mobile-menu__close { width: 48px; height: 48px; display: grid; place-items: center; font-size: 24px; background: transparent; border: 1px solid var(--line); border-radius: 12px; color: var(--text); }
.mobile-menu__links { list-style: none; margin: 24px 0 auto; padding: 0; display: grid; gap: 6px; }
.m-link {
  display: block; padding: 16px 8px; font-size: 1.5rem; font-weight: 700; color: var(--text);
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(14px);
}
.mobile-menu.is-open .m-link { animation: mLinkIn .5s var(--ease-out) forwards; }
.mobile-menu.is-open .m-link:nth-child(1){ animation-delay:.06s }
.mobile-menu.is-open .m-link:nth-child(2){ animation-delay:.12s }
.mobile-menu.is-open .m-link:nth-child(3){ animation-delay:.18s }
.mobile-menu.is-open .m-link:nth-child(4){ animation-delay:.24s }
.mobile-menu.is-open .m-link:nth-child(5){ animation-delay:.30s }
.m-link:active { color: var(--gold-lt); }
@keyframes mLinkIn { to { opacity: 1; transform: translateY(0);} }
.mobile-menu__actions { display: grid; gap: 12px; }

/* ---------- 6) الأزرار ---------- */
.btn {
  --b-bg: var(--gold); --b-fg: #1a1408;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1; white-space: nowrap;
  position: relative; isolation: isolate; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.btn .ic { font-size: 1.25em; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; border-radius: 10px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.06rem; border-radius: 14px; }
.btn-block { width: 100%; }

/* لمعة تمرّ عبر الزر عند التحويم */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }
[dir="rtl"] .btn::before { transform: translateX(120%); }
[dir="rtl"] .btn:hover::before { transform: translateX(-120%); }

.btn-gold { background: var(--gold-grad); color: #1a1408; background-size: 180% 180%; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--gold-glow); }

.btn-wa { background: var(--amber); color: #1a0f04; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: var(--amber-glow); background: #ff9026; }

.btn-ghost { background: rgba(255,255,255,.02); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-lt); transform: translateY(-2px); }

/* ---------- 7) الواجهة (Hero) ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; align-items: center;
  padding-block: calc(var(--nav-h) + 20px) 40px;
  overflow: hidden;
}
.hero-grid {
  position: relative; z-index: 3;
  max-width: var(--container); margin-inline: auto; width: 100%;
  padding-inline: clamp(16px, 4vw, 40px);
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(24px, 4vw, 56px);
}
.hero-copy { max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Oswald', sans-serif; letter-spacing: .22em; text-transform: uppercase;
  font-size: .8rem; color: var(--gold-lt);
  padding: 7px 14px; border: 1px solid rgba(201,162,75,.35); border-radius: 999px;
  background: rgba(201,162,75,.06); margin-bottom: 22px;
}
.hero-title {
  font-weight: 900; font-size: clamp(2.1rem, 6vw, 4.4rem); line-height: 1.12; margin: 0 0 18px;
  letter-spacing: -.01em;
  text-shadow: 0 2px 24px rgba(0,0,0,.55);
}
.hero-sub, .hero-tag { text-shadow: 0 1px 14px rgba(0,0,0,.6); }
.hero-title span { display: block; }
.grad {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 18px rgba(201,162,75,.25));
}
.hero-sub { font-size: clamp(1.02rem, 2.4vw, 1.3rem); color: var(--text); margin: 0 0 6px; font-weight: 600; }
.hero-tag {
  display: inline-block; font-size: clamp(.95rem, 2vw, 1.1rem); color: var(--amber);
  font-weight: 700; margin: 4px 0 30px;
  border-inline-start: 3px solid var(--amber); padding-inline-start: 12px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* إطار الفيديو (سطح المكتب) */
.hero-media { display: flex; justify-content: center; }
.video-frame {
  position: relative; width: min(340px, 80vw); aspect-ratio: 9 / 16;
  border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(201,162,75,.35);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.4) inset;
  background: #000;
}
.video-frame::after { /* توهّج كهرماني يتنفّس خلف الإطار */
  content: ""; position: absolute; inset: -30% -20%; z-index: -1;
  background: radial-gradient(closest-side, rgba(242,133,30,.5), transparent 70%);
  filter: blur(30px); animation: breathe 5s var(--ease) infinite;
}
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.video-frame__corner { position: absolute; width: 26px; height: 26px; border: 2px solid var(--gold); opacity: .9; }
.video-frame__corner.tl { top: 10px; left: 10px; border-inline-end: 0; border-block-end: 0; border-top-left-radius: 8px; }
.video-frame__corner.tr { top: 10px; right: 10px; border-inline-start: 0; border-block-end: 0; border-top-right-radius: 8px; }
.video-frame__corner.bl { bottom: 10px; left: 10px; border-inline-end: 0; border-block-start: 0; border-bottom-left-radius: 8px; }
.video-frame__corner.br { bottom: 10px; right: 10px; border-inline-start: 0; border-block-start: 0; border-bottom-right-radius: 8px; }
@keyframes breathe { 0%,100%{ opacity:.5; transform: scale(1);} 50%{ opacity:.9; transform: scale(1.08);} }

/* خلفية فيديو مموّهة ومكبّرة (سطح المكتب) — نفس الفيديو يملأ العرض دون قصّ المحتوى الحادّ */
.hero-bgvideo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bgvideo__el {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.2);
  filter: blur(22px) brightness(.66) saturate(1.25);
}

/* طبقة التعتيم فوق الخلفية المموّهة لإبقاء العنوان واضحًا (وتزداد قوّة على الموبايل) */
.hero-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(130% 100% at 50% 30%, rgba(14,14,16,.18), rgba(14,14,16,.62)),
    linear-gradient(180deg, rgba(14,14,16,.3) 0%, rgba(14,14,16,.2) 45%, rgba(14,14,16,.72) 100%);
}

/* شرر/جزيئات */
.embers { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.ember {
  position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%;
  background: radial-gradient(circle, var(--amber), rgba(242,133,30,0));
  opacity: 0; animation: emberRise linear infinite;
}
@keyframes emberRise {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10% { opacity: .9; }
  100% { transform: translateY(-90vh) translateX(var(--drift,20px)) scale(.4); opacity: 0; }
}

/* مؤشّر التمرير */
.scroll-cue {
  position: absolute; inset-block-end: 22px; inset-inline-start: 50%; transform: translateX(-50%);
  z-index: 4; width: 26px; height: 42px; border: 2px solid rgba(244,242,236,.35); border-radius: 14px;
  display: grid; justify-items: center; padding-top: 7px;
}
.scroll-cue span { width: 4px; height: 8px; border-radius: 4px; background: var(--gold-lt); animation: scrollDot 1.6s var(--ease) infinite; }
@keyframes scrollDot { 0%{ transform: translateY(0); opacity:1 } 70%{ transform: translateY(14px); opacity:0 } 100%{opacity:0} }

/* ---------- 8) شريط الثقة ---------- */
.trust { padding-block: clamp(36px, 6vw, 60px); position: relative; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-item {
  text-align: center; padding: 26px 12px; border-radius: 16px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.trust-item::before { content:""; position:absolute; inset-block-start:0; inset-inline:0; height:2px; background: var(--gold-grad); opacity:.7; }
.trust-num {
  font-family: 'Oswald', sans-serif; font-weight: 700; line-height: 1;
  font-size: clamp(2rem, 6vw, 3.2rem);
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
}
.trust-num--icon { color: var(--gold); -webkit-text-fill-color: var(--gold); font-size: clamp(2.2rem, 6vw, 3rem); }
.trust-num--icon .ic { width: 1em; height: 1em; }
.plus { font-size: .6em; color: var(--amber); -webkit-text-fill-color: var(--amber); }
.trust-label { margin-top: 8px; color: var(--muted); font-weight: 600; font-size: .95rem; }

/* ---------- 9) الفواصل والعناوين ---------- */
.divider { display: grid; place-items: center; padding-block: 8px; }
.divider span {
  display: block; height: 1px; width: min(900px, 86%);
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--steel) 50%, var(--gold) 80%, transparent);
  opacity: .55;
  transform: scaleX(0); transform-origin: center;
  transition: transform 1.1s var(--ease);
}
.divider.is-in span { transform: scaleX(1); }

.section { padding-block: clamp(56px, 9vw, 110px); position: relative; }
.section--alt { background: linear-gradient(180deg, rgba(20,20,22,.6), rgba(14,14,16,0)); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(34px, 5vw, 60px); }
.section-head--start { text-align: start; margin-inline: 0; }
.kicker {
  font-family: 'Oswald', sans-serif; letter-spacing: .26em; text-transform: uppercase;
  font-size: .78rem; color: var(--amber); font-weight: 600;
}
.section-title {
  font-weight: 900; font-size: clamp(1.8rem, 4.6vw, 3rem); line-height: 1.2; margin: 10px 0 14px;
}
.section-title::after {
  content: ""; display: block; width: 64px; height: 3px; border-radius: 3px;
  background: var(--gold-grad); margin: 16px auto 0;
}
.section-head--start .section-title::after { margin-inline: 0; }
.section-desc { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- 10) الخدمات ---------- */
.svc-group { margin-top: clamp(34px, 5vw, 56px); }
.svc-group__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.svc-group__badge {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.2rem; color: #1a1408;
  background: var(--gold-grad); border-radius: 12px; box-shadow: 0 6px 18px -8px rgba(201,162,75,.6);
}
.svc-group__title { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 900; margin: 0; }
.svc-group__head::after { content:""; flex:1; height:1px; background: linear-gradient(90deg, var(--line), transparent); }
[dir="rtl"] .svc-group__head::after { background: linear-gradient(270deg, var(--line), transparent); }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.svc-card {
  position: relative; padding: 26px; border-radius: 18px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  overflow: hidden;
}
.svc-card::before { /* توهّج زاوية خفيف */
  content: ""; position: absolute; inset-block-start: -40%; inset-inline-end: -30%;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242,133,30,.16), transparent 70%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); border-color: rgba(201,162,75,.6); box-shadow: 0 22px 50px -26px rgba(0,0,0,.9), var(--gold-glow); }
.svc-card:hover::before { opacity: 1; }

.svc-ic {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 16px;
  border-radius: 14px; font-size: 26px; color: var(--gold-lt);
  background: radial-gradient(closest-side, rgba(201,162,75,.18), rgba(201,162,75,.04));
  border: 1px solid rgba(201,162,75,.28);
  transition: transform .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.svc-card:hover .svc-ic { transform: translateY(-2px) scale(1.06); color: var(--amber); box-shadow: 0 0 22px -4px rgba(242,133,30,.6); }
.svc-card__title { font-size: 1.18rem; font-weight: 700; margin: 0 0 8px; }
.en-term { font-family: 'Oswald', sans-serif; letter-spacing: .06em; font-weight: 600; color: var(--steel); }
.svc-card:hover .en-term { color: var(--gold-lt); }
.svc-card__desc { color: var(--muted); font-size: .96rem; margin: 0; line-height: 1.65; }

/* بطاقة مميّزة بصورة */
.svc-card--feature { grid-row: span 2; display: flex; flex-direction: column; padding: 0; }
.svc-card--feature .svc-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.svc-card--feature .svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc-card--feature:hover .svc-card__media img { transform: scale(1.06); }
.svc-card--feature .svc-card__media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(14,14,16,.85)); }
.svc-card--feature .svc-card__body { padding: 24px 26px 28px; margin-top: auto; }
.svc-card--feature .svc-ic { margin-top: -52px; position: relative; z-index: 2; background: var(--surface); }

/* ---------- 11) لماذا رويال ---------- */
.why-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.why-media { position: relative; }
.why-frame {
  position: relative; border-radius: 20px; overflow: hidden; border: 1px solid rgba(201,162,75,.3);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.9);
}
.why-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.why-frame__glow { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(242,133,30,.12)); pointer-events: none; }
.why-frame::before { content:""; position:absolute; inset-block-start:14px; inset-inline-start:14px; width:40px; height:40px; border-top:2px solid var(--gold); border-inline-start:2px solid var(--gold); z-index:2; border-radius:6px 0 0 0;}
.why-frame::after { content:""; position:absolute; inset-block-end:14px; inset-inline-end:14px; width:40px; height:40px; border-bottom:2px solid var(--gold); border-inline-end:2px solid var(--gold); z-index:2; border-radius:0 0 6px 0;}

.why-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px solid transparent; transition: border-color .3s var(--ease), background .3s var(--ease); }
.why-item:hover { border-color: var(--line); background: rgba(26,26,29,.6); }
.why-ic {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none; font-size: 24px;
  border-radius: 12px; color: var(--gold-lt);
  background: radial-gradient(closest-side, rgba(201,162,75,.18), rgba(201,162,75,.04));
  border: 1px solid rgba(201,162,75,.28);
}
.why-item:hover .why-ic { color: var(--amber); box-shadow: 0 0 20px -4px rgba(242,133,30,.5); }
.why-item__t { font-size: 1.1rem; font-weight: 700; margin: 2px 0 4px; }
.why-item__d { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- 12) المعرض ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gal-item {
  position: relative; display: block; padding: 0; border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; background: var(--surface); aspect-ratio: 1/1;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gal-item::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 45%, rgba(14,14,16,.92)); opacity:.85; transition: opacity .4s var(--ease); }
.gal-cap {
  position: absolute; inset-block-end: 14px; inset-inline-start: 16px; inset-inline-end: 16px; z-index: 2;
  font-weight: 700; font-size: .98rem; color: var(--text);
  transform: translateY(6px); opacity: .92; transition: transform .4s var(--ease);
  text-shadow: 0 2px 10px rgba(0,0,0,.8);
}
.gal-item:hover { transform: translateY(-5px); border-color: rgba(201,162,75,.6); box-shadow: var(--gold-glow); }
.gal-item:hover img { transform: scale(1.08); }
.gal-item:hover .gal-cap { transform: translateY(0); }

/* ---------- 13) آراء العملاء ---------- */
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tst-card {
  position: relative; padding: 30px 26px; border-radius: 18px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.tst-card:hover { transform: translateY(-5px); border-color: rgba(201,162,75,.5); box-shadow: 0 22px 50px -26px rgba(0,0,0,.9); }
.tst-quote { width: 42px; height: 42px; fill: var(--gold); opacity: .25; margin-bottom: 6px; }
.stars { display: flex; gap: 3px; color: var(--gold); font-size: 18px; margin-bottom: 12px; }
.tst-text { margin: 0 0 16px; font-size: 1.02rem; line-height: 1.8; color: var(--text); }
.tst-name { font-weight: 700; color: var(--gold-lt); }
.tst-name::before { content: "— "; color: var(--muted); }

/* ---------- 14) الأسئلة الشائعة (FAQ accordion) ---------- */
.faq-wrap { max-width: 880px; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.faq-item[open] { border-color: rgba(201,162,75,.5); box-shadow: 0 16px 40px -28px rgba(0,0,0,.9); }
.faq-q {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 18px 22px; font-weight: 700; font-size: 1.05rem; color: var(--text);
  transition: color .25s var(--ease);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: ""; }
.faq-q:hover { color: var(--gold-lt); }
.faq-chevron { width: 20px; height: 20px; flex: none; color: var(--gold); transition: transform .3s var(--ease); }
.faq-item[open] .faq-chevron { transform: rotate(90deg); }
.faq-a { padding: 0 22px 20px; }
.faq-a p { margin: 0; color: var(--muted); line-height: 1.85; }

/* ---------- 14ج) الفروع (Branches) ---------- */
.branches-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.branch-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: 18px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.branch-card:hover { transform: translateY(-5px); border-color: rgba(201,162,75,.5); box-shadow: 0 22px 50px -26px rgba(0,0,0,.9); }
.branch-map { position: relative; aspect-ratio: 16 / 10; background: #0b0b0c; border-bottom: 1px solid var(--line); }
.branch-map iframe { width: 100%; height: 100%; display: block; filter: grayscale(.25) contrast(1.05); }
.branch-body { padding: 22px 24px 24px; display: grid; gap: 12px; }
.branch-name { font-size: clamp(1.2rem, 3vw, 1.45rem); font-weight: 900; margin: 0; }
.branch-line { display: flex; gap: 10px; align-items: center; color: var(--muted); margin: 0; font-size: .98rem; }
.branch-ic {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none; font-size: 18px;
  border-radius: 10px; color: var(--gold-lt);
  background: radial-gradient(closest-side, rgba(201,162,75,.18), rgba(201,162,75,.04));
  border: 1px solid rgba(201,162,75,.28);
}
.branch-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }

/* ---------- 15) النموذج ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 24px; align-items: stretch; }
.contact-form {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 34px);
  display: grid; gap: 16px;
}
.field { display: grid; gap: 7px; }
.field label { font-weight: 700; font-size: .95rem; color: var(--text); }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; color: var(--text); font-family: inherit; font-size: 1rem; min-height: 52px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,75,.18); background: #121214;
}
.field input:invalid:not(:placeholder-shown) { border-color: rgba(158,27,27,.7); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px; cursor: pointer; }
.select-chevron { position: absolute; inset-block-start: 50%; inset-inline-end: 16px; transform: translateY(-50%) rotate(90deg); width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; pointer-events: none; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; text-align: center; }

.contact-side { display: flex; flex-direction: column; gap: 18px; }
.contact-cta {
  background: linear-gradient(160deg, rgba(242,133,30,.12), rgba(201,162,75,.06));
  border: 1px solid rgba(201,162,75,.3); border-radius: 20px; padding: clamp(22px, 4vw, 30px);
  display: grid; gap: 12px; align-content: start;
}
.contact-cta__t { font-size: 1.4rem; font-weight: 900; margin: 0; }
.contact-cta__d { color: var(--muted); margin: 0 0 6px; }
.contact-social { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; text-align: center; }
.contact-social__label { display: block; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.social-row { display: flex; gap: 12px; justify-content: center; }
.social-btn {
  display: grid; place-items: center; width: 48px; height: 48px; font-size: 22px;
  border-radius: 12px; border: 1px solid var(--line); color: var(--steel);
  transition: transform .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.social-btn:hover { color: var(--gold-lt); border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--gold-glow); }

/* ---------- 16) التذييل ---------- */
.footer { border-top: 1px solid var(--line); background: var(--surface-2); padding-top: clamp(40px, 6vw, 64px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-bottom: 36px; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 12px; }
.footer-tag { color: var(--muted); max-width: 320px; margin: 0; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer h4 { font-size: 1.05rem; margin: 0 0 6px; color: var(--gold-lt); }
.footer-links a, .footer-contact a { color: var(--muted); transition: color .25s var(--ease); width: fit-content; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-lt); }
.footer-contact .social-row { justify-content: flex-start; margin-top: 6px; }
.footer-bar { border-top: 1px solid var(--line); text-align: center; padding: 20px; color: var(--muted); font-size: .9rem; }
.footer-bar .font-oswald, #year { font-family: 'Oswald', sans-serif; }

/* ---------- 17) زر واتساب العائم ---------- */
.wa-float {
  position: fixed; inset-block-end: 18px; inset-inline-end: 18px; z-index: 900;
  width: 58px; height: 58px; display: none; place-items: center; font-size: 30px;
  background: var(--amber); color: #1a0f04; border-radius: 50%;
  box-shadow: 0 10px 30px -8px rgba(242,133,30,.6);
  animation: waPulse 2.4s var(--ease) infinite;
}
@keyframes waPulse { 0%,100%{ box-shadow: 0 10px 30px -8px rgba(242,133,30,.55), 0 0 0 0 rgba(242,133,30,.5);} 50%{ box-shadow: 0 10px 30px -8px rgba(242,133,30,.55), 0 0 0 14px rgba(242,133,30,0);} }

/* ---------- 18) اللايتبوكس ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1800; display: flex; align-items: center; justify-content: center;
  background: rgba(8,8,9,.92); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  padding: 20px;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__fig { margin: 0; max-width: min(1000px, 92vw); max-height: 86vh; display: grid; justify-items: center; gap: 14px; }
.lightbox__fig img {
  max-width: 100%; max-height: 78vh; border-radius: 14px; border: 1px solid rgba(201,162,75,.35);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); transform: scale(.94); transition: transform .4s var(--ease-out);
}
.lightbox.is-open .lightbox__fig img { transform: scale(1); }
.lightbox__fig figcaption { color: var(--text); font-weight: 600; }
.lightbox__close { position: absolute; inset-block-start: 18px; inset-inline-end: 18px; width: 48px; height: 48px; display: grid; place-items: center; font-size: 24px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--text); }
.lightbox__close:hover { border-color: var(--gold); color: var(--gold-lt); }
.lightbox__nav { position: absolute; inset-block-start: 50%; transform: translateY(-50%); width: 52px; height: 52px; display: grid; place-items: center; font-size: 26px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--text); }
.lightbox__nav:hover { border-color: var(--gold); color: var(--gold-lt); }
.lightbox__prev { inset-inline-start: 18px; }
.lightbox__next { inset-inline-end: 18px; }
.lb-flip { transform: rotate(180deg); }
[dir="rtl"] .lightbox__next .ic { transform: rotate(180deg); }
[dir="rtl"] .lightbox__prev .lb-flip { transform: rotate(0deg); }

/* ---------- 19) كشف عند التمرير (Reveal) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
/* رمّح طبقة الـ compositor قبل الظهور فقط، ثم حرّرها بعد ظهور العنصر مرّة واحدة */
.reveal:not(.is-in) { will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
/* تدرّج زمني للبطاقات داخل الشبكة */
.svc-grid .reveal.is-in { transition-delay: var(--d, 0s); }

/* ---------- 20) الاستجابة (Responsive) ---------- */
@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-card--feature { grid-row: span 1; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .tst-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .why-wrap { grid-template-columns: 1fr; }
  .why-frame img { aspect-ratio: 16/10; }
  .branches-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section-head--start { text-align: center; }
  .section-head--start .section-title::after { margin-inline: auto; }
}

/* نقطة التحوّل للموبايل */
@media (max-width: 860px) {
  :root { --nav-h: 66px; }
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: grid; }

  /* الواجهة: الفيديو خلفية كاملة + النص فوقه */
  .hero { min-height: 100svh; text-align: center; }
  /* لا حاجة للنسخة المموّهة على الموبايل — الفيديو نفسه يملأ الشاشة */
  .hero-bgvideo { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { position: absolute; inset: 0; z-index: 1; justify-content: stretch; }
  .video-frame {
    width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; border: 0; box-shadow: none;
  }
  .video-frame::after { display: none; }
  .video-frame__corner { display: none; }
  .hero-video { width: 100%; height: 100%; }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(14,14,16,.72) 0%, rgba(14,14,16,.55) 40%, rgba(14,14,16,.9) 100%),
      radial-gradient(120% 80% at 50% 0%, transparent, rgba(14,14,16,.5));
  }
  .hero-copy { position: relative; z-index: 3; max-width: 600px; margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .eyebrow { margin-inline: auto; }
  .hero-tag { border: 0; padding: 0; }

  .wa-float { display: grid; }
  /* مساحة أسفل الصفحة حتى لا يغطّي الزر العائم محتوى التذييل (+ منطقة الأمان على iOS) */
  body { padding-bottom: calc(58px + 18px + 16px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 560px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .svc-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-cta .btn { width: 100%; }
  .lightbox__nav { width: 44px; height: 44px; }
}

/* ---------- 21) احترام تقليل الحركة ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .12s !important; }
  .reveal { opacity: 1 !important; transform: none !important; will-change: auto !important; }
  .embers, .scroll-cue span, .video-frame::after, .wa-float { animation: none !important; }
  .hero-video { /* يبقى الفيديو لكن دون حركات إضافية */ }
}

/* أدوات مساعدة */
.hidden { display: none !important; }
[hidden] { display: none !important; }
