/* ==========================================================================
   فادي يسري، داعم للأسرة
   نظام التصميم: Apple Glassy · لوحة باردة · RTL · موبايل أولاً
   ========================================================================== */

/* ── ٠) الخطوط ─────────────────────────────────────────────────────────── */
/* خط «عام الحِرَف اليدوية ٢٠٢٥»، للعناوين الكبيرة فقط، حمايةً للمقروئية */
@font-face {
  font-family: 'Handicrafts';
  src: url('assets/fonts/handicrafts-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Handicrafts';
  src: url('assets/fonts/handicrafts-black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ── ١) متغيرات الهوية ─────────────────────────────────────────────────── */
:root {
  /* الخطوط */
  --font-display: 'Handicrafts', 'Tajawal', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Tajawal', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* اللوحة الباردة */
  --bg-1:        #F6F8FB;
  --bg-2:        #EAF0F4;
  --navy:        #1E3A5F;
  --navy-deep:   #16294A;
  --teal:        #2FA3A3;
  --teal-deep:   #227C7C;   /* للنصوص الصغيرة فوق الزجاج، تباين AA+ */
  --green:       #35B37E;
  --green-deep:  #2A9268;

  /* النصوص */
  --ink:         #1A1D21;
  --muted:       #5B6472;
  --white:       #FFFFFF;

  /* الزجاج */
  --glass-bg:    rgba(255,255,255,.55);
  --glass-strong:rgba(255,255,255,.72);
  --glass-brd:   rgba(255,255,255,.45);
  --glass-blur:  20px;

  /* المقاسات وإيقاع المسافات */
  --radius:      24px;
  --radius-sm:   16px;
  --radius-xs:   12px;
  --shadow:      0 20px 50px -20px rgba(30,58,95,.25);
  --shadow-sm:   0 10px 30px -16px rgba(30,58,95,.28);
  --shadow-lg:   0 30px 70px -24px rgba(30,58,95,.34);
  --container:   1140px;

  --header-h:    62px;   /* ارتفاع شريط الهيدر نفسه */
  --header-top:  16px;   /* بُعده عن أعلى الصفحة */
  --header-space: calc(var(--header-h) + var(--header-top) * 2);  /* المساحة التي يشغلها كاملاً */

  --pad-section: 68px;   /* حشوة الأقسام، تكبر على الشاشات الكبيرة */
  --card-pad:    26px;
}

/* ── ٢) إعادة الضبط ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* ⚠️ يمنع الهيدر العائم من تغطية العناوين عند التنقّل بالروابط الداخلية */
  scroll-padding-top: calc(var(--header-space) + 14px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%) fixed;
  background-color: var(--bg-1);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
/* ol مشمولة هنا عمداً: بدونها كانت أرقام القائمة (.1 .2) تظهر خارج كروت الرحلة */
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.45;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0;
}
p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute; right: 12px; top: -70px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 18px;
  border-radius: 0 0 12px 12px; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── ٣) الزجاج ونظام الأسطح ────────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── ٤) مساعدات عامة ───────────────────────────────────────────────────── */
.container { width: min(100% - 36px, var(--container)); margin-inline: auto; }

.section { padding: var(--pad-section) 0; position: relative; }
.section--tint {
  background: linear-gradient(180deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 100%);
}

.section-head { text-align: center; max-width: 660px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 5vw, 38px); }
.section-head h2 .accent { color: var(--teal-deep); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }

/* شارة صغيرة زجاجية فوق العناوين */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-brd);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 16px;
  font-size: 13.5px; font-weight: 700; color: var(--teal-deep);
  box-shadow: var(--shadow-sm);
}

.lead { font-size: 18px; color: #3D4552; }
.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;
}

/* ── ٥) الأزرار ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 28px; border-radius: 999px; border: 1px solid transparent;
  font-family: inherit; font-size: 16.5px; font-weight: 700; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--primary {
  background: var(--navy); color: #fff;
  box-shadow: 0 14px 30px -14px rgba(30,58,95,.75);
}
.btn--primary:hover { background: var(--navy-deep); box-shadow: 0 18px 40px -14px rgba(30,58,95,.8); }

.btn--glass {
  background: var(--glass-strong); color: var(--navy);
  border-color: var(--glass-brd);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}
.btn--glass:hover { background: #fff; box-shadow: var(--shadow); }

.btn--wa {
  background: var(--green); color: #fff;
  box-shadow: 0 14px 30px -14px rgba(53,179,126,.85);
}
.btn--wa:hover { background: var(--green-deep); }

.btn--sm    { padding: 10px 22px; font-size: 15px; }
.btn--block { width: 100%; }

/* ── ٦) الهيدر العائم (pill) ───────────────────────────────────────────── */
.header {
  position: fixed; top: var(--header-top); inset-inline: 0; z-index: 100;
  padding-inline: 18px; pointer-events: none;
}
.header__pill {
  pointer-events: auto;
  max-width: 1100px; margin-inline: auto;
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 16px;
  padding: 8px 10px 8px 22px;
  background: rgba(255,255,255,.62);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-brd);
  border-radius: 999px;
  box-shadow: 0 14px 40px -18px rgba(30,58,95,.4);
}

.brand { display: flex; align-items: center; }
.brand__name {
  font-family: var(--font-display); font-size: 19px; font-weight: 700;
  color: var(--navy); line-height: 1.3;
}
.brand__role { display: none; }

.nav { display: none; gap: 30px; margin-inline: auto; }
.nav a {
  font-size: 15.5px; font-weight: 600; color: var(--navy);
  transition: color .18s;
}
.nav a:hover { color: var(--teal-deep); }

/* الصفحة الحالية: مميّزة بصرياً حتى لا يظن الزائر أن الرابط لا يعمل */
.nav a[aria-current='page'] {
  color: var(--teal-deep); font-weight: 700; cursor: default;
}
.nav a[aria-current='page']::after {
  content: ''; display: block; height: 2px; margin-top: 5px;
  border-radius: 2px; background: var(--teal); opacity: .8;
}

/* زر التواصل ظاهر على كل المقاسات، الاسم + الزر لا يُطويان أبداً */
.header__cta { margin-inline-start: auto; flex: none; }

.nav-toggle {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  background: var(--glass-strong); border: 1px solid var(--glass-brd);
  border-radius: 999px; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* القائمة على الجوال */
.mobile-nav {
  /* ⚠️ لازم: .header عليه pointer-events:none فيرثه هذا العنصر
     وبدونه تنفذ اللمسات من خلال القائمة ولا يعمل أي رابط */
  pointer-events: auto;
  position: fixed; z-index: 99;
  top: calc(var(--header-space) - 4px); inset-inline: 18px;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-brd); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 10px 20px 20px;
  display: none;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block; padding: 13px 4px; font-weight: 600; font-size: 16.5px;
  color: var(--navy); border-bottom: 1px solid rgba(30,58,95,.09);
}
.mobile-nav .btn { margin-top: 16px; }
.mobile-nav a[aria-current='page'] { color: var(--teal-deep); }
.mobile-nav a[aria-current='page']::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); margin-inline-end: 9px; vertical-align: middle;
}
/* لو طالت القائمة على شاشة قصيرة تُمرَّر بدل أن تُقصّ */
.mobile-nav { max-height: calc(100vh - var(--header-space) - 24px); overflow-y: auto; }
.mobile-nav .btn:last-child { border-bottom: 0; }

/* ── ٧) قسم البطل ──────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; text-align: center;
  /* ⚠️ المساحة العلوية تضمن ألّا يغطّي الهيدر العائم العنوان أبداً */
  padding: calc(var(--header-space) + 42px) 0 56px;
}
/* ── طبقة الحركة خلف البطل: توهّج ثابت + كتل ضوء متحركة + شفق ناعم ────── */
.hero__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(760px 520px at 84% -6%, rgba(47,163,163,.18) 0%, transparent 62%),
    radial-gradient(620px 460px at 6% 96%, rgba(30,58,95,.11) 0%, transparent 62%);
}

/* شبكة الجزيئات، كانفس خفيف يُرسم من main.js.
   القناع يُخفت الجزيئات في منتصف البانر حيث يقع النص، فلا تُشوّش القراءة */
.hero__particles {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .9;
  -webkit-mask-image: radial-gradient(ellipse 58% 54% at 50% 48%, rgba(0,0,0,.06) 0%, rgba(0,0,0,.35) 55%, #000 82%);
  mask-image: radial-gradient(ellipse 58% 54% at 50% 48%, rgba(0,0,0,.06) 0%, rgba(0,0,0,.35) 55%, #000 82%);
}

/* كتل ضوء (blobs) تسبح ببطء، transform فقط، بلا إعادة تخطيط */
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px); will-change: transform;
}
.blob--teal {
  width: 46vw; max-width: 560px; aspect-ratio: 1;
  background: radial-gradient(circle at 35% 35%, rgba(47,163,163,.5), rgba(47,163,163,0) 70%);
  top: -14%; inset-inline-end: -8%;
  animation: blobDriftA 26s ease-in-out infinite;
}
.blob--navy {
  width: 40vw; max-width: 480px; aspect-ratio: 1;
  background: radial-gradient(circle at 60% 40%, rgba(30,58,95,.34), rgba(30,58,95,0) 70%);
  bottom: -22%; inset-inline-start: -10%;
  animation: blobDriftB 32s ease-in-out infinite;
}
.blob--mint {
  width: 30vw; max-width: 380px; aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(120,200,200,.34), rgba(120,200,200,0) 70%);
  top: 34%; inset-inline-start: 26%;
  animation: blobDriftC 38s ease-in-out infinite;
}

/* شفق (aurora)، شريط ضوء مائل يمرّ ببطء فوق الخلفية */
.aurora {
  position: absolute; inset: -30% -20%;
  background: linear-gradient(102deg,
    rgba(255,255,255,0) 34%,
    rgba(255,255,255,.55) 46%,
    rgba(190,232,232,.34) 52%,
    rgba(255,255,255,0) 66%);
  filter: blur(28px); opacity: .75;
  will-change: transform;
  animation: auroraSweep 22s ease-in-out infinite;
}

@keyframes blobDriftA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-5%, 7%, 0) scale(1.12); }
}
@keyframes blobDriftB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(7%, -6%, 0) scale(1.1); }
}
@keyframes blobDriftC {
  0%, 100% { transform: translate3d(0, 0, 0) scale(.95); }
  33%      { transform: translate3d(9%, -5%, 0) scale(1.08); }
  66%      { transform: translate3d(-6%, 5%, 0) scale(1); }
}
@keyframes auroraSweep {
  0%, 100% { transform: translate3d(-14%, 0, 0) rotate(0deg); opacity: .55; }
  50%      { transform: translate3d(14%, 0, 0) rotate(2deg); opacity: .85; }
}

/* دخول متتابع لعناصر البطل عند التحميل */
@keyframes heroIn {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
.hero__inner > * { animation: heroIn .8s cubic-bezier(.22, 1, .36, 1) both; }
.hero__inner > :nth-child(1) { animation-delay: .08s; }
.hero__inner > :nth-child(2) { animation-delay: .22s; }
.hero__inner > :nth-child(3) { animation-delay: .36s; }
.hero__inner > :nth-child(4) { animation-delay: .50s; }
.hero__inner > :nth-child(5) { animation-delay: .64s; }

.hero h1 {
  font-size: clamp(31px, 6.6vw, 56px);
  line-height: 1.32;
  margin: 0 auto 20px;
  max-width: 20ch;
}
.hero h1 .accent { color: var(--teal-deep); }

.hero__sub {
  font-size: clamp(16.5px, 2.2vw, 19px); color: var(--muted);
  max-width: 620px; margin-inline: auto;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 13px;
  justify-content: center; margin-top: 32px;
}

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 26px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--glass-brd);
  padding: 9px 19px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.badge svg { width: 16px; height: 16px; color: var(--teal-deep); flex: none; }

.hero__note {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 8px 20px; margin-top: 22px; font-size: 14.5px; color: var(--muted);
}
.hero__note span { display: inline-flex; align-items: center; gap: 6px; }
.hero__note svg { width: 16px; height: 16px; color: var(--teal-deep); }

/* ── ٨) شريط الأرقام ───────────────────────────────────────────────────── */
.stats { padding: 8px 0 var(--pad-section); }
.stats__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  text-align: center;
}
.stat {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 16px;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 132px;
}
.stat__num {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(30px, 6vw, 42px); color: var(--navy); line-height: 1.2;
}
.stat__num em { font-style: normal; color: var(--teal); }
.stat__num--text { font-size: clamp(19px, 3.4vw, 23px); font-weight: 700; }
.stat__label { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.6; }

/* ── ٩) شبكة الكروت الزجاجية العامة ────────────────────────────────────── */
.cards { display: grid; gap: 20px; align-items: stretch; }

.card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--card-pad);
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card__icon {
  width: 50px; height: 50px; border-radius: var(--radius-sm);
  display: grid; place-items: center; margin-bottom: 18px; flex: none;
  background: linear-gradient(145deg, rgba(47,163,163,.16), rgba(30,58,95,.10));
  color: var(--navy);
}
.card__icon svg { width: 25px; height: 25px; }
.card h3 { font-size: 19.5px; margin-bottom: 10px; }
.card p  { color: var(--muted); font-size: 16.5px; }

.pain-note {
  margin-top: 34px; text-align: center;
  font-family: var(--font-display); font-size: clamp(19px, 3.4vw, 23px);
  font-weight: 700; color: var(--navy);
}
.pain-note em { font-style: normal; color: var(--teal-deep); }

/* Intro Video */
/* كارت يلتفّ حول الفيديو الرأسي فقط، متوسّط في القسم بلا أي إزاحة */
.intro-video__card {
  position: static;
  inset: auto;
  transform: none;
  float: none;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  padding: var(--card-pad);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
/* عرض الفيديو محكوم بثلاثة حدود: عرض الكارت، و360px، وما يجعل
   الارتفاع (العرض × 16/9) لا يتجاوز 80vh — فيظهر كاملاً بلا تمدّد */
.intro-video__frame {
  position: relative;
  width: min(100%, 360px, calc(80vh * 9 / 16));
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--navy-deep); box-shadow: var(--shadow-sm);
}
/* contain يضمن أن الفيديو والـposter يملآن الإطار بنفس النسبة بلا قفزة تخطيط */
.intro-video__player {
  display: block; width: 100%; height: 100%;
  object-fit: contain; background: var(--navy-deep);
}

/* زر التشغيل: دائرة زجاجية فوق الـposter، يختفي بعد أول تشغيل */
.intro-video__play {
  position: absolute; top: 50%; left: 50%;
  width: 76px; height: 76px; margin: -38px 0 0 -38px; padding: 0;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: var(--glass-strong); color: var(--navy);
  border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition: transform .18s ease, background .18s ease;
}
.intro-video__play svg { width: 30px; height: 30px; margin-left: 4px; } /* تعويض بصري لرأس المثلث */
.intro-video__play:hover { transform: scale(1.05); background: var(--white); }
.intro-video__play:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.intro-video__play[hidden] { display: none; }

/* السطر التعريفي وزر الواتساب: متوسّطان بعرض الكارت تحت الفيديو */
.intro-video__byline {
  width: 100%; font-size: 14.5px; font-weight: 500;
  color: var(--muted); text-align: center;
}
.intro-video__card .btn--wa { max-width: 100%; }

@media (max-width: 767px) {
  /* الكارت بعرض الحاوية، والفيديو بعرض الكارت كاملاً مع نفس سقف 80vh */
  .intro-video__card { max-width: none; padding: 14px 14px 20px; }
  .intro-video__frame { width: min(100%, calc(80vh * 9 / 16)); }
}
@media (prefers-reduced-motion: reduce) {
  .intro-video__play:hover { transform: none; }
}

/* ── ١٠) نبذة عن فادي ──────────────────────────────────────────────────── */
.about-grid {
  display: grid; gap: 30px; align-items: center;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px var(--card-pad);
}
.about__figure { justify-self: center; width: min(100%, 260px); margin: 0; }
.about__figure img {
  width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top center;
  border-radius: var(--radius); box-shadow: var(--shadow);
  border: 5px solid rgba(255,255,255,.75);
}
.about h2 { font-size: clamp(25px, 5vw, 34px); margin-bottom: 6px; }
.about__role { color: var(--teal-deep); font-weight: 700; font-size: 16px; margin-bottom: 16px; }
.about p { color: #3D4552; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 20px; }
.chip {
  background: rgba(47,163,163,.12); color: var(--teal-deep);
  font-size: 14px; font-weight: 700; padding: 7px 15px; border-radius: 999px;
  border: 1px solid rgba(47,163,163,.18);
}
.about__places {
  display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px;
  color: var(--muted); margin-bottom: 24px;
}
.about__places span { display: inline-flex; align-items: center; gap: 7px; }
.about__places svg { width: 16px; height: 16px; color: var(--teal-deep); flex: none; }

/* ── ١١) رحلة العميل ───────────────────────────────────────────────────── */
.steps { display: grid; gap: 16px; align-items: stretch; }
.step {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--card-pad);
}
.step__num {
  width: 44px; height: 44px; border-radius: var(--radius-xs);
  display: grid; place-items: center; margin-bottom: 15px;
  background: var(--navy); color: #fff;
  font-family: var(--font-display); font-weight: 900; font-size: 19px;
}
.step h3 { font-size: 18.5px; margin-bottom: 8px; }
.step p  { color: var(--muted); font-size: 16px; }

/* ── ١١ب) طبقة الضباب المتموّج ─────────────────────────────────────────── */
/* ثلاث سُحب ضوء بدرجات التيل والأزرق الفاتح تتنفّس ببطء خلف محتوى القسم.
   شفافية منخفضة جداً، لا تمسّ تباين النص */
.fog {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.fog span {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(80px); will-change: transform, opacity;
}
.fog span:nth-child(1) {
  width: 52vw; max-width: 620px; aspect-ratio: 1.2;
  background: radial-gradient(circle at 40% 40%, rgba(47,163,163,.30), rgba(47,163,163,0) 70%);
  top: -12%; inset-inline-start: -6%;
  animation: fogA 30s ease-in-out infinite;
}
.fog span:nth-child(2) {
  width: 46vw; max-width: 560px; aspect-ratio: 1.4;
  background: radial-gradient(circle at 55% 45%, rgba(130,190,225,.32), rgba(130,190,225,0) 70%);
  bottom: -16%; inset-inline-end: -4%;
  animation: fogB 36s ease-in-out infinite;
}
.fog span:nth-child(3) {
  width: 38vw; max-width: 460px; aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(170,215,215,.34), rgba(170,215,215,0) 70%);
  top: 30%; inset-inline-start: 42%;
  animation: fogC 42s ease-in-out infinite;
}
@keyframes fogA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1);    opacity: .75; }
  50%      { transform: translate3d(6%, 8%, 0) scale(1.16); opacity: 1; }
}
@keyframes fogB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.08); opacity: 1; }
  50%      { transform: translate3d(-7%, -6%, 0) scale(1); opacity: .7; }
}
@keyframes fogC {
  0%, 100% { transform: translate3d(0, 0, 0) scale(.94);  opacity: .6; }
  33%      { transform: translate3d(-9%, 6%, 0) scale(1.1); opacity: .95; }
  66%      { transform: translate3d(8%, -4%, 0) scale(1);   opacity: .75; }
}

/* محتوى الأقسام يعلو دائماً فوق الطبقات الزخرفية */
.section > .container { position: relative; z-index: 1; }

/* ── ١٣) الثقة والشهادات ───────────────────────────────────────────────── */
.trust__intro {
  max-width: 760px; margin: 0 auto 40px; text-align: center;
  color: var(--muted); font-size: 17.5px;
}

.certs__title {
  text-align: center; font-size: 15px; font-weight: 700; color: var(--navy);
  letter-spacing: .4px; margin: 52px 0 22px;
}

/* ── بطاقات الدبلومات والتدريب (نصية بلا صور) ──────────────────────────── */
.creds {
  display: grid; gap: 14px; grid-auto-rows: 1fr;   /* كل الصفوف بارتفاع واحد */
  max-width: 780px; margin-inline: auto;   /* عرض مضبوط حتى لا يبقى فراغ يسار النص */
}
.cred {
  display: flex; align-items: center; gap: 15px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.cred:hover {
  transform: translateY(-3px); box-shadow: var(--shadow);
  border-color: rgba(47,163,163,.35);
}
.cred__tag {
  flex: none; width: 58px; height: 58px; border-radius: 14px;
  display: grid; place-items: center; text-align: center;
  background: rgba(47,163,163,.13); border: 1px solid rgba(47,163,163,.22);
  color: var(--teal-deep); font-size: 12.5px; font-weight: 700; line-height: 1.25;
}
.cred__body { flex: 1; display: grid; gap: 2px; min-width: 0; }
.cred__body strong {
  font-family: var(--font-display); font-weight: 700;
  font-size: 17px; color: var(--navy); line-height: 1.45;
}
.cred__body > span { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* سطر الخبرة أسفل البطاقات */
.certs__note {
  max-width: 700px; margin: 26px auto 0;
  text-align: center; font-size: 15px; line-height: 1.9; color: var(--muted);
}

@media (min-width: 700px) {
  .creds { grid-template-columns: repeat(2, 1fr); }
  /* خمس بطاقات في عمودين: الأخيرة تُوسَّط بنفس عرض أخواتها بدل أن تبقى يتيمة */
  /* width لا max-width: مع الهوامش التلقائية ينكمش الصندوق لعرض محتواه */
  .cred:last-child { grid-column: 1 / -1; width: calc(50% - 7px); margin-inline: auto; }
}

/* ── ١٤) الأسئلة الشائعة ───────────────────────────────────────────────── */
.faq { max-width: 800px; margin-inline: auto; display: grid; gap: 13px; }
.faq-item {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-brd); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.faq-item__q {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: start;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  padding: 21px 24px; font-size: 17px; font-weight: 700; color: var(--navy);
}
.faq-item__q .icon {
  width: 30px; height: 30px; border-radius: 999px; flex: none;
  display: grid; place-items: center;
  background: rgba(47,163,163,.14); color: var(--teal-deep);
  margin-inline-start: auto; transition: transform .28s ease, background .2s, color .2s;
}
.faq-item__q .icon svg { width: 17px; height: 17px; }
.faq-item__q[aria-expanded="true"] .icon { transform: rotate(180deg); background: var(--teal); color: #fff; }
.faq-item__a { padding: 0 24px 24px; color: var(--muted); font-size: 16.5px; }
.faq-item__a[hidden] { display: none; }

/* ── ١٤ب) التوثيقات ───────────────────────────────────────────────────── */
.quote {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px var(--card-pad) 26px;
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.quote__mark {
  font-family: var(--font-display); font-size: 46px; font-weight: 900;
  line-height: .8; color: var(--teal); opacity: .3; margin-bottom: 10px;
}
.quote p { color: #3D4552; font-size: 16.5px; }
.quote__who {
  margin-top: auto; padding-top: 20px;
  display: flex; align-items: center; gap: 9px;
  font-size: 14.5px; font-weight: 700; color: var(--teal-deep);
}
.quote__who::before {
  content: ''; width: 26px; height: 2px; border-radius: 2px;
  background: var(--teal); opacity: .5; flex: none;
}
.quotes-note {
  margin-top: 30px; text-align: center; color: var(--muted); font-size: 14.5px;
  max-width: 640px; margin-inline: auto; line-height: 1.9;
}

/* ── ١٥) النداء الأخير ─────────────────────────────────────────────────── */
.cta-final { padding: var(--pad-section) 0; }
.cta-final__inner {
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(620px 340px at 12% 0%, rgba(47,163,163,.5) 0%, transparent 62%),
    radial-gradient(540px 320px at 90% 100%, rgba(47,163,163,.26) 0%, transparent 60%),
    linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; border-radius: var(--radius);
  padding: 56px 26px; box-shadow: var(--shadow-lg);
}
.cta-final h2 { color: #fff; font-size: clamp(26px, 5.2vw, 38px); margin-bottom: 16px; }
.cta-final p { color: #C9D8EA; max-width: 580px; margin: 0 auto 30px; font-size: 17.5px; }
.cta-final__actions { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }
.cta-final__micro { margin-top: 24px; font-size: 14.5px; color: #A7BBD2; }
.cta-final .btn--glass { background: rgba(255,255,255,.92); }
.cta-final .btn--outline-light {
  background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.4);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.cta-final .btn--outline-light:hover { background: rgba(255,255,255,.2); border-color: #fff; }

/* ── ١٥ب) شريط الصور المائل (زخرفي بالكامل) ───────────────────────────── */
.marquee {
  position: relative; overflow: hidden;
  height: 380px; margin-bottom: 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee__stage {
  position: absolute; top: 50%; left: 50%;
  width: 210vw; display: flex; flex-direction: column; gap: 20px;
  transform: translate(-50%, -50%) rotate(-25deg);
}
.marquee__row { display: flex; overflow: hidden; }
.marquee__track {
  display: flex; flex: none;
  animation: marqueeLeft var(--speed, 120s) linear infinite;
  will-change: transform;
}
.marquee__track--rev { animation-name: marqueeRight; }
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__card {
  position: relative; flex: none;
  width: 280px; height: 176px; margin-inline-end: 20px;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 40px -18px rgba(30,58,95,.55);
}
/* cover + center: أي صورة مهما اختلفت أبعادها تملأ البطاقة بلا تمدّد ولا فراغ */
.marquee__card img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block; background: #DCE6EC;
}
.marquee__card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,58,95,.34) 0%, rgba(30,58,95,.5) 100%);
}

@keyframes marqueeLeft  { from { transform: translate3d(0, 0, 0); }    to { transform: translate3d(-50%, 0, 0); } }
@keyframes marqueeRight { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }

/* تلاشٍ أعلى وأسفل حتى يذوب الشريط في خلفية الصفحة */
.marquee__fade {
  position: absolute; inset-inline: 0; z-index: 2; height: 34%; pointer-events: none;
}
.marquee__fade--top    { top: 0;    background: linear-gradient(180deg, var(--bg-2) 0%, rgba(234,240,244,0) 100%); }
.marquee__fade--bottom { bottom: 0; background: linear-gradient(0deg,   var(--bg-2) 0%, rgba(234,240,244,0) 100%); }

@media (max-width: 599px) {
  .marquee { height: 280px; }
  .marquee__card { width: 200px; height: 128px; margin-inline-end: 14px; }
  .marquee__stage { gap: 14px; width: 260vw; }
}

/* ── ١٥ج) الصفحات الداخلية (عن فادي · المقالات) ───────────────────────── */
.page-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: calc(var(--header-space) + 40px) 0 34px;
}
.page-hero h1 {
  font-size: clamp(27px, 5.4vw, 44px); line-height: 1.4;
  max-width: 22ch; margin-inline: auto;
}
.page-hero h1 .accent { color: var(--teal-deep); }
.page-hero__sub {
  margin-top: 18px; color: var(--muted);
  font-size: clamp(16px, 2.2vw, 18.5px); max-width: 640px; margin-inline: auto;
}

/* فتات الطريق */
.crumbs {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px;
}
.crumbs a:hover { color: var(--teal-deep); }
.crumbs span { opacity: .55; }

/* جسم المقال، كرت زجاجي واحد يحتضن النص */
.prose {
  max-width: 820px; margin-inline: auto;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-brd); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px var(--card-pad) 38px;
}
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: clamp(21px, 3.4vw, 27px); margin-top: 38px; }
.prose h3 { font-size: clamp(18px, 2.6vw, 21px); margin-top: 28px; }
.prose p  { color: #3D4552; font-size: 17px; }
.prose strong { color: var(--navy); }
.prose ul { display: grid; gap: 11px; }
.prose ul li {
  position: relative; padding-inline-start: 24px; color: #3D4552; font-size: 16.5px;
}
.prose ul li::before {
  content: ''; position: absolute; inset-inline-start: 4px; top: 13px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal); opacity: .75;
}
.prose__lead { font-size: 18.5px; color: #333B47; }
.prose__note {
  background: rgba(47,163,163,.10); border: 1px solid rgba(47,163,163,.2);
  border-radius: var(--radius-sm); padding: 18px 20px; font-size: 16px; color: #1F5E5E;
}
.prose__note strong { color: #17494A; }

/* نداء نهاية المقال */
.article-cta {
  max-width: 820px; margin: 26px auto 0; text-align: center;
  background:
    radial-gradient(520px 300px at 15% 0%, rgba(47,163,163,.46) 0%, transparent 62%),
    linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; border-radius: var(--radius); padding: 38px 26px;
  box-shadow: var(--shadow-lg);
}
.article-cta h2 { color: #fff; font-size: clamp(21px, 3.6vw, 28px); margin-bottom: 12px; }
.article-cta p  { color: #C9D8EA; max-width: 520px; margin: 0 auto 24px; font-size: 16.5px; }

/* بطاقات فهرس المقالات */
.post-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-brd); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: var(--card-pad);
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card__tag {
  align-self: flex-start; background: rgba(47,163,163,.12);
  border: 1px solid rgba(47,163,163,.2); color: var(--teal-deep);
  font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 999px;
  margin-bottom: 15px;
}
.post-card h2 { font-size: 20.5px; margin-bottom: 10px; line-height: 1.5; }
.post-card p  { color: var(--muted); font-size: 16px; }
.post-card__more {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(30,58,95,.1);
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; color: var(--teal-deep);
}
.post-card__more svg { width: 17px; height: 17px; transition: transform .2s ease; }
.post-card:hover .post-card__more svg { transform: translateX(-4px); }

@media (min-width: 900px) {
  .prose { padding: 46px 48px 50px; }
  .article-cta { padding: 48px 40px; }
}

/* ── ١٦) الفوتر ────────────────────────────────────────────────────────── */
.footer { padding: 0 0 30px; }
.footer__inner {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-brd); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 42px var(--card-pad) 26px;
  color: var(--muted); font-size: 15.5px;
}
.footer a:hover { color: var(--teal-deep); }
.footer__grid { display: grid; gap: 32px; margin-bottom: 32px; }
.footer h4 { font-size: 16.5px; margin-bottom: 15px; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer__brand img {
  width: 52px; height: 52px; border-radius: var(--radius-xs); object-fit: cover;
  object-position: top center; border: 2px solid rgba(255,255,255,.8);
}
.footer__brand strong {
  font-family: var(--font-display); color: var(--navy); font-size: 17.5px;
  display: block; line-height: 1.35;
}
.footer__brand span { font-size: 13px; }
.footer__links { display: grid; gap: 10px; }
.footer__contact { display: grid; gap: 11px; }
.footer__contact a, .footer__contact span { display: flex; align-items: center; gap: 10px; }
.footer__contact svg { width: 17px; height: 17px; color: var(--teal-deep); flex: none; }
/* Footer Social */
/* المسافات هنا مأخوذة من القيم المستعملة أصلاً في الفوتر: 10px مثل
   .footer__links، و14px مثل .footer__brand — لا قيم جديدة */
.footer__social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.footer__social a {
  width: 44px; height: 44px;          /* مساحة لمس مريحة */
  display: grid; place-items: center;
  border-radius: 50%;
  color: inherit;                     /* نفس لون روابط الفوتر */
  transition: color .18s ease, background .18s ease;
}
.footer__social svg { width: 22px; height: 22px; fill: currentColor; }
.footer__social a:hover { color: var(--teal-deep); background: rgba(30,58,95,.06); }
.footer__social a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 50%; }

@media (max-width: 599px) {
  /* المساحة أضيق، فالصف يلتف ويتوسّط */
  .footer__social { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .footer__social a { transition: none; }
}

.footer__disclaimer {
  background: rgba(30,58,95,.06); border-radius: var(--radius-sm);
  padding: 16px 18px; font-size: 14px; line-height: 1.8;
  margin-bottom: 24px;
}
.footer__bottom {
  border-top: 1px solid rgba(30,58,95,.1); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  font-size: 14px;
}

/* ── ١٧) زر واتساب العائم ──────────────────────────────────────────────── */
.wa-float {
  position: fixed; z-index: 90; bottom: 22px; inset-inline-start: 22px;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal); color: #fff;
  box-shadow: 0 16px 36px -12px rgba(47,163,163,.9);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); background: #2B9797; }
.wa-float svg { width: 27px; height: 27px; }

/* ── ١٨) نقاط التجاوب ──────────────────────────────────────────────────── */
@media (min-width: 600px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  /* كروت الثقة الأربعة تبقى ٢×٢ على كل المقاسات، لا صفّ يتيم */
  #trust .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .certs { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

@media (min-width: 900px) {
  :root { --pad-section: 96px; --card-pad: 30px; --header-h: 66px; }
  body { font-size: 17.5px; }

  .hero { padding: calc(var(--header-space) + 60px) 0 76px; }
  .nav { display: flex; }
  .nav-toggle { display: none; }

  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .certs { grid-template-columns: repeat(5, 1fr); }

  .about-grid { grid-template-columns: 280px 1fr; gap: 48px; padding: 44px 40px; }
  .about__figure { width: 100%; }

  .cta-final__inner { padding: 72px 40px; }
  .footer__inner { padding: 50px 42px 28px; }
}

/* خط زمني يربط خطوات الرحلة على الشاشات الكبيرة */
@media (min-width: 900px) {
  .steps { position: relative; }
  .step::after {
    content: ''; position: absolute; top: 48px; inset-inline-end: -16px;
    width: 16px; height: 2px; background: rgba(30,58,95,.18);
  }
  .step:last-child::after { display: none; }
}

/* الزجاج أخفّ على الشاشات الصغيرة حفاظاً على الأداء */
@media (max-width: 599px) {
  :root { --glass-blur: 14px; --glass-bg: rgba(255,255,255,.62); }

  /* ضغط عناصر الهيدر حتى يتّسع الاسم + الزر + القائمة في شريط واحد */
  .header { padding-inline: 14px; }
  .header__pill { gap: 8px; padding: 8px 8px 8px 16px; }
  .brand__name { font-size: 17.5px; }
  .header__cta { padding: 9px 16px; font-size: 14px; }
}
@media (max-width: 379px) {
  /* شارة البانر صارت أطول بعد إضافة «أو حضورياً»، تصغير طفيف يمنع الالتفاف */
  .badge { font-size: 13px; padding: 8px 15px; gap: 7px; }
}
@media (max-width: 359px) {
  .header__cta { padding: 8px 13px; font-size: 13px; }
  .brand__name { font-size: 16px; }
}

/* متصفحات لا تدعم backdrop-filter، نرفع العتامة حتى يبقى النص مقروءاً */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass-bg: rgba(255,255,255,.86); --glass-strong: rgba(255,255,255,.94); }
  .header__pill, .mobile-nav { background: rgba(255,255,255,.94); }
}

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; transition-duration: .001ms !important;
  }
  /* الحركات اللانهائية تُوقَف تماماً، لا تُسرَّع، حتى لا تستهلك المعالج */
  .blob, .aurora, .marquee__track, .fog span { animation: none !important; }
  /* الكانفس لا يُرسم أصلاً من main.js، وهذا احتياط إضافي */
  .hero__particles { display: none; }
  /* عناصر البطل تظهر مباشرة بلا تتابع */
  .hero__inner > * { animation: none !important; opacity: 1; transform: none; }
  /* الشريط الزخرفي بلا حركة لا يضيف شيئاً، يُخفى */
  .marquee { display: none; }
}
