/* ==========================================================================
   MAD Marketing — نظام التصميم
   ألوان الهوية: أزرق ولوجو MAD + أخضر الكيوي
   ملاحظة: كل المسافات مكتوبة بـ logical properties (inline/block) عشان
   نسخة العربي RTL تشتغل من نفس الملف من غير أي كود إضافي.
   ========================================================================== */

/* --------------------------------------------------------------  1. Tokens */
:root {
  /* الهوية اللونية */
  --navy:        #003D6B;
  --navy-dark:   #00284A;
  --navy-deep:   #001B33;
  --blue:        #037EC6;
  --blue-soft:   #E6F3FB;
  --kiwi:        #9BC53D;   /* اللون الأساسي — أخضر الكيوي */
  --kiwi-deep:   #6FA02B;   /* للـ hover وللنص فوق الأبيض */
  --kiwi-soft:   #F1F8E3;
  --cream:       #F9F9F6;
  --white:       #FFFFFF;
  --ink:         #0F1B26;
  --muted:       #5B6B7A;
  --muted-light: #9AA9B6;
  --line:        rgba(0, 61, 107, .10);
  --line-dark:   rgba(255, 255, 255, .12);
  --wa:          #25D366;

  /* خطوط */
  --font-en: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-ar: "Tajawal", "Montserrat", system-ui, sans-serif;
  --font: var(--font-en);

  /* مقاسات */
  --wrap: 1200px;
  --radius:    14px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* ظلال */
  --shadow-sm: 0 2px 8px rgba(0, 40, 74, .06);
  --shadow:    0 12px 32px rgba(0, 40, 74, .10);
  --shadow-lg: 0 24px 60px rgba(0, 40, 74, .16);
  --shadow-kiwi: 0 12px 28px rgba(155, 197, 61, .35);

  --ease: cubic-bezier(.4, 0, .2, 1);

  /* موضع الماوس — بيغذّي تأثير الـ spotlight في الـ hero */
  --mouse-x: 50%;
  --mouse-y: 50%;
}

html[lang="ar"] { --font: var(--font-ar); }

/* ---------------------------------------------------------------  2. Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-block-start: 90px; /* عشان الـ navbar الثابت ما يغطّيش العناوين */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

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

/* العربي أعرض شوية في الارتفاع، فبنرخي الـ line-height */
html[lang="ar"] body { line-height: 1.9; }

/* ------------------------------------------------------------  3. Utilities */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); position: relative; }
.section--navy { background: var(--navy-deep); color: var(--white); }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--kiwi-deep);
  margin-block-end: 1rem;
}
.eyebrow::before {
  content: "";
  inline-size: 28px;
  block-size: 2px;
  background: var(--kiwi);
  border-radius: 2px;
}
.section--navy .eyebrow { color: var(--kiwi); }
/* العربي مالوش حروف كابيتال، فالـ letter-spacing بيبوّظ الكلمة */
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .9rem; }

.title {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--navy);
}
.section--navy .title { color: var(--white); }
html[lang="ar"] .title { letter-spacing: 0; line-height: 1.35; }

.title .accent { color: var(--kiwi-deep); }
.section--navy .title .accent { color: var(--kiwi); }

.lead {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--muted);
  max-inline-size: 62ch;
  margin-block-start: 1.1rem;
}
.section--navy .lead { color: rgba(255, 255, 255, .72); }

.section-head { margin-block-end: 3.5rem; }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }

/* -----------------------------------------------------------  4. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.9rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

/* الأخضر فاتح، فالنص جواه كحلي غامق عشان يفضل مقروء (WCAG AA) */
.btn--primary {
  background: var(--kiwi);
  color: var(--navy-deep);
  box-shadow: var(--shadow-kiwi);
}
.btn--primary:hover { background: var(--kiwi-deep); color: var(--white); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .35);
}
.btn--ghost:hover { border-color: var(--kiwi); color: var(--kiwi); }

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn--outline:hover { border-color: var(--kiwi); color: var(--kiwi-deep); }

.btn__arrow { transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
/* في RTL السهم بيتقلب مع الاتجاه */
html[dir="rtl"] .btn__arrow { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .btn__arrow { transform: scaleX(-1) translateX(4px); }

/* رابط التخطّي — يظهر فقط عند التنقّل بالكيبورد (وصول أفضل) */
.skip {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 300;
  padding: .8rem 1.4rem;
  background: var(--kiwi);
  color: var(--navy-deep);
  font-weight: 700;
  border-radius: 999px;
  transform: translateY(-200%);
  transition: transform .25s var(--ease);
}
.skip:focus { transform: translateY(0); }

/* ------------------------------------------------------------  5. Navbar */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
              padding .35s var(--ease);
  padding-block: 1.1rem;
}
.nav.is-stuck {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  padding-block: .7rem;
}

.nav__inner { display: flex; align-items: center; gap: 2rem; }

.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand__icon { inline-size: 46px; transition: inline-size .35s var(--ease); }
.nav.is-stuck .brand__icon { inline-size: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; color: var(--white); transition: color .35s var(--ease); }
.brand__name b { color: var(--kiwi); font-weight: 800; }
.brand__tag {
  font-size: .58rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6); transition: color .35s var(--ease);
  /* الشرطة في e-commerce نقطة كسر مسموحة عند المتصفح، فتنقسم الكلمة
     على سطرين. nowrap يمنع ذلك — والعنصر مخفي أصلًا على الشاشات الضيقة */
  white-space: nowrap;
}
.nav.is-stuck .brand__name { color: var(--navy); }
.nav.is-stuck .brand__name b { color: var(--kiwi-deep); }
.nav.is-stuck .brand__tag { color: var(--muted); }
html[lang="ar"] .brand__tag { letter-spacing: .04em; font-size: .65rem; }

.nav__links { display: flex; align-items: center; gap: 1.9rem; margin-inline-start: auto; }
.nav__link {
  position: relative;
  font-size: .92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
  transition: color .25s var(--ease);
  padding-block: .3rem;
}
.nav.is-stuck .nav__link { color: var(--navy); }
.nav__link::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  inline-size: 0;
  block-size: 2px;
  background: var(--kiwi);
  border-radius: 2px;
  transition: inline-size .25s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { inline-size: 100%; }
.nav__link:hover, .nav__link.is-active { color: var(--kiwi); }
.nav.is-stuck .nav__link:hover, .nav.is-stuck .nav__link.is-active { color: var(--kiwi-deep); }

.nav__actions { display: flex; align-items: center; gap: .9rem; flex-shrink: 0; }

/* مبدّل اللغة */
.lang {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .9rem;
  border: 1.5px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--white);
  transition: all .25s var(--ease);
}
.lang:hover { border-color: var(--kiwi); color: var(--kiwi); }
.nav.is-stuck .lang { border-color: var(--line); color: var(--navy); }
.nav.is-stuck .lang:hover { border-color: var(--kiwi); color: var(--kiwi-deep); }

.nav .btn--primary { padding: .7rem 1.4rem; font-size: .88rem; }

/* زرار المينيو للموبايل */
.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  inline-size: 44px;
  block-size: 44px;
  position: relative;
  flex-shrink: 0;
}
.burger span {
  position: absolute;
  inset-inline: 10px;
  block-size: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s var(--ease);
}
.nav.is-stuck .burger span { background: var(--navy); }
.burger span:nth-child(1) { inset-block-start: 15px; }
.burger span:nth-child(2) { inset-block-start: 21px; }
.burger span:nth-child(3) { inset-block-start: 27px; }
.burger.is-open span:nth-child(1) { inset-block-start: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { inset-block-start: 21px; transform: rotate(-45deg); }

/* --------------------------------------------------------------  6. Hero */
.hero {
  position: relative;
  min-block-size: 100svh;
  display: flex;
  align-items: center;
  padding-block: 9rem 3rem;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(3, 126, 198, .30), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(155, 197, 61, .22), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy-dark) 55%, var(--navy) 100%);
  color: var(--white);
  overflow: hidden;
}

/* شبكة خفيفة في الخلفية */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
  pointer-events: none;
}

/* تأثير الضوء اللي بيتبع الماوس */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at var(--mouse-x) var(--mouse-y),
              rgba(155, 197, 61, .13), transparent 45%);
  pointer-events: none;
  transition: opacity .4s var(--ease);
}

/* الطبقات في الهيرو: الشبكة والضوء (‎::before/::after) ثم الـ canvas
   ثم المحتوى — ترتيب z-index صريح حتى لا يحجب أيّها الآخر */
.hero__canvas {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: .75;
}

.hero__inner { position: relative; z-index: 2; }
.hero__content { max-inline-size: 60rem; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 1.1rem;
  background: rgba(155, 197, 61, .14);
  border: 1px solid rgba(155, 197, 61, .3);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--kiwi);
  margin-block-end: 1.6rem;
}
.hero__badge .dot {
  inline-size: 7px; block-size: 7px; border-radius: 50%;
  background: var(--kiwi);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.hero__title {
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.03em;
}
html[lang="ar"] .hero__title { letter-spacing: 0; line-height: 1.3; font-weight: 800; }
.hero__title .accent {
  color: var(--kiwi);
  position: relative;
  display: inline-block;
}
/* خط يُرسم تحت الكلمة المميّزة بعد ظهور العنوان */
.hero__title .accent::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: .08em;
  inline-size: 100%;
  block-size: .12em;
  background: rgba(155, 197, 61, .35);
  border-radius: 999px;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: inline-start;
  animation: draw-underline .9s var(--ease) .9s forwards;
}
@keyframes draw-underline { to { transform: scaleX(1); } }

/* الكلمات تظهر تباعًا أثناء قراءة الزائر للسطر */
.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(.5em);
  animation: word-in .6s var(--ease) forwards;
}
@keyframes word-in { to { opacity: 1; transform: none; } }

/* أيقونات الخدمات تطفو طفوًا خفيفًا — حركة دائمة بلا إلهاء */
.service__icon { animation: float-soft 5s ease-in-out infinite; }
.services__grid .service:nth-child(2n) .service__icon { animation-delay: -1.6s; }
.services__grid .service:nth-child(3n) .service__icon { animation-delay: -3.2s; }
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.service:hover .service__icon { animation-play-state: paused; }

.hero__lead {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  color: rgba(255, 255, 255, .74);
  max-inline-size: 46ch;
  margin-block-start: 1.5rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-block-start: 2.5rem; }

/* شريط الأرقام تحت الهيرو */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-block-start: clamp(3rem, 7vw, 5rem);
  padding-block-start: 2.5rem;
  border-block-start: 1px solid var(--line-dark);
}
.stat__num {
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  font-weight: 900;
  color: var(--kiwi);
  line-height: 1;
  letter-spacing: -.02em;
}
.stat__label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-block-start: .6rem;
}
html[lang="ar"] .stat__label { letter-spacing: 0; text-transform: none; font-size: .88rem; }

/* -------------------------------------------------------------  7. About */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.about__body p + p { margin-block-start: 1.1rem; }
.about__body p { color: var(--muted); }

.pillars { display: grid; gap: 1.2rem; }
.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar__icon {
  inline-size: 48px; block-size: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--kiwi-soft);
  color: var(--kiwi-deep);
  margin-block-end: 1.1rem;
}
.pillar__title { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin-block-end: .5rem; }
.pillar__text { font-size: .95rem; color: var(--muted); }

/* الأسواق اللي بنخدمها */
.markets { margin-block-start: 2.2rem; }
.markets__label {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-block-end: .9rem;
}
html[lang="ar"] .markets__label { letter-spacing: 0; text-transform: none; font-size: .9rem; }
/* خريطة الوطن العربي — الحدود صورة منفصلة والنقاط طبقة فوقها */
.marketmap {
  position: relative;
  margin-block-end: 1.4rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, rgba(3, 126, 198, .05), rgba(155, 197, 61, .06));
  border: 1px solid var(--line);
  padding: .6rem;
}
.marketmap__img { inline-size: 100%; block-size: auto; display: block; }

/*
 * left و top الفيزيائيتان لا inset-inline-start المنطقية.
 * الخريطة صورة ثابتة لا تنقلب مع اتجاه الصفحة، فاستخدام الخاصية
 * المنطقية كان يقيس من الحافة اليمنى في العربية فتهاجر النقاط
 * من الخليج إلى وسط أفريقيا.
 */
.marketmap__spot {
  position: absolute;
  /* الترتيب مهم: (طول × عدد بلا وحدة) صالح، أما (نسبة × نسبة) فغير
     صالح في calc() ويجعل المتصفح يُسقط السطر كله فتختفي النقطة.
     لذلك يصل --x عددًا مجرّدًا من القالب بلا علامة نسبة مئوية. */
  left: calc(.6rem + (100% - 1.2rem) * var(--x) / 100);
  top:  calc(.6rem + (100% - 1.2rem) * var(--y) / 100);
  inline-size: 0; block-size: 0;
  /* ظاهرة افتراضيًا: لو لم يعمل JavaScript فلن يُضاف is-in، وإخفاؤها
     افتراضيًا كان سيبقيها مخفيّة إلى الأبد. الدخول المتدرّج يأتي من
     الحركة بوضع both الذي يطبّق حالة البداية أثناء التأخير. */
  opacity: 1;
}
.marketmap.is-in .marketmap__spot {
  animation: spot-in .45s var(--ease) both;
  animation-delay: calc(var(--i) * .13s);
}
@keyframes spot-in {
  from { opacity: 0; scale: .4; }
  to   { opacity: 1; scale: 1; }
}

.marketmap__dot,
.marketmap__pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  translate: -50% -50%;
}

.marketmap__dot {
  inline-size: 11px; block-size: 11px;
  background: var(--kiwi);
  border: 2.5px solid var(--white);
  box-shadow: 0 2px 6px rgba(0, 40, 74, .35);
  z-index: 2;
}
.marketmap__pulse {
  inline-size: 11px; block-size: 11px;
  background: var(--kiwi);
  z-index: 1;
}
.marketmap.is-in .marketmap__pulse {
  animation: spot-pulse 2.6s var(--ease) infinite;
  animation-delay: calc(.6s + var(--i) * .32s);
}
@keyframes spot-pulse {
  0%   { scale: 1;   opacity: .55; }
  70%  { scale: 3.4; opacity: 0; }
  100% { scale: 3.4; opacity: 0; }
}

@media (max-width: 560px) {
  .marketmap__dot, .marketmap__pulse { inline-size: 9px; block-size: 9px; }
}

.markets__list { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .88rem; font-weight: 600; color: var(--navy);
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--kiwi); background: var(--kiwi-soft); }
.chip__flag { font-size: 1.05rem; line-height: 1; }

/* شريط المؤسّس: بطاقة واحدة في المنتصف بعرض محدود — لا تمتدّ على
   عرض الشاشة كاملًا فتفقد تركيزها */
.founder-band__inner { display: flex; justify-content: center; }
.founder { max-inline-size: 480px; inline-size: 100%; }

/* بطاقة المؤسّس: النصّ في الأعلى والصورة كاملة تحته بلا قصّ */
.founder {
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--white);
  box-shadow: var(--shadow);
}
.founder__body { padding: 1.7rem 1.7rem 1.4rem; }

.founder__role {
  display: block;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--kiwi);
  margin-block-end: .35rem;
}
html[lang="ar"] .founder__role { letter-spacing: 0; text-transform: none; font-size: .85rem; }

.founder__name { font-size: 1.45rem; font-weight: 800; line-height: 1.2; }
.founder__bio  { font-size: .92rem; color: rgba(255, 255, 255, .72); margin-block-start: .7rem; }

.founder__link {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-block-start: .9rem;
  font-size: .85rem; font-weight: 700; color: var(--kiwi);
  transition: opacity .25s var(--ease);
}
.founder__link:hover { opacity: .75; }

/* الصورة كاملة بعرض البطاقة — لا دائرة ولا قصّ */
.founder__photo {
  inline-size: 100%;
  block-size: auto;
  display: block;
  margin-block-start: auto;
}

/* ----------------------------------------------------------  8. Services */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.service {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.9rem;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
/* شريط أخضر بيظهر من فوق عند الـ hover */
.service::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 4px;
  background: linear-gradient(90deg, var(--kiwi), var(--blue));
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform .4s var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service:hover::before { transform: scaleX(1); }

.service__icon {
  inline-size: 56px; block-size: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--kiwi-soft), var(--blue-soft));
  color: var(--navy);
  margin-block-end: 1.4rem;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.service:hover .service__icon {
  background: linear-gradient(135deg, var(--kiwi), var(--kiwi-deep));
  color: var(--white);
  transform: rotate(-6deg) scale(1.05);
}
.service__title { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-block-end: .7rem; }
.service__text { font-size: .95rem; color: var(--muted); }
.service__list { margin-block-start: 1.1rem; display: grid; gap: .45rem; }
.service__list li {
  font-size: .88rem; color: var(--muted);
  display: flex; align-items: flex-start; gap: .5rem;
}
.service__list li::before {
  content: "";
  flex-shrink: 0;
  inline-size: 6px; block-size: 6px;
  border-radius: 50%;
  background: var(--kiwi);
  margin-block-start: .62em;
}

/* ---------------------------------------------------------  9. Why Us */
.why__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.why__list { display: grid; gap: .5rem; }
.why__item {
  display: flex;
  gap: 1.5rem;
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.why__item:hover {
  background: rgba(255, 255, 255, .04);
  border-color: var(--line-dark);
  transform: translateX(6px);
}
html[dir="rtl"] .why__item:hover { transform: translateX(-6px); }
.why__num {
  flex-shrink: 0;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--kiwi);
  opacity: .5;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.why__title { font-size: 1.1rem; font-weight: 800; color: var(--white); margin-block-end: .4rem; }
.why__text { font-size: .95rem; color: rgba(255, 255, 255, .68); }

/* --------------------------------------------------------  10. Portfolio */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-block-end: 2.5rem; }
.filter {
  padding: .55rem 1.3rem;
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  font-size: .88rem; font-weight: 700; color: var(--muted);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.filter:hover { border-color: var(--kiwi); color: var(--kiwi-deep); }
.filter.is-active { background: var(--kiwi); border-color: var(--kiwi); color: var(--navy-deep); }

.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.4rem;
}
/* بطاقة العمل: لا لون من ألوان التصميم يلامس اللوجو.
   الحاوية شفافة، واللوجو وحده داخل مربّع أبيض، والبيانات نصّ عادي
   أسفله على خلفية القسم — لا شريط ملوّن ولا طبقة فوق اللوجو */
.work {
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  cursor: pointer;
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.work:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
/* display:none يُخرج البطاقة من التخطيط فورًا — وهو المطلوب حتى
   تُعاد ترتيب البقيّة، والحركة الناعمة تتكفّل بها حيلة FLIP في JS */
.work.is-hidden { display: none; }

/* البطاقة الظاهرة حديثًا تدخل بتلاشٍ وتكبير خفيف بدل الظهور المفاجئ */
.work.is-entering {
  opacity: 0;
  transform: scale(.94);
}
.work:not(.is-entering) {
  opacity: 1;
  transition: opacity .4s var(--ease), transform .5s cubic-bezier(.4, 0, .2, 1);
}
/* المربّع الأبيض حامل اللوجو — أبيض خالص لا لون هوية.
   contain لا cover حتى لا يُقصّ اللوجو. الصور الحقيقية بنسبة 4:3
   تملأ الإطار تمامًا بلا فراغ */
.work__img {
  inline-size: 100%;
  aspect-ratio: 4 / 3;
  block-size: auto;
  /* الصورة مُجهَّزة مسبقًا بنسبة 4:3 وخلفية اللوجو نفسه، فتملأ
     البطاقة من الحافة للحافة بلا حشو ولا فراغ */
  object-fit: cover;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.work:hover .work__img {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
/* البيانات: نصّ عادي على خلفية القسم، بلا أي صندوق ملوّن */
.work__overlay {
  position: static;
  background: transparent;
  display: flex;
  flex-direction: column;
  padding: 1.1rem .25rem 0;
  margin-block-start: 0;
}
.work__cat {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--kiwi-deep); margin-block-end: .4rem;
}
html[lang="ar"] .work__cat { letter-spacing: 0; text-transform: none; font-size: .82rem; }
.work__title { font-size: 1.1rem; font-weight: 800; color: var(--navy); }
.work__result { font-size: .85rem; color: var(--muted); margin-block-start: .3rem; }

/* الشوريل — فيديوهات */
/* مسافة أسفل الشوريل: بلا هامش سفلي يلتصق آخر صفّ من الفيديوهات
   بالقسم التالي فيبدو القسمان قسمًا واحدًا */
.showreel { margin-block-start: 4rem; margin-block-end: 1rem; }
/*
 * min(320px, 100%) وليس 320px وحدها: على شاشة أضيق من 320 بكسل يفرض
 * الرقم الثابت عمودًا أعرض من الحاوية، فيخرج المحتوى لليسار ويبدو غير
 * متمركز. الدالة min تجعل العمود يتقلّص مع الشاشة بدل أن يطفح.
 */
/* أربعة فيديوهات جنبًا إلى جنب على الشاشات الكبيرة واثنان على الموبايل —
   مطابقة لتخطيط الموقع المرجعي. أعمدة محدّدة لا auto-fit حتى لا يتغيّر
   العدد بتغيّر عرض البطاقة */
.showreel__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .showreel__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .showreel__grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; } }

/* بطاقة مشغّل مضمَّن: ارتفاع ثابت لأن ارتفاع إطار إنستجرام متغيّر
   ولا يمكن قياسه من خارج الإطار */
.reel--embed {
  aspect-ratio: auto;
  block-size: 640px;
  inline-size: 100%;
  max-inline-size: 400px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  cursor: default;
  position: relative;
}
.reel__player { inline-size: 100%; block-size: 100%; border: 0; display: block; position: relative; z-index: 1; }

/* بطاقة فيديو مستضاف عندنا — نسبة الريلز الرأسية */
.reel--video {
  aspect-ratio: 9 / 16;
  block-size: auto;
  inline-size: 100%;
  /* تملأ عمودها كاملًا — العمود هو ما يحدّد المقاس لا البطاقة */
  max-inline-size: none;
  background: var(--navy-deep);
  border: 0;
}
.reel__video {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  display: block;
  background: var(--navy-deep);
}
/*
 * زرّ التشغيل يُزال من الصفحة أثناء التشغيل لا يُخفى بالشفافية فقط.
 * الإخفاء بالشفافية مع استعادته عند المرور كان يعيده على الموبايل —
 * لأن اللمسة تُسجَّل كـ hover ثابت — فيحجب منتصف الفيديو.
 */
.reel--video .reel__play {
  border: 0;
  cursor: pointer;
  z-index: 2;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.reel--video.is-playing .reel__play { display: none; }

/* مؤشّر تحميل يختفي فور ظهور المشغّل */
.reel__loading {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: var(--cream);
}
.reel--embed.is-loaded .reel__loading { display: none; }
.reel__loading span {
  inline-size: 30px; block-size: 30px;
  border: 3px solid var(--line);
  border-block-start-color: var(--kiwi);
  border-radius: 50%;
  animation: reel-spin .9s linear infinite;
}
@keyframes reel-spin { to { transform: rotate(360deg); } }
.reel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: var(--navy-dark);
  cursor: pointer;
}
.reel__img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.reel:hover .reel__img { transform: scale(1.06); }
.reel__play {
  position: absolute;
  inset-block-start: 50%; inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  inline-size: 62px; block-size: 62px;
  border-radius: 50%;
  background: rgba(155, 197, 61, .92);
  color: var(--navy-deep);
  display: grid; place-items: center;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
html[dir="rtl"] .reel__play { transform: translate(50%, -50%); }
.reel:hover .reel__play { background: var(--kiwi); transform: translate(-50%, -50%) scale(1.12); }
html[dir="rtl"] .reel:hover .reel__play { transform: translate(50%, -50%) scale(1.12); }
.reel__label {
  position: absolute;
  inset-block-end: 0; inset-inline: 0;
  padding: 1.2rem;
  background: linear-gradient(to top, rgba(0, 27, 51, .9), transparent);
  color: var(--white);
  font-size: .92rem; font-weight: 700;
}

/* ----------------------------------------------------------  11. Clients */
.clients { padding-block: 4.5rem; background: var(--white); border-block: 1px solid var(--line); }
.clients__title {
  text-align: center;
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-light); margin-block-end: 2.5rem;
}
html[lang="ar"] .clients__title { letter-spacing: 0; text-transform: none; font-size: .95rem; }

/* شريط لوجوهات بيتحرك لوحده */
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  inline-size: max-content;
  gap: 1.25rem;
  padding-block: .5rem;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
/* في RTL بنعكس اتجاه الحركة */
html[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* كل لوجو داخل كرت مستقل — يفصل اللوجوهات عن بعضها ويمنع
   اختلاف أحجامها وخلفياتها من جعل الشريط يبدو غير مرتّب.
   الحشو صغير عمدًا: المطلوب أن يملأ اللوجو الكرت لا أن يتوه فيه */
.marquee__item {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  inline-size: 240px;
  block-size: 180px;
  padding: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.marquee__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--kiwi);
}
/* اللوجوهات بألوانها الكاملة — لا تحويل للأبيض والأسود */
.marquee__item img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}
/* بديل نصّي لو اللوجو لسه مترفعش */
.marquee__item span {
  font-weight: 800; font-size: 1.15rem; color: var(--muted-light);
  letter-spacing: .04em; white-space: nowrap;
  transition: color .3s var(--ease);
}
.marquee__item:hover span { color: var(--navy); }

/* ---------------------------------------------  11ب. منحنى النمو */
.growth .section-head { margin-block-end: 2.5rem; }

.chart {
  margin: 0;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xl);
  padding: clamp(1rem, 3vw, 2rem);
  position: relative;
}
.chart__svg { inline-size: 100%; block-size: auto; overflow: visible; }

/*
 * الخط يُرسم بحيلة stroke-dasharray: نجعل الشرطة بطول المسار كاملًا
 * ثم نحرّك الإزاحة من الطول إلى صفر، فيبدو كأنه يُرسم بقلم.
 * الطول يُحسب في JavaScript لأنه يختلف باختلاف عدد النقاط.
 */
.chart__line {
  stroke-dasharray: var(--len, 2000);
  stroke-dashoffset: var(--len, 2000);
}
.chart.is-drawn .chart__line {
  transition: stroke-dashoffset 1.8s cubic-bezier(.4, 0, .2, 1);
  stroke-dashoffset: 0;
}

.chart__area { opacity: 0; }
.chart.is-drawn .chart__area { transition: opacity 1s var(--ease) .8s; opacity: 1; }

/* النقاط تظهر تباعًا مع تقدّم الخط */
.chart__node { opacity: 0; }
.chart.is-drawn .chart__node {
  animation: node-in .45s var(--ease) forwards;
  animation-delay: calc(.5s + var(--i) * .2s);
}
@keyframes node-in { to { opacity: 1; } }

.chart__dot  { fill: var(--kiwi); stroke: var(--navy-deep); stroke-width: 2.5; }
.chart__halo { fill: rgba(155, 197, 61, .18); transform-origin: center; }
.chart__node:hover .chart__halo,
.chart__node:focus-visible .chart__halo { animation: halo-pulse 1.4s var(--ease) infinite; }
@keyframes halo-pulse {
  0%, 100% { r: 14; opacity: .18; }
  50%      { r: 20; opacity: .32; }
}

.chart__value {
  fill: #fff;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.chart__label {
  fill: rgba(255, 255, 255, .5);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.chart__node { cursor: default; }
.chart__node:focus-visible { outline: none; }
.chart__node:focus-visible .chart__dot { stroke: #fff; }

/* الرقم الأخير مبرَزًا أسفل الرسم */
.chart__caption {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .6rem;
  margin-block-start: .5rem;
  padding-block-start: 1.2rem;
  border-block-start: 1px solid var(--line-dark);
}
.chart__caption strong {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--kiwi);
  line-height: 1;
}
.chart__caption span { color: rgba(255, 255, 255, .6); font-size: .95rem; }

.chart__note {
  text-align: center;
  margin-block-start: 1.2rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .38);
}

@media (max-width: 560px) {
  .chart__value { font-size: 13px; }
  .chart__label { font-size: 11px; }
}

/* -------------------------------------------------------------  12. CTA */
.cta {
  background: linear-gradient(135deg, var(--kiwi) 0%, var(--kiwi-deep) 100%);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset-block-start: -50%;
  inset-inline-end: -10%;
  inline-size: 420px; block-size: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.cta__inner { position: relative; z-index: 1; }
.cta__title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 900;
  color: var(--navy-deep);
  line-height: 1.2;
}
.cta__text { color: rgba(0, 27, 51, .72); margin-block-start: .9rem; max-inline-size: 52ch; margin-inline: auto; }
.cta .btn--primary { background: var(--navy-deep); color: var(--white); box-shadow: 0 12px 28px rgba(0, 27, 51, .28); margin-block-start: 2rem; }
.cta .btn--primary:hover { background: var(--navy); color: var(--white); }

/* ---------------------------------------------------------  13. Contact */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }

.info { display: grid; gap: 1.4rem; margin-block-start: 2.5rem; }
.info__item { display: flex; gap: 1.1rem; align-items: flex-start; }
.info__icon {
  flex-shrink: 0;
  inline-size: 46px; block-size: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: rgba(155, 197, 61, .14);
  color: var(--kiwi);
}
.info__label {
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .45); margin-block-end: .25rem;
}
html[lang="ar"] .info__label { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.info__value { font-size: 1rem; font-weight: 600; color: var(--white); transition: color .25s var(--ease); }
a.info__value:hover { color: var(--kiwi); }

.socials { display: flex; gap: .7rem; margin-block-start: 2.5rem; }
.social {
  inline-size: 44px; block-size: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--line-dark);
  color: rgba(255, 255, 255, .7);
  transition: all .25s var(--ease);
}
.social:hover { background: var(--kiwi); border-color: var(--kiwi); color: var(--navy-deep); transform: translateY(-3px); }

/* فورم التواصل */
.form {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xl);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-block-end: 1rem; }
.field label {
  display: block;
  font-size: .82rem; font-weight: 700;
  color: rgba(255, 255, 255, .7);
  margin-block-end: .5rem;
}
.field input, .field textarea, .field select {
  inline-size: 100%;
  padding: .9rem 1.1rem;
  background: rgba(255, 255, 255, .06);
  border: 1.5px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--white);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field textarea { min-block-size: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .35); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--kiwi);
  background: rgba(255, 255, 255, .09);
}
.field select option { background: var(--navy-dark); color: var(--white); }
.form .btn--primary { inline-size: 100%; margin-block-start: .6rem; }

.form__note { font-size: .82rem; color: rgba(255, 255, 255, .45); margin-block-start: 1rem; text-align: center; }
.form__status { margin-block-start: 1rem; font-size: .9rem; font-weight: 600; text-align: center; min-block-size: 1.4em; }
.form__status.is-ok { color: var(--kiwi); }
.form__status.is-err { color: #FF8A8A; }

/* ----------------------------------------------------------  14. Footer */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, .6); padding-block: 4rem 2rem; border-block-start: 1px solid var(--line-dark); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-block-end: 3rem;
  border-block-end: 1px solid var(--line-dark);
}
.footer__about { font-size: .92rem; margin-block-start: 1.2rem; max-inline-size: 34ch; }
.footer__title {
  font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--white); margin-block-end: 1.2rem;
}
html[lang="ar"] .footer__title { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.footer__links { display: grid; gap: .7rem; }
.footer__links a { font-size: .92rem; transition: color .25s var(--ease); }
.footer__links a:hover { color: var(--kiwi); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem;
  /* السطر السفلي يحمل الشعار نفسه — نمنع كسر e-commerce فيه أيضًا */
  white-space: nowrap;
  align-items: center; justify-content: space-between;
  padding-block-start: 2rem;
  font-size: .85rem;
}

/* ------------------------------------------------------  15. WhatsApp FAB */
.wa {
  position: fixed;
  inset-block-end: 24px;
  inset-inline-end: 24px;
  z-index: 90;
  inline-size: 58px; block-size: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .4);
  transition: transform .3s var(--ease);
}
.wa:hover { transform: scale(1.1); }
.wa::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: ring 2.2s var(--ease) infinite;
}
@keyframes ring {
  0%   { transform: scale(1);   opacity: .7; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* زرّ العودة لأعلى — فوق زرّ واتساب مباشرة على نفس المحور */
.to-top {
  position: fixed;
  inset-block-end: 94px;
  inset-inline-end: 24px;
  z-index: 90;
  inline-size: 46px; block-size: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--kiwi);
  color: var(--navy-deep);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(155, 197, 61, .38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease),
              visibility .3s var(--ease), background .25s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--kiwi-deep); color: #fff; transform: translateY(-3px); }

@media (max-width: 560px) {
  .to-top { inset-block-end: 78px; inset-inline-end: 16px; inline-size: 42px; block-size: 42px; }
}

/* -----------------------------------------------  16. Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
/* تأخير متدرّج للعناصر المتتالية */
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }
.reveal[data-delay="5"] { transition-delay: .45s; }

/* شريط تقدّم القراءة أعلى الصفحة */
.progress {
  position: fixed;
  inset-block-start: 0; inset-inline-start: 0;
  block-size: 3px;
  inline-size: 0;
  background: linear-gradient(90deg, var(--kiwi), var(--blue));
  z-index: 101;
  transition: inline-size .1s linear;
}

/* ---------------------------------------------------------  17. Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 20, 38, .93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__media { max-inline-size: min(92vw, 1100px); max-block-size: 88vh; border-radius: var(--radius-lg); }
.lightbox__media[hidden], .lightbox__frame[hidden] { display: none; }

/* مشغّل الفيديو: إنستجرام يعرض بطاقة رأسية، فنعطيها عرضًا ثابتًا
   وارتفاعًا يتبع الشاشة بدل نسبة ثابتة قد تقصّ أسفل البطاقة */
.lightbox__frame {
  inline-size: min(400px, 92vw);
  block-size: min(780px, 86vh);
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.lightbox__frame iframe { inline-size: 100%; block-size: 100%; border: 0; display: block; }
.lightbox__close {
  position: absolute;
  inset-block-start: 24px; inset-inline-end: 24px;
  inline-size: 46px; block-size: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .3);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  display: grid; place-items: center;
  transition: all .25s var(--ease);
}
.lightbox__close:hover { background: var(--kiwi); border-color: var(--kiwi); color: var(--navy-deep); }

/* ------------------------------------------------------  18. Responsive */
@media (max-width: 1024px) {
  .about__grid, .why__grid, .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .nav__links {
    position: fixed;
    inset-block-start: 0;
    inset-inline-end: 0;
    inline-size: min(84vw, 340px);
    block-size: 100dvh;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem 2.5rem;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    box-shadow: -20px 0 60px rgba(0, 0, 0, .3);
  }
  html[dir="rtl"] .nav__links { transform: translateX(-100%); }
  .nav__links.is-open { transform: translateX(0); }
  html[dir="rtl"] .nav__links.is-open { transform: translateX(0); }
  .nav__links .nav__link { font-size: 1.15rem; color: rgba(255, 255, 255, .85); }
  .nav.is-stuck .nav__links .nav__link { color: rgba(255, 255, 255, .85); }
  .nav__actions .btn--primary { display: none; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .form__row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 2rem); }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { justify-content: center; text-align: center; }
  .brand__tag { display: none; }
  .why__item { gap: 1rem; padding: 1.2rem; }
  .wa { inline-size: 52px; block-size: 52px; inset-block-end: 16px; inset-inline-end: 16px; }
}

/* --------------------------------------------  19. Motion / print prefs */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .wa, .progress, .hero::after { display: none !important; }
  body { background: #fff; color: #000; }
}
