/* ══════════════════════════════════════════════════════════════
   ريف فاليو — الخيار B «Noir» · مستقل تماماً عن reef-ds.css
   الاتجاه: داكن · طباعي · غامر — نقيض الخيار A في كل شيء:
   - لا صناديق ولا شبكات متساوية؛ تخطيطات غير متناظرة، سطور رفيعة، فراغ واسع
   - الخط IBM Plex Sans Arabic (تقني/تحريري) بدل Cairo
   - ذهبي كلهجة وحيدة على أرضية بنفسجية-سوداء؛ البنفسجي توهّج لا لون سطح
   - أقسام «تتدحرج»: لوحة صور ثابتة تتبدّل مع التمرير، شريط نص متحرك، شبكة bento،
     قائمة تكشف الصور بالهوفر، معرض أفقي بانزلاق
   ══════════════════════════════════════════════════════════════ */

/* ───────── الرموز ─────────
   الفاتح هو الافتراضي. اللهجة الأساسية بنفسجي الهوية، والذهبي لإبراز الكلمات والخطوط.
   الداكن (t-dark) بنفسجي عميق لا أسود، ولهجته ذهبية دافئة. */
:root {
  --bg: #FCFBFD;
  --bg-rgb: 252, 251, 253;
  --bg-2: #F5F3F9;
  --surface: #FFFFFF;
  --line: #ECE8F2;
  --line-2: #D8D1E5;
  --text: #221C33;
  --mute: #5F5870;
  --dim: #9891A6;
  --accent: #5400A8;
  --accent-2: #43008A;
  --accent-soft: rgba(84, 0, 168, .10);
  --on-accent: #FFFFFF;
  --gold: #9C8440;
  --gold-2: #B89A4E;
  --stroke: rgba(84, 0, 168, .14);
  --shadow: 0 12px 32px rgba(64, 24, 120, .07);
  --logo-filter: none;
  --grain-op: 0;
  --img-op: 1;
  --font: 'Cairo', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --wrap: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 92px;
}
:root.t-dark {
  --bg: #1B1430;
  --bg-rgb: 27, 20, 48;
  --bg-2: #231A40;
  --surface: rgba(255, 255, 255, .05);
  --line: rgba(255, 255, 255, .11);
  --line-2: rgba(255, 255, 255, .2);
  --text: #F3EFF9;
  --mute: #B3AAC6;
  --dim: #7E758F;
  --accent: #D2B86C;
  --accent-2: #E6D08A;
  --accent-soft: rgba(210, 184, 108, .14);
  --on-accent: #1B1430;
  --gold: #D9C07A;
  --gold-2: #EAD596;
  --stroke: rgba(255, 255, 255, .14);
  --shadow: none;
  --logo-filter: brightness(0) invert(1);
  --grain-op: .03;
  --img-op: .9;
}
:root.t-dark body::before {
  background:
    radial-gradient(ellipse 50% 40% at 85% 0%, rgba(120, 60, 200, .32), transparent 60%),
    radial-gradient(ellipse 40% 30% at 10% 100%, rgba(210, 184, 108, .08), transparent 60%);
}
:root.t-dark .tile__glow { background: radial-gradient(circle, rgba(160,110,230,.32), transparent 65%); }

/* ───────── إعادة ضبط ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16.5px; line-height: 1.85;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.25; color: var(--text); letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.num, [data-count] { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.rf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rf-ico { width: 1em; height: 1em; fill: currentColor; flex: 0 0 auto; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* توهّج خلفي ثابت */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 85% 0%, rgba(84,0,168,.07), transparent 60%),
    radial-gradient(ellipse 40% 30% at 10% 100%, rgba(156,132,64,.09), transparent 60%);
}

/* ───────── حبيبات خفيفة (تكسر «نظافة» الشاشة الرقمية) ───────── */
.grain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none; mix-blend-mode: overlay; opacity: var(--grain-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ───────── عناوين وتسميات ───────── */
.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
.label::before { content: ''; width: 28px; height: 1px; background: var(--accent); }
.h-xl { font-size: clamp(32px, 4.8vw, 62px); line-height: 1.15; font-weight: 700; }
.h-lg { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.2; }
.h-md { font-size: clamp(22px, 2.6vw, 34px); }
.lede { font-size: clamp(16px, 1.5vw, 19px); color: var(--mute); max-width: 58ch; }
.gold { color: var(--gold); }

.sec { padding-block: clamp(72px, 9vw, 128px); }
.sec--line { border-top: 1px solid var(--line); }

/* رأس قسم بسطر: تسمية يمين، عنوان يسار — تخطيط تحريري لا مركزي */
.shead {
  display: grid; grid-template-columns: 220px 1fr; gap: var(--pad);
  align-items: end; margin-bottom: clamp(40px, 5vw, 72px);
}
.shead .lede { margin-top: 16px; }

/* ───────── أزرار ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 28px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  border: 1px solid var(--line-2);
  transition: all .35s var(--ease);
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover { border-color: var(--accent); color: var(--on-accent); }
.btn:hover::before { transform: none; }
.btn--gold { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--gold::before { background: var(--accent-2); }
.btn--gold:hover { border-color: var(--accent-2); }
.btn .rf-ico { transition: transform .35s var(--ease); }
.btn:hover .rf-ico { transform: translateX(-5px); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--accent);
  padding-bottom: 4px; border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), gap .3s var(--ease);
}
.arrow-link:hover { border-bottom-color: var(--accent); gap: 16px; }
.arrow-link::after { content: '←'; }

/* ───────── القائمة ───────── */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  transition: all .4s var(--ease);
}
.nav.scrolled { background: rgba(var(--bg-rgb),.86); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav__brand { height: 64px; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); display: flex; align-items: center; transition: height .4s var(--ease); }
.nav.scrolled .nav__brand { height: 52px; }
.nav__brand .nav__logo img { height: 40px; transition: height .4s var(--ease); }
.nav.scrolled .nav__brand .nav__logo img { height: 30px; }
.nav__in { height: 92px; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); display: flex; align-items: center; gap: 32px; transition: height .4s var(--ease); }
.nav.scrolled .nav__in { height: 68px; }

/* الشريط العلوي: داكن دائماً ليؤطّر الصفحة، ويطوى عند التمرير */
.topbar { display: none; }
.topbar-old {
  height: 40px; overflow: hidden;
  background: rgba(27,20,48,.38); backdrop-filter: blur(12px); color: #E4DFEF; font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset;
  transition: height .35s var(--ease), opacity .3s var(--ease);
}
.nav.scrolled .topbar { height: 0; opacity: 0; border: 0; }
.topbar__in { height: 40px; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar__g { display: flex; align-items: center; gap: 22px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; transition: color .25s; }
.topbar a:hover { color: #D9C07A; }
.topbar .rf-ico { font-size: 14px; color: #D9C07A; }
.topbar__sep { width: 1px; height: 14px; background: rgba(255,255,255,.18); }
.nav__logo img { height: 28px; width: auto; filter: var(--logo-filter); opacity: 1; }
.nav.scrolled .nav__logo img { height: 28px; }
.nav__links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav__links a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--mute);
  transition: all .3s var(--ease);
}
.nav__links a:hover { color: var(--gold); background: var(--surface); }
.nav__links a[aria-current="page"] { color: var(--gold); background: transparent; }
.nav__cta { padding: 11px 22px; font-size: 14px; border-color: transparent; }
.nav__cta.btn--gold:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); }
.nav__cta.btn--gold::before { background: var(--accent-2); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; font-size: 18px; }

.rf-progress { position: absolute; bottom: -1px; inset-inline-start: 0; height: 2px; width: 0; background: var(--accent); }

/* زر الثيم */
.theme-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; font-size: 17px; color: var(--mute);
  transition: all .35s var(--ease);
}
.theme-btn:hover { color: var(--accent); border-color: var(--accent); transform: rotate(20deg); }
.theme-btn .i-sun { display: none; }
:root.t-dark .theme-btn .i-sun { display: block; }
:root.t-dark .theme-btn .i-moon { display: none; }

/* ───────── مناطق داكنة دائماً (تمنح الفاتح عمقاً ولا تتأثر بالثيم) ───────── */
.hero, .phead, .spot, .foot {
  --bg: #1B1430; --bg-rgb: 27, 20, 48; --bg-2: #231A40;
  --surface: rgba(255,255,255,.05); --line: rgba(255,255,255,.12); --line-2: rgba(255,255,255,.22);
  --text: #F3EFF9; --mute: #C6BFD6; --dim: #8A8299;
  --accent: #D2B86C; --accent-2: #E6D08A; --accent-soft: rgba(210,184,108,.16); --on-accent: #1B1430;
  --gold: #D9C07A; --gold-2: #EAD596; --stroke: rgba(255,255,255,.14); --logo-filter: brightness(0) invert(1);
  color: var(--text);
}
/* الدعوة الختامية: ذهبية بنص بنفسجي داكن */
.mega {
  background: linear-gradient(135deg, #A88D47 0%, #C4A962 45%, #DFC98A 100%);
  --text: #1E1430; --mute: rgba(30,20,48,.78); --line-2: rgba(30,20,48,.35);
  --accent: #2A1A4E; --accent-2: #3D1A74; --accent-soft: rgba(42,26,78,.14); --on-accent: #F5EFD9;
  --gold: #3D1A74; --gold-2: #5400A8;
  color: var(--text);
}
.mega .label { color: #3D1A74; }
.mega .label::before { background: #3D1A74; }
.mega__glow { background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(255,255,255,.35), transparent 70%) !important; }
.foot { background: var(--bg); }
.sec--tint { background: var(--bg-2); }
.marquee { background: var(--bg-2); }

/* ───────── الوضع الفاتح: صفحة هادئة أنيقة تحت ترويسات داكنة ─────────
   الترويسات (.hero/.phead) تبقى داكنة بصورة غنية ونص أبيض، فتكتسب الصفحة الفاتحة عمقاً بلا حجب.
   القائمة فوق الترويسة بيضاء شفافة، وتتحوّل إلى بيضاء ثابتة بعد التمرير. */
:root:not(.t-dark) .nav:not(.scrolled) {
  --text: #FFFFFF; --mute: rgba(255,255,255,.84); --dim: rgba(255,255,255,.6);
  --line: rgba(255,255,255,.18); --line-2: rgba(255,255,255,.38); --surface: rgba(255,255,255,.12);
  --accent: #E6D08A; --accent-2: #F0DFA6; --gold: #E6D08A; --on-accent: #1B1430;
  --logo-filter: brightness(0) invert(1);
  color: var(--text);
}
:root:not(.t-dark) .nav:not(.scrolled) .nav__links a[aria-current="page"] { color: var(--gold); background: transparent; }
:root:not(.t-dark) .nav:not(.scrolled) .nav__cta { border-color: transparent; }
:root:not(.t-dark) .nav:not(.scrolled) .nav__cta::before { background: #E6D08A; }
:root:not(.t-dark) .nav:not(.scrolled) .nav__cta:hover { color: #1B1430; border-color: #E6D08A; }
:root:not(.t-dark) .nav.scrolled { background: rgba(255,255,255,.92); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(64,24,120,.06); }
:root:not(.t-dark) .nav.scrolled .nav__links a[aria-current="page"] { color: var(--gold); background: transparent; }
/* الترويسة الداكنة: تدرّج يُبقي الصورة ظاهرة أعلاها ويُعمِّق أسفلها للنص */
:root:not(.t-dark) .hero::before, :root:not(.t-dark) .phead::before {
  background:
    linear-gradient(to top, #1B1430 0%, rgba(27,20,48,.92) 18%, rgba(27,20,48,.55) 55%, rgba(27,20,48,.35) 100%),
    linear-gradient(to left, rgba(27,20,48,.55), transparent 60%);
}
:root:not(.t-dark) .phead { border-bottom: 0; }
:root:not(.t-dark) .phead__bg, :root:not(.t-dark) .hero__img img { filter: none; }
/* سطح الصفحة: أبيض دافئ هادئ، بلا توهّجات ملوّنة */
:root:not(.t-dark) body::before { background: none; }
:root:not(.t-dark) .sec--tint, :root:not(.t-dark) .marquee { background: #F5F3F9; }
:root:not(.t-dark) .fact, :root:not(.t-dark) .tile { box-shadow: 0 1px 2px rgba(31,26,43,.04), 0 10px 28px rgba(64,24,120,.06); }
:root:not(.t-dark) .tile:hover, :root:not(.t-dark) .fact:hover { box-shadow: 0 2px 4px rgba(31,26,43,.05), 0 18px 40px rgba(64,24,120,.10); }
:root:not(.t-dark) .label { color: var(--gold); }
:root:not(.t-dark) .label::before { background: var(--gold); }

/* ───────── الهيرو الغامر ───────── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: var(--nav-h); overflow: hidden;
}
.hero__img { position: absolute; inset: 0; z-index: -2; }
.hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 2.6s ease-in-out; }
.hero__img img.on { opacity: 1; animation: kb 18s linear forwards; }
.hero__index a.on { color: var(--text); padding-inline-start: 8px; }
.hero__index a.on i { color: var(--gold); }
.hero__index a.on b { position: relative; }
.hero__index a.on b::after { content: ''; position: absolute; inset-inline-start: 0; bottom: -4px; width: 100%; height: 1px; background: var(--gold); transform-origin: right; animation: hline 7s linear forwards; }
@keyframes hline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes kb { from { transform: scale(1.04); } to { transform: scale(1); } }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 4%, rgba(var(--bg-rgb),.7) 38%, rgba(var(--bg-rgb),.25) 72%, rgba(var(--bg-rgb),.45) 100%),
    linear-gradient(to left, rgba(var(--bg-rgb),.5), transparent 55%);
}
.hero__top { display: none; }
.hero__top--x {
  position: absolute; top: calc(var(--nav-h) + 24px); inset-inline: 0;
  display: flex; justify-content: space-between; gap: 24px;
  font-size: 12.5px; letter-spacing: .14em; color: var(--mute); text-transform: uppercase;
}
.hero__body {
  display: grid; grid-template-columns: 1fr auto; gap: var(--pad);
  align-items: end; padding-bottom: clamp(48px, 7vw, 96px);
}
.hero__title { max-width: 16ch; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; transform: translateY(110%); animation: up 1.1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes up { to { transform: none; } }
.hero__sub { margin-top: 28px; max-width: 52ch; opacity: 0; animation: fade 1s .5s var(--ease) forwards; }
@keyframes fade { to { opacity: 1; } }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; opacity: 0; animation: fade 1s .7s var(--ease) forwards; }

/* فهرس القطاعات الجانبي */
.hero__index { display: grid; gap: 4px; min-width: 260px; opacity: 0; animation: fade 1s .9s var(--ease) forwards; }
.hero__index a {
  display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--line);
  color: var(--mute); transition: all .35s var(--ease);
}
.hero__index a:last-child { border-bottom: 1px solid var(--line); }
.hero__index a:hover { color: var(--text); padding-inline-start: 8px; }
.hero__index i { font-style: normal; font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.hero__index b { font-weight: 600; font-size: 15px; }

.hero__scroll {
  position: absolute; bottom: 28px; inset-inline-end: var(--pad);
  width: 1px; height: 64px; background: var(--line-2); overflow: hidden;
}
.hero__scroll::after { content: ''; position: absolute; inset-inline: 0; top: -100%; height: 100%; background: var(--accent); animation: drip 2s ease-in-out infinite; }
@keyframes drip { to { top: 100%; } }

/* نص لكل شريحة: يُعرض المطابق فقط، وتُعاد حركة كشف السطور عند كل تبديل */
.hero__texts { display: grid; }
.hero__text { grid-area: 1 / 1; align-self: end; opacity: 0; pointer-events: none; transition: opacity 2.2s ease-in-out; }
.hero__index a:last-child { border-bottom: 0; }
.hero__text.on { opacity: 1; pointer-events: auto; }
/* حركة الكشف تعمل مرة واحدة عند تحميل الصفحة فقط؛ التبديل بين الشرائح تلاشٍ بحت */
.hero__text:not(.on) .line > span, .hero__text:not(.on) .hero__sub, .hero__text:not(.on) .hero__cta { animation: none; transform: none; opacity: 1; }
@keyframes softup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* عناصر تحكم السلايدر (مثل الخيار A) */
.hero__dots { position: absolute; bottom: 26px; inset-inline: 0; z-index: 3; display: flex; justify-content: center; gap: 9px; }
.hero__dot { position: relative; width: 8px; height: 8px; padding: 0; border: 1.5px solid rgba(255,255,255,.7); border-radius: 2px; transition: all .25s var(--ease); }
.hero__dot::after { content: ''; position: absolute; inset: -10px; }   /* منطقة لمس 30px غير مرئية */
.hero__dot:hover { border-color: #fff; }
.hero__dot[aria-selected="true"] { background: var(--gold); border-color: var(--gold); transform: scale(1.25); }
.hero__count { position: absolute; bottom: 22px; inset-inline-end: var(--pad); z-index: 3; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.75); letter-spacing: .12em; }
.hero__count b { color: var(--gold); font-size: 22px; }
.hero__bar { position: absolute; bottom: 0; inset-inline: 0; z-index: 3; height: 4px; background: rgba(255,255,255,.15); }
.hero__bar i { display: block; height: 100%; width: 0; background: var(--gold); }
.hero__bar i.run { animation: hbar 9s linear forwards; }
@keyframes hbar { from { width: 0; } to { width: 100%; } }
.hero__arr { position: absolute; top: 50%; translate: 0 -50%; z-index: 3; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: #fff; font-size: 18px; background: rgba(27,20,48,.25); transition: all .25s var(--ease); }
.hero__arr:hover { background: var(--gold); border-color: var(--gold); color: #1B1430; }
.hero__arr { direction: ltr; } /* يمنع انعكاس الرمزين ‹ › في RTL */
.hero__arr--prev { right: 22px; }  /* السابق يمين الشاشة ويشير لليمين */
.hero__arr--next { left: 22px; }   /* التالي يسار الشاشة ويشير لليسار */
.hero .hero__body { padding-top: clamp(140px, 18vh, 220px); padding-bottom: clamp(72px, 9vw, 120px); }
.hero__scroll { display: none; }
@media (max-width: 900px) { .hero__arr, .hero__count { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero__bar i.run { animation: none; width: 100%; } }

/* ───────── شريط النص المتحرك ───────── */
.marquee {
  border-block: 1px solid var(--line); padding-block: 18px; overflow: hidden;
  display: flex; white-space: nowrap;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; gap: 0; animation: slide 38s linear infinite; flex: 0 0 auto; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  font-size: clamp(15px, 1.6vw, 20px); font-weight: 600; color: var(--mute);
  padding-inline: 28px; display: inline-flex; align-items: center; gap: 28px;
}
.marquee span::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@keyframes slide { to { transform: translateX(50%); } }

/* ───────── من نحن: صورة + نص + حقائق ───────── */
.about__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about__media { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: var(--shadow); }
.about__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.about__media:hover img { transform: scale(1.04); }
.about__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(27,20,48,.55), transparent 45%); }
.about__badge {
  position: absolute; z-index: 1; bottom: 20px; inset-inline-start: 20px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: #1F1A2B;
  font-size: 13px; font-weight: 600; backdrop-filter: blur(8px);
}
.about__badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #5400A8; }
.about__text .lede { margin-top: 14px; }
.about__text .lede .gold { font-weight: 600; color: var(--accent); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.fact { padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.fact b { display: flex; align-items: baseline; gap: 3px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; line-height: 1; color: var(--accent); }
.fact b .sign { font-size: .65em; color: var(--gold); }
.fact span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--mute); }

/* ───────── نموذج طلب الخدمة ───────── */
.lf { display: grid; gap: 16px; position: relative; }
.lf label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.lf label b { color: var(--gold); font-weight: 700; }
.lf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lf input, .lf select, .lf textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 13px 16px; transition: all .3s var(--ease);
}
.lf input::placeholder, .lf textarea::placeholder { color: var(--dim); }
.lf input:focus, .lf select:focus, .lf textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.lf select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(18px) 50%, calc(18px + 6px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-start: 36px; }
.lf textarea { resize: vertical; min-height: 120px; }
.lf__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 6px; }
.lf__foot small { font-size: 12.5px; color: var(--mute); max-width: 44ch; }
.lf__ok, .lf__bad { padding: 14px 18px; border-radius: 10px; font-size: 14.5px; }
.lf__ok { background: rgba(34,150,94,.12); color: #1F7A4D; border: 1px solid rgba(34,150,94,.3); }
.lf__bad { background: var(--accent-soft); color: var(--text); border: 1px solid var(--line-2); }
.lf-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 3vw, 40px); box-shadow: var(--shadow); }
:root.t-dark .lf__ok { color: #8FE0B4; }

/* ───────── البيان الافتتاحي ───────── */
.manifesto { max-width: 980px; }
.manifesto p {
  font-size: clamp(18px, 1.9vw, 24px); line-height: 1.8; font-weight: 500;
  color: var(--mute);
}
.manifesto p b { color: var(--text); font-weight: 600; }
.manifesto p .gold { font-weight: 600; border-bottom: 2px solid var(--gold-2); padding-bottom: 1px; }
.manifesto p .gold { font-weight: 600; }
.stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.stat { flex: 1 1 200px; padding: 28px var(--pad) 28px 0; border-inline-end: 1px solid var(--line); }
.stat:last-child { border-inline-end: 0; }
.stat b { display: block; font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; line-height: 1; color: var(--accent); }
.stat b .sign { color: var(--accent); }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--mute); }

/* ───────── القطاعات: لوحة صور ثابتة + نصوص تتدحرج ───────── */
.scrolly { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); align-items: start; }
.scrolly__media { position: sticky; top: 100px; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--bg-2); }
.scrolly__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease), transform 1.2s var(--ease);
}
.scrolly__media img.on { opacity: 1; transform: none; }
.scrolly__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(var(--bg-rgb),.7), transparent 50%); }
.scrolly__tag {
  position: absolute; bottom: 24px; inset-inline-start: 24px; z-index: 1;
  font-size: 12.5px; letter-spacing: .16em; color: var(--accent); text-transform: uppercase;
}
.scrolly__items { display: grid; gap: 0; }
.scrolly__item {
  padding: clamp(48px, 6vw, 96px) 0; border-top: 1px solid var(--line);
  min-height: 70vh; display: flex; flex-direction: column; justify-content: center;
  transition: opacity .5s var(--ease);
}
.scrolly__item:not(.on) { opacity: .38; }
.scrolly__n { font-size: 13px; letter-spacing: .2em; color: var(--accent); margin-bottom: 18px; }
.scrolly__item h3 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 16px; }
.scrolly__item p { color: var(--mute); max-width: 50ch; }
.scrolly__list { margin: 26px 0 32px; display: grid; gap: 10px; }
.scrolly__list li { display: flex; gap: 14px; align-items: baseline; font-size: 15.5px; color: var(--text); }
.scrolly__list li::before { content: ''; width: 18px; height: 1px; background: var(--accent); flex: 0 0 auto; transform: translateY(-4px); }

/* ───────── شبكة Bento ───────── */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 14px; }
.tile {
  position: relative; overflow: hidden; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 26px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: all .45s var(--ease); isolation: isolate;
}
.tile:hover { border-color: var(--accent-soft); transform: translateY(-4px); }
.tile--2 { grid-column: span 2; }
.tile--tall { grid-row: span 2; }
.tile__img { position: absolute; inset: 0; z-index: -2; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); opacity: var(--img-op); }
.tile:hover .tile__img img { transform: scale(1.06); }
.tile__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(var(--bg-rgb),.95), rgba(var(--bg-rgb),.2)); }
.tile__ico { font-size: 30px; color: var(--accent); margin-bottom: auto; transition: transform .45s var(--ease); }
.tile:hover .tile__ico { transform: translateY(-4px) rotate(-8deg); }
.tile h3 { font-size: 19px; margin-bottom: 6px; }
.tile p { font-size: 14px; color: var(--mute); }
.tile__glow { position: absolute; inset-inline-end: -40%; top: -40%; width: 80%; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(84,0,168,.12), transparent 65%); opacity: 0; transition: opacity .5s; }
.tile:hover .tile__glow { opacity: 1; }

/* ───────── إدارة المرافق الذكية: لوحة عريضة ───────── */
.spot { position: relative; overflow: hidden; border-radius: 6px; isolation: isolate; min-height: 560px; display: grid; align-items: end; }
.spot__img { position: absolute; inset: -10% 0; z-index: -2; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.spot::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(var(--bg-rgb),.96) 30%, rgba(var(--bg-rgb),.5)); }
.spot__in { padding: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--pad); align-items: end; }
.spot__feats { display: grid; gap: 0; }
.spot__feats li {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  padding: 18px 0; border-top: 1px solid var(--line-2);
}
.spot__feats i { font-style: normal; font-size: 12px; color: var(--accent); letter-spacing: .14em; padding-top: 6px; }
.spot__feats b { display: block; font-size: 16px; font-weight: 600; }
.spot__feats span { font-size: 14px; color: var(--mute); }

/* ───────── من نخدم: قائمة تكشف الصور ───────── */
.reveal { display: grid; grid-template-columns: 1fr 420px; gap: var(--pad); align-items: start; }
.reveal__list { display: grid; }
.reveal__row {
  display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 20px;
  padding: 28px 0; border-top: 1px solid var(--line);
  transition: all .4s var(--ease); cursor: pointer;
}
.reveal__row:last-child { border-bottom: 1px solid var(--line); }
.reveal__row i { font-style: normal; font-size: 13px; color: var(--dim); letter-spacing: .12em; transition: color .3s; }
.reveal__row h3 { font-size: clamp(18px, 2vw, 24px); font-weight: 600; color: var(--mute); transition: all .4s var(--ease); }
.reveal__row p { grid-column: 2; font-size: 14.5px; color: var(--mute); max-height: 0; overflow: hidden; opacity: 0; transition: all .5s var(--ease); }
.reveal__row .arrow-link { opacity: 0; transition: opacity .4s; }
.reveal__row.on i { color: var(--accent); }
.reveal__row.on h3 { color: var(--text); padding-inline-start: 8px; }
.reveal__row.on p { max-height: 120px; opacity: 1; margin-top: 8px; }
.reveal__row.on .arrow-link { opacity: 1; }
.reveal__media { position: sticky; top: 110px; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--bg-2); }
.reveal__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity .7s var(--ease), transform 1s var(--ease); }
.reveal__media img.on { opacity: 1; transform: none; }

/* ───────── المسار: خط أفقي ───────── */
.path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.path::before { content: ''; position: absolute; top: 9px; inset-inline: 0; height: 1px; background: var(--line-2); }
.path__step { padding: 40px 24px 0 0; position: relative; }
.path__step::before { content: ''; position: absolute; top: 4px; inset-inline-start: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--accent); transition: all .4s var(--ease); }
.path__step:hover::before { background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.path__step i { font-style: normal; font-size: 12px; color: var(--accent); letter-spacing: .18em; }
.path__step h3 { font-size: 19px; margin: 10px 0 8px; }
.path__step p { font-size: 14.5px; color: var(--mute); }

/* ───────── اقتباس ───────── */
.quote { display: grid; grid-template-columns: 120px 1fr; gap: var(--pad); align-items: start; }
.quote__ava { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; border: 1px solid var(--line-2); }
.quote__ava img { width: 100%; height: 100%; object-fit: cover; }
.quote__mark { font-size: 110px; line-height: .5; color: var(--accent); font-family: Georgia, serif; opacity: .6; margin-bottom: 10px; }
.quote__q { font-size: clamp(18px, 2.1vw, 26px); line-height: 1.7; font-weight: 500; max-width: 34ch; }
.quote__who { margin-top: 24px; color: var(--mute); font-size: 14.5px; }
.quote__who b { color: var(--text); display: block; font-size: 15.5px; }

/* ───────── معرض الصور: شريط متحرك ببطء ─────────
   ارتفاع موحّد وعرض يتبع نسبة كل صورة، يتحرك بلا نهاية ويتوقف عند الهوفر. */
.strip-wrap { overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.strip { display: flex; gap: 14px; width: max-content; animation: strip-slide 70s linear infinite; will-change: transform; }
.strip-wrap:hover .strip { animation-play-state: paused; }
.strip__item { position: relative; flex: 0 0 auto; height: clamp(220px, 28vw, 340px); border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.strip__item img { height: 100%; width: auto; display: block; transition: transform 1.2s var(--ease); }
.strip__item:hover img { transform: scale(1.04); }
.strip__cap { position: absolute; bottom: 0; inset-inline: 0; padding: 40px 18px 16px; font-size: 13.5px; color: #fff; background: linear-gradient(to top, rgba(27,20,48,.85), transparent); }
@keyframes strip-slide { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .strip { animation: none; } .strip-wrap { overflow-x: auto; } }

/* ───────── دعوة عملاقة ───────── */
.mega { text-align: center; padding-block: clamp(80px, 12vw, 160px); position: relative; overflow: hidden; }
.mega__glow { position: absolute; inset: auto 0 -40% 0; height: 80%; background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(84,0,168,.12), transparent 70%); pointer-events: none; }
.mega h2 { font-size: clamp(40px, 7vw, 96px); line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.mega h2 .gold { font-weight: 300; }
.mega p { margin: 28px auto 0; max-width: 48ch; color: var(--mute); font-size: clamp(16px, 1.6vw, 19px); }
.mega__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 40px; }

/* ───────── الفوتر ───────── */
.foot { border-top: 1px solid var(--line); padding-top: 64px; overflow: hidden; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--pad); padding-bottom: 56px; }
.foot__grid h4 { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; font-weight: 600; }
.foot__grid li { margin-bottom: 10px; font-size: 15px; color: var(--mute); }
.foot__grid a:hover { color: var(--accent); }
.foot__logo img { height: 26px; width: auto; filter: var(--logo-filter); }
.foot__about { color: var(--mute); font-size: 15px; margin-top: 18px; max-width: 34ch; }
.foot__social { display: flex; gap: 10px; margin-top: 22px; }
.foot__social a { width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; transition: all .3s var(--ease); }
.foot__social a:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.foot__word { display: none; }
.foot__word-old {
  font-size: clamp(48px, 11vw, 170px); line-height: .85; font-weight: 700; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1px var(--stroke);
  white-space: nowrap; user-select: none; direction: ltr; text-align: center;
  margin-top: 20px; transform: translateY(18%);
}
.foot__addr { display: grid; gap: 4px; margin-top: 4px; }
.foot__addr small { color: var(--dim); font-size: 12.5px; direction: ltr; text-align: start; display: block; }
.foot__bar { border-top: 1px solid var(--line); padding: 22px 0; font-size: 13px; color: var(--dim); display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between; }

.rf-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); background: rgba(var(--bg-rgb),.7); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: all .35s var(--ease); }
.rf-top.on { opacity: 1; pointer-events: auto; }
.rf-top:hover { background: var(--accent); color: var(--on-accent); }

/* ───────── ظهور عند التمرير ───────── */
.rf-rise { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rf-anim .rf-rise { opacity: 0; transform: translateY(28px); }
.rf-anim .rf-rise.in { opacity: 1; transform: none; }
.rf-anim .rf-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rf-anim .rf-stagger.in > * { opacity: 1; transform: none; }
.rf-stagger.in > :nth-child(2) { transition-delay: .08s; }
.rf-stagger.in > :nth-child(3) { transition-delay: .16s; }
.rf-stagger.in > :nth-child(4) { transition-delay: .24s; }
.rf-stagger.in > :nth-child(5) { transition-delay: .32s; }
.rf-stagger.in > :nth-child(6) { transition-delay: .4s; }



/* ───────── ترويسة الصفحات الداخلية v2: صورة بعرض الشاشة + عنوان ضخم + فهرس ───────── */
.phead {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;   /* نفس ارتفاع هيرو الرئيسية */
  padding: calc(var(--nav-h) + 160px) 0 clamp(48px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}
.phead__bg { position: absolute; inset: -8% 0; z-index: -2; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.phead::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 6%, rgba(var(--bg-rgb),.78) 45%, rgba(var(--bg-rgb),.3) 100%),
    linear-gradient(to left, rgba(var(--bg-rgb),.5), transparent 60%);
}
.phead__in { display: grid; grid-template-columns: 1fr 320px; gap: var(--pad); align-items: end; }
.crumb { font-size: 12.5px; letter-spacing: .16em; color: var(--mute); text-transform: uppercase; margin-bottom: 20px; display: flex; gap: 12px; }
.crumb b { color: var(--accent); font-weight: 600; }
.phead h1 { font-size: clamp(34px, 5.6vw, 72px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; }
.phead h1 .line { display: block; overflow: hidden; }
.phead h1 .line > span { display: block; transform: translateY(110%); animation: up 1s var(--ease) forwards; }
.phead h1 .line:nth-child(2) > span { animation-delay: .12s; }
.phead__sub { margin-top: 24px; max-width: 52ch; opacity: 0; animation: fade 1s .5s var(--ease) forwards; }
.phead__index { display: grid; opacity: 0; animation: fade 1s .7s var(--ease) forwards; }
.phead__index a { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--mute); font-size: 14.5px; transition: all .3s var(--ease); }
.phead__index a:last-child { border-bottom: 1px solid var(--line); }
.phead__index a:hover { color: var(--text); padding-inline-start: 8px; }
.phead__index i { font-style: normal; font-size: 11.5px; color: var(--accent); letter-spacing: .1em; }
.phead__img { display: none; }

/* ───────── قسم قطاع كامل (صفحة القطاعات) ───────── */
.div { padding-block: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.div__head { display: grid; grid-template-columns: 120px 1fr; gap: var(--pad); align-items: start; margin-bottom: clamp(32px, 4vw, 56px); }
.div__n { font-size: clamp(40px, 5.5vw, 72px); line-height: .9; font-weight: 700; color: transparent; -webkit-text-stroke: 1px var(--gold); }
.div__head h2 { font-size: clamp(26px, 3.2vw, 40px); }
.div__head .lede { margin-top: 16px; }
.div__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--pad); align-items: start; }
.div__img { position: sticky; top: 100px; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; }
.div__img img { width: 100%; height: 100%; object-fit: cover; }
.kv { display: grid; gap: 0; }
.kv > div { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 15px; }
.kv > div:last-child { border-bottom: 1px solid var(--line); }
.kv dt { color: var(--accent); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; padding-top: 4px; font-weight: 600; }
.kv dd { margin: 0; color: var(--text); }
.kv dd small { display: block; color: var(--mute); font-size: 14px; margin-top: 4px; }
.feats { display: grid; gap: 0; margin-top: 8px; }
.feats li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.feats li:last-child { border-bottom: 1px solid var(--line); }
.feats i { font-style: normal; font-size: 12px; color: var(--accent); letter-spacing: .14em; padding-top: 5px; }
.feats b { display: block; font-size: 16px; font-weight: 600; }
.feats span { font-size: 14.5px; color: var(--mute); }
.edge { margin-top: 32px; padding: 24px 28px; border: 1px solid var(--gold); border-radius: 6px; position: relative; }
.edge::before { content: 'القيمة التنافسية'; position: absolute; top: -11px; inset-inline-start: 20px; background: var(--bg); padding: 0 10px; font-size: 12px; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; }
.edge p { color: var(--text); font-size: 15.5px; }

/* شريط ترابط القطاعات */
.band { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.band > div { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.band h3 { font-size: 20px; margin-bottom: 8px; }
.band p { color: var(--mute); font-size: 15px; }
.band .label { margin-bottom: 14px; }

/* ───────── قوائم عامة للصفحات الداخلية ───────── */
.rows { display: grid; }
.rows > div { display: grid; grid-template-columns: 220px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows dt { color: var(--accent); font-weight: 600; }
.rows dd { margin: 0; color: var(--text); }
.rows dd small { display: block; color: var(--mute); font-size: 13.5px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); align-items: start; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.cols3 > div { padding: 28px 28px 28px 0; border-inline-end: 1px solid var(--line); }
.cols3 > div:last-child { border-inline-end: 0; }
.cols3 > div:not(:first-child) { padding-inline-start: 28px; }
.cols3 h3 { font-size: 19px; margin: 14px 0 8px; }
.cols3 p { color: var(--mute); font-size: 14.5px; }
.cols3 .tile__ico { margin: 0; }
.statement { padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 180px 1fr; gap: var(--pad); align-items: start; }
.statement:last-child { border-bottom: 1px solid var(--line); }
.statement p { font-size: clamp(18px, 2vw, 24px); line-height: 1.7; font-weight: 500; max-width: 36ch; }
.statement small { display: block; margin-top: 14px; color: var(--mute); font-size: 14px; }

/* الوظائف */
.role { border-top: 1px solid var(--line); padding: 32px 0; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.role:last-child { border-bottom: 1px solid var(--line); }
.role h3 { font-size: clamp(20px, 2.2vw, 26px); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.role__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0 16px; font-size: 13.5px; color: var(--mute); }
.role__meta b { color: var(--accent); font-weight: 600; }
.role p { color: var(--mute); max-width: 62ch; }
.pill { padding: 4px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12.5px; color: var(--accent); font-weight: 500; }
.pill--open { border-color: rgba(92,200,140,.6); color: #5FC98C; }

/* التواصل */
.contact-list { display: grid; }
.contact-list a { display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: center; padding: 26px 0; border-top: 1px solid var(--line); transition: all .35s var(--ease); }
.contact-list a:last-child { border-bottom: 1px solid var(--line); }
.contact-list a:hover { padding-inline-start: 10px; }
.contact-list .rf-ico { font-size: 30px; color: var(--accent); }
.contact-list small { display: block; font-size: 12.5px; letter-spacing: .12em; color: var(--mute); text-transform: uppercase; }
.contact-list b { font-size: clamp(17px, 1.8vw, 22px); font-weight: 600; }
.contact-list span.go { color: var(--accent); font-size: 22px; transition: transform .3s; }
.contact-list a:hover span.go { transform: translateX(-6px); }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 4 / 3; }
  .lf__row { grid-template-columns: 1fr; }
  .phead { min-height: 0; }
  .phead__in { grid-template-columns: 1fr; }
  .phead__index { display: none; }
  .div__head { grid-template-columns: 1fr; gap: 8px; }
  .div__grid { grid-template-columns: 1fr; }
  .div__img { position: relative; top: 0; }
  .band, .two, .cols3 { grid-template-columns: 1fr; }
  .cols3 > div { border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 24px 0 !important; }
  .statement { grid-template-columns: 1fr; gap: 12px; }
  .rows > div, .kv > div { grid-template-columns: 1fr; gap: 4px; }
  .role { grid-template-columns: 1fr; }
  .contact-list a { grid-template-columns: 44px 1fr; }
  .contact-list span.go { display: none; }
}

/* ───────── توافق مع مكوّنات الصفحات الداخلية (المشتقة من A) ───────── */
main > .rf-sec, .rf-sec { padding-block: clamp(64px, 8vw, 112px); }
.rf-sec--panel { background: var(--bg-2); }
.rf-sec--dark { background: transparent; border-block: 1px solid var(--line); }
.rf-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.rf-grid { display: grid; gap: 14px; }
.rf-grid--2 { grid-template-columns: repeat(2, 1fr); }
.rf-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rf-grid--4 { grid-template-columns: repeat(4, 1fr); }
.rf-shead { max-width: 820px; margin: 0 auto clamp(36px, 4vw, 56px); text-align: center; }
.rf-shead--start { margin-inline: 0; text-align: start; }
.rf-shead h1, .rf-shead h2 { font-size: clamp(28px, 3.6vw, 48px); margin-top: 14px; }
.rf-kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.rf-kicker::before { content: ''; width: 22px; height: 1px; background: var(--accent); }
.rf-lede { color: var(--mute); margin-top: 14px; font-size: 17px; }
.rv-p { color: var(--mute); margin-bottom: 16px; }
.rv-p strong { color: var(--text); font-weight: 600; }
.rf-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); align-items: center; }
.rf-split__img { border-radius: 6px; overflow: hidden; }
.rf-split__img img { width: 100%; height: 100%; object-fit: cover; }
.rf-split--flip .rf-split__img { order: 2; }
.rf-zoom { overflow: hidden; }
.rf-zoom img { transition: transform 1.2s var(--ease); }
.rf-zoom:hover img { transform: scale(1.05); }
.rf-check { display: grid; gap: 12px; }
.rf-check li { display: flex; gap: 14px; align-items: baseline; color: var(--text); font-size: 15.5px; }
.rf-check li::before { content: ''; width: 18px; height: 1px; background: var(--accent); flex: 0 0 auto; transform: translateY(-4px); }
.rf-btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 28px; border-radius: 999px; font-size: 15px; font-weight: 600; border: 1px solid var(--line-2); transition: all .35s var(--ease); }
.rf-btn:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.rf-btn--primary, .rf-btn--gold { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.rf-btn--primary:hover, .rf-btn--gold:hover { background: var(--accent-2); }
.rf-btn--white { background: var(--text); color: var(--on-accent); border-color: var(--text); }
.rf-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--accent); }
.rf-link::after { content: '←'; transition: transform .3s; }
.rf-link:hover::after { transform: translateX(-5px); }
.rf-fbox, .rf-card, .rf-ibox, .rv-contact {
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 28px;
  transition: all .4s var(--ease);
}
.rf-fbox:hover, .rf-card:hover, .rf-ibox:hover, .rv-contact:hover { border-color: var(--accent-soft); transform: translateY(-4px); }
.rf-fbox { text-align: start; }
.rf-fbox::before { display: none; }
.rf-fbox__ico { font-size: 30px; color: var(--accent); margin-bottom: 18px; width: auto; height: auto; border: 0; background: none; display: block; }
.rf-fbox__title, .rf-card__title, .rf-ibox__title { font-size: 18px; margin-bottom: 8px; }
.rf-fbox__text, .rf-card__text, .rf-ibox__text { font-size: 14.5px; color: var(--mute); }
.rf-fbox__more { margin-top: 16px; }
.rf-ibox { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.rf-ibox__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.rf-ibox__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); opacity: .9; }
.rf-ibox:hover .rf-ibox__img img { transform: scale(1.05); }
.rf-ibox__ico { position: absolute; bottom: 16px; inset-inline-start: 16px; font-size: 28px; color: var(--accent); }
.rf-ibox__body { padding: 24px; }
.rf-ibox__foot { margin-top: 16px; }
.rf-rows { border-top: 1px solid var(--line); }
.rf-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rf-row__k { color: var(--accent); font-weight: 600; }
.rf-row__v { color: var(--text); }
.rf-row__en { font-size: 12.5px; color: var(--dim); }
.rf-tag { display: inline-block; padding: 4px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12.5px; color: var(--accent); }
.rf-tag--open { border-color: rgba(92,200,140,.5); color: #7FD9A3; }
.rv-contact { display: flex; align-items: center; gap: 18px; }
.rv-contact__ico { font-size: 28px; color: var(--accent); }
.rv-contact__k { font-size: 12.5px; color: var(--mute); letter-spacing: .06em; }
.rv-contact__v { font-size: 16px; font-weight: 600; color: var(--text); }
.rf-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.rf-gallery__item { position: relative; overflow: hidden; border-radius: 6px; }
.rf-gallery__item--wide { grid-column: span 2; }
.rf-gallery__item--tall { grid-row: span 2; }
.rf-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.rf-gallery__item:hover img { transform: scale(1.06); }
.rf-gallery__cap { position: absolute; inset-inline: 0; bottom: 0; padding: 36px 16px 14px; font-size: 13.5px; background: linear-gradient(to top, rgba(var(--bg-rgb),.9), transparent); }
.rf-ctabar, .rf-phead, .rf-topbar { display: none; }
.rf-counters { display: none; }

/* ───────── تقليل الحركة ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .rf-anim .rf-rise, .rf-anim .rf-stagger > * { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
  .hero__sub, .hero__cta, .hero__index { opacity: 1; }
  .marquee__track { animation: none; }
}

.nav__theme-row { display: none; }
.nav__theme-off { display: none; }
:root.t-dark .nav__theme-on { display: none; }
:root.t-dark .nav__theme-off { display: inline; }
/* زر واتساب عائم (مثل موقع ريف فاليو أعمال) — يسار الشاشة في RTL، فوق كل شيء */
.wa-float { position: fixed; left: 22px; bottom: 22px; z-index: 95; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 10px 28px rgba(37,211,102,.45); transition: transform .25s var(--ease), background .25s; animation: waPulse 2.6s infinite; }
.wa-float .rf-ico { font-size: 30px; width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); background: #1FBA5A; }
@keyframes waPulse { 0% { box-shadow: 0 10px 28px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.45); } 70% { box-shadow: 0 10px 28px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 10px 28px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); } }
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }
@media (max-width: 600px) { .wa-float { width: 52px; height: 52px; left: 16px; bottom: 16px; } .wa-float .rf-ico { font-size: 26px; width: 26px; height: 26px; } .rf-top { bottom: 16px; } }

.div__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 24px; }
.div__links .btn .rf-ico { font-size: 16px; margin-inline-start: 6px; }
.div__mail { display: inline-flex; align-items: center; gap: 8px; color: var(--mute); font-size: 15px; direction: ltr; transition: color .25s; }
.div__mail .rf-ico { color: var(--gold); font-size: 17px; }
.div__mail:hover { color: var(--accent); }
.div__site { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }

/* ───────── الاستجابة ───────── */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .reveal { grid-template-columns: 1fr; }
  .reveal__media { display: none; }
  .reveal__row p { max-height: none; opacity: 1; margin-top: 8px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  /* قائمة الجوال: لوحة منسدلة تحت شريط القائمة (مثل موقع ريف فاليو أعمال) بألوان صريحة داكنة لا تتأثر بالثيم،
     وخلفها حجاب يغلقها بالنقر. backdrop-filter على .nav يحوّل fixed/absolute إلى نسبي، لذا يُعطَّل أثناء الفتح. */
  .nav.menu-open, .nav.menu-open.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: #1B1430; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav.menu-open .nav__in { --text: #fff; --line-2: rgba(255,255,255,.38); --logo-filter: brightness(0) invert(1); color: #fff; }
  .nav.menu-open::after { content: ''; position: fixed; inset: 0; background: rgba(27,20,48,.55); z-index: 0; }
  .nav__links { position: absolute; top: 100%; inset-inline: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 8px 12px 12px; background: #1B1430; color: #F3EFF9; z-index: 1; border-radius: 0 0 20px 20px; box-shadow: 0 24px 48px rgba(0,0,0,.35); max-height: calc(100dvh - 64px); overflow-y: auto; }
  .nav__links.open { display: flex; animation: menuIn .28s var(--ease) both; }
  .nav__links li { list-style: none; }
  .nav__links a { display: block; font-size: 17px; font-weight: 600; color: #F3EFF9; padding: 13px 16px; border-radius: 12px; background: transparent; text-align: start; }
  .nav__links a:hover { color: #E6D08A; background: rgba(255,255,255,.06); }
  .nav__links a[aria-current="page"] { color: #E6D08A; background: rgba(230,208,138,.08); }
  .nav__theme-row { display: block; margin-top: 6px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.12); }
  .nav__theme { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; color: #F3EFF9; font-size: 15.5px; font-weight: 500; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
  .nav__theme .rf-ico { font-size: 18px; color: #E6D08A; }
  .nav__theme .i-sun { display: none; }
  :root.t-dark .nav__theme .i-sun { display: block; }
  :root.t-dark .nav__theme .i-moon { display: none; }
  .nav__cta, .nav__in > .theme-btn { display: none; }
  .nav__logo, .burger { position: relative; z-index: 2; }
  .burger { display: grid; place-items: center; }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  html.menu-open, html.menu-open body { overflow: hidden; }
  .hero__body { grid-template-columns: 1fr; }
  .hero__index { min-width: 0; }
  .hero__scroll, .hero__top { display: none; }
  .shead { grid-template-columns: 1fr; gap: 12px; }
  .scrolly { grid-template-columns: 1fr; }
  .scrolly__media { position: relative; top: 0; aspect-ratio: 16 / 10; }
  .scrolly__item { min-height: 0; opacity: 1 !important; }
  .scrolly__item:not(.on) { opacity: 1; }
  .spot__in { grid-template-columns: 1fr; }
  .path { grid-template-columns: 1fr 1fr; gap: 20px; }
  .path::before { display: none; }
  .quote { grid-template-columns: 1fr; }
  .rf-grid--2, .rf-grid--3 { grid-template-columns: 1fr; }
  .rf-grid--4 { grid-template-columns: 1fr 1fr; }
  .rf-split { grid-template-columns: 1fr; }
  .rf-split--flip .rf-split__img { order: 0; }
  .rf-gallery { grid-template-columns: 2fr 1fr; grid-auto-rows: 160px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .tile--2 { grid-column: span 1; }
  .tile--tall { grid-row: span 1; }
  .path { grid-template-columns: 1fr; }
  .stat { flex-basis: 100%; border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 20px 0; }
  .rf-grid--4 { grid-template-columns: 1fr; }
  .rf-row { grid-template-columns: 1fr; gap: 4px; }
  .rf-gallery { grid-template-columns: 1fr 1fr; }
  .rf-gallery__item--wide { grid-column: span 2; }
  .rf-gallery__item--tall { grid-row: span 1; }
}

/* ───────── الجوال: الهيرو في شاشة واحدة ───────── */
@media (max-width: 600px) {
  :root { --nav-h: 72px; }
  .hero__index { display: none; }
  .hero .hero__body { padding-top: clamp(96px, 14vh, 140px); padding-bottom: 88px; }
  .hero__title { max-width: none; }
  .hero__sub { margin-top: 18px; }
  .hero__cta { margin-top: 24px; }
  .hero__cta .btn { padding: 13px 22px; font-size: 14.5px; }
  .phead { padding-top: calc(var(--nav-h) + 72px); }
  .foot__grid { grid-template-columns: 1fr; gap: 28px; }
  .nav__in { height: 64px; gap: 10px; }
  .nav.scrolled .nav__in { height: 58px; }
  .nav__logo { margin-inline-end: auto; display: flex; align-items: center; }
  .nav__logo img, .nav.scrolled .nav__logo img { height: 22px; }
  .theme-btn, .burger { width: 40px; height: 40px; font-size: 16px; }
}

/* ───────── أقسام اختيارية (تُفعَّل من اللوحة) ───────── */
.testi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.testi__card { margin: 0; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; }
.testi__card blockquote { margin: 0; font-size: 16.5px; line-height: 1.85; color: var(--text); }
.testi__card blockquote::before { content: '“'; display: block; font-size: 48px; line-height: .5; color: var(--gold); font-family: Georgia, serif; margin-bottom: 10px; }
.testi__card figcaption { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.testi__card figcaption b { display: block; font-size: 15px; }
.testi__card figcaption span { font-size: 13px; color: var(--mute); }
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.logos__item { display: grid; place-items: center; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-height: 96px; }
.logos__item img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .7; transition: all .3s var(--ease); }
.logos__item:hover img { filter: none; opacity: 1; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.faq details[open] { border-color: var(--accent); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); flex: 0 0 auto; }
.faq details[open] summary::after { content: '−'; }
.faq__a { padding: 0 20px 18px; color: var(--mute); font-size: 15px; }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.team__card { text-align: center; }
.team__img { aspect-ratio: 1; border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.team__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.team__card:hover .team__img img { transform: scale(1.05); }
.team__card b { display: block; font-size: 16px; }
.team__card span { font-size: 13.5px; color: var(--mute); }
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.news__card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: all .3s var(--ease); }
.news__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news__img { aspect-ratio: 16 / 10; overflow: hidden; }
.news__img img { width: 100%; height: 100%; object-fit: cover; }
.news__card time { display: block; padding: 16px 20px 0; font-size: 12.5px; color: var(--accent); letter-spacing: .06em; }
.news__card h3 { padding: 6px 20px 0; font-size: 17px; }
.news__card p { padding: 6px 20px 20px; font-size: 14px; color: var(--mute); }
.video, .map { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-2); box-shadow: var(--shadow); }
.map { aspect-ratio: 21 / 9; }
.video iframe, .map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 1020px) { .testi, .news { grid-template-columns: 1fr; } .logos { grid-template-columns: repeat(3, 1fr); } .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .logos { grid-template-columns: repeat(2, 1fr); } .map { aspect-ratio: 4 / 3; } }

/* ───────── الصفحات المخصصة (من اللوحة) ───────── */
.prose { max-width: 820px; font-size: clamp(16px, 1.45vw, 18px); line-height: 1.9; color: var(--text); }
.prose p + p, .prose ul, .prose ol { margin-top: 16px; }
.prose h3 { font-size: 22px; margin-top: 32px; margin-bottom: 8px; }
.prose ul, .prose ol { padding-inline-start: 24px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose b, .prose strong { color: var(--text); font-weight: 600; }
.prose .gold { font-weight: 600; border-bottom: 2px solid var(--gold-2); padding-bottom: 1px; }
.prose blockquote { margin: 24px 0; padding-inline-start: 20px; border-inline-start: 3px solid var(--gold); color: var(--mute); }
.pimg { margin: 0; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.pimg img { width: 100%; display: block; max-height: 640px; object-fit: cover; }
.pimg figcaption { padding: 12px 16px; font-size: 13.5px; color: var(--mute); background: var(--surface); border-top: 1px solid var(--line); }
.cols3 h3 { font-size: 19px; margin-bottom: 10px; }
.cols3 p { color: var(--mute); font-size: 15.5px; line-height: 1.8; }

/* ══════════════════════════════════════════════════════════════
   ريف فاليو أعمال — طبقة المكوّنات الخاصة بموقع خدمات الأعمال
   (فوق قاعدة الخيار B: القائمة، الترويسات، الفوتر، النماذج، الأسئلة…)
   الطابع: مكتب استشارات مؤسسي — نظام، ثقة، وضوح المسار، تحويل للاستشارة.
   ══════════════════════════════════════════════════════════════ */
:root { --cream: #F8F5EF; --green: #1F7A4D; }
.nav__logo { display: inline-flex; align-items: center; gap: 12px; }
.nav__brandtag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--on-accent); background: var(--accent); }
:root:not(.t-dark) .nav:not(.scrolled) .nav__brandtag, .nav.menu-open .nav__brandtag { background: #E6D08A; color: #1B1430; }

/* ───────── الهيرو: نص + بطاقة استشارة ───────── */
.hero-rvb { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding-top: var(--nav-h); overflow: hidden; isolation: isolate;
  --bg: #1B1430; --bg-rgb: 27, 20, 48; --surface: rgba(255,255,255,.06); --line: rgba(255,255,255,.14); --line-2: rgba(255,255,255,.24);
  --text: #F3EFF9; --mute: #C6BFD6; --dim: #8A8299; --accent: #D2B86C; --accent-2: #E6D08A; --accent-soft: rgba(210,184,108,.16); --on-accent: #1B1430;
  --gold: #D9C07A; --gold-2: #EAD596; --logo-filter: brightness(0) invert(1); color: var(--text); }
.hero-rvb__bg { position: absolute; inset: 0; z-index: -2; }
.hero-rvb__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-rvb__bg::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(100deg, rgba(27,20,48,.96) 0%, rgba(27,20,48,.86) 45%, rgba(84,0,168,.55) 100%); }
.hero-rvb__in { display: grid; grid-template-columns: 1.25fr minmax(0, 400px); gap: clamp(32px, 4vw, 64px); align-items: center; padding-block: clamp(36px, 6vh, 72px); justify-content: space-between; }
.hero-rvb__kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .16em; color: var(--gold); text-transform: uppercase; }
.hero-rvb__kicker::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.hero-rvb h1 { margin-top: 14px; font-size: clamp(30px, 3.7vw, 52px); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.hero-rvb h1 .gold { color: var(--gold); }
.hero-rvb__sub { margin-top: 16px; font-size: clamp(15px, 1.25vw, 17px); color: var(--mute); max-width: 54ch; line-height: 1.75; }
.hero-rvb__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-height: 880px) { .hero-rvb .badges { display: none; } }   /* شاشات قصيرة: الشارات تُدفع الهيرو خارج الشاشة */
.badges span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--mute); }
.badges .rf-ico { color: var(--gold); font-size: 16px; }
/* بطاقة الاستشارة */
.hcard { background: #fff; color: #221C33; border-radius: 14px; padding: clamp(18px, 1.8vw, 24px); box-shadow: 0 24px 60px rgba(0,0,0,.3);
  --text: #221C33; --mute: #5F5870; --dim: #9891A6; --surface: #fff; --line: #ECE8F2; --line-2: #D8D1E5; --accent: #5400A8; --accent-2: #43008A; --accent-soft: rgba(84,0,168,.1); --on-accent: #fff; --gold: #9C8440; --gold-2: #B89A4E; }
.hcard__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.hcard__head h2 { font-size: 17px; }
.hcard__head small { font-size: 11.5px; color: var(--green); background: rgba(31,122,77,.1); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.hcard .lf { gap: 9px; }
.hcard .lf input, .hcard .lf select { padding: 10px 13px; font-size: 14px; }
.hcard .btn { width: 100%; justify-content: center; padding: 11px 18px; font-size: 14.5px; }
.hcard__note { font-size: 12px; color: var(--mute); text-align: center; margin-top: 4px; }
.hcard__alt { display: flex; justify-content: center; gap: 16px; margin-top: 10px; font-size: 13px; }
.hcard__alt a { color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
:root.t-dark .hcard { background: #251B44; color: #F3EFF9; --text: #F3EFF9; --mute: #B3AAC6; --surface: rgba(255,255,255,.05); --line: rgba(255,255,255,.12); --line-2: rgba(255,255,255,.2); --accent: #D2B86C; --accent-2: #E6D08A; --on-accent: #1B1430; --gold: #D9C07A; }

/* ───────── شريط الأرقام ───────── */
.numbers { background: var(--surface); border-block: 1px solid var(--line); }
.numbers__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.number { padding: 28px var(--pad); border-inline-end: 1px solid var(--line); display: flex; align-items: center; gap: 16px; }
.number:last-child { border-inline-end: 0; }
.number b { font-size: clamp(28px, 3vw, 40px); font-weight: 700; line-height: 1; color: var(--accent); display: flex; align-items: baseline; gap: 2px; }
.number b .sign { font-size: .55em; color: var(--gold); }
.number span { font-size: 13.5px; color: var(--mute); line-height: 1.5; }

/* ───────── شريط المنصات الرسمية ───────── */
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 28px; }
.platforms small { width: 100%; font-size: 12.5px; letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
.platforms span { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px; color: var(--text); background: var(--surface); }

/* ───────── البرامج الثلاثة ───────── */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.program { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s; }
.program:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(64,24,120,.12); }
.program__img { aspect-ratio: 16 / 9; overflow: hidden; }
.program__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.program:hover .program__img img { transform: scale(1.05); }
.program__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.program__n { position: absolute; top: 16px; inset-inline-start: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(27,20,48,.7); color: #E6D08A; font-size: 12px; letter-spacing: .14em; backdrop-filter: blur(6px); }
.program h3 { font-size: 21px; }
.program__tag { font-size: 13.5px; color: var(--gold); margin-top: 4px; }
.program p { margin-top: 12px; font-size: 14.5px; color: var(--mute); }
.program ul { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.program li { position: relative; padding-inline-start: 22px; font-size: 14px; }
.program li::before { content: ''; position: absolute; inset-inline-start: 0; top: 9px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); }
.program .arrow-link { margin-top: auto; padding-top: 20px; }

/* ───────── دليل المسار التفاعلي ───────── */
.finder { display: grid; grid-template-columns: 360px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.finder__opts { display: grid; gap: 10px; }
.finder__opt { display: flex; align-items: center; gap: 14px; text-align: start; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font: inherit; color: var(--text); cursor: pointer; transition: all .3s var(--ease); }
.finder__opt .rf-ico { font-size: 22px; color: var(--accent); flex: 0 0 auto; }
.finder__opt b { display: block; font-size: 15.5px; }
.finder__opt small { display: block; font-size: 12.5px; color: var(--mute); margin-top: 2px; }
.finder__opt:hover { border-color: var(--accent); }
.finder__opt[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.finder__panel { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.finder__panel.on { display: block; animation: menuIn .35s var(--ease) both; }
.finder__panel h3 { font-size: 22px; }
.finder__panel > p { margin-top: 10px; color: var(--mute); font-size: 15px; }
.finder__steps { counter-reset: fs; list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.finder__steps li { counter-increment: fs; display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; }
.finder__steps li::before { content: counter(fs, decimal-leading-zero); flex: 0 0 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; }
.finder__reco { margin-top: 22px; padding: 16px 18px; border: 1px dashed var(--gold); border-radius: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.finder__reco b { color: var(--gold); font-size: 13px; letter-spacing: .08em; display: block; }
.finder__reco span { font-size: 16px; font-weight: 600; }

/* ───────── الجدول الزمني (45 يوماً) ───────── */
.tl { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; margin-top: 40px; }
.tl::before { content: ''; position: absolute; top: 14px; inset-inline: 0; height: 2px; background: linear-gradient(to left, var(--accent), var(--gold)); }
.tl__s { position: relative; padding: 44px 20px 0 0; }
.tl__s::before { content: ''; position: absolute; top: 6px; inset-inline-start: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.tl__s:last-child::before { background: var(--gold); border-color: var(--gold); }
.tl__s i { font-style: normal; font-size: 12px; letter-spacing: .14em; color: var(--accent); }
.tl__s h3 { font-size: 17px; margin-top: 8px; }
.tl__s p { font-size: 14px; color: var(--mute); margin-top: 6px; }

/* ───────── الباقات ───────── */
.pkg-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pkg-tab { padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; transition: all .3s var(--ease); }
.pkg-tab:hover { border-color: var(--accent); color: var(--accent); }
.pkg-tab[aria-selected="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.pkg-panel { display: none; }
.pkg-panel.on { display: block; animation: menuIn .35s var(--ease) both; }
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.pkg { position: relative; display: flex; flex-direction: column; padding: 28px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); transition: transform .35s var(--ease), border-color .35s; }
.pkg:hover { transform: translateY(-4px); border-color: var(--accent-soft); }
.pkg--featured { border-color: var(--gold); box-shadow: 0 24px 48px rgba(156,132,64,.14); }
.pkg__flag { position: absolute; top: -12px; inset-inline-start: 22px; padding: 4px 12px; border-radius: 999px; background: var(--gold); color: #1B1430; font-size: 12px; font-weight: 700; }
.pkg__ico { font-size: 26px; line-height: 1; }
.pkg h3 { font-size: 19px; margin-top: 12px; }
.pkg__tag { font-size: 13.5px; color: var(--gold); margin-top: 4px; }
.pkg__desc { font-size: 14px; color: var(--mute); margin-top: 10px; }
.pkg__offer { margin-top: 10px; font-size: 13px; color: var(--green); }
.pkg__price { margin-top: 12px; font-size: 22px; font-weight: 700; color: var(--accent); }
.pkg__price s { font-size: 14px; color: var(--dim); margin-inline-start: 8px; }
.pkg__price small { font-size: 12.5px; color: var(--mute); font-weight: 400; margin-inline-start: 6px; }
.pkg ul { list-style: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.pkg li { position: relative; padding-inline-start: 22px; font-size: 14px; }
.pkg li::before { content: '\2713'; position: absolute; inset-inline-start: 0; top: 0; color: var(--accent); font-weight: 700; }
.pkg .btn { margin-top: 22px; justify-content: center; }
.pkg .btn { margin-top: auto; padding-top: 13px; }
.pkg__cta { margin-top: 22px; }

/* ───────── جدول المقارنة ───────── */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.compare th { background: var(--bg-2); font-weight: 700; }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; }
.compare td .ok { color: var(--green); font-weight: 700; }
.compare td .no { color: var(--dim); }
.compare tr:last-child td { border-bottom: 0; }
.compare th.hot { color: var(--accent); }

/* ───────── لماذا نحن ───────── */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.why__item { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: all .35s var(--ease); }
.why__item:hover { border-color: var(--accent-soft); transform: translateY(-4px); box-shadow: var(--shadow); }
.why__item i { font-style: normal; font-size: 12px; letter-spacing: .16em; color: var(--gold); }
.why__item .rf-ico { display: block; font-size: 28px; color: var(--accent); margin: 14px 0 12px; }
.why__item h3 { font-size: 17.5px; }
.why__item p { font-size: 14px; color: var(--mute); margin-top: 8px; }

/* ───────── الجمهور ───────── */
.aud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.aud__item { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.aud__item .rf-ico { font-size: 24px; color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.aud__item b { display: block; font-size: 15.5px; }
.aud__item span { display: block; font-size: 13.5px; color: var(--mute); margin-top: 4px; }

/* ───────── الدليل المجاني (كتاب) ───────── */
.guide { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.book { position: relative; width: min(320px, 80%); aspect-ratio: 3 / 4; margin-inline: auto; border-radius: 6px 14px 14px 6px; background: linear-gradient(160deg, #3D1A74 0%, #5400A8 55%, #2A1A4E 100%); color: #fff; padding: 34px 28px; box-shadow: 24px 24px 60px rgba(27,20,48,.35), inset 6px 0 0 rgba(255,255,255,.08); display: flex; flex-direction: column; }
.book::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(110deg, rgba(255,255,255,.14), transparent 40%); pointer-events: none; }
.book small { font-size: 12px; letter-spacing: .16em; color: #E6D08A; }
.book b { display: block; font-size: 26px; line-height: 1.3; margin-top: 14px; }
.book span { display: block; font-size: 13.5px; color: rgba(255,255,255,.8); margin-top: 10px; }
.book__foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 12px; color: #E6D08A; }
.guide ul { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.guide li { position: relative; padding-inline-start: 26px; font-size: 15px; }
.guide li::before { content: '\2713'; position: absolute; inset-inline-start: 0; color: var(--gold); font-weight: 700; }
.guide__stats { display: flex; gap: 24px; margin-top: 22px; }
.guide__stats div b { display: block; font-size: 24px; color: var(--accent); line-height: 1; }
.guide__stats div span { font-size: 12.5px; color: var(--mute); }

/* ───────── صفحة الخدمات: برنامج تفصيلي ───────── */
.prog { padding-block: clamp(56px, 7vw, 96px); }
.prog__head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(28px, 4vw, 48px); }
.prog__head img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; }
.prog__n { font-size: 12.5px; letter-spacing: .18em; color: var(--gold); }
.prog__head h2 { font-size: clamp(26px, 3vw, 38px); margin-top: 10px; }
.prog__tag { font-size: 16px; color: var(--accent); margin-top: 8px; }
.prog__head p.lede { margin-top: 14px; }

/* ───────── الحجز ───────── */
.bk { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.bk__list { list-style: none; display: grid; gap: 14px; margin-top: 22px; }
.bk__list li { display: flex; gap: 14px; }
.bk__list .rf-ico { color: var(--gold); font-size: 22px; flex: 0 0 auto; margin-top: 2px; }
.bk__list b { display: block; font-size: 15.5px; }
.bk__list span { font-size: 13.5px; color: var(--mute); }
.bk__times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.bk__times div { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 13.5px; }
.bk__times b { display: block; font-size: 14px; }

/* ───────── برنامج الشركاء ───────── */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tier { padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); position: relative; }
.tier i { font-style: normal; font-size: 12px; letter-spacing: .16em; color: var(--gold); }
.tier h3 { font-size: 18px; margin-top: 10px; }
.tier p { font-size: 14px; color: var(--mute); margin-top: 8px; }
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s4; }
.steps4 > div { counter-increment: s4; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.steps4 > div::before { content: counter(s4, decimal-leading-zero); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; }
.steps4 h3 { font-size: 16.5px; margin-top: 14px; }
.steps4 p { font-size: 14px; color: var(--mute); margin-top: 6px; }

/* ───────── الموارد والمدوّنة ───────── */
.res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.res__card { display: block; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: all .35s var(--ease); position: relative; }
.res__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
.res__card .rf-ico { font-size: 28px; color: var(--accent); }
.res__card h3 { font-size: 17.5px; margin-top: 14px; }
.res__card p { font-size: 14px; color: var(--mute); margin-top: 8px; }
.res__card .arrow-link { margin-top: 14px; display: inline-flex; }
.res__flag { position: absolute; top: 16px; inset-inline-end: 16px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; }
.post { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.post__meta { position: sticky; top: calc(var(--nav-h) + 24px); padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 14px; }
.post__meta dt { color: var(--dim); font-size: 12px; letter-spacing: .1em; margin-top: 12px; }
.post__meta dd { margin-top: 4px; }
.post__meta dt:first-child { margin-top: 0; }
.toc { list-style: none; margin-top: 8px; display: grid; gap: 6px; }
.toc a { color: var(--text); font-size: 13.5px; }
.toc a:hover { color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14.5px; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: start; }
.prose th { background: var(--bg-2); }
.callout { margin-top: 20px; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--gold); background: rgba(156,132,64,.06); font-size: 15px; }
.callout b { color: var(--gold); }
.legal h2 { font-size: 20px; margin-top: 36px; }
.legal ol, .legal ul { padding-inline-start: 22px; margin-top: 10px; }
.legal li + li { margin-top: 6px; }

/* ───────── الاستجابة للمكوّنات الجديدة ───────── */
@media (max-width: 1100px) {
  .hero-rvb__in { grid-template-columns: 1fr; }
  .hcard { max-width: 560px; }
  .programs, .why, .aud, .tiers, .res { grid-template-columns: repeat(2, 1fr); }
  .numbers__in { grid-template-columns: repeat(2, 1fr); }
  .number:nth-child(2) { border-inline-end: 0; }
  .number { border-bottom: 1px solid var(--line); }
  .steps4 { grid-template-columns: repeat(2, 1fr); }
  .finder { grid-template-columns: 1fr; }
  .finder__opts { grid-template-columns: repeat(3, 1fr); }
  .pkg-grid { grid-template-columns: repeat(2, 1fr); }
  .post { grid-template-columns: 1fr; }
  .post__meta { position: static; }
}
@media (max-width: 760px) {
  .hero-rvb { min-height: 0; }
  .hero-rvb__in { padding-block: 40px 48px; gap: 28px; }
  .programs, .why, .aud, .tiers, .res, .pkg-grid, .steps4, .finder__opts, .guide, .prog__head, .bk, .tl { grid-template-columns: 1fr; }
  .numbers__in { grid-template-columns: 1fr 1fr; }
  .tl::before { inset-inline-start: 8px; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(to bottom, var(--accent), var(--gold)); }
  .tl__s { padding: 0 0 28px 0; padding-inline-start: 36px; }
  .tl__s::before { top: 0; }
  .book { width: min(260px, 90%); }
  .bk__times { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .numbers__in { grid-template-columns: 1fr; } .number { border-inline-end: 0; } }

/* قسم داكن عام (للمستثمرين/الوعد) — نفس رموز الترويسات الداكنة */
.sec--dark { background: #1B1430; --bg: #1B1430; --bg-rgb: 27, 20, 48; --bg-2: #231A40; --surface: rgba(255,255,255,.05); --line: rgba(255,255,255,.12); --line-2: rgba(255,255,255,.22); --text: #F3EFF9; --mute: #C6BFD6; --dim: #8A8299; --accent: #D2B86C; --accent-2: #E6D08A; --accent-soft: rgba(210,184,108,.16); --on-accent: #1B1430; --gold: #D9C07A; --gold-2: #EAD596; --stroke: rgba(255,255,255,.14); --shadow: none; color: var(--text); position: relative; overflow: hidden; }
.sec--dark .sec__bg { position: absolute; inset: 0; z-index: 0; opacity: .18; }
.sec--dark .sec__bg img { width: 100%; height: 100%; object-fit: cover; }
.sec--dark .wrap { position: relative; z-index: 1; }
.sec--dark .btn--gold { background: var(--gold); color: #1B1430; border-color: var(--gold); }
.checks { list-style: none; display: grid; gap: 10px; margin-top: 22px; }
.checks li { position: relative; padding-inline-start: 28px; font-size: 15.5px; }
.checks li::before { content: '\2713'; position: absolute; inset-inline-start: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--accent-soft); color: var(--gold); font-weight: 700; }
.badges i { font-style: normal; }

/* ───────── سلايد شو الهيرو: مسح قطري + كلمات متدرّجة + مصغّرات بتقدّم ─────────
   مختلف عمداً عن سلايدر الموقع الأم (تلاشٍ + أسطر): هنا الصورة تدخل بمسح clip-path مائل
   مع تقريب بطيء، والنص ينكشف كلمةً كلمة، وشريط مصغّرات يظهر التالي مع مؤشر تقدّم زمني. */
.hero-rvb__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: 0; }
.hero-rvb__bg img.on { opacity: 1; }
.hero-rvb__bg img.in { opacity: 1; z-index: 1; animation: hwipe 1.3s var(--ease) both, hzoom 9.5s linear both; }
@keyframes hwipe { from { clip-path: polygon(0 0, 12% 0, -12% 100%, 0 100%); } to { clip-path: polygon(0 0, 124% 0, 100% 100%, 0 100%); } }
@keyframes hzoom { from { transform: scale(1.07); } to { transform: scale(1); } }

.hslides { display: grid; }
.hslide { grid-area: 1 / 1; visibility: hidden; pointer-events: none; }
.hslide.on { visibility: visible; pointer-events: auto; }
/* الكلمات: rvb-ui.js يلفّ كل كلمة في العنوان بـ <span class="w"><i>…</i></span> */
.hslide h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hslide h1 .w > i { display: inline-block; font-style: normal; transform: translateY(112%); }
.hslide.on h1 .w > i { transform: none; transition: transform .75s var(--ease); transition-delay: var(--d, 0s); }
.hslide .hero-rvb__kicker, .hslide .hero-rvb__sub, .hslide .hero-rvb__cta { opacity: 0; transform: translateY(14px); }
.hslide.on .hero-rvb__kicker { opacity: 1; transform: none; transition: all .6s var(--ease) .05s; }
.hslide.on .hero-rvb__sub { opacity: 1; transform: none; transition: all .7s var(--ease) .55s; }
.hslide.on .hero-rvb__cta { opacity: 1; transform: none; transition: all .7s var(--ease) .7s; }

/* المصغّرات */
.hthumbs { display: flex; gap: 10px; margin-top: 26px; }
.hthumb { display: flex; align-items: center; gap: 10px; flex: 1 1 0; min-width: 0; max-width: 220px; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.05); color: var(--text); font: inherit; text-align: start; cursor: pointer; transition: border-color .3s, background .3s; }
.hthumb img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; opacity: .85; }
.hthumb > span { min-width: 0; flex: 1; }
.hthumb .num { display: block; font-size: 10.5px; letter-spacing: .14em; color: var(--dim); }
.hthumb b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--mute); margin-top: 2px; }
.hthumb__bar { display: block; height: 2px; margin-top: 7px; background: rgba(255,255,255,.14); border-radius: 2px; overflow: hidden; position: relative; }
.hthumb__bar::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: 100% 50%; }
.hthumb:hover { border-color: var(--line-2); background: rgba(255,255,255,.09); }
.hthumb.on { border-color: var(--gold); background: rgba(210,184,108,.1); }
.hthumb.on b { color: var(--text); }
.hthumb.on .num { color: var(--gold); }
.hthumb.on .hthumb__bar::after { animation: hbar var(--hsec, 8s) linear forwards; }
[data-hero].paused .hthumb.on .hthumb__bar::after { animation-play-state: paused; }
@keyframes hbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 1100px) { .hthumbs { max-width: 560px; } }
@media (max-width: 600px) {
  .hthumb { padding: 6px 8px; gap: 8px; }
  .hthumb img { width: 34px; height: 34px; }
  .hthumb .num { display: none; }
  .hthumb b { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-rvb__bg img.in { animation: none; }
  .hslide h1 .w > i, .hslide .hero-rvb__kicker, .hslide .hero-rvb__sub, .hslide .hero-rvb__cta { transform: none; opacity: 1; transition: none; }
}

/* ───────── خيارات طبقة اللون لكل شريحة (تُضبط من اللوحة) ─────────
   full: التدرج البنفسجي الكامل (الافتراضي) · light: أخف بوضوح أكبر للصورة ·
   side: تعتيم خلف النص فقط والصورة مكشوفة · dark: تعتيم متعادل بلا بنفسجي · none: بلا طبقة */
.hero-rvb__bg::after { transition: background .9s var(--ease), opacity .9s var(--ease); }
.hero-rvb__bg.ov-light::after { background: linear-gradient(100deg, rgba(27,20,48,.72) 0%, rgba(27,20,48,.45) 45%, rgba(84,0,168,.25) 100%); }
.hero-rvb__bg.ov-side::after { background: linear-gradient(270deg, rgba(27,20,48,.92) 0%, rgba(27,20,48,.72) 38%, rgba(27,20,48,.15) 68%, rgba(27,20,48,0) 100%); }
.hero-rvb__bg.ov-dark::after { background: rgba(12,9,22,.6); }
.hero-rvb__bg.ov-none::after { background: none; opacity: 0; }

/* ───────── مبدّل اللغة ───────── */
.lang-sw { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .08em; color: var(--text); transition: all .25s var(--ease); }
.lang-sw:hover { color: var(--gold); border-color: var(--gold); }
[dir="ltr"] .lang-sw { letter-spacing: 0; }
@media (max-width: 600px) { .lang-sw { min-width: 36px; height: 36px; padding: 0 9px; } }

/* nav-nowrap: العناوين الإنجليزية أطول فلا تلتف */
.nav__links a { white-space: nowrap; }
[dir="ltr"] .nav__links { gap: 2px; }
[dir="ltr"] .nav__cta { white-space: nowrap; }

/* ltr-nav-fit: تباعد القائمة الإنجليزية */
[dir="ltr"] .nav__brand { margin-inline-end: 20px; }
[dir="ltr"] .nav__cta { padding: 11px 16px; font-size: 13.5px; }
[dir="ltr"] .nav__links a { padding-inline: 10px; }

/* ltr-hero-scale: هيرو إنجليزي أصغر */
[dir="ltr"] .hero-rvb h1 { font-size: clamp(26px, 3.1vw, 44px); line-height: 1.16; }
[dir="ltr"] .hero-rvb__sub { font-size: clamp(15px, 1.25vw, 17px); }
[dir="ltr"] .phead h1 { font-size: clamp(30px, 4.6vw, 58px); }
