/* ═══════════════════════════════════════════════════════════════════
   GULF PEARL COMPANY FOR CONTRACTING CO. LTD.
   شركة لؤلؤة الخليج للمقاولات العامة المحدودة · Established 2004

   DIGITAL DESIGN SYSTEM
   مشتق من دليل الهوية الرسمي:
   Brand-Guidelines-GULF PEARL final copy.pdf — MH Company, Nov 2024

   أسود #1E1E1E · ذهبي #D6AD60 · أبيض #FFFFFF
   Poppins 400/500/600 (لاتيني) · Helvetica Neue LT Arabic Roman 55 (عربي)
   نمط المونوغرام = التوقيع المعماري للعلامة
   ═══════════════════════════════════════════════════════════════════ */

/* تعريفات @font-face بـfonts.css — تُحمَّل قبل هذا الملف بوسم <link> */

/* ─────────────────────────────────────────────
   01 · TOKENS
   ───────────────────────────────────────────── */
:root {
  /* الألوان الرسمية — دليل الهوية ص06 — لا تُعدَّل */
  --brand-primary:   #D6AD60;
  --brand-dark:      #1E1E1E;
  --brand-light:     #FFFFFF;

  /* تدرّجات الهوية الرسمية — مسحوبة من صفحة اللوحة نفسها */
  --gold-2:          #D4AB5F;
  --gold-3:          #D2A95E;
  --gold-4:          #D1A85D;
  --dark-2:          #181818;
  --dark-3:          #151515;
  --dark-4:          #121212;
  --neutral:         #F1F2F2;   /* الأبيض الرسمي بحالته السطحية */
  --neutral-2:       #ECEDED;

  /* أسطح */
  --surface:         #FFFFFF;
  --surface-alt:     #F1F2F2;
  --surface-dark:    #1E1E1E;
  --surface-dark-2:  #181818;

  /* نص */
  --text-primary:    #1E1E1E;
  --text-secondary:  #4F4F4F;
  --text-tertiary:   #6E6E6E;
  --text-on-dark:    #FFFFFF;
  --text-on-dark-2:  rgba(255,255,255,.72);

  /* حدود */
  --border:          rgba(30,30,30,.13);
  --border-strong:   rgba(30,30,30,.28);
  --border-on-dark:  rgba(255,255,255,.16);

  --accent:          #D6AD60;
  --accent-deep:     #B8914A;   /* ذهبي أعمق للحالات التفاعلية فقط — خارج اللوحة */

  /* الذهبي الرسمي على أبيض = تباين 2.1:1 — يسقط بمعيار الوصولية للنص الصغير.
     فالذهبي يبقى كما هو للأشكال والأسطح الغامقة، ولنص صغير على سطح فاتح
     نستخدم غامقه المشتق (5.9:1 على الأبيض) — نفس العائلة اللونية. */
  --gold-ink:        #7E6020;

  /* شبكة ومسافات — سلّم 4px */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;

  --maxw: 1280px;
  --gutter: 32px;

  /* حواف وظلال — معمارية: حادة، بلا استدارة */
  --radius: 0px;
  --shadow-lift: 0 20px 44px -28px rgba(30,30,30,.42);

  /* حركة */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-arch: cubic-bezier(.65,0,.35,1);
  --dur-1: .25s; --dur-2: .45s; --dur-3: .8s;
}

/* ─────────────────────────────────────────────
   02 · RESET + أسطح المتصفح
   ───────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #C6C8C8 var(--surface-alt); scrollbar-width: thin; caret-color: var(--brand-primary); }

body {
  font-family: 'GPC Arabic', 'Poppins', system-ui, sans-serif;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* الخط العربي الرسمي بوزن واحد (Roman 55) — لا سماكة مُصطنعة */
  font-synthesis: none;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--brand-primary); color: var(--brand-dark); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--surface-alt); }
::-webkit-scrollbar-thumb { background: #C6C8C8; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-primary); }
:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 3px; }

.skip-link {
  position: absolute; top: -100px; inset-inline-start: var(--gutter); z-index: 200;
  background: var(--brand-dark); color: var(--brand-light); padding: 12px 22px;
  transition: top var(--dur-1);
}
.skip-link:focus { top: 12px; }

/* عنوان للقارئ الشاشي فقط — يحفظ تسلسل العناوين حيث لا عنوان مرئي */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ─────────────────────────────────────────────
   03 · TYPOGRAPHY
   ───────────────────────────────────────────── */
/* الأوزان الرسمية — دليل الهوية ص04:
   Poppins = Regular 400 · Medium 500 · SemiBold 600. لا يوجد Bold 700.
   العربي  = Roman 55 وزن واحد؛ التسلسل الهرمي بالحجم واللون والفراغ، لا بالسماكة. */
.lat { font-family: 'Poppins', sans-serif; direction: ltr; unicode-bidi: isolate; }
[dir="ltr"] body { font-family: 'Poppins', system-ui, sans-serif; line-height: 1.74; }

.display {
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 1.06; font-weight: 500; letter-spacing: -.028em;
  text-wrap: balance;
}
[dir="rtl"] .display { font-weight: 400; line-height: 1.3; letter-spacing: 0; font-size: clamp(34px, 5.6vw, 76px); }

h1, .h1 { font-size: clamp(31px, 4.8vw, 58px); line-height: 1.14; font-weight: 500; letter-spacing: -.02em; text-wrap: balance; }
h2, .h2 { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.2;  font-weight: 500; letter-spacing: -.018em; text-wrap: balance; }
h3, .h3 { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.4;  font-weight: 600; letter-spacing: -.012em; }
h4, .h4 { font-size: 17px; line-height: 1.5; font-weight: 600; }

/* عربي: وزن واحد — فرق الحجم يكبر ليعوّض غياب السماكة، وتباعد الأحرف صفر دائماً
   (أي letter-spacing يفكّ وصل الحروف العربية). */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { font-weight: 400; letter-spacing: 0; }
[dir="rtl"] h1, [dir="rtl"] h2 { line-height: 1.38; }
[dir="rtl"] h3, [dir="rtl"] h4 { line-height: 1.6; }
[dir="rtl"] h3, [dir="rtl"] .h3 { font-size: clamp(20px, 1.85vw, 25px); }
[dir="rtl"] h4, [dir="rtl"] .h4 { font-size: 18px; }

.body-lg { font-size: 18px; line-height: 1.78; color: var(--text-secondary); max-width: 68ch; }
p { max-width: 72ch; }
.small { font-size: 14px; }
.caption { font-size: 12.5px; color: var(--text-tertiary); }

/* ليبل لاتيني صغير — للبيانات الوصفية والأرقام، لا كعنوان فرعي فوق العناوين */
.meta-label {
  font-family: 'Poppins', sans-serif; direction: ltr; unicode-bidi: isolate;
  font-size: 10.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-ink);
}
.num { font-family: 'Poppins', sans-serif; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

/* على الأسطح الغامقة الذهبي الرسمي يعطي 7.9:1 — فيرجع بلونه الكامل */
.sec--dark .meta-label, .hero .meta-label, .banner .meta-label,
.site-footer .meta-label, .statement .meta-label,
.sec--dark .row__tag, .sec--dark .step__n,
.sec--dark .fact dt, .sec--dark .dash-list li::before { color: var(--brand-primary); }

/* لا Bold بالهوية — SemiBold هو أقصى وزن */
strong, b { font-weight: 600; }
[dir="rtl"] strong, [dir="rtl"] b { font-weight: 400; color: var(--text-primary); }

/* الخط الذهبي الافتتاحي — بديل الليبل فوق العناوين */
/* ═══ خطّ القياس ═══════════════════════════════════════════
   كان شريطاً ذهبياً 56×2 يتكرّر بكل قسم بلا أي دلالة. صار خطّ
   قياس بشُرطتَي طرف — الاصطلاح الذي يرسمه المهندس نفسه على
   المخطط. لغة تخصّ الشركة بحقّها، لا زخرفة مستعارة. */
.rule {
  position: relative; width: 84px; height: 1px;
  background: var(--brand-primary);
}
.rule::before, .rule::after {
  content: ''; position: absolute; top: -3px;
  width: 1px; height: 7px; background: var(--brand-primary);
}
.rule::before { inset-inline-start: 0; }
.rule::after  { inset-inline-end: 0; }
/* يُرسم لا يظهر: الشرطتان تثبتان والخط يمتدّ بينهما */
@media (prefers-reduced-motion: no-preference) {
  .reveal .rule { transform: scaleX(0); transform-origin: inline-start center; transition: transform .7s var(--ease-arch) .12s; }
  [dir="rtl"] .reveal .rule { transform-origin: right center; }
  [dir="ltr"] .reveal .rule { transform-origin: left center; }
  .reveal.is-in .rule { transform: scaleX(1); }
}

/* تعويض الوزن الواحد بالعربي: العناصر اللي كانت تعتمد SemiBold للحضور
   تأخذ حضورها من اللون والحجم بدلاً عنه — لأن العربي عندنا Roman 55 فقط. */
[dir="rtl"] .btn,
[dir="rtl"] .link-more,
[dir="rtl"] .filter,
[dir="rtl"] .lang-switch,
[dir="rtl"] .nav__links a,
[dir="rtl"] .fact dd,
[dir="rtl"] .shot-tile figcaption { font-weight: 400; letter-spacing: 0; }

[dir="rtl"] .btn        { font-size: 15.5px; }
[dir="rtl"] .btn--sm    { font-size: 14.5px; }
[dir="rtl"] .link-more  { font-size: 15.5px; }
[dir="rtl"] .nav__links a { font-size: 15px; }
[dir="rtl"] .filter     { font-size: 15px; }
[dir="rtl"] .filter.is-on { color: var(--brand-dark); }
[dir="rtl"] .fact dd    { font-size: 16.5px; }
[dir="rtl"] .lang-switch { font-size: 13px; }

/* ─────────────────────────────────────────────
   04 · PATTERN SYSTEM  §38–46
   التوقيع المعماري للعلامة — قناع يُلوَّن بالذهبي
   ───────────────────────────────────────────── */
.pat {
  position: absolute; pointer-events: none; z-index: 1;
  background-color: var(--brand-primary);
  -webkit-mask-image: url('../images/brand/gpc-pattern.png');
          mask-image: url('../images/brand/gpc-pattern.png');
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain;     mask-size: contain;
}

/* المقاييس §41 */
.pat--micro { width: 88px;  height: 200px; }
.pat--sec   { width: 190px; height: 430px; }
.pat--pri   { width: 320px; height: 725px; }
.pat--large { width: 560px; height: 1270px; }

/* الكثافة §42 */
.pat--clean     { opacity: 0; }
.pat--subtle    { opacity: .07; }
.pat--visible   { opacity: .16; }
.pat--statement { opacity: .34; }

/* المواضع — ينزف دائماً من حافة، ولا يتوسط أبداً */
.pat--tl { top: -12%; inset-inline-start: -5%; }
.pat--tr { top: -12%; inset-inline-end: -5%; }
.pat--bl { bottom: -16%; inset-inline-start: -4%; transform: rotate(180deg); }
.pat--br { bottom: -16%; inset-inline-end: -4%; transform: rotate(180deg); }

/* شريط النمط — كما بدليل الهوية (الكيس والكوب ص11 و12):
   بلاطات متكررة تنزف من الحافة السفلى بعرض الكادر كامل، لا كتلة واحدة. */
.pat--band {
  inset-inline: 0; bottom: 0; width: auto;
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  /* البلاطة بحجمها الطبيعي — لا تُسحق لارتفاع الشريط، فيبقى المونوغرام مقروءاً */
  -webkit-mask-size: 300px auto;  mask-size: 300px auto;
  -webkit-mask-position: bottom;  mask-position: bottom;
}
.pat--band.pat--micro { height: 46px; }
.pat--band.pat--sec   { height: 88px; }
.pat--band.pat--pri   { height: 132px; }

/* حركة بطيئة جداً — انزياح معماري لا زخرفة §45 */
@media (prefers-reduced-motion: no-preference) {
  .pat--drift { animation: patDrift 34s var(--ease-arch) infinite alternate; }
  @keyframes patDrift { from { transform: translateY(0); } to { transform: translateY(-26px); } }
  .pat--bl.pat--drift, .pat--br.pat--drift { animation-name: patDriftFlip; }
  @keyframes patDriftFlip {
    from { transform: rotate(180deg) translateY(0); }
    to   { transform: rotate(180deg) translateY(-26px); }
  }
}

.pattern-host { position: relative; overflow: hidden; }
.pattern-host > .container, .pattern-host > .inner { position: relative; z-index: 2; }

/* ─────────────────────────────────────────────
   05 · LAYOUT
   ───────────────────────────────────────────── */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 2; }
.container--narrow { max-width: 940px; }

section { padding-block: var(--sp-9); position: relative; }
.sec--tight { padding-block: var(--sp-8); }
.sec--alt  { background: var(--surface-alt); }
.sec--dark { background: var(--surface-dark); color: var(--text-on-dark); }
.sec--dark p, .sec--dark .body-lg { color: var(--text-on-dark-2); }

.sec-head { max-width: 760px; margin-bottom: var(--sp-8); }
.sec-head .rule { margin-bottom: var(--sp-5); }
.sec-head h2 { margin-bottom: var(--sp-4); }
.sec-head p { color: var(--text-secondary); font-size: 17px; }
.sec--dark .sec-head p { color: var(--text-on-dark-2); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .rule { margin-inline: auto; }

.split { display: grid; grid-template-columns: .84fr 1.16fr; gap: 72px; align-items: start; }
.split--even { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* ═══ اللوح المعماري ═══════════════════════════════════════
   إطار شعرة ذهبي منزاح خارج الصورة — تقليد عرض اللوحة المعمارية
   على ورقة. يبقى الذهبي شكلاً لا نصّاً فلا يقع تحت حدّ التباين.
   يُستعمل بندرة: صورة مميّزة واحدة بالصفحة، لا كل صورة. */
.plate { position: relative; }
.plate > picture { position: relative; z-index: 1; display: block; }
.plate::before {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  inset: -14px;
  border: 1px solid rgba(214, 173, 96, .5);
}
@media (prefers-reduced-motion: no-preference) {
  .plate::before { transform: scale(.985); opacity: 0; transition: transform .8s var(--ease-arch) .15s, opacity .8s var(--ease-arch) .15s; }
  .plate.is-in::before { transform: scale(1); opacity: 1; }
}
/* الشاشات الضيقة: الانزياح يلامس هامش الصفحة، فيُقلَّص */
@media (max-width: 980px) { .plate::before { inset: -9px; } }
@media (max-width: 560px) { .plate::before { inset: -6px; } }
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }

/* ─────────────────────────────────────────────
   06 · NAVIGATION
   ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
  max-width: var(--maxw); margin-inline: auto; padding: 14px var(--gutter);
  position: relative;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.3; }
.brand__name { font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; }
.brand__sub {
  font-family: 'Poppins', sans-serif; direction: ltr; unicode-bidi: isolate;
  font-size: 8px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-tertiary);
}

.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__links a {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  position: relative; padding-block: 6px; transition: color var(--dur-1);
}
.nav__links a:hover { color: var(--text-primary); }
.nav__links a[aria-current="page"] { color: var(--text-primary); }
.nav__links a[aria-current="page"]::after {
  content: ''; position: absolute; bottom: -1px; inset-inline: 0;
  height: 2px; background: var(--brand-primary);
}
.nav__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.lang-switch {
  border: 1px solid var(--border); padding: 8px 13px;
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  color: var(--text-secondary); transition: border-color var(--dur-1), color var(--dur-1);
}
.lang-switch:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { width: 22px; height: 1.5px; background: var(--text-primary); display: block; transition: transform var(--dur-1), opacity .18s; }

/* ─────────────────────────────────────────────
   07 · BUTTONS
   ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; font-size: 14.5px; font-weight: 600; letter-spacing: .02em;
  border: 1px solid transparent;
  transition: background var(--dur-1), color var(--dur-1), border-color var(--dur-1);
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
[dir="rtl"] .btn svg { transform: scaleX(-1); }

.btn--primary { background: var(--brand-dark); color: var(--brand-light); }
.btn--primary:hover { background: var(--brand-primary); color: var(--brand-dark); }
.btn--gold { background: var(--brand-primary); color: var(--brand-dark); }
.btn--gold:hover { background: var(--brand-dark); color: var(--brand-light); }
.btn--ghost { border-color: var(--border-strong); color: var(--text-primary); }
.btn--ghost:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--brand-light); }
.btn--on-dark { border-color: rgba(255,255,255,.5); color: var(--brand-light); }
.btn--on-dark:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--brand-dark); }
.btn--sm { padding: 10px 20px; font-size: 13.5px; }

.link-more {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 14.5px; padding-bottom: 5px;
  border-bottom: 1px solid var(--brand-primary);
}
.link-more svg { width: 14px; height: 14px; transition: transform var(--dur-1); }
[dir="rtl"] .link-more svg { transform: scaleX(-1); }
.link-more:hover svg { transform: translateX(4px); }
[dir="rtl"] .link-more:hover svg { transform: scaleX(-1) translateX(4px); }

/* ─────────────────────────────────────────────
   08 · HERO + BANNER
   ───────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: var(--text-on-dark);
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 640px; height: 92vh; max-height: 1000px;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.hero__slide.is-on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero__slide.is-on { animation: heroZoom 11s linear forwards; }
  @keyframes heroZoom { from { transform: scale(1.055); } to { transform: scale(1); } }
}
/* ═══ تعتيم النص فوق الصور ═══════════════════════════════
   axe ما يقدر يفحص تباين نص فوق صورة — يتخطّاه أصلاً.
   قِسناه ببكسل حقيقي (gpc-studio/_probe-contrast.js): ١١ عنصر
   من ٣٦ كانوا تحت حد AA بأسوأ منطقة من الصورة.
   الحل طبقتان: تدرّج رأسي يشدّ الأسفل + تدرّج جانبي يبدأ من
   حافة القراءة (يمين بالعربي، يسار بالإنجليزي) فيثبّت أرضية
   النص ويترك بقية الصورة تتنفّس بدل تغميق الكادر كله. */
html[dir="rtl"] { --scrim-to: left; }
html[dir="ltr"] { --scrim-to: right; }

.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to var(--scrim-to, left), rgba(30,30,30,.55) 0%, rgba(30,30,30,.30) 44%, rgba(30,30,30,0) 78%),
    linear-gradient(0deg, rgba(30,30,30,.90) 0%, rgba(30,30,30,.58) 46%, rgba(30,30,30,.30) 100%);
}
.hero__inner {
  position: relative; z-index: 3; width: 100%;
  max-width: var(--maxw); margin-inline: auto; padding: 0 var(--gutter) var(--sp-8);
}
.hero .display { margin-bottom: var(--sp-5); }
.hero .display em { font-style: normal; color: var(--brand-primary); display: block; }
.hero__lead { color: rgba(255,255,255,.86); font-size: 17.5px; max-width: 56ch; margin-bottom: var(--sp-6); }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.26); margin-top: var(--sp-7); padding-top: var(--sp-4);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.84);
}
.hero__caption { font-family: 'Poppins', sans-serif; }
[dir="rtl"] .hero__caption { font-family: 'GPC Arabic', sans-serif; text-transform: none; letter-spacing: 0; font-size: 13px; }
.carousel-nav { display: flex; align-items: center; gap: 10px; }
.carousel-nav button {
  width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.42); color: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-1), border-color var(--dur-1), color var(--dur-1);
}
.carousel-nav button:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--brand-dark); }

/* بالعربي «التالي» يقع على اليسار — لكن رأسه كان يؤشّر يمين،
   يعني الموضع يقول «قدّام» والسهم يقول «ورا». نعكس الشيفرون
   بالـRTL حتى يتطابق اتجاه السهم مع اتجاه القراءة. */
[dir="rtl"] .carousel-nav > button svg { transform: scaleX(-1); }
.carousel-count { font-family: 'Poppins', sans-serif; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; margin-inline-start: 6px; white-space: nowrap; }
.carousel-dots { display: flex; gap: 7px; margin-inline-start: 12px; }
.carousel-dots button { width: 24px; height: 2px; padding: 0; background: rgba(255,255,255,.35); transition: background var(--dur-1); }
.carousel-dots button.is-on { background: var(--brand-primary); }

.banner {
  position: relative; overflow: hidden; color: var(--text-on-dark);
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 380px; height: 48vh; max-height: 560px;
  background-size: cover; background-position: center;
}
.banner__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to var(--scrim-to, left), rgba(30,30,30,.64) 0%, rgba(30,30,30,.36) 44%, rgba(30,30,30,0) 78%),
    linear-gradient(0deg, rgba(30,30,30,.92) 0%, rgba(30,30,30,.68) 52%, rgba(30,30,30,.46) 100%);
}
.banner__inner { position: relative; z-index: 3; width: 100%; max-width: var(--maxw); margin-inline: auto; padding: 0 var(--gutter) var(--sp-7); }
.banner h1 { margin-bottom: var(--sp-3); }
.banner p { color: rgba(255,255,255,.84); max-width: 60ch; }
.crumb { font-size: 12.5px; color: rgba(255,255,255,.84); margin-top: var(--sp-4); }
.crumb a { border-bottom: 1px solid rgba(255,255,255,.55); }
.crumb a:hover { color: var(--brand-primary); border-color: var(--brand-primary); }

/* ─────────────────────────────────────────────
   09 · STATS
   ───────────────────────────────────────────── */
.stats { border-block: 1px solid var(--border); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--maxw); margin-inline: auto; }
/* الفواصل كانت خطوطاً كاملة الارتفاع فيقرأ الشريط جدولاً.
   صار: شرطة قياس ذهبية تنزل من حافة الشريط فوق كل رقم، وفاصل
   قصير بمنتصف الارتفاع — فيقرأ مسطرة مقيسة لا خلايا جدول. */
.stat { position: relative; text-align: center; padding: var(--sp-7) var(--sp-3); }
.stat::before {
  content: ''; position: absolute; top: 0; inset-inline-start: 50%;
  width: 1px; height: 14px; background: var(--brand-primary);
}
.stat::after {
  content: ''; position: absolute; top: 30%; bottom: 30%;
  inset-inline-start: 0; width: 1px; background: var(--border);
}
.stat:first-child::after { display: none; }
.stat__num {
  font-family: 'Poppins', sans-serif; font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 3vw, 38px); font-weight: 600; line-height: 1.15;
  letter-spacing: -.022em; direction: ltr; unicode-bidi: isolate;
}
.stat__label {
  font-size: 12px; color: var(--text-secondary); margin-top: 8px;
  letter-spacing: .04em;
}
[dir="rtl"] .stat__label { letter-spacing: 0; }

/* ─────────────────────────────────────────────
   10 · صفوف تحريرية + خطوات
   ───────────────────────────────────────────── */
.rows { border-top: 1px solid var(--border); }
.row {
  position: relative; display: grid; grid-template-columns: 1fr; gap: 6px;
  padding-block: var(--sp-6); border-bottom: 1px solid var(--border);
}
.row::before {
  content: ''; position: absolute; top: -1px; inset-inline: 0; height: 1px;
  background: var(--brand-primary); transform: scaleX(0);
  transition: transform .6s var(--ease-arch);
}
[dir="rtl"] .row::before { transform-origin: right center; }
[dir="ltr"] .row::before { transform-origin: left center; }
.row:hover::before { transform: scaleX(1); }
.row__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.row__tag { font-family: 'Poppins', sans-serif; font-size: 12.5px; font-weight: 500; color: var(--gold-ink); font-style: italic; }
[dir="rtl"] .row__tag { font-family: 'GPC Arabic', sans-serif; font-style: normal; }
.row p { color: var(--text-secondary); font-size: 15.5px; max-width: 74ch; }
.sec--dark .rows, .sec--dark .row { border-color: var(--border-on-dark); }
.sec--dark .row p { color: var(--text-on-dark-2); }

.steps { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--border); }
.step { padding: var(--sp-6) var(--sp-3); border-inline-start: 1px solid var(--border); }
.step:first-child { border-inline-start: none; }
.step__n { font-family: 'Poppins', sans-serif; font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 600; letter-spacing: .18em; color: var(--gold-ink); margin-bottom: var(--sp-4); }
.step .h4 { margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--text-secondary); line-height: 1.68; }
.sec--dark .steps, .sec--dark .step { border-color: var(--border-on-dark); }
.sec--dark .step p { color: var(--text-on-dark-2); }

/* ─────────────────────────────────────────────
   11 · PROJECT CARDS + FILTERS
   ───────────────────────────────────────────── */
.filters { display: flex; gap: 26px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: var(--sp-4); margin-bottom: var(--sp-7); }
.filter {
  font-size: 14px; font-weight: 600; color: var(--text-tertiary);
  padding-block: 4px; position: relative; transition: color var(--dur-1);
}
.filter:hover, .filter.is-on { color: var(--text-primary); }
.filter.is-on::after { content: ''; position: absolute; bottom: -17px; inset-inline: 0; height: 2px; background: var(--brand-primary); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 32px; }
.work-item { display: none; }
.work-item.is-shown { display: block; }

.work-card { display: block; }
.work-card__fig { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--surface-alt); }
.work-card__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .85s var(--ease-arch); }
.work-card:hover .work-card__fig img { transform: scale(1.045); }
.work-card__pat {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: 74px; z-index: 2;
  background-color: var(--brand-primary);
  -webkit-mask-size: cover, cover; mask-size: cover, cover;
  -webkit-mask-repeat: no-repeat, no-repeat; mask-repeat: no-repeat, no-repeat;
  -webkit-mask-composite: source-in; mask-composite: intersect;
  opacity: 0; transition: opacity var(--dur-2);
}
/* النمط مثبّت على حافة القراءة، فيتلاشى باتجاه عكسها — نحو داخل الكادر */
[dir="rtl"] .work-card__pat {
  -webkit-mask-image: url('../images/brand/gpc-pattern.png'), linear-gradient(to right, #000 18%, transparent 96%);
  mask-image: url('../images/brand/gpc-pattern.png'), linear-gradient(to right, #000 18%, transparent 96%);
}
[dir="ltr"] .work-card__pat {
  -webkit-mask-image: url('../images/brand/gpc-pattern.png'), linear-gradient(to left, #000 18%, transparent 96%);
  mask-image: url('../images/brand/gpc-pattern.png'), linear-gradient(to left, #000 18%, transparent 96%);
}
.work-card:hover .work-card__pat { opacity: .34; }
.work-card__cap {
  position: relative; display: flex; justify-content: space-between;
  align-items: baseline; gap: 14px; margin-top: var(--sp-4); padding-bottom: 14px;
}
/* خط أساس يمشي تحت العنوان عند المرور — حركة واحدة دقيقة
   بدل تكبير أو ظلّ، تناسب لغة الخطوط بباقي الصفحة. */
.work-card__cap::after {
  content: ''; position: absolute; bottom: 0; inset-inline-start: 0;
  height: 1px; width: 100%; background: var(--brand-primary);
  transform: scaleX(0); transform-origin: inline-start center;
}
[dir="rtl"] .work-card__cap::after { transform-origin: right center; }
[dir="ltr"] .work-card__cap::after { transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  .work-card__cap::after { transition: transform .55s var(--ease-arch); }
}
.work-card:hover .work-card__cap::after,
.work-card:focus-visible .work-card__cap::after { transform: scaleX(1); }
.work-card__cap .h4 { margin-top: 5px; letter-spacing: -.01em; }
.work-card__loc { font-size: 12.5px; color: var(--text-tertiary); white-space: nowrap; }

/* ─────────────────────────────────────────────
   12 · SECTORS
   ───────────────────────────────────────────── */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); }
.sector {
  background: var(--surface); padding: var(--sp-7) var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-3);
  transition: background var(--dur-2);
}
.sector:hover { background: var(--surface-alt); }
.sector svg { width: 26px; height: 26px; color: var(--brand-primary); }
.sector p { font-size: 13.5px; color: var(--text-secondary); }
.sec--alt .sectors { background: var(--border); }
.sec--alt .sector { background: var(--surface-alt); }
.sec--alt .sector:hover { background: var(--surface); }

/* ─────────────────────────────────────────────
   13 · معرض التنفيذ
   ───────────────────────────────────────────── */
.shot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.shot-tile { position: relative; overflow: hidden; aspect-ratio: 3/4; background: var(--brand-dark); }
.shot-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .85s var(--ease-arch); }
.shot-tile:hover img { transform: scale(1.05); }
.shot-tile figcaption {
  position: absolute; inset: auto 0 0 0; padding: 34px 14px 13px; color: var(--brand-light);
  background: linear-gradient(0deg, rgba(30,30,30,.9), transparent);
  font-size: 12.5px; font-weight: 500;
}

/* ─────────────────────────────────────────────
   14 · CASE STUDY
   ───────────────────────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); border-block: 1px solid var(--border); padding-block: var(--sp-5); margin-bottom: var(--sp-8); }
.fact dt { font-family: 'Poppins', sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 5px; }
.fact dd { font-size: 15.5px; font-weight: 600; }

.case-block { display: grid; grid-template-columns: 190px 1fr; gap: var(--sp-6); padding-block: var(--sp-6); border-bottom: 1px solid var(--border); }
.case-block__n { font-family: 'Poppins', sans-serif; font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--gold-ink); }
.case-block h3 { margin-bottom: var(--sp-3); }
.case-block p { color: var(--text-secondary); font-size: 15.5px; }

/* ═══ معرض المشروع ═══════════════════════════════════════
   المصادر صفحات ملفات عرض بنسب من 0.71 لين 1.78. بارتفاع تلقائي
   كانت الصفوف تطلع مكسّرة وتترك فجوات بيضة بنص الشبكة. الخلية
   الآن بنسبة ثابتة و object-fit:cover، والصورة الكاملة بلا قصّ
   تنفتح باللايت بوكس — فالانضباط ما ياكل المحتوى. */
.gallery { display: grid; gap: 20px; margin-top: var(--sp-8); }
.gallery figure { margin: 0; background: var(--surface-alt); overflow: hidden; }
.g-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in; position: relative;
}
.g-btn picture { display: block; width: 100%; height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .gallery img { transition: transform .7s var(--ease); }
  .g-btn:hover img, .g-btn:focus-visible img { transform: scale(1.045); }
}
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure:first-child { grid-column: 1 / -1; }
  .gallery figure:first-child .g-btn { aspect-ratio: 16 / 9; }
}

/* ═══ اللايت بوكس ═══════════════════════════════════════
   المستثمر يريد يشوف المنظور كبير — الخلية المقصوصة تكفي للتصفّح
   بس ما تكفي للحكم. يُبنى بالجافاسكربت، فبلا جافاسكربت المعرض
   يشتغل عادي كصور. */
.lb[hidden] { display: none !important; }
.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(18,18,18,.985);
  display: flex; flex-direction: column;
  padding: clamp(12px, 3vw, 40px);
}
.lb__stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.lb__img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  box-shadow: 0 30px 90px rgba(0,0,0,.5);
}
.lb__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding-top: 18px; color: rgba(255,255,255,.84); font-size: 13px;
}
.lb__count {
  font-family: 'Poppins', sans-serif; font-variant-numeric: tabular-nums;
  direction: ltr; unicode-bidi: isolate; letter-spacing: .14em; white-space: nowrap;
}
.lb__nav { display: flex; gap: 10px; }
.lb button {
  width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.34);
  color: var(--brand-primary); background: none;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-1), border-color var(--dur-1), color var(--dur-1);
}
.lb button:hover:not(:disabled) { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--brand-dark); }
.lb button:disabled { opacity: .34; cursor: default; }
.lb button svg { width: 20px; height: 20px; }
[dir="rtl"] .lb__nav button svg { transform: scaleX(-1); }
.lb__close { position: absolute; inset-block-start: clamp(12px,3vw,40px); inset-inline-end: clamp(12px,3vw,40px); }
body.lb-open { overflow: hidden; }
/* زر واتساب العائم كان يطلع فوق الطبقة — يختفي وقت العرض */
body.lb-open .wa-wrap { display: none; }

/* ─────────────────────────────────────────────
   15 · STATEMENT / CTA
   ───────────────────────────────────────────── */
.statement { background: var(--brand-dark); color: var(--text-on-dark); text-align: center; padding-block: var(--sp-9); position: relative; overflow: hidden; }
.statement blockquote { font-size: clamp(21px, 2.9vw, 33px); font-weight: 600; line-height: 1.55; max-width: 24ch; margin-inline: auto; letter-spacing: -.015em; }
[dir="rtl"] .statement blockquote { font-weight: 400; letter-spacing: 0; line-height: 1.74; max-width: 28ch; }
.statement .rule { margin: var(--sp-6) auto 0; }

.cta { background: var(--brand-dark); color: var(--text-on-dark); text-align: center; padding-block: var(--sp-9); position: relative; overflow: hidden; }
.cta h2 { margin-bottom: var(--sp-3); }
.cta p { color: var(--text-on-dark-2); margin-inline: auto; margin-bottom: var(--sp-6); }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─────────────────────────────────────────────
   16 · FORM + CONTACT
   ───────────────────────────────────────────── */
.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.field label .req { color: var(--gold-ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--text-primary);
  background: var(--surface); border: 1px solid var(--border); padding: 13px 15px;
  transition: border-color var(--dur-1);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-primary); outline: none; }
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-tertiary); }
/* ═══ حقل رفع الملف ════════════════════════════════════════
   <input type="file"> الخام يرسم زرّ المتصفح بنصّه الإنجليزي
   ("Choose File / No file chosen") مهما كانت لغة الصفحة — يقرأ
   شاذّاً داخل نموذج عربي. الحلّ: الحقل الأصلي يبقى موجوداً
   وقابلاً للتركيز (لا display:none)، وفوقه واجهة بلغة الصفحة. */
.file-ui { display: flex; flex-direction: column; gap: 7px; cursor: pointer; position: relative; }
.file-ui__label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
[dir="rtl"] .file-ui__label { font-weight: 400; color: var(--text-primary); }
.file-ui__label .opt { font-weight: 400; color: var(--text-tertiary); }
.file-ui__row {
  display: flex; align-items: stretch; gap: 0;
  border: 1px solid var(--border); background: var(--surface-alt);
  transition: border-color var(--dur-1);
}
.file-ui__btn {
  flex-shrink: 0; padding: 12px 20px; font-size: 14px; font-weight: 600;
  background: var(--brand-dark); color: var(--brand-light);
  display: flex; align-items: center;
}
[dir="rtl"] .file-ui__btn { font-weight: 400; }
.file-ui__name {
  flex: 1; min-width: 0; padding: 12px 15px; font-size: 14px;
  color: var(--text-tertiary); align-self: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-ui__name.has-file { color: var(--text-primary); }
.file-ui__hint { font-size: 12.5px; color: var(--text-tertiary); margin-top: 6px; }
/* الحقل الأصلي: مخفي بصرياً لا وظيفياً — يبقى يستقبل التركيز */
.file-ui__input {
  position: absolute; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}
.file-ui:hover .file-ui__row { border-color: var(--brand-primary); }
.file-ui:focus-within .file-ui__row { border-color: var(--brand-primary); }
.file-ui:focus-within .file-ui__btn { background: var(--brand-primary); color: var(--brand-dark); }
.form__note { font-size: 13px; color: var(--text-tertiary); grid-column: 1 / -1; max-width: none; }

/* ═══ لوح الرقم المفتاحي ═══════════════════════════════════
   نسبة التنفيذ 12%–15% أهم رقم تجاري بالموقع، وكانت ذهبية
   بحجم 52px **على أبيض = 2.09:1** والمطلوب 3:1 للنصّ الكبير.
   لم يكشفها أي فحص سابق لأنها تحت الطيّة، وaxe يتخطّى عناصر
   .reveal وهي opacity:0. نقلها إلى سطح غامق يحلّ التباين
   (8.4:1) ويعطيها الحضور الذي تستحقّه بدل صندوق بحدّين. */
.keyfig {
  position: relative; overflow: hidden; text-align: center;
  background: var(--brand-dark); color: var(--text-on-dark);
  padding: clamp(40px, 6vw, 68px) clamp(24px, 5vw, 56px);
}
.keyfig__num {
  font-size: clamp(40px, 6vw, 58px); font-weight: 600; line-height: 1.05;
  color: var(--brand-primary); letter-spacing: -.02em;
}
.keyfig__p {
  color: rgba(255,255,255,.82); max-width: 60ch;
  margin: 20px auto 0; position: relative; z-index: 2;
}
.form__submit { grid-column: 1 / -1; justify-self: start; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: start; }
.contact-row { display: flex; gap: 18px; padding-block: var(--sp-5); border-bottom: 1px solid var(--border); }
.contact-row svg { width: 19px; height: 19px; color: var(--brand-primary); flex-shrink: 0; margin-top: 4px; }
.contact-row .h4 { font-size: 14px; margin-bottom: 5px; }
.contact-row p, .contact-row a { color: var(--text-secondary); font-size: 15px; }
.contact-row a:hover { color: var(--gold-ink); }
.map { border: 1px solid var(--border); filter: grayscale(.65) contrast(1.05); }
.map iframe { width: 100%; min-height: 440px; border: 0; display: block; }
.tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: var(--sp-4); }
.tags span { border: 1px solid var(--border); padding: 7px 15px; font-size: 12.5px; color: var(--text-secondary); }

/* ─────────────────────────────────────────────
   17 · EMPTY STATE
   ───────────────────────────────────────────── */
.empty { border: 1px dashed var(--border-strong); background: var(--surface-alt); padding: var(--sp-9) var(--sp-6); text-align: center; }
.empty img { width: 48px; margin-inline: auto; margin-bottom: var(--sp-5); opacity: .45; }
.empty h3 { margin-bottom: var(--sp-3); }
.empty p { color: var(--text-secondary); max-width: 52ch; margin-inline: auto; margin-bottom: var(--sp-5); }

/* ─────────────────────────────────────────────
   18 · FOOTER
   ───────────────────────────────────────────── */
.site-footer { background: var(--brand-dark); color: var(--text-on-dark-2); padding: var(--sp-9) 0 var(--sp-5); position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.15fr; gap: var(--sp-7); margin-bottom: var(--sp-8); }
.footer-grid .h4 { font-family: 'Poppins', sans-serif; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-primary); font-weight: 600; margin-bottom: var(--sp-5); }
.footer-grid p, .footer-grid a { font-size: 14px; display: block; margin-bottom: 10px; color: rgba(255,255,255,.7); max-width: none; }
.footer-grid a:hover { color: var(--brand-primary); }
.footer-brand .brand__name { color: var(--brand-light); }
.footer-brand .brand__sub { color: rgba(255,255,255,.5); }
.footer-est { font-family: 'Poppins', sans-serif; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-primary); margin-top: var(--sp-4); }
.footer-bottom {
  border-top: 1px solid var(--border-on-dark); padding-top: var(--sp-5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px; color: rgba(255,255,255,.5);
}
.social { display: flex; gap: 11px; margin-top: var(--sp-4); }
.social a {
  width: 37px; height: 37px; border: 1px solid rgba(255,255,255,.24); margin: 0;
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.82);
  transition: background var(--dur-1), border-color var(--dur-1), color var(--dur-1);
}
.social svg { width: 16px; height: 16px; }
.social a:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--brand-dark); }

/* ─────────────────────────────────────────────
   19 · MOTION
   ───────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__slide.is-on { animation: none; }
}

/* ─────────────────────────────────────────────
   20 · قوائم مساعدة
   ───────────────────────────────────────────── */
.dash-list { list-style: none; }
.dash-list li { position: relative; padding-inline-start: 24px; margin-bottom: 12px; color: var(--text-secondary); }
.dash-list li::before { content: '—'; position: absolute; inset-inline-start: 0; top: 0; color: var(--gold-ink); font-weight: 600; }
.sec--dark .dash-list li { color: var(--text-on-dark-2); }

/* ─────────────────────────────────────────────
   21 · RESPONSIVE  §54–55
   ───────────────────────────────────────────── */
@media (max-width: 1180px) {
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 13px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step:nth-child(4n+1) { border-inline-start: none; }
}
@media (max-width: 1024px) {
  :root { --gutter: 26px; }
  .shot-grid { grid-template-columns: repeat(3, 1fr); }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  section { padding-block: var(--sp-8); }
  .split, .split--even, .cols-2, .contact-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .cols-3, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd)::after { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { border-inline-start: none; border-top: 1px solid var(--border); }
  .step:nth-child(-n+2) { border-top: none; }
  .case-block { grid-template-columns: 1fr; gap: var(--sp-3); }
  .form { grid-template-columns: 1fr; }
  .pat--large, .pat--pri { width: 210px; height: 475px; }
}
/* ─────────────────────────────────────────────
   عتبة قائمة الموبايل — مقاسة لا مقدَّرة.
   الشريط الأفقي الكامل يحتاج فعلياً:
     عربي   ≈ 823–929px   ·   إنجليزي ≈ 1031–1118px
   وكانت العتبة 720px، فبين 721px و1052px كان الصف
   أعرض من الشاشة والصفحة كلها تنزلق أفقياً — على
   الآيباد عمودياً (768) وأفقياً (1024) وأي نافذة نصفية.
   العتبة الآن 1120px: تحت هذا الحد تتحول القائمة
   لقائمة منسدلة، وفوقه الصف يتّسع بهامش ≈78px.
   إذا أُضيف عنصر جديد للقائمة، أعد قياس العتبة
   بـsite-qa.js قبل أي شي.
   ───────────────────────────────────────────── */
@media (max-width: 1120px) {
  .nav__links {
    position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 6px var(--gutter) 20px; z-index: 95;
    box-shadow: var(--shadow-lift);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity var(--dur-1), transform var(--dur-1), visibility var(--dur-1);
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding-block: 15px; border-bottom: 1px solid var(--border); font-size: 16px; }
  .nav__links a:last-child { border-bottom: none; }
  .nav__links a[aria-current="page"]::after { inset-inline: auto 0; width: 20px; bottom: 10px; }
  .nav__toggle { display: flex; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .nav { padding: 12px var(--gutter); }
  .cols-3, .work-grid, .sectors, .steps, .footer-grid, .facts { grid-template-columns: 1fr; }
  .shot-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat { border-top: 1px solid var(--border); }
  .stat::after { display: none; }
  .stat:first-child { border-top: none; }
  .step { padding-inline: 0; }

  /* الهيرو على الموبايل: ارتفاع مرن لا ثابت.
     كان height:88vh مع justify-content:flex-end و overflow:hidden —
     فأي محتوى أطول من الصندوق يُقصّ من أعلاه ويختفي العنوان تحت الشريط.
     صار الارتفاع أدنى حدّ فقط، فيتمدّد الصندوق بدل ما يقصّ.
     svh = ارتفاع الشاشة الصغير بالموبايل (بعد شريط عنوان المتصفح). */
  .hero {
    height: auto;
    min-height: 86vh;
    min-height: 82svh;
    max-height: none;
    padding-block-start: var(--sp-8);
  }
  .hero__lead { font-size: 16px; margin-bottom: var(--sp-5); }
  .hero__inner { padding-bottom: var(--sp-7); }

  /* زرّان بعرضين مختلفين يطلعون مبعثرين — نوحّدهم بعمود كامل */
  .hero__actions { gap: 12px; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }

  .banner { height: auto; min-height: 44vh; min-height: 40svh; padding-block-start: var(--sp-7); }

  .hero__bar { flex-direction: column; align-items: flex-start; gap: 14px; }
  /* النص يغطي مساحة أكبر من الصورة بالموبايل — الحجاب يشتدّ ليبقى مقروءاً */
  .hero__scrim { background:
      linear-gradient(to var(--scrim-to, left), rgba(30,30,30,.34) 0%, rgba(30,30,30,0) 62%),
      linear-gradient(0deg, rgba(30,30,30,.96) 0%, rgba(30,30,30,.82) 55%, rgba(30,30,30,.55) 100%); }
  .banner__scrim { background:
      linear-gradient(to var(--scrim-to, left), rgba(30,30,30,.34) 0%, rgba(30,30,30,0) 62%),
      linear-gradient(0deg, rgba(30,30,30,.95), rgba(30,30,30,.70) 65%, rgba(30,30,30,.45)); }

  .footer-bottom { flex-direction: column; text-align: center; }
  /* كتل النمط الجانبية تزاحم النص بالشاشة الضيقة — تُخفى،
     أما شريط القاعدة فما يزاحم شي فيبقى ويحفظ توقيع العلامة بالموبايل. */
  .pat { display: none; }
  .pat--band, .pat--keep-mobile { display: block !important; }
  .pat--band.pat--sec { height: 62px; }
}

/* مصيدة الروبوتات — مخفية عن الجميع بما فيهم قارئات الشاشة */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* رسالة تنبيه بالنموذج */
.notice { border: 1px solid var(--brand-primary); background: rgba(214,173,96,.09); padding: 16px 20px; margin-bottom: var(--sp-5); font-size: 14.5px; }

/* صفحة الشكر */
.thanks { text-align: center; padding-block: var(--sp-10); }
.thanks img { width: 62px; margin-inline: auto; margin-bottom: var(--sp-5); }
.thanks h1 { margin-bottom: var(--sp-4); }
.thanks p { color: var(--text-secondary); max-width: 54ch; margin-inline: auto; margin-bottom: var(--sp-6); font-size: 17px; }

/* ─────────────────────────────────────────────
   22 · سلّم نص موحّد (يستبدل الأحجام المضمّنة)
   15.5 → 19 → 25   (نِسَب 1.23 / 1.32)
   ───────────────────────────────────────────── */
.body-sm { font-size: 15.5px; color: var(--text-secondary); }
.sec--dark .body-sm { color: var(--text-on-dark-2); }
.body-lg { font-size: 19px; }
.body-xl { font-size: 25px; line-height: 1.7; color: var(--text-secondary); letter-spacing: -.01em; }
[dir="rtl"] .body-xl { line-height: 1.85; }

.promise-item { font-size: 19px; color: var(--text-primary); font-weight: 600; }
.cap-row { padding-block: 13px; border-bottom: 1px solid var(--border); font-size: 15.5px; font-weight: 600; }
.sec--dark .cap-row { border-color: var(--border-on-dark); }
.narrative { font-size: 19px; line-height: 1.95; color: var(--text-secondary); text-align: center; max-width: 62ch; margin-inline: auto; }

/* صورة داخل قسم منقسم — تُقصّ لنسبة ثابتة بدل ما تطوّل العمود */
.split--even { align-items: stretch; }
/* الصورة قد تكون <img> أو <picture> أو ملفوفة بـ.plate — والثلاثة
   لازم يأخذن نفس قيد الارتفاع. المُحدِّد المباشر وحده كان يسقط
   لحظة إضافة أي غلاف، فترجع الصورة بطولها الطبيعي وتكسر القسم. */
.split--even > img,
.split--even > picture,
.split--even > .plate { width: 100%; height: 100%; min-height: 420px; max-height: 560px; }
.split--even > picture,
.split--even > .plate > picture { display: block; overflow: hidden; height: 100%; }
.split--even > .plate > picture { min-height: inherit; max-height: inherit; }
.split--even > img,
.split--even > picture > img,
.split--even > .plate > picture > img { object-fit: cover; width: 100%; height: 100%; }
.split--even > div:not(.plate) { align-self: center; }
@media (max-width: 980px) {
  .split--even > img,
  .split--even > picture,
  .split--even > .plate { min-height: 300px; max-height: 380px; }
}

/* رابط فتح الخريطة تحت الإطار */
.map { position: relative; }
.map__open {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px; font-size: 14px; font-weight: 600;
  border-top: 1px solid var(--border); background: var(--surface);
  transition: background var(--dur-1), color var(--dur-1);
}
.map__open svg { width: 14px; height: 14px; }
[dir="rtl"] .map__open svg { transform: scaleX(-1); }
.map__open:hover { background: var(--brand-dark); color: var(--brand-light); }

/* ─────────────────────────────────────────────
   23 · لوكاب الاسم الرسمي الكامل
   السطر الثاني عربي: بلا كابيتال ولا تباعد لاتيني
   ───────────────────────────────────────────── */
.brand__name { white-space: nowrap; }
.brand__sub--ar {
  font-family: 'GPC Arabic', sans-serif;
  direction: rtl; unicode-bidi: plaintext;
  font-size: 10.5px; letter-spacing: 0; text-transform: none;
  font-weight: 500; white-space: nowrap;
}
.footer-brand .brand__sub--ar { color: rgba(255,255,255,.62); }
.footer-brand .brand { margin-bottom: 14px !important; }

@media (max-width: 400px) {
  .brand__name { font-size: 14px; }
  .brand__sub, .brand__sub--ar { font-size: 9px; }
}

/* الشاشات الضيقة: اللوكاب الكامل يحتاج مساحة — نخفّف ما حوله */
@media (max-width: 520px) {
  .brand__name { font-size: 14.5px; }
  .brand__sub { font-size: 7.5px; letter-spacing: .14em; }
  .brand__sub--ar { font-size: 10px; }
  /* زر «ابدأ مشروعك» موجود بالقائمة وبكل صفحة — نشيله من الشريط الضيق */
  .nav__actions .btn { display: none; }
  .nav__cta-mobile { display: inline-flex !important; justify-content: center; margin-top: 14px; border-bottom: none !important; }
  .nav { gap: 10px; }
}
@media (max-width: 380px) {
  .brand__mark { width: 32px; height: 32px; }
  .brand__name { font-size: 13.5px; }
  .brand__sub { font-size: 7px; letter-spacing: .1em; }
}

/* زر الدعوة داخل قائمة الموبايل — مخفي على الشاشات الواسعة */
.nav__cta-mobile { display: none; }

/* ─────────────────────────────────────────────
   24 · بدائل التواصل تحت النموذج
   ───────────────────────────────────────────── */
.form__alt {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: var(--sp-5); margin-top: var(--sp-3);
}
.form__alt > span { font-size: 14px; color: var(--text-secondary); margin-inline-end: 4px; }
.form__alt .btn svg { margin: 0; }
.notice a { border-bottom: 1px solid var(--brand-primary); }
.notice a:hover { color: var(--gold-ink); }

/* ═══════════════════════════════════════════════════════════════
   مكوّنات مضافة — جمهور المستثمرين والجهات
   زر واتساب · نماذج التعاقد · السجل · التأهيل · المقالات · 404
   الأوزان هنا 400/500/600 فقط، والعربي وزن واحد كما بالهوية.
   ═══════════════════════════════════════════════════════════════ */

/* ───────── زر واتساب العائم ─────────
   غامق بأيقونة ذهبية لا أخضر واتساب — السطح يبقى ضمن الهوية. */
.wa-fab {
  position: fixed;
  inset-inline-end: 22px;
  inset-block-end: 22px;
  z-index: 90;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: var(--brand-dark);
  color: var(--brand-primary);
  border: 1px solid var(--brand-dark);
  box-shadow: var(--shadow-lift);
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.wa-fab svg { width: 27px; height: 27px; display: block; }
.wa-fab:hover, .wa-fab:focus-visible {
  background: var(--brand-primary);
  color: var(--brand-dark);
  transform: translateY(-2px);
}
@media (max-width: 720px) {
  .wa-fab { inset-inline-end: 16px; inset-block-end: 16px; width: 50px; height: 50px; }
  .wa-fab svg { width: 25px; height: 25px; }
}
@media print { .wa-fab { display: none; } }

/* ───────── السجل الموثَّق ───────── */
.track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.track__item { background: var(--surface-alt); padding: var(--sp-6) var(--sp-5) var(--sp-7); }
.track__n {
  font-size: clamp(34px, 3.4vw, 46px);
  font-weight: 600; line-height: 1;
  color: var(--brand-dark);
  font-variant-numeric: tabular-nums;
}
.track__l { margin-top: var(--sp-3); font-size: 15px; color: var(--text-primary); }
.track__s { margin-top: var(--sp-2); font-size: 13.5px; line-height: 1.7; color: var(--text-tertiary); }
@media (max-width: 900px) { .track { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .track { grid-template-columns: 1fr; } }

/* ───────── نماذج التعاقد ───────── */
.models {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
}
.model {
  background: var(--surface);
  padding: var(--sp-7) var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-3);
  transition: background var(--dur-2) var(--ease);
}
.model:hover { background: var(--surface-alt); }
.model__n { font-size: 13px; font-weight: 500; color: var(--gold-ink); letter-spacing: .12em; }
.model h3 { margin: 0; }
.model p { color: var(--text-secondary); font-size: 15px; margin: 0; }
.model__fit {
  margin-top: auto; padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-primary);
}
.model__fit .meta-label { display: block; margin-bottom: 4px; }
@media (max-width: 760px) { .models { grid-template-columns: 1fr; } }

/* ───────── وثائق التأهيل ───────── */
.pq-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.pq-list li {
  border-bottom: 1px solid var(--border);
  padding-block: var(--sp-4);
  padding-inline: 30px 0;
  position: relative;
  font-size: 16px; color: var(--text-primary);
}
.pq-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 27px;
  width: 14px; height: 1px; background: var(--brand-primary);
}

/* ───────── شبكة المقالات ───────── */
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-7) var(--sp-6); }
.art-card { display: flex; flex-direction: column; }
.art-card[hidden] { display: none; }
.art-card__fig { display: block; overflow: hidden; background: var(--surface-alt); aspect-ratio: 16 / 10; }
.art-card__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease-arch); }
.art-card:hover .art-card__fig img { transform: scale(1.04); }
.art-card__body { padding-top: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.art-card h3 { font-size: 21px; line-height: 1.4; margin: 0; }
.art-card h3 a {
  color: var(--text-primary); text-decoration: none;
  background-image: linear-gradient(var(--brand-primary), var(--brand-primary));
  background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size var(--dur-2) var(--ease);
}
[dir="rtl"] .art-card h3 a { background-position: 100% 100%; }
.art-card h3 a:hover, .art-card h3 a:focus-visible { background-size: 100% 1px; }
.art-card p { font-size: 14.5px; line-height: 1.8; color: var(--text-secondary); margin: 0; }
.art-card .link-more { margin-top: auto; padding-top: var(--sp-3); }
@media (max-width: 980px) { .art-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .art-grid { grid-template-columns: 1fr; gap: var(--sp-8); } }

.art-meta, .art-head { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; font-size: 13px; color: var(--text-tertiary); }
.art-meta__dot { width: 3px; height: 3px; background: var(--text-tertiary); display: inline-block; }
.art-head { padding-bottom: var(--sp-5); border-bottom: 1px solid var(--border); margin-bottom: var(--sp-7); }

/* ───────── نصّ المقال ─────────
   التسلسل بالحجم واللون والفراغ، لا بالسماكة — العربي وزن واحد. */
.prose { max-width: 68ch; }
.prose > p { font-size: 17px; line-height: 1.95; color: var(--text-secondary); margin: 0 0 var(--sp-5); }
.prose > p.body-xl { font-size: 21px; line-height: 1.75; color: var(--text-primary); margin-bottom: var(--sp-8); }
.prose h2 {
  font-size: clamp(23px, 2.4vw, 29px);
  line-height: 1.4; margin: var(--sp-8) 0 var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  color: var(--text-primary);
  text-wrap: balance;
}
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }

/* ───────── الأسئلة المتكرّرة ───────── */
.faq { max-width: 68ch; margin-top: var(--sp-9); }
.faq h2 { font-size: clamp(21px, 2vw, 26px); margin: 0 0 var(--sp-5); }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer;
  padding-block: var(--sp-4);
  padding-inline: 0 34px;
  position: relative; font-size: 16.5px; color: var(--text-primary);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; inset-inline-end: 6px; top: 50%;
  width: 11px; height: 1px; background: var(--text-primary);
}
.faq summary::before {
  content: ""; position: absolute; inset-inline-end: 11px; top: 50%;
  width: 1px; height: 11px; margin-top: -5px; background: var(--text-primary);
  transition: opacity var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.faq details[open] summary::before { opacity: 0; transform: rotate(90deg); }
.faq summary:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 3px; }
.faq details p { margin: 0 0 var(--sp-5); padding-inline-end: 34px; font-size: 15.5px; line-height: 1.9; color: var(--text-secondary); }

/* ───────── نسبة المقال للشركة ───────── */
.byline {
  margin-top: var(--sp-9);
  border-inline-start: 2px solid var(--brand-primary);
  padding-inline-start: var(--sp-5);
  max-width: 68ch;
}
.byline p { margin: var(--sp-2) 0 0; font-size: 15px; line-height: 1.85; color: var(--text-secondary); }

/* ───────── صفحة 404 ───────── */
/* السطح غامق: الذهبي يسقط بالتباين على الأبيض (2.1:1) ويمرّ على #1E1E1E (8.4:1) */
.nf { padding-block: clamp(90px, 16vh, 190px); text-align: center; background: var(--surface-dark); color: var(--text-on-dark); }
.nf__code {
  font-size: clamp(76px, 14vw, 160px); line-height: 1;
  font-weight: 600; color: var(--brand-primary);
  font-variant-numeric: tabular-nums;
}
.nf h1 { margin: var(--sp-5) 0 var(--sp-4); color: var(--text-on-dark); }
.nf p { color: var(--text-on-dark-2); max-width: 52ch; margin-inline: auto; }
.nf__links { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; margin-top: var(--sp-7); }

/* الغلاف الدلالي لزر واتساب — بلا صندوق تخطيط */
.wa-wrap { display: contents; }
