@charset "UTF-8";
/* ═══════════════════════════════════════════════════════════════
   BACA — نظام التصميم
   شركة بسام عبدالله العنزي · محاسبون ومراجعون قانونيون
   الأساس: أبيض كريمي فاتح · مطعّم بالكحلي والذهبي من الهوية
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────── ١. الرموز ─────────────────────────── */
:root {
  /* ألوان الهوية */
  --navy:        #071228;
  --navy-800:    #0d1e3d;
  --navy-700:    #16294d;
  --navy-600:    #23385f;
  --gold:        #c9a24a;
  --gold-light:  #e4c67e;
  --gold-dark:   #a8812f;
  --gold-soft:   #f0e3c6;

  /* الأساس الكريمي */
  --cream:       #fbf8f3;
  --cream-50:    #fefdfb;
  --cream-100:   #f7f2e9;
  --cream-200:   #efe7d8;
  --cream-300:   #e3d7c3;

  /* دلالية */
  --bg:          var(--cream);
  --bg-alt:      var(--cream-50);
  --bg-tint:     var(--cream-100);
  --surface:     #ffffff;
  --ink:         var(--navy);
  --ink-soft:    #46536b;
  --ink-mute:    #6d7789;
  --line:        rgba(7, 18, 40, .09);
  --line-strong: rgba(7, 18, 40, .16);

  --ok:          #1c7a54;
  --ok-bg:       #e8f5ef;
  --err:         #b3261e;
  --err-bg:      #fdecea;

  /* الخط */
  --font: "Cairo", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;

  /* المقياس النمطي — تباين حاد بين نص المتن والعناوين العرضية */
  --t-xs:   .8125rem;
  --t-sm:   .9063rem;
  --t-base: 1.0313rem;
  --t-md:   1.1875rem;
  --t-lg:   1.4375rem;
  --t-xl:   1.875rem;
  --t-2xl:  2.375rem;
  --t-3xl:  3.125rem;
  --t-4xl:  4.25rem;
  --t-5xl:  5.75rem;

  /* المسافات */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 2.75rem; --sp-8: 3.5rem;
  --sp-9: 5rem;    --sp-10: 7rem;

  /* الشكل */
  --r-sm: 8px;  --r: 14px;  --r-lg: 22px;  --r-xl: 32px;  --r-full: 999px;

  --shadow-xs: 0 1px 2px rgba(7,18,40,.05);
  --shadow-sm: 0 2px 8px rgba(7,18,40,.06);
  --shadow:    0 8px 28px -8px rgba(7,18,40,.13), 0 2px 8px rgba(7,18,40,.05);
  --shadow-lg: 0 24px 60px -18px rgba(7,18,40,.22), 0 6px 18px rgba(7,18,40,.07);
  --shadow-gold: 0 14px 40px -14px rgba(201,162,74,.55);

  --container: 1200px;
  --header-h:  84px;

  /* الحركة */
  --ease:      cubic-bezier(.22, .61, .36, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --dur:       .45s;
}

/* ─────────────────────────── ٢. الأساس ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

html { overflow-x: clip; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5 {
  margin: 0 0 var(--sp-4);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -.022em;
  color: var(--navy);
  text-wrap: balance;
}
/* ملاحظة: الخط العربي يحتاج تباعد أسطر أوسع من اللاتيني — الشدّة والهمزة
   والمدّات تعلو فوق سطر الحروف، فأي تضييق يجعل الأسطر تتلامس. */
h1 { font-size: clamp(2.35rem, 1.3rem + 4.2vw, var(--t-4xl)); line-height: 1.32; letter-spacing: -.02em; }
h2 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, var(--t-3xl)); line-height: 1.34; letter-spacing: -.018em; }
h3 { font-size: clamp(1.3rem, 1.1rem + .85vw, var(--t-xl)); line-height: 1.45; letter-spacing: -.012em; }
h4 { font-size: var(--t-lg); }

/* عنوان عرضي ضخم للأقسام المميّزة */
.display {
  font-size: clamp(2.7rem, 1.2rem + 5.8vw, 5rem);
  line-height: 1.3; letter-spacing: -.025em; font-weight: 900;
}

p { margin: 0 0 var(--sp-4); color: var(--ink-soft); text-wrap: pretty; }
a { color: var(--navy); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--gold-dark); }
img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 var(--sp-4); padding-inline-start: 1.4em; }
li { margin-bottom: .35em; color: var(--ink-soft); }
strong, b { font-weight: 700; color: var(--navy); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }
::selection { background: var(--gold); color: #fff; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* التخطيط */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }
.container--narrow { max-width: 820px; }
.section { padding-block: clamp(var(--sp-8), 7vw, var(--sp-10)); position: relative; }
.section--tint { background: var(--bg-tint); }
.section--alt  { background: var(--bg-alt); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p  { color: rgba(255,255,255,.76); }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
/* خمسة عناصر في صف واحد على الشاشات العريضة (المبادئ) */
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
@media (min-width: 1100px) { .grid-5 { grid-template-columns: repeat(5, 1fr); } }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* مصيدة الروبوتات: مخفية بصرياً دون إخراجها من الصفحة بإزاحة ضخمة
   (الإزاحة بـ left:-9999px تضخّم عرض التمرير في الصفحات RTL). */
.hp-field {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ─────────────────────── ٣. رأس الأقسام ─────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--t-sm); font-weight: 700; letter-spacing: .08em;
  color: var(--gold-dark); margin-bottom: var(--sp-3);
  text-transform: none;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.section--navy .eyebrow { color: var(--gold-light); }

.section-head { max-width: 700px; margin-bottom: var(--sp-7); }
.section-head.text-center { margin-inline: auto; }
.section-head p { font-size: var(--t-md); }

/* خط ذهبي زخرفي تحت العناوين */
.rule-gold {
  width: 68px; height: 3px; border-radius: 3px; border: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 0 0 var(--sp-5);
}
.text-center .rule-gold { margin-inline: auto; }

/* ─────────────────────────── ٤. الأزرار ─────────────────────────── */
.btn {
  --btn-bg: var(--navy); --btn-fg: #fff; --btn-bd: var(--navy);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2); padding: .85em 1.7em; border-radius: var(--r-full);
  font-family: inherit; font-size: var(--t-sm); font-weight: 700; line-height: 1;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd); cursor: pointer; overflow: hidden;
  transition: transform .32s var(--ease-out), box-shadow .32s var(--ease-out),
              background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  isolation: isolate;
}
.btn svg { flex: none; transition: transform .35s var(--ease-back); }
/* توهّج ينزلق عند التحويم */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, var(--gold-dark), var(--gold), var(--gold-light));
  transform: translateX(101%); transition: transform .5s var(--ease-out);
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-gold); color: #fff; border-color: transparent; }
.btn:hover::before { transform: translateX(0); }
.btn:hover svg { transform: translateX(-4px); }
.btn:active { transform: translateY(-1px); }

.btn--gold { --btn-bg: var(--gold); --btn-bd: var(--gold); color: var(--navy); }
.btn--gold::before { background: linear-gradient(120deg, var(--navy), var(--navy-700)); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--line-strong); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy); --btn-bd: #fff; }
/* على أي خلفية داكنة: البطل، الأقسام الكحلية، وبطاقة النداء */
.section--navy .btn--ghost,
.hero .btn--ghost,
.page-hero .btn--ghost,
.cta .btn--ghost { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.38); }
.section--navy .btn--ghost:hover,
.hero .btn--ghost:hover,
.page-hero .btn--ghost:hover,
.cta .btn--ghost:hover { --btn-fg: var(--navy); }
.hero .btn--ghost::before,
.page-hero .btn--ghost::before,
.cta .btn--ghost::before { background: linear-gradient(120deg, var(--gold-light), var(--gold)); }
.btn--lg { padding: 1.05em 2.2em; font-size: var(--t-base); }
.btn--block { width: 100%; }

/* ─────────────────────────── ٥. الشعار ─────────────────────────── */
.baca-logo { display: block; height: auto; }
.baca-logo .lm-outer { fill: var(--gold); }
.baca-logo .lm-inner { fill: var(--navy); }
.baca-logo .bl-stroke { stroke: var(--navy); fill: none; }
.baca-logo .bl-a1 { fill: var(--gold); }
.baca-logo .bl-a2 { fill: var(--navy); }
.baca-logo--mark .lm-outer { fill: var(--gold); }
.baca-logo--mark .lm-inner { fill: var(--navy); }
/* نسخة الخلفيات الداكنة */
.on-dark .baca-logo .lm-inner,
.on-dark .baca-logo .bl-a2 { fill: #fff; }
.on-dark .baca-logo .bl-stroke { stroke: #fff; }

/* ─────────────────────────── ٦. الترويسة ─────────────────────────── */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(251, 248, 243, .72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: height .35s var(--ease), background-color .35s var(--ease),
              border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-stuck {
  height: 68px;
  background: rgba(251, 248, 243, .93);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px -12px rgba(7,18,40,.22);
}
.site-header .container {
  height: 100%; display: flex; align-items: center; gap: var(--sp-5);
}
.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand .baca-logo { width: 104px; transition: width .35s var(--ease); }
.site-header.is-stuck .brand .baca-logo { width: 88px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-size: var(--t-sm); font-weight: 800; color: var(--navy); }
.brand-text span { font-size: .72rem; color: var(--ink-mute); letter-spacing: .02em; }

.nav { margin-inline-start: auto; }
.nav ul { display: flex; align-items: center; gap: var(--sp-1); list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative; display: block; padding: .55rem .95rem; border-radius: var(--r-full);
  font-size: var(--t-sm); font-weight: 600; color: var(--ink-soft);
  transition: color .28s var(--ease), background-color .28s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; inset-block-end: .3rem; inset-inline-start: 50%;
  width: 0; height: 2px; border-radius: 2px; background: var(--gold);
  transform: translateX(50%); transition: width .32s var(--ease-out);
}
.nav a:hover { color: var(--navy); background: rgba(201,162,74,.09); }
.nav a:hover::after, .nav a.is-active::after { width: 20px; }
.nav a.is-active { color: var(--navy); font-weight: 700; }
/* زر عرض السعر داخل القائمة مخصّص للجوال فقط */
.nav .nav-cta { display: none; }

.header-cta { display: flex; align-items: center; gap: var(--sp-2); flex: none; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); background: transparent; color: var(--navy); cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.nav-toggle:hover { background: rgba(201,162,74,.1); border-color: var(--gold); }

/* شريط تقدّم القراءة */
.read-progress {
  position: fixed; inset-block-start: 0; inset-inline-start: 0; z-index: 101;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  transition: width .12s linear;
}

/* ═══════════════════ ٧. البطل — «القمّة» ═══════════════════ */
.hero {
  position: relative; padding-block: calc(var(--header-h) + var(--sp-9)) calc(var(--sp-10) + 90px);
  min-height: min(100vh, 940px); display: flex; align-items: center;
  overflow: hidden; background: #050d1e; color: #fff; isolation: isolate;
}
.hero > .container { width: 100%; position: relative; z-index: 4; }

/* الطبقة ١: تدرّج شبكي حي */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 720px at 76% -12%, rgba(201,162,74,.30), transparent 60%),
    radial-gradient(820px 560px at 4% 62%,  rgba(46,86,160,.30), transparent 60%),
    radial-gradient(700px 700px at 92% 92%, rgba(201,162,74,.13), transparent 62%),
    linear-gradient(168deg, #050d1e 0%, #0a1830 44%, #050d1e 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: -25%; opacity: .55;
  background-image:
    linear-gradient(135deg, rgba(201,162,74,.028) 25%, transparent 25%),
    linear-gradient(225deg, rgba(201,162,74,.028) 25%, transparent 25%);
  background-size: 54px 54px;
  animation: heroDrift 38s linear infinite;
}
@keyframes heroDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-54px, 54px, 0); }
}

/* الطبقة ٢: حبيبات فيلمية خفيفة جداً */
.hero-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .085;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}


/* الطبقة ٤: سلاسل القمم في الأسفل — تُوحي بالصعود وبمنحنى النمو */
.hero-ranges {
  position: absolute; inset-inline: 0; inset-block-end: -1px; z-index: 3;
  line-height: 0; pointer-events: none;
}
.hero-ranges svg { display: block; width: 100%; height: clamp(110px, 15vw, 200px); }
.hero-ranges .r1 { fill: rgba(201,162,74,.13); }
.hero-ranges .r2 { fill: rgba(201,162,74,.20); }
.hero-ranges .r3 { fill: var(--cream); }

/* شعاع ذهبي يمسح الشاشة برفق */
.hero-sweep {
  position: absolute; inset-block: -30%; inset-inline-start: -30%; width: 34%;
  z-index: 2; pointer-events: none; transform: rotate(16deg);
  background: linear-gradient(90deg, transparent, rgba(201,162,74,.055), transparent);
  animation: sweep 12s var(--ease-out) infinite;
}
@keyframes sweep {
  0%   { transform: translateX(-40%) rotate(16deg); opacity: 0; }
  20%  { opacity: 1; }
  60%  { opacity: 0; }
  100% { transform: translateX(400%) rotate(16deg); opacity: 0; }
}

/* عمودان: النص على اليمين (بداية القراءة) والشعار المتحرك على اليسار */
.hero-grid {
  display: grid; gap: var(--sp-5); align-items: center;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .74fr);
}
.hero-inner { text-align: start; }
/* العنوان في سطر واحد على الشاشات الواسعة */
.hero h1.display {
  font-size: clamp(1.9rem, .55rem + 3.05vw, 3.55rem);
  line-height: 1.35; white-space: nowrap;
}
@media (max-width: 900px) {
  .hero h1.display { white-space: normal; line-height: 1.3; }
}

/* الشعار المتحرك */
.hero-emblem {
  position: relative; display: grid; place-items: center;
  width: 100%; justify-self: stretch;   /* يمنع الانكماش والانزياح لليمين */
}
.hero-emblem .baca-logo { width: min(100%, 400px); }
.hero-emblem .baca-logo .lm-inner,
.hero-emblem .baca-logo .bl-a2 { fill: #fff; }
.hero-emblem .baca-logo .bl-stroke { stroke: #fff; }
/* حلقات تنبض خلفه */
.hero-rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.hero-rings i {
  /* نسبي لا ثابت — حتى لا يتجاوز أبداً مهما ضاقت الشاشة */
  position: absolute; width: min(330px, 78vw); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(201,162,74,.25);
  animation: ringPulse 5.4s var(--ease-out) infinite;
}
.hero-rings i:nth-child(2) { animation-delay: 1.8s; }
.hero-rings i:nth-child(3) { animation-delay: 3.6s; }
@keyframes ringPulse {
  0%   { transform: scale(.5);  opacity: 0; }
  22%  { opacity: .8; }
  100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-emblem { order: -1; margin-bottom: var(--sp-4); }
  .hero-emblem .baca-logo { width: min(72%, 300px); }
  .hero-rings i { width: min(260px, 64vw); }
}


.hero h1 { color: #fff; margin-bottom: var(--sp-5); }
/* سطر ذهبي بلمعان يمرّ عليه */
.hero h1 .accent {
  position: relative; display: inline-block;
  background: linear-gradient(100deg, var(--gold-dark) 0%, var(--gold) 22%,
              #fdf3d9 42%, var(--gold) 62%, var(--gold-dark) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s var(--ease) infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 130% 0; }
  50%      { background-position: -30% 0; }
}
/* خط تحت الكلمة المميّزة */
.hero h1 .accent::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: -.14em; height: 4px;
  border-radius: 4px; background: linear-gradient(90deg, transparent, var(--gold) 22%, var(--gold) 78%, transparent);
  transform: scaleX(0); transform-origin: inline-end;
  animation: underGrow 1.1s var(--ease-out) .9s forwards;
}
@keyframes underGrow { to { transform: scaleX(1); } }

.hero-lead {
  font-size: clamp(1.05rem, .95rem + .55vw, 1.3rem);
  line-height: 1.95; color: rgba(255,255,255,.74); max-width: 60ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-7); }

/* رقائق الثقة — صف واحد على الشاشات المتوسطة فما فوق */
.hero-badges {
  display: flex; flex-wrap: nowrap; gap: .45rem;
  margin-top: var(--sp-7);
}
.hero-badges span {
  display: inline-flex; align-items: center; gap: .38rem; flex: 0 0 auto;
  padding: .48rem .8rem; border-radius: var(--r-full); white-space: nowrap;
  font-size: .74rem; font-weight: 600; color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.11);
  backdrop-filter: blur(8px);
  transition: transform .35s var(--ease-out), background-color .3s var(--ease), border-color .3s var(--ease);
}
.hero-badges svg { flex: none; }
/* على الجوال تلتف في سطرين بدل الضغط */
@media (max-width: 900px) { .hero-badges { flex-wrap: wrap; gap: .4rem; } }
.hero-badges span:hover {
  transform: translateY(-3px); background: rgba(201,162,74,.12); border-color: rgba(201,162,74,.35);
}
.hero-badges svg { color: var(--gold); }

/* لا شعار طائر — شعار الترويسة يكفي، والقمّة الشبحية تحمل الهوية بصرياً */

/* مؤشر التمرير */
.scroll-hint {
  position: absolute; inset-block-end: calc(clamp(110px, 15vw, 200px) + 14px);
  inset-inline-start: 50%; transform: translateX(50%);
  display: grid; place-items: center; gap: .45rem; z-index: 5;
  font-size: .68rem; letter-spacing: .18em; color: rgba(255,255,255,.42);
}
.scroll-hint span {
  width: 1px; height: 40px;
  background: linear-gradient(var(--gold), transparent);
  animation: hintDrop 2.1s var(--ease) infinite;
}
@keyframes hintDrop {
  0%, 100% { transform: scaleY(.3); transform-origin: top; opacity: .35; }
  50%      { transform: scaleY(1); opacity: 1; }
}

/* ═══════════ ٧ب. عناصر لغة التصميم المميّزة ═══════════ */

/* فاصل القمم بين الأقسام */
.chevron-divider { line-height: 0; position: relative; z-index: 2; }
.chevron-divider svg { display: block; width: 100%; height: clamp(52px, 6vw, 92px); }
.chevron-divider--up   svg { transform: rotate(180deg); }

/* شريط متحرك لا نهائي */
.marquee {
  position: relative; overflow: hidden; padding-block: var(--sp-5);
  background: var(--navy); border-block: 1px solid rgba(255,255,255,.07);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: var(--sp-6); padding-inline-end: var(--sp-6); }
.marquee-group span {
  display: inline-flex; align-items: center; gap: var(--sp-4);
  font-size: clamp(1rem, .9rem + .6vw, 1.4rem); font-weight: 700;
  letter-spacing: -.01em; white-space: nowrap;
  color: rgba(255,255,255,.82);
  transition: color .4s var(--ease);
}
/* كل كلمة ثانية بلون ذهبي — إيقاع بصري بلا تفريغ */
.marquee-group span:nth-child(even) { color: var(--gold); }
.marquee-group span:hover { color: #fff; }
.marquee-group b { color: rgba(201,162,74,.55); font-size: .8rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* عنوان قسم بأسلوب تحريري */
.head-xl { max-width: 900px; margin-bottom: var(--sp-8); }
.head-xl .eyebrow { margin-bottom: var(--sp-4); }
.head-xl p { font-size: var(--t-md); max-width: 62ch; }
.head-split {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-6); flex-wrap: wrap; margin-bottom: var(--sp-8);
}
.head-split > div:first-child { max-width: 760px; }

/* ═══════════ صفوف الخدمات التحريرية ═══════════ */
.svc-list { border-block-start: 1px solid var(--line); }
.svc-row {
  position: relative; display: grid; align-items: center;
  grid-template-columns: 76px minmax(0, auto) minmax(0, 1fr) 52px;
  gap: var(--sp-5); padding-block: var(--sp-6);
  border-block-end: 1px solid var(--line); isolation: isolate;
  transition: color .4s var(--ease), padding .45s var(--ease-out);
}
/* تعبئة كحلية تنزلق من اليمين */
.svc-row::before {
  content: ""; position: absolute; z-index: -1;
  inset-block: 0; inset-inline: calc(var(--sp-5) * -1);
  border-radius: var(--r-lg);
  background: linear-gradient(105deg, var(--navy), var(--navy-700));
  transform: scaleX(0); transform-origin: inline-end;
  transition: transform .55s var(--ease-out);
}
.svc-row:hover { padding-inline: var(--sp-5); }
.svc-row:hover::before { transform: scaleX(1); }

.svc-num {
  font-size: var(--t-2xl); font-weight: 900; line-height: 1;
  color: var(--cream-300); letter-spacing: -.04em;
  font-variant-numeric: tabular-nums; transition: color .4s var(--ease);
}
.svc-row:hover .svc-num { color: var(--gold); }

.svc-name { display: flex; align-items: center; gap: var(--sp-4); }
.svc-ic {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none;
  border-radius: var(--r); color: var(--gold-dark);
  background: linear-gradient(150deg, var(--gold-soft), #fff);
  border: 1px solid rgba(201,162,74,.24);
  transition: transform .5s var(--ease-back), background .4s var(--ease),
              color .4s var(--ease), border-color .4s var(--ease);
}
.svc-row:hover .svc-ic {
  transform: rotate(-9deg) scale(1.1); color: var(--navy);
  background: var(--gold); border-color: var(--gold);
}
.svc-name h2, .svc-name h3 {
  margin: 0; font-size: clamp(1.15rem, 1rem + .55vw, 1.55rem);
  transition: color .4s var(--ease);
}
.svc-row:hover .svc-name h2, .svc-row:hover .svc-name h3 { color: #fff; }

.svc-desc {
  font-size: var(--t-sm); line-height: 1.85; color: var(--ink-mute);
  margin: 0; max-width: 56ch; transition: color .4s var(--ease);
}
.svc-row:hover .svc-desc { color: rgba(255,255,255,.72); }
.svc-name h2, .svc-name h3 { white-space: nowrap; }
@media (max-width: 1200px) { .svc-name h2, .svc-name h3 { white-space: normal; } }

.svc-go {
  display: grid; place-items: center; width: 48px; height: 48px; justify-self: end;
  border-radius: 50%; color: var(--ink-mute);
  border: 1px solid var(--line-strong);
  transition: all .45s var(--ease-out);
}
.svc-row:hover .svc-go {
  color: var(--navy); background: var(--gold); border-color: var(--gold);
  transform: translateX(-6px) rotate(-45deg);
}
.svc-cover { position: absolute; inset: 0; z-index: 1; }

@media (max-width: 900px) {
  /* مناطق صريحة: صفّان فقط — (رقم | اسم | سهم) ثم الوصف بعرض كامل */
  .svc-row {
    grid-template-columns: 46px minmax(0, 1fr) 40px;
    grid-template-areas: "num name go" "desc desc desc";
    gap: var(--sp-2) var(--sp-3); padding-block: var(--sp-5);
    align-items: center;
  }
  .svc-num  { grid-area: num;  font-size: var(--t-md); }
  .svc-name { grid-area: name; gap: var(--sp-3); }
  .svc-go   { grid-area: go;   width: 40px; height: 40px; }
  .svc-desc { grid-area: desc; margin-top: .1rem; max-width: none; }
  .svc-ic   { width: 38px; height: 38px; }
  .svc-name h2, .svc-name h3 { font-size: 1.05rem; line-height: 1.5; }
  .svc-row:hover { padding-inline: var(--sp-3); }
}

/* ═══════════ لوح المبادئ ═══════════ */
.principle {
  position: relative; padding: var(--sp-6) var(--sp-5); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .35s var(--ease);
}
.principle::after {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transform: scaleX(0); transform-origin: inline-end; transition: transform .45s var(--ease-out);
}
.principle:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: rgba(201,162,74,.3); }
.principle:hover::after { transform: scaleX(1); transform-origin: inline-start; }
.principle .idx {
  position: absolute; inset-block-start: var(--sp-4); inset-inline-end: var(--sp-4);
  font-size: var(--t-sm); font-weight: 800; color: var(--cream-300);
  transition: color .4s var(--ease);
}
.principle:hover .idx { color: var(--gold); }
.principle .card-icon { margin-bottom: var(--sp-4); }
.principle h3 { font-size: var(--t-md); margin-bottom: var(--sp-2); }
.principle p { font-size: var(--t-sm); margin: 0; }

/* ─────────────────────── ٨. شريط الإحصاءات ─────────────────────── */
.stats {
  position: relative; z-index: 5; overflow: hidden;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px; border-radius: var(--r-xl);
  background: rgba(255,255,255,.08);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.stats::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 280px at 78% -30%, rgba(201,162,74,.28), transparent 62%),
    linear-gradient(120deg, var(--navy), var(--navy-700) 60%, var(--navy));
}
.stat {
  position: relative; padding: var(--sp-7) var(--sp-4); text-align: center;
  transition: background-color .35s var(--ease);
}
.stat:hover { background: rgba(201,162,74,.08); }
.stat b {
  display: block; font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.5rem); font-weight: 900;
  line-height: 1; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums;
}
.stat b .suffix { color: var(--gold); }
/* التسمية فقط — أبناء مباشرون؛ أرقام العدّاد داخل <b> لا تتأثر */
.stat > span {
  display: block; margin-top: var(--sp-3); font-size: var(--t-sm);
  color: rgba(255,255,255,.62); font-weight: 600;
}
.stat::before {
  content: ""; position: absolute; inset-block-end: 0; inset-inline: 30%; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .45s var(--ease-out);
}
.stat:hover::before { transform: scaleX(1); }

/* ─────────────────────────── ٩. البطاقات ─────────────────────────── */
.card {
  position: relative; display: flex; flex-direction: column;
  padding: var(--sp-6); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-xs); overflow: hidden; isolation: isolate;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .35s var(--ease);
}
/* وميض ذهبي يتبع المؤشر */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(201,162,74,.12), transparent 62%);
  transition: opacity .4s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: inline-end; transition: transform .45s var(--ease-out);
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: rgba(201,162,74,.32); }
.card:hover::before { opacity: 1; }
.card:hover::after { transform: scaleX(1); transform-origin: inline-start; }

.card-icon {
  display: grid; place-items: center; width: 56px; height: 56px; flex: none;
  border-radius: var(--r); margin-bottom: var(--sp-4);
  color: var(--gold-dark); background: linear-gradient(145deg, var(--gold-soft), #fff);
  border: 1px solid rgba(201,162,74,.24);
  transition: transform .5s var(--ease-back), color .35s var(--ease), background-color .35s var(--ease);
}
.card:hover .card-icon { transform: rotate(-8deg) scale(1.08); }
.card-num {
  position: absolute; inset-block-start: var(--sp-4); inset-inline-end: var(--sp-5);
  font-size: var(--t-2xl); font-weight: 800; line-height: 1;
  color: rgba(7,18,40,.055); letter-spacing: -.03em; transition: color .4s var(--ease);
}
.card:hover .card-num { color: rgba(201,162,74,.22); }
.card h3 { font-size: var(--t-lg); margin-bottom: var(--sp-2); }
.card p { font-size: var(--t-sm); margin-bottom: var(--sp-4); flex: 1; }
.card-link {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: auto;
  font-size: var(--t-sm); font-weight: 700; color: var(--gold-dark);
}
.card-link svg { transition: transform .35s var(--ease-back); }
.card:hover .card-link svg { transform: translateX(-5px); }

/* بطاقة قابلة للنقر بالكامل */
.card--link::after { content: ""; }
.card-cover { position: absolute; inset: 0; z-index: 3; }

/* ─────────────────────── ١٠. بطاقات القيم ─────────────────────── */
.value-card { text-align: center; padding: var(--sp-6) var(--sp-4); }
.value-card .card-icon { margin-inline: auto; }
.value-card h3 { font-size: var(--t-md); }
.value-card p { font-size: var(--t-sm); margin-bottom: 0; }

/* ─────────────────────── ١١. الرؤية والرسالة ─────────────────────── */
.vm-card {
  position: relative; padding: var(--sp-7); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
}
.vm-card::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline-end: 0;
  width: 150px; height: 150px; opacity: .028;
  background: url("../img/logo-mark.svg") no-repeat center / contain;
  transform: translate(34%, -34%);
}
.vm-card .card-icon { width: 62px; height: 62px; }
.vm-card p { font-size: var(--t-md); margin-bottom: 0; }

/* ─────────────────────── ١١ب. بطاقات "لماذا نحن" ─────────────────────── */
.why-card {
  padding: var(--sp-6); border-radius: var(--r-lg);
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1);
  transition: transform .4s var(--ease-out), background-color .35s var(--ease), border-color .35s var(--ease);
}
.why-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.075); border-color: rgba(201,162,74,.4); }
.why-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r);
  margin-bottom: var(--sp-4); color: var(--gold);
  background: rgba(201,162,74,.12); border: 1px solid rgba(201,162,74,.25);
  transition: transform .45s var(--ease-back);
}
.why-card:hover .why-icon { transform: rotate(-8deg) scale(1.08); }
.why-card h3 { font-size: var(--t-md); color: #fff; margin-bottom: var(--sp-2); }
.why-card p { font-size: var(--t-sm); color: rgba(255,255,255,.68); margin: 0; }

/* ─────────────────────── ١٢. كلمة الشريك ─────────────────────── */
.partner {
  display: grid; gap: var(--sp-8); align-items: center;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
}
.partner-photo { position: relative; }
.partner-photo .frame {
  aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 4px solid var(--gold); box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--navy-700), var(--navy));
  display: grid; place-items: center;
}
.partner-photo .frame img { width: 100%; height: 100%; object-fit: cover; }
.partner-photo .frame .placeholder { width: 46%; opacity: .5; }
.partner-photo .frame .placeholder .lm-inner { fill: #fff; }
.partner-quote {
  position: relative; margin: 0;
  padding-inline-start: var(--sp-5); padding-block-start: var(--sp-6);
  font-size: clamp(1.08rem, .96rem + .58vw, 1.36rem);
  line-height: 2.05; font-weight: 600; color: var(--navy);
  letter-spacing: -.012em;
}
/* علامة الاقتباس فوق النص لا خلفه */
.partner-quote > svg {
  position: absolute; inset-block-start: 0; inset-inline-start: 0;
  color: var(--gold); opacity: .32; width: 44px; height: 44px;
}
/* شريط ذهبي رأسي على حافة البداية (يمين في RTL) — حيث النص محاذٍ */
.partner-quote::after {
  content: ""; position: absolute; inset-block: 56px .3rem; inset-inline-start: 0; width: 3px;
  border-radius: 3px; background: linear-gradient(var(--gold), transparent);
}
/* إطار القمّة حول الصورة */
.partner-photo::before {
  content: ""; position: absolute; inset: -16px; border-radius: 50%;
  border: 1px dashed rgba(201,162,74,.42);
  animation: slowSpin 34s linear infinite;
}
@keyframes slowSpin { to { transform: rotate(360deg); } }
.partner-sign { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.partner-sign b { display: block; font-size: var(--t-lg); color: var(--navy); }
.partner-sign span { display: block; font-size: var(--t-sm); color: var(--gold-dark); font-weight: 700; margin-bottom: var(--sp-2); }
.partner-sign ul { list-style: none; padding: 0; margin: 0; }
.partner-sign li { font-size: var(--t-sm); color: var(--ink-mute); display: flex; align-items: center; gap: .45rem; }
.partner-sign li svg { color: var(--gold); flex: none; }

/* ─────────────────────── ١٣. خطوات العمل ─────────────────────── */
.steps { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: step; }
.step { position: relative; padding: var(--sp-6) var(--sp-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step-num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  margin-bottom: var(--sp-4); font-weight: 800; font-size: var(--t-sm);
  color: var(--navy); background: var(--gold-soft); border: 1px solid rgba(201,162,74,.35);
  transition: transform .45s var(--ease-back), background-color .35s var(--ease), color .35s var(--ease);
}
.step:hover .step-num { background: var(--gold); color: #fff; transform: scale(1.1); }
.step h3 { font-size: var(--t-md); margin-bottom: var(--sp-2); }
.step p { font-size: var(--t-sm); margin: 0; }
/* خط رابط بين الخطوات */
.step::after {
  content: ""; position: absolute; inset-block-start: calc(var(--sp-6) + 23px);
  inset-inline-start: 0; width: var(--sp-5); height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 5px, transparent 5px 10px);
  transform: translateX(-100%);
}
.steps > .step:first-child::after { display: none; }
@media (max-width: 900px) { .step::after { display: none; } }

/* ─────────────────────── ١٤. الأسئلة الشائعة ─────────────────────── */
.faq { max-width: 860px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); margin-bottom: var(--sp-3); overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.faq-item[open] { border-color: rgba(201,162,74,.36); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex; align-items: center; gap: var(--sp-3); cursor: pointer;
  padding: var(--sp-4) var(--sp-5); font-weight: 700; font-size: var(--t-md);
  color: var(--navy); list-style: none; transition: background-color .25s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--cream-50); }
.faq-item summary .ic {
  flex: none; margin-inline-start: auto; color: var(--gold-dark);
  transition: transform .4s var(--ease-back);
}
.faq-item[open] summary .ic { transform: rotate(180deg); }
.faq-body { padding: 0 var(--sp-5) var(--sp-5); }
.faq-body p { margin: 0; font-size: var(--t-sm); }
.faq-item[open] .faq-body { animation: faqOpen .4s var(--ease-out); }
@keyframes faqOpen { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ─────────────────────── ١٥. النداء للتحرّك ─────────────────────── */
.cta {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  padding: clamp(var(--sp-7), 5vw, var(--sp-9)); text-align: center;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-700) 55%, var(--navy) 100%);
  color: #fff; isolation: isolate;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background: radial-gradient(600px 320px at 50% -20%, rgba(201,162,74,.34), transparent 65%);
}
.cta::after {
  content: ""; position: absolute; inset-block-end: -28%; inset-inline-start: 50%;
  width: 460px; height: 320px; transform: translateX(50%); z-index: -1; opacity: .07;
  background: url("../img/logo-mark.svg") no-repeat center / contain;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.78); max-width: 60ch; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; margin-top: var(--sp-6); }

/* ─────────────────────── ١٦. النماذج ─────────────────────── */
.form { display: grid; gap: var(--sp-4); }
.form-row { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--t-sm); font-weight: 700; color: var(--navy); }
.field label .req { color: var(--err); }
.field .hint { font-size: var(--t-xs); color: var(--ink-mute); }

.input, .textarea, .select {
  width: 100%; padding: .82em 1em; font-family: inherit; font-size: var(--t-sm);
  color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color .28s var(--ease), box-shadow .28s var(--ease), background-color .28s var(--ease);
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.8; }
.select {
  appearance: none; padding-inline-end: 2.6em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2346536b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 1em center;
}
.input:hover, .textarea:hover, .select:hover { border-color: rgba(7,18,40,.28); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,162,74,.16); background: #fff;
}
.input::placeholder, .textarea::placeholder { color: #a3abb9; }
.field.has-error .input, .field.has-error .textarea, .field.has-error .select { border-color: var(--err); }
.field .error { font-size: var(--t-xs); color: var(--err); font-weight: 600; }

.checkbox { display: flex; align-items: flex-start; gap: .6rem; font-size: var(--t-sm); color: var(--ink-soft); }
.checkbox input { width: 18px; height: 18px; margin-top: .28em; accent-color: var(--gold); flex: none; }

.alert {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5); border-radius: var(--r);
  font-size: var(--t-sm); font-weight: 600; border: 1px solid;
  animation: alertIn .45s var(--ease-out);
}
.alert svg { flex: none; margin-top: .15em; }
.alert--ok  { color: var(--ok);  background: var(--ok-bg);  border-color: rgba(28,122,84,.24); }
.alert--err { color: var(--err); background: var(--err-bg); border-color: rgba(179,38,30,.22); }
@keyframes alertIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ─────────────────────── ١٧. صفحة التواصل ─────────────────────── */
.contact-grid { display: grid; gap: var(--sp-7); grid-template-columns: minmax(0, 1fr) minmax(0, 380px); align-items: start; }
.contact-card { padding: var(--sp-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.contact-list li { margin: 0; }
.contact-list a, .contact-list .item {
  display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3);
  border-radius: var(--r); color: var(--ink-soft); font-size: var(--t-sm);
  transition: background-color .28s var(--ease), transform .28s var(--ease), color .28s var(--ease);
}
.contact-list a:hover { background: var(--cream-100); transform: translateX(-4px); color: var(--navy); }
.contact-list .ico {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: var(--r-sm); color: var(--gold-dark);
  background: linear-gradient(145deg, var(--gold-soft), #fff); border: 1px solid rgba(201,162,74,.24);
}
.contact-list b { display: block; color: var(--navy); font-size: var(--t-sm); }
.contact-list small { color: var(--ink-mute); font-size: var(--t-xs); }

/* خط زمني رأسي (خطوات ما بعد الإرسال) */
.timeline { list-style: none; padding: 0; margin: var(--sp-4) 0 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; inset-block: 10px 18px; inset-inline-start: 9px;
  width: 2px; background: linear-gradient(var(--gold), var(--gold-soft));
}
.timeline li { position: relative; padding-inline-start: var(--sp-6); padding-bottom: var(--sp-5); margin: 0; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; inset-block-start: 6px; inset-inline-start: 3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--gold);
}
.timeline b { display: block; font-size: var(--t-sm); color: var(--navy); }
.timeline span { display: block; font-size: var(--t-xs); color: var(--ink-mute); }

/* ─────────────────────── ١٨. المدونة ─────────────────────── */
.post-card { padding: 0; overflow: hidden; }
.post-thumb {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(150deg, var(--navy), var(--navy-700));
  display: grid; place-items: center;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.card:hover .post-thumb img { transform: scale(1.07); }
.post-thumb .placeholder { width: 34%; opacity: .28; }
.post-thumb .placeholder .lm-inner { fill: #fff; }
.post-body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); font-size: var(--t-xs); color: var(--ink-mute); margin-bottom: var(--sp-3); }
.post-meta .tag {
  padding: .22rem .7rem; border-radius: var(--r-full); font-weight: 700;
  color: var(--gold-dark); background: var(--gold-soft);
}
.post-card h3 { font-size: var(--t-md); line-height: 1.5; }
.post-card p { font-size: var(--t-sm); }

/* المقال */
.article-hero { padding-block: calc(var(--header-h) + var(--sp-7)) var(--sp-6); background: var(--bg-tint); border-bottom: 1px solid var(--line); }
.article-cover { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); margin-bottom: var(--sp-7); }
.prose { font-size: var(--t-md); line-height: 2.05; color: var(--ink-soft); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: var(--t-xl); margin-top: 2em; margin-bottom: .6em; }
.prose h3 { font-size: var(--t-lg); margin-top: 1.7em; margin-bottom: .5em; }
.prose ul, .prose ol { padding-inline-start: 1.5em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--gold-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose img { border-radius: var(--r); margin-block: 1.6em; box-shadow: var(--shadow-sm); }
.prose blockquote {
  margin: 1.8em 0; padding: var(--sp-5) var(--sp-6); border-radius: var(--r);
  border-inline-start: 4px solid var(--gold); background: var(--cream-100);
  font-size: var(--t-md); color: var(--navy);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { padding: .15em .45em; border-radius: 5px; background: var(--cream-200); font-size: .9em; }
.prose pre { padding: var(--sp-5); border-radius: var(--r); background: var(--navy); color: #e8edf6; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.prose th, .prose td { padding: .7em 1em; border: 1px solid var(--line); text-align: start; }
.prose th { background: var(--cream-100); color: var(--navy); font-weight: 700; }

/* أدوات المدونة: التصنيفات والبحث */
.blog-tools {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-4); margin-bottom: var(--sp-6);
}
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  padding: .48rem 1.05rem; border-radius: var(--r-full); font-size: var(--t-sm); font-weight: 600;
  color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line);
  transition: all .28s var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--navy); transform: translateY(-2px); }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.blog-search { display: flex; gap: var(--sp-2); min-width: min(100%, 320px); }
.blog-search .input { flex: 1; }
.blog-search .btn { padding-inline: 1.1em; flex: none; }

/* حالة فارغة */
.empty-state {
  text-align: center; padding: var(--sp-9) var(--sp-5); border-radius: var(--r-lg);
  background: var(--surface); border: 1px dashed var(--line-strong);
}
.empty-icon {
  display: grid; place-items: center; width: 78px; height: 78px; margin: 0 auto var(--sp-5);
  border-radius: 50%; color: var(--gold-dark);
  background: linear-gradient(150deg, var(--gold-soft), #fff); border: 1px solid rgba(201,162,74,.25);
}
.empty-state h2 { font-size: var(--t-xl); }
.empty-state p { max-width: 46ch; margin-inline: auto; }
.empty-state .cta-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }
.empty-state code { padding: .15em .5em; border-radius: 5px; background: var(--cream-200); font-size: .9em; }

/* المشاركة */
.share {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3);
  margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: 1px solid var(--line);
}
.share span { font-size: var(--t-sm); font-weight: 700; color: var(--navy); }
.share a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line);
  transition: all .3s var(--ease-out);
}
.share a:hover { color: #fff; background: var(--navy); border-color: var(--navy); transform: translateY(-3px) scale(1.06); }

/* صندوق المؤلف */
.author-box {
  display: flex; gap: var(--sp-5); align-items: flex-start; margin-top: var(--sp-7);
  padding: var(--sp-6); border-radius: var(--r-lg);
  background: var(--cream-100); border: 1px solid var(--line);
}
.author-logo {
  display: grid; place-items: center; width: 78px; height: 78px; flex: none; border-radius: var(--r);
  background: linear-gradient(150deg, var(--navy-700), var(--navy)); padding: var(--sp-4);
}
.author-box b { display: block; font-size: var(--t-md); color: var(--navy); }
.author-box > div > span { display: block; font-size: var(--t-xs); color: var(--gold-dark); font-weight: 700; margin-bottom: var(--sp-3); }
.author-box p { font-size: var(--t-sm); }
@media (max-width: 560px) { .author-box { flex-direction: column; } }

/* ─────────────────────── ١٩. ترقيم الصفحات ─────────────────────── */
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); list-style: none; padding: 0; margin: var(--sp-7) 0 0; }
.pagination li { margin: 0; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; gap: .3rem; min-width: 42px; height: 42px;
  padding-inline: .85rem; justify-content: center; border-radius: var(--r-sm);
  font-size: var(--t-sm); font-weight: 700; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line);
  transition: all .28s var(--ease);
}
.pagination a:hover { border-color: var(--gold); color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pagination .is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .gap { border: 0; background: none; }

/* ─────────────────────── ٢٠. فتات الخبز ─────────────────────── */
.breadcrumbs { padding-block: var(--sp-3); background: var(--bg-tint); border-bottom: 1px solid var(--line); font-size: var(--t-xs); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; color: var(--ink-mute); display: flex; align-items: center; gap: .45rem; }
.breadcrumbs li + li::before { content: "‹"; color: var(--ink-mute); opacity: .6; }
.breadcrumbs a { color: var(--ink-mute); }
.breadcrumbs a:hover { color: var(--gold-dark); }
.breadcrumbs [aria-current] { color: var(--navy); font-weight: 700; }

/* ─────────────── ٢٠ب. رؤوس الصفحات الداخلية ─────────────── */
.page-hero {
  padding-block: calc(var(--header-h) + var(--sp-8)) var(--sp-8);
  background: #050d1e; color: #fff;
  position: relative; overflow: hidden; isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 520px at 82% -20%, rgba(201,162,74,.26), transparent 62%),
    radial-gradient(620px 420px at 2% 110%, rgba(46,86,160,.28), transparent 60%),
    linear-gradient(168deg, #050d1e, #0a1830 55%, #050d1e);
}
.page-hero::after {
  content: ""; position: absolute; inset: -20%; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(135deg, rgba(201,162,74,.03) 25%, transparent 25%),
    linear-gradient(225deg, rgba(201,162,74,.03) 25%, transparent 25%);
  background-size: 54px 54px;
}
/* قمّة شبحية في الزاوية */
.page-hero .ph-ghost {
  position: absolute; inset-block-end: -18%; inset-inline-start: -3%;
  width: min(38vw, 440px); z-index: -1; opacity: .05; color: var(--gold);
  pointer-events: none;
}
.page-hero .ph-ghost svg { width: 100%; height: auto; fill: currentColor; }
.page-hero h1 { color: #fff; }
.page-hero .lead, .page-hero p { color: rgba(255,255,255,.72); }
.page-hero .eyebrow { color: var(--gold-light); }
/* شريط القمم أسفل رأس الصفحة */
.page-hero .ph-ranges { position: absolute; inset-inline: 0; inset-block-end: -1px; line-height: 0; z-index: -1; }
.page-hero .ph-ranges svg { display: block; width: 100%; height: clamp(48px, 6vw, 84px); }
.page-hero .ph-ranges .a { fill: rgba(201,162,74,.14); }
.page-hero .ph-ranges .b { fill: var(--bg); }
.page-hero .section-head { margin-bottom: 0; max-width: 760px; }
.lead { font-size: var(--t-md); color: var(--ink-soft); }

/* رأس صفحة الخدمة */
.service-head { display: flex; gap: var(--sp-5); align-items: flex-start; position: relative; z-index: 2; }
.service-badge {
  display: grid; place-items: center; width: 78px; height: 78px; flex: none;
  border-radius: var(--r-lg); color: var(--gold-dark);
  background: linear-gradient(150deg, #fff, var(--gold-soft));
  border: 1px solid rgba(201,162,74,.3); box-shadow: var(--shadow-sm);
}
.service-head h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, var(--t-3xl)); margin-bottom: var(--sp-3); }
@media (max-width: 640px) { .service-head { flex-direction: column; } }

/* تخطيط صفحة الخدمة */
.service-grid { display: grid; gap: var(--sp-7); grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: start; }
@media (max-width: 980px) { .service-grid { grid-template-columns: 1fr; } }
.sticky-card { position: sticky; inset-block-start: calc(var(--header-h) + var(--sp-4)); }
@media (max-width: 980px) { .sticky-card { position: static; } }

/* قائمة بعلامات صح */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.check-list li {
  display: flex; align-items: flex-start; gap: var(--sp-3); margin: 0;
  padding: var(--sp-4); border-radius: var(--r); background: var(--surface);
  border: 1px solid var(--line); font-size: var(--t-sm); color: var(--ink-soft);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.check-list li:hover { transform: translateX(-5px); border-color: rgba(201,162,74,.35); box-shadow: var(--shadow-sm); }
.check-list li svg {
  flex: none; margin-top: .15em; color: var(--gold-dark);
  background: var(--gold-soft); border-radius: 50%; padding: 3px; width: 24px; height: 24px;
}

/* لمن هذه الخدمة؟ */
.whom {
  position: relative; margin-top: var(--sp-7);
  padding: var(--sp-6) var(--sp-7) var(--sp-6) var(--sp-6);
  border: 1px solid var(--cream-300); border-radius: var(--r);
  background: linear-gradient(155deg, var(--cream-50), var(--cream-100));
  overflow: hidden;
}
.whom::before {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
}
.whom::after {
  content: ""; position: absolute; inset-block-start: -40px; inset-inline-end: -40px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,74,.10), transparent 70%);
  pointer-events: none;
}
.whom .eyebrow { margin-bottom: var(--sp-2); }
.whom p {
  margin: 0; position: relative; font-size: var(--t-base);
  line-height: 1.95; color: var(--ink-soft); max-width: 60ch;
}

/* قائمة روابط جانبية */
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; }
.link-list li { margin: 0; }
.link-list a {
  display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3);
  border-radius: var(--r-sm); font-size: var(--t-sm); color: var(--ink-soft);
  transition: background-color .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
}
.link-list a svg { color: var(--gold-dark); flex: none; }
.link-list a:hover { background: var(--cream-100); transform: translateX(-4px); color: var(--navy); }

/* ─────────────────────── ٢١. التذييل ─────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.62); padding-block: var(--sp-8) var(--sp-5); position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset-block-start: -40%; inset-inline-end: -8%;
  width: 420px; height: 420px; opacity: .045;
  background: url("../img/logo-mark.svg") no-repeat center / contain;
}
.footer-grid { display: grid; gap: var(--sp-7); grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(160px, 1fr)); position: relative; }
.footer-brand .baca-logo { width: 130px; margin-bottom: var(--sp-4); }
.footer-brand p { font-size: var(--t-sm); color: rgba(255,255,255,.6); max-width: 40ch; }
.site-footer h4 { color: #fff; font-size: var(--t-sm); font-weight: 800; letter-spacing: .04em; margin-bottom: var(--sp-4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: rgba(255,255,255,.62); font-size: var(--t-sm); display: inline-flex; align-items: center; gap: .4rem; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer a svg { color: var(--gold); opacity: .8; flex: none; }

.social { display: flex; gap: var(--sp-2); margin-top: var(--sp-5); }
.social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-sm);
  color: rgba(255,255,255,.75); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  transition: all .32s var(--ease-out);
}
.social a:hover { color: var(--navy); background: var(--gold); border-color: var(--gold); transform: translateY(-4px); }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3);
  margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.1); font-size: var(--t-xs);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* ─────────────────────── ٢٢. عناصر عائمة ─────────────────────── */
.float-actions {
  position: fixed; inset-block-end: var(--sp-5); inset-inline-start: var(--sp-5);
  z-index: 90; display: grid; gap: var(--sp-3);
}
.fab {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  border: 0; cursor: pointer; color: #fff; box-shadow: var(--shadow-lg);
  transition: transform .35s var(--ease-back), box-shadow .35s var(--ease);
}
.fab:hover { transform: scale(1.09) translateY(-3px); }
.fab--wa { background: #25d366; }
.fab--top { background: var(--navy); opacity: 0; pointer-events: none; transform: translateY(14px); transition: all .4s var(--ease-out); }
.fab--top.is-on { opacity: 1; pointer-events: auto; transform: none; }
/* نبضة الواتساب */
.fab--wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: fabPulse 2.4s var(--ease-out) infinite;
}
@keyframes fabPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
.fab { position: relative; }

/* ─────────────────────── ٢٣. الحركة عند التمرير ─────────────────────── */
/* المحتوى ظاهر افتراضياً. الإخفاء يحدث فقط عندما يؤكّد JS أنه قادر على إظهاره
   مرة أخرى (الصنف .has-js) — فلا يبقى المحتوى مخفياً إن تعطّل JS. */
.has-js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.has-js [data-reveal="right"] { transform: translateX(34px); }
.has-js [data-reveal="left"]  { transform: translateX(-34px); }
.has-js [data-reveal="zoom"]  { transform: scale(.93); }
.has-js [data-reveal].is-in { opacity: 1; transform: none; }
/* شبكة الأمان تُظهر المحتوى فوراً وبلا انتقال — حتى لو لم تعمل الانتقالات إطلاقاً */
.has-js.reveal-all [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }

/* رسم الشعار عند التحميل — pathLength=100 يوحّد أطوال المسارات */
.hero-emblem .bl-stroke path {
  stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: drawLine 1.4s var(--ease-out) .35s forwards;
}
.hero-emblem .bl-stroke path:nth-child(2) { animation-delay: .5s; }
.hero-emblem .bl-stroke path:nth-child(3) { animation-delay: .62s; }
.hero-emblem .bl-stroke path:nth-child(4) { animation-delay: .78s; }
.hero-emblem .lm-outer, .hero-emblem .lm-inner,
.hero-emblem .bl-a1, .hero-emblem .bl-a2 {
  opacity: 0; animation: fadeUp .8s var(--ease-out) forwards;
}
.hero-emblem .lm-outer { animation-delay: .1s; }
.hero-emblem .lm-inner { animation-delay: .3s; }
.hero-emblem .bl-a1    { animation-delay: .95s; }
.hero-emblem .bl-a2    { animation-delay: 1.08s; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* شبكة أمان: لو تعطّلت الحركة لأي سبب يبقى الشعار ظاهراً */
.no-anim .hero-emblem .bl-stroke path { stroke-dashoffset: 0; animation: none; }
.no-anim .hero-emblem .lm-outer, .no-anim .hero-emblem .lm-inner,
.no-anim .hero-emblem .bl-a1, .no-anim .hero-emblem .bl-a2 { opacity: 1; animation: none; }

/* ─────────────────────── ٢٤. الاستجابة ─────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* الشعار يأخذ عرض العمود كاملاً ويتوسّط داخله — لا width هنا،
     لأن أي عرض صريح يمنع تمدّد عنصر الشبكة فينزاح لجهة البداية (اليمين). */
  .hero-emblem { order: -1; margin-bottom: var(--sp-5); }
  .hero-lead { margin-inline-start: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .partner { grid-template-columns: 1fr; text-align: center; }
  /* عرض صريح مطلوب: margin-inline:auto يلغي تمدّد عنصر الشبكة،
     فبدونه ينكمش الإطار إلى صفر لأن ارتفاعه محسوب من aspect-ratio. */
  .partner-photo { width: min(100%, 260px); max-width: none; margin-inline: auto; }
  .partner-quote { padding-inline-start: 0; padding-top: var(--sp-6); }
  .partner-quote > svg { inset-inline-start: 50%; transform: translateX(50%); inset-block-start: 0; }
  .partner-sign li { justify-content: center; }
}

@media (max-width: 880px) {
  :root { --header-h: 70px; }
  .nav-toggle { display: inline-flex; margin-inline-start: auto; order: 3; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset-block-start: var(--header-h); inset-inline: 0;
    max-height: 0; overflow: hidden; margin: 0;
    background: var(--cream-50); border-bottom: 1px solid transparent;
    transition: max-height .5s var(--ease-out), border-color .3s var(--ease);
  }
  .nav.is-open { max-height: 80vh; overflow-y: auto; border-bottom-color: var(--line); box-shadow: var(--shadow); }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: var(--sp-4) var(--sp-5) var(--sp-6); }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav .nav-cta { display: block; border-bottom: 0; margin-top: var(--sp-4); }
  .nav a { padding: .95rem .4rem; font-size: var(--t-md); border-radius: var(--r-sm); }
  .nav a::after { display: none; }
  .nav .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  :root { --sp-9: 3.5rem; --sp-10: 4.5rem; }
  .container { padding-inline: var(--sp-4); }
  .stats { margin-top: var(--sp-6); border-radius: var(--r); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .card { padding: var(--sp-5); }
  .float-actions { inset-block-end: var(--sp-4); inset-inline-start: var(--sp-4); }
  .fab { width: 50px; height: 50px; }
}

/* ─────────────────────── ٢٥. تفضيلات وطباعة ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .has-js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-emblem .bl-stroke path { stroke-dashoffset: 0; }
  .hero-emblem .lm-outer, .hero-emblem .lm-inner,
  .hero-emblem .bl-a1, .hero-emblem .bl-a2 { opacity: 1; }
}

@media print {
  .site-header, .site-footer, .float-actions, .cta, .nav, .breadcrumbs, .read-progress { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .section { padding-block: 1rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}

/* فتات الخبز فوق رأس صفحة داكن: تتخذ نفس الخلفية وتتكفّل بإزاحة الترويسة الثابتة */
body:has(.page-hero) .breadcrumbs {
  background: #050d1e; border-bottom: 0;
  padding-block: calc(var(--header-h) + var(--sp-5)) 0;
  position: relative; z-index: 3;
}
body:has(.page-hero) .breadcrumbs li,
body:has(.page-hero) .breadcrumbs a { color: rgba(255,255,255,.5); }
body:has(.page-hero) .breadcrumbs a:hover { color: var(--gold-light); }
body:has(.page-hero) .breadcrumbs [aria-current] { color: rgba(255,255,255,.9); }
body:has(.page-hero) .breadcrumbs li + li::before { color: rgba(255,255,255,.3); }
/* وعندها لا يحتاج رأس الصفحة إلى إزاحة الترويسة مرة أخرى */
body:has(.page-hero) .breadcrumbs + main .page-hero { padding-block-start: var(--sp-6); }

/* ═══════════════ ٢٦. تحسينات الجوال ═══════════════ */
@media (max-width: 900px) {
  /* أهداف لمس مريحة (٤٤px) في التذييل والقوائم الجانبية */
  .site-footer li a,
  .link-list a,
  .contact-list a { min-height: 44px; align-items: center; }
  .site-footer li { margin-bottom: 0; }
  .footer-bottom nav a { padding-block: .5rem; }

  /* شريط الإحصاءات أكثر إحكاماً: صفّان × عمودان */
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: var(--sp-5) var(--sp-3); }
  .stat b { font-size: clamp(1.9rem, 1.2rem + 3.4vw, 2.6rem); }
  .stat > span { font-size: var(--t-xs); margin-top: var(--sp-2); }

  /* البطل: مسافات أهدأ */
  .hero { min-height: auto; padding-block: calc(var(--header-h) + var(--sp-7)) calc(var(--sp-8) + 70px); }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-badges span { font-size: .72rem; padding: .42rem .8rem; }

  /* الشريط المتحرك أصغر */
  .marquee { padding-block: var(--sp-4); }
  .marquee-group { gap: var(--sp-5); padding-inline-end: var(--sp-5); }

  /* بطاقتا الرؤية والرسالة بلا فراغ زائد */
  .vm-card { padding: var(--sp-5); }
  .vm-card::before { width: 110px; height: 110px; }

  /* الاقتباس */
  .partner-quote { font-size: 1.02rem; line-height: 1.95; padding-inline-start: var(--sp-4); }
  .partner-quote > svg { width: 34px; height: 34px; }
  .partner-quote::after { inset-block-start: 46px; }

  /* الأسئلة الشائعة */
  .faq-item summary { font-size: var(--t-base); padding: var(--sp-4); gap: var(--sp-2); }
  .faq-body { padding: 0 var(--sp-4) var(--sp-4); }

  /* بطاقة النداء */
  .cta { padding: var(--sp-7) var(--sp-5); border-radius: var(--r-lg); }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* رؤوس الأقسام المنقسمة تتكدّس بمسافة معقولة */
  .head-split { gap: var(--sp-4); margin-bottom: var(--sp-6); }
  .head-split p { font-size: var(--t-sm); }
}

/* عمود واحد للإحصاءات على الشاشات الضيقة جداً فقط (أقل من ٣٤٠px) */
@media (max-width: 339px) {
  .stats { grid-template-columns: 1fr; }
  .svc-name h2, .svc-name h3 { font-size: .95rem; }
}

/* ═══════════ بطاقة البيانات النظامية ═══════════ */
.creds {
  position: relative; z-index: 5; overflow: hidden; isolation: isolate;
  display: grid; border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
}
.creds::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 280px at 78% -30%, rgba(201,162,74,.26), transparent 62%),
    linear-gradient(120deg, var(--navy), var(--navy-700) 60%, var(--navy));
}

/* ═══════════ نقاط البطل (بدل الرقائق) ═══════════ */
.hero-points {
  list-style: none; padding: 0; margin: var(--sp-7) 0 0;
  display: grid; gap: .6rem;
}
.hero-points li {
  display: flex; align-items: center; gap: .6rem; margin: 0;
  font-size: var(--t-sm); font-weight: 600; color: rgba(255,255,255,.84);
}
.hero-points svg {
  flex: none; color: var(--navy); background: var(--gold);
  border-radius: 50%; padding: 3px; width: 21px; height: 21px;
}


/* ═══════════ البيانات النظامية في التذييل ═══════════ */
.footer-legal {
  list-style: none; padding: 0; margin: var(--sp-5) 0 0;
  display: grid; gap: .45rem;
}
.footer-legal li {
  display: flex; gap: .5rem; margin: 0; font-size: var(--t-xs);
  color: rgba(255,255,255,.55);
}
.footer-legal b { color: rgba(255,255,255,.82); font-weight: 700; }

/* ═══════════ كتلة «كيف نعمل + ما يميّزنا» الموحّدة ═══════════ */
.approach .head-xl { margin-bottom: var(--sp-7); }
.approach .head-xl + .steps { margin-bottom: var(--sp-8); }

/* فاصل ذهبي بقمّة في المنتصف */
.approach-split {
  position: relative; border: 0; height: 1px; margin: var(--sp-9) 0 var(--sp-8);
  background: linear-gradient(90deg, transparent, rgba(201,162,74,.32), transparent);
}
.approach-split::after {
  content: ""; position: absolute; inset-block-start: 50%; inset-inline-start: 50%;
  width: 34px; height: 24px; transform: translate(50%, -50%);
  background: url("../img/logo-mark.svg") no-repeat center / contain;
  filter: brightness(0) saturate(100%) invert(72%) sepia(28%) saturate(760%) hue-rotate(1deg) brightness(92%);
  opacity: .55;
}

/* خطوات على خلفية داكنة */
.steps--dark .step {
  background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.1);
  transition: transform .4s var(--ease-out), background-color .35s var(--ease), border-color .35s var(--ease);
}
.steps--dark .step:hover {
  transform: translateY(-6px); background: rgba(255,255,255,.075);
  border-color: rgba(201,162,74,.4);
}
.steps--dark .step h3 { color: #fff; }
.steps--dark .step p  { color: rgba(255,255,255,.68); }
.steps--dark .step-num {
  background: rgba(201,162,74,.14); color: var(--gold);
  border-color: rgba(201,162,74,.32);
}
.steps--dark .step:hover .step-num { background: var(--gold); color: var(--navy); }
.steps--dark .step::after {
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 5px, transparent 5px 10px);
}
@media (max-width: 900px) { .approach-split { margin-block: var(--sp-7) var(--sp-6); } }

/* ═══════════ سطر البيانات النظامية داخل البطاقة ═══════════ */
.creds-legal {
  grid-column: 1 / -1; list-style: none; margin: 0;
  padding: var(--sp-6) var(--sp-5);
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--sp-3) var(--sp-7);
}
.creds-legal li {
  display: inline-flex; align-items: center; gap: .45rem; margin: 0;
  font-size: var(--t-xs); color: rgba(255,255,255,.55); white-space: nowrap;
}
.creds-legal svg { color: var(--gold); opacity: .8; flex: none; }
.creds-legal b, .creds-legal a { color: var(--gold-light); font-weight: 700; letter-spacing: .02em; }
.creds-legal a:hover { color: #fff; }
@media (max-width: 700px) {
  .creds-legal { flex-direction: column; align-items: center; gap: var(--sp-3); }
}

/* ═══════════ الشهادات المهنية ═══════════ */
.cert-grid {
  display: grid; gap: var(--sp-6);
  /* عمودان عمداً: الشهادات عريضة، فعمودان يجعلانها مقروءة
     ويعطيان شبكة ٢×٢ متوازنة بدل صفّ ناقص */
  grid-template-columns: 1fr; max-width: 940px; margin-inline: auto;
}
@media (min-width: 760px) { .cert-grid { grid-template-columns: 1fr 1fr; } }
.cert {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease),
              border-color .35s var(--ease);
}
.cert:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-lg);
  border-color: rgba(201,162,74,.4);
}
.cert-shot {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  background: var(--cream-100); cursor: zoom-in; line-height: 0;
  border-bottom: 1px solid var(--line);
}
.cert-shot img { width: 100%; height: auto; display: block; }
.cert-zoom {
  position: absolute; inset-block-end: .6rem; inset-inline-start: .6rem;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(7,18,40,.82); color: var(--gold);
  opacity: 0; transform: scale(.85);
  transition: opacity .3s var(--ease), transform .3s var(--ease-back);
}
.cert-shot:hover .cert-zoom,
.cert-shot:focus-visible .cert-zoom { opacity: 1; transform: scale(1); }
.cert figcaption {
  padding: var(--sp-5); display: grid; gap: .3rem; flex: 1;
  align-content: start; position: relative;
}
.cert figcaption b { font-size: var(--t-base); color: var(--navy); line-height: 1.5; }
.cert-issuer { font-size: var(--t-xs); color: var(--gold-dark); font-weight: 700; }
.cert-note { font-size: var(--t-xs); color: var(--ink-mute); line-height: 1.75; margin-top: .25rem; }
.cert-year {
  position: absolute; inset-block-start: var(--sp-4); inset-inline-end: var(--sp-5);
  font-size: var(--t-xs); font-weight: 700; color: var(--gold-dark);
  background: var(--gold-soft); padding: .1rem .5rem; border-radius: 999px;
}

/* عارض الشهادة */
.cert-modal {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  padding: var(--sp-5); background: rgba(7,18,40,.94);
  /* الظهور بحركة CSS لا بصنف يضيفه JS داخل requestAnimationFrame:
     في التبويب غير المرئي قد لا يعمل rAF فيفتح العارض شفافاً تماماً. */
  animation: certIn .28s var(--ease) both;
}
.cert-modal[hidden] { display: none; }
@keyframes certIn { from { opacity: 0 } to { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .cert-modal { animation: none } }
.cert-modal figure { margin: 0; max-width: min(1100px, 96vw); text-align: center; }
.cert-modal img {
  max-width: 100%; max-height: 82vh; border-radius: var(--r-sm);
  box-shadow: 0 24px 60px rgba(0,0,0,.5); background: #fff;
}
.cert-modal figcaption {
  margin-top: var(--sp-4); color: #fff; font-weight: 600; font-size: var(--t-sm);
}
.cert-close {
  position: absolute; inset-block-start: var(--sp-5); inset-inline-end: var(--sp-5);
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.cert-close:hover { background: rgba(255,255,255,.18); transform: rotate(90deg); }

/* ═══════════ المسار المهني ═══════════ */
.xp { list-style: none; margin: 0; padding: 0; position: relative; max-width: 780px; margin-inline: auto; }
.xp::before {
  content: ""; position: absolute; inset-block: 10px 10px; inset-inline-start: 7px;
  width: 2px; background: linear-gradient(180deg, var(--gold), rgba(201,162,74,.16));
}
.xp-item { position: relative; margin: 0 0 var(--sp-6); padding-inline-start: var(--sp-7); }
.xp-item:last-child { margin-bottom: 0; }
.xp-dot {
  position: absolute; inset-block-start: 6px; inset-inline-start: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--gold-dark);
}
.xp-item.is-now .xp-dot { background: var(--gold); box-shadow: 0 0 0 5px rgba(201,162,74,.18); }
.xp-body {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: var(--sp-5) var(--sp-6);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.xp-item:hover .xp-body { border-color: rgba(201,162,74,.38); box-shadow: var(--shadow-sm); }
.xp-body h3 {
  font-size: var(--t-md); color: var(--navy); margin: 0 0 .3rem;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.xp-badge {
  font-size: .68rem; font-weight: 700; color: var(--navy);
  background: var(--gold); padding: .12rem .5rem; border-radius: 999px;
}
.xp-org {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: var(--t-xs); font-weight: 700; color: var(--gold-dark);
}
.xp-org svg { flex: none; }
.xp-body p { margin: .55rem 0 0; font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.85; }

/* ═══════════ عنوان التذييل بمدينتين ═══════════ */
.foot-addr { display: inline-flex; gap: .45rem; align-items: flex-start; }
.foot-addr > svg { flex: none; margin-top: .25rem; color: var(--gold); }
.foot-addr > span {
  display: grid; grid-template-columns: auto 1fr; gap: .1rem .5rem;
  font-size: var(--t-xs); text-align: start;
}
.foot-addr b { color: rgba(255,255,255,.82); font-weight: 700; }
.foot-addr > span > span { color: rgba(255,255,255,.5); }

@media (max-width: 700px) {
  .cert figcaption { padding: var(--sp-4); }
  .cert-year { inset-block-start: var(--sp-3); inset-inline-end: var(--sp-4); }
  .xp-item { padding-inline-start: var(--sp-6); }
  .cert-close { inset-block-start: var(--sp-4); inset-inline-end: var(--sp-4); }
}

/* ═══════════ شريط الشهادات المختصر (الرئيسية) ═══════════ */
.cert-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3);
  margin-top: var(--sp-5); padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.cert-chip {
  display: grid; gap: .45rem; padding: 0; border: 0; background: none;
  cursor: zoom-in; text-align: center; font: inherit;
}
.cert-chip img {
  width: 100%; height: auto; display: block; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .3s var(--ease-out), border-color .3s var(--ease),
              box-shadow .3s var(--ease);
}
.cert-chip:hover img,
.cert-chip:focus-visible img {
  transform: translateY(-3px); border-color: rgba(201,162,74,.5);
  box-shadow: var(--shadow-sm);
}
.cert-chip span {
  font-size: .68rem; line-height: 1.5; color: var(--ink-mute);
  /* سطران كحدّ أقصى: الأسماء متفاوتة الطول ولا نريد الشريط يتمدّد */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.cert-chip:hover span { color: var(--gold-dark); }
.cert-strip-more {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: var(--sp-4);
  font-size: var(--t-xs); font-weight: 700; color: var(--gold-dark);
}
.cert-strip-more:hover { color: var(--navy); }
.cert-strip-more svg { transition: transform .25s var(--ease); }
.cert-strip-more:hover svg { transform: translateX(-3px); }

@media (max-width: 560px) {
  .cert-strip { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
  .cert-chip span { font-size: .66rem; }
}
