/* ═══════════════════════════════════════════════════════════════════
   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 (لاتيني) · Noto Sans Arabic (عربي)
   نمط المونوغرام = التوقيع المعماري للعلامة
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&family=Noto+Sans+Arabic:wght@200;300;400;500;600;700&display=swap');

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

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

  /* نص */
  --text-primary:    #1E1E1E;
  --text-secondary:  #5F5F5F;
  --text-tertiary:   #8A8A8A;
  --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;

  /* شبكة ومسافات — سلّم 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: #C9C4BA var(--surface-alt); scrollbar-width: thin; caret-color: var(--brand-primary); }

body {
  font-family: 'Noto Sans Arabic', 'Poppins', system-ui, sans-serif;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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: #C9C4BA; }
::-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; }

/* ─────────────────────────────────────────────
   03 · TYPOGRAPHY
   ───────────────────────────────────────────── */
.lat { font-family: 'Poppins', sans-serif; direction: ltr; unicode-bidi: isolate; }
[dir="ltr"] body { font-family: 'Poppins', system-ui, sans-serif; line-height: 1.72; }

.display {
  font-size: clamp(38px, 6.2vw, 88px);
  line-height: 1.07; font-weight: 700; letter-spacing: -.03em;
  text-wrap: balance;
}
[dir="rtl"] .display { line-height: 1.26; letter-spacing: -.01em; font-size: clamp(32px, 5.2vw, 70px); }

h1, .h1 { font-size: clamp(30px, 4.6vw, 56px); line-height: 1.16; font-weight: 700; letter-spacing: -.022em; text-wrap: balance; }
h2, .h2 { font-size: clamp(25px, 3.5vw, 42px); line-height: 1.22; font-weight: 700; letter-spacing: -.02em; 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; }
[dir="rtl"] h1, [dir="rtl"] h2 { line-height: 1.4; letter-spacing: 0; }
[dir="rtl"] h3, [dir="rtl"] h4 { line-height: 1.6; letter-spacing: 0; }

.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(--brand-primary);
}
.num { font-family: 'Poppins', sans-serif; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

/* الخط الذهبي الافتتاحي — بديل الليبل فوق العناوين */
.rule { width: 56px; height: 2px; background: var(--brand-primary); }

/* ─────────────────────────────────────────────
   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); }

/* حركة بطيئة جداً — انزياح معماري لا زخرفة §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; }
.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: 700; 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); } }
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(30,30,30,.95) 0%, rgba(30,30,30,.66) 42%, rgba(30,30,30,.4) 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,.68);
}
.hero__caption { font-family: 'Poppins', sans-serif; }
[dir="rtl"] .hero__caption { font-family: 'Noto Sans 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); }
.carousel-count { font-family: 'Poppins', sans-serif; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; margin-inline-start: 6px; }
.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(0deg, rgba(30,30,30,.94), rgba(30,30,30,.5) 60%, rgba(30,30,30,.34)); }
.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,.62); margin-top: var(--sp-4); }
.crumb a { border-bottom: 1px solid rgba(255,255,255,.38); }
.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 { text-align: center; padding: var(--sp-7) var(--sp-3); border-inline-start: 1px solid var(--border); }
.stat:first-child { border-inline-start: 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; }
.stat__label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* ─────────────────────────────────────────────
   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(--brand-primary); font-style: italic; }
[dir="rtl"] .row__tag { font-family: 'Noto Sans 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(--brand-primary); 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-image: url('../images/brand/gpc-pattern.png'); mask-image: url('../images/brand/gpc-pattern.png');
  -webkit-mask-size: cover; mask-size: cover; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  opacity: 0; transition: opacity var(--dur-2);
}
.work-card:hover .work-card__pat { opacity: .42; }
.work-card__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-top: var(--sp-4); }
.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(--brand-primary); 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(--brand-primary); }
.case-block h3 { margin-bottom: var(--sp-3); }
.case-block p { color: var(--text-secondary); font-size: 15.5px; }

.gallery { display: grid; gap: 20px; margin-top: var(--sp-8); }
.gallery figure { background: var(--surface-alt); overflow: hidden; }
.gallery img { width: 100%; height: auto; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure:first-child { grid-column: 1 / -1; }
}

/* ─────────────────────────────────────────────
   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 { 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(--brand-primary); }
.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); }
.field--file input { padding: 11px 15px; background: var(--surface-alt); }
.form__note { font-size: 13px; color: var(--text-tertiary); grid-column: 1 / -1; max-width: none; }
.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(--brand-primary); }
.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(--brand-primary); font-weight: 700; }
.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) { border-inline-start: 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; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .nav { padding: 12px var(--gutter); }
  .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); }
  .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-inline-start: none; border-top: 1px solid var(--border); }
  .stat:first-child { border-top: none; }
  .step { padding-inline: 0; }
  .hero { height: 88vh; }
  .hero__bar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .pat { display: none; }
  .pat--keep-mobile { display: block !important; }
}

/* مصيدة الروبوتات — مخفية عن الجميع بما فيهم قارئات الشاشة */
.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; }
.split--even > img { width: 100%; height: 100%; min-height: 420px; max-height: 560px; object-fit: cover; }
.split--even > div { align-self: center; }
@media (max-width: 980px) { .split--even > img { 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: 'Noto Sans 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; }
