/* ═══════════════════════════════════════════════════════════════════════
   أساس للمقاولات · Asas Contracting — الشارقة
   نظام «اللوحة الهندسية» (Blueprint System)

   الفكرة: الصفحة الرئيسية ليست صورة غلاف — هي لوحة رسم.
   حقل أوف‑وايت + شبكة رسم زرقاء دقيقة + مسطرة قياس على الحافة
   + عنوان ضخم + شريط أصفر مائل. لا تصوير في الغلاف إطلاقاً.

   الهوية: خرساني #4A4A4A · أصفر أمان #F2C300 · أزرق مخططات #1B4B7A
           أوف وايت #F4F4F2 · حبري #1F1F1F
   ثقيل وإنشائي · نصف قطر 0–4px · خطوط سميكة · الأصفر شرائط رفيعة فقط

   ملف واحد يخدم RTL و LTR — خصائص منطقية فقط، بلا left/right.
   ═══════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@300;400;500;600;700&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* ── ألوان الهوية ── */
  --ink:        #1F1F1F;
  --ink-2:      #2C2C2A;
  --concrete:   #4A4A4A;
  --concrete-2: #6B6B66;
  --concrete-3: #8A8A85;
  --yellow:     #F2C300;
  --yellow-d:   #D4AB00;
  --blue:       #1B4B7A;
  --blue-d:     #143A5F;
  --blue-soft:  #E7EDF4;
  --paper:      #F4F4F2;
  --paper-2:    #EBEBE7;
  --white:      #FFFFFF;
  --danger:     #B3261E;

  /* ── خطوط الشبكة والفواصل ── */
  --line:        #D8D8D3;
  --line-strong: #B6B6AF;
  --rule:        3px;
  --rule-thick:  6px;

  /* ── شبكة اللوحة الزرقاء ── */
  --bp-minor: rgba(27, 75, 122, .085);
  --bp-major: rgba(27, 75, 122, .20);
  --bp-cell:  26px;

  /* ── خطوط ── */
  --ar: 'Readex Pro', system-ui, 'Segoe UI', Tahoma, sans-serif;
  --en: 'Inter', system-ui, 'Segoe UI', Arial, sans-serif;

  --wrap: 1240px;
  --r:    2px;
  --r-lg: 4px;

  --focus: var(--blue);
  --ease:  cubic-bezier(.2, .7, .3, 1);

  /* ── سلّم z-index ── */
  --z-raised: 10;
  --z-header: 20;
  --z-menu:   30;
  --z-scrim:  40;
  --z-modal:  50;
  --z-toast:  60;

  /* ── شارة «نموذج تصميم» المشتركة ── */
  --px-badge-bg:     #1F1F1F;
  --px-badge-fg:     #F4F4F2;
  --px-badge-accent: #F2C300;
}

/* ═════════════════ أساسيات ═════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ar);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="en"] body { font-family: var(--en); line-height: 1.65; }

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

h1, h2, h3, h4 { margin: 0; line-height: 1.24; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); line-height: 1.16; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.32rem); }
/* العربية تحتاج تنفّساً أكبر بين السطور في العناوين وإلا تتلاصق */
html[lang="ar"] h1 { line-height: 1.25; }
html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { line-height: 1.32; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--yellow); color: var(--ink); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; inset-block-start: -200px; inset-inline-start: 12px;
  z-index: var(--z-toast);
  background: var(--ink); color: var(--yellow);
  padding: 12px 18px; font-weight: 600; border: 2px solid var(--yellow);
}
.skip-link:focus { inset-block-start: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* الأرقام التي تحمل رمزاً (+ % −) تُعزل حتى لا تنقلب في RTL.
   ⚠️ لا نضع direction على أي عنصر position:absolute — نعزل الرقم في span داخلي. */
.num, .price, .phone, .big-num {
  direction: ltr; unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

/* ═════════════════ ظهور مع التمرير ═════════════════ */
[data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* ═════════════════ حقل اللوحة الهندسية ═════════════════ */
.bp {
  position: relative;
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg,  var(--bp-major) 0 1px, transparent 1px),
    linear-gradient(180deg, var(--bp-major) 0 1px, transparent 1px),
    linear-gradient(90deg,  var(--bp-minor) 0 1px, transparent 1px),
    linear-gradient(180deg, var(--bp-minor) 0 1px, transparent 1px);
  background-size:
    calc(var(--bp-cell) * 5) calc(var(--bp-cell) * 5),
    calc(var(--bp-cell) * 5) calc(var(--bp-cell) * 5),
    var(--bp-cell) var(--bp-cell),
    var(--bp-cell) var(--bp-cell);
}

/* مسطرة قياس على حافة واحدة — علامات دقيقة وعلامات رئيسية أطول */
.ruler {
  position: relative;
  block-size: 30px;
  border-block-end: 1px solid var(--line-strong);
  background-image:
    repeating-linear-gradient(90deg, var(--bp-major) 0 1px, transparent 1px 78px),
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 13px);
  background-size: 100% 17px, 100% 8px;
  background-position: 0 100%, 0 100%;
  background-repeat: no-repeat;
}
.ruler__k {
  position: absolute; inset-block-start: 3px;
  inset-inline-start: max(1.25rem, calc((100% - var(--wrap)) / 2));
  font-size: 10.5px; font-weight: 600; letter-spacing: .22em;
  color: var(--concrete-2); text-transform: uppercase;
}

/* شبكة مكشوفة خفيفة تُستعمل داخل رؤوس الصفحات الداخلية */
.grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(90deg,  var(--bp-major) 0 1px, transparent 1px),
    linear-gradient(180deg, var(--bp-minor) 0 1px, transparent 1px);
  background-size: calc(var(--bp-cell) * 5) 100%, 100% var(--bp-cell);
}
.sec--ink .grid-lines, .sec--blue .grid-lines, .sec--concrete .grid-lines, .on-dark .grid-lines {
  background-image:
    linear-gradient(90deg,  rgba(255,255,255,.12) 0 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.05) 0 1px, transparent 1px);
}

/* ═════════════════ أزرار ═════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 28px;
  border: var(--rule) solid var(--ink); border-radius: var(--r);
  font-weight: 600; font-size: 16px; text-align: center;
  background: var(--white); color: var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease),
              box-shadow .2s var(--ease), transform .12s var(--ease);
}
.btn svg { inline-size: 20px; block-size: 20px; flex: none; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--yellow); border-color: var(--ink); color: var(--ink); }
.btn--primary:hover { background: var(--ink); color: var(--yellow); }

.btn--blue { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-d); border-color: var(--blue-d); color: var(--white); }

.btn--ghost { background: transparent; }
.btn--sm { min-height: 46px; padding: 10px 18px; font-size: 15px; border-width: 2px; }

/* زر الغلاف الوحيد — أثقل وبظل صلب يوحي بالبروز */
.btn--slab {
  min-height: 60px; padding: 16px 34px; font-size: 17px; font-weight: 700;
  box-shadow: 6px 6px 0 var(--ink);
}
[dir="rtl"] .btn--slab { box-shadow: -6px 6px 0 var(--ink); }
.btn--slab:hover { box-shadow: 3px 3px 0 var(--ink); }
[dir="rtl"] .btn--slab:hover { box-shadow: -3px 3px 0 var(--ink); }

.on-dark { --focus: var(--yellow); }
.on-dark .btn { border-color: var(--paper); background: transparent; color: var(--paper); }
.on-dark .btn:hover { background: var(--paper); color: var(--ink); }
.on-dark .btn--primary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.on-dark .btn--primary:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.on-dark .btn--slab { box-shadow: 6px 6px 0 rgba(0,0,0,.34); }
[dir="rtl"] .on-dark .btn--slab { box-shadow: -6px 6px 0 rgba(0,0,0,.34); }

/* رابط نصي بخط سفلي — بديل الزرّ الثاني */
.tlink {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; font-weight: 600; font-size: 16px; color: var(--blue);
  border-block-end: 2px solid var(--yellow);
  transition: color .18s var(--ease), border-color .18s var(--ease), gap .18s var(--ease);
}
.tlink svg { inline-size: 18px; block-size: 18px; flex: none; }
.tlink:hover { color: var(--ink); border-block-end-color: var(--ink); gap: 14px; }
.on-dark .tlink { color: var(--yellow); }
.on-dark .tlink:hover { color: var(--white); border-block-end-color: var(--white); }

.icon-flip { transition: transform .18s var(--ease); }
[dir="rtl"] .icon-flip { transform: scaleX(-1); }

/* ═════════════════ شريط تواصل علوي ═════════════════ */
.strip {
  background: var(--ink); color: var(--paper);
  border-block-end: 4px solid var(--yellow);
  font-size: 14px;
}
.strip__in {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
  min-height: 44px; padding-block: 3px;
}
.strip__item { display: inline-flex; align-items: center; gap: 8px; color: #DCDCD6; }
.strip__item svg { inline-size: 16px; block-size: 16px; color: var(--yellow); flex: none; }
.strip a.strip__item { min-height: 44px; }
.strip a.strip__item:hover { color: var(--yellow); }
.strip__spacer { margin-inline-start: auto; }
@media (max-width: 700px) { .strip__hide { display: none; } }

/* ═════════════════ الترويسة ═════════════════ */
.hdr {
  position: sticky; inset-block-start: 0; z-index: var(--z-header);
  background: var(--paper);
  border-block-end: var(--rule) solid var(--ink);
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.hdr.is-stuck { background: rgba(244,244,242,.96); backdrop-filter: blur(8px); box-shadow: 0 10px 24px -18px rgba(31,31,31,.9); }
.hdr__in { display: flex; align-items: center; gap: 16px; min-height: 74px; transition: min-height .25s var(--ease); }
.hdr.is-stuck .hdr__in { min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.brand__mark {
  inline-size: 42px; block-size: 42px; flex: none;
  background: var(--ink); color: var(--yellow);
  display: grid; place-items: center;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.brand:hover .brand__mark { background: var(--blue); color: var(--yellow); }
.brand__mark svg { inline-size: 26px; block-size: 26px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand__sub { font-size: 12px; color: var(--concrete); font-weight: 500; letter-spacing: .06em; }

.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  font-weight: 500; font-size: 16px; color: var(--ink);
  transition: color .16s var(--ease);
}
.nav__link::after {
  content: ''; position: absolute; inset-block-end: 6px; inset-inline: 14px;
  block-size: 3px; background: var(--yellow);
  transform: scaleX(0); transform-origin: inline-start;
  transition: transform .2s var(--ease);
}
.nav__link:hover { color: var(--blue); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--blue); font-weight: 600; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); background: var(--blue); }

.nav__side { display: flex; align-items: center; gap: 10px; margin-inline-start: 14px; }

.btn-lang {
  min-height: 44px; min-width: 62px; padding: 8px 14px;
  background: transparent; border: 2px solid var(--ink); border-radius: var(--r);
  font-weight: 600; font-size: 14px;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.btn-lang:hover { background: var(--ink); color: var(--yellow); }

.nav-toggle {
  display: none; margin-inline-start: auto;
  inline-size: 48px; block-size: 48px;
  background: var(--ink); color: var(--yellow);
  border-radius: var(--r);
  align-items: center; justify-content: center;
}
.nav-toggle svg { inline-size: 24px; block-size: 24px; }
.nav-toggle .ico-x { display: none; }
.nav-toggle[aria-expanded="true"] .ico-x { display: block; }
.nav-toggle[aria-expanded="true"] .ico-menu { display: none; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; inset-block-start: 100%; inset-inline: 0;
    z-index: var(--z-menu);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-block-end: var(--rule) solid var(--ink);
    padding: 8px 20px 18px;
    margin-inline-start: 0;
  }
  .nav[data-open="false"] { display: none; }
  .nav__link { padding: 12px 4px; border-block-end: 1px solid var(--line); }
  .nav__link::after { inset-inline: 4px; inset-block-end: 0; }
  .nav__side { margin-inline-start: 0; margin-block-start: 14px; }
  .nav__side .btn { flex: 1; }
}

/* ═════════════════ الأقسام العامة ═════════════════ */
.sec { padding-block: clamp(56px, 8vw, 100px); position: relative; }
.sec--tight    { padding-block: clamp(40px, 6vw, 68px); }
.sec--paper2   { background: var(--paper-2); }
.sec--white    { background: var(--white); }
.sec--ink      { background: var(--ink);      color: var(--paper); }
.sec--blue     { background: var(--blue);     color: var(--white); }
.sec--concrete { background: var(--concrete); color: var(--white); }
.sec--line     { border-block-start: var(--rule) solid var(--ink); }

.sec-head { max-width: 60ch; margin-block-end: clamp(30px, 4vw, 46px); }
.sec-head--center { margin-inline: auto; text-align: center; }

.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-block-end: 14px;
}
.tag::before { content: ''; inline-size: 28px; block-size: 4px; background: var(--yellow); flex: none; }
.sec--ink .tag, .sec--blue .tag, .sec--concrete .tag, .on-dark .tag { color: var(--yellow); }

.lead {
  font-size: clamp(1rem, 1.6vw, 1.12rem); color: var(--concrete);
  margin-block-start: 16px; max-width: 66ch;
}
.sec--ink .lead, .sec--blue .lead, .sec--concrete .lead, .on-dark .lead { color: #DCDCD6; }

/* عنوان قسم بخط شعري علوي — تفصيلة تتكرر في كل الصفحات */
.sec-head h2 { position: relative; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 30px; }

/* ═══════════════════════════════════════════════════════
   ١) الغلاف — لوحة هندسية بلا صورة
   ═══════════════════════════════════════════════════════ */
.bp-hero {
  position: relative; overflow: hidden;
  border-block-end: var(--rule-thick) solid var(--ink);
}

/* حقل الغلاف — يحتضن الشريط المائل حتى لا يمتد فوق سكة العدّادات */
.bp-hero__field { position: relative; }

/* الشريط الأصفر المائل — يقطع الحقل خلف المحتوى */
.bp-hero__stripe {
  position: absolute; inset-inline: -12%; inset-block-start: 62%;
  block-size: 12px; background: var(--yellow);
  transform: rotate(-3.4deg);
  box-shadow: 0 0 0 1px rgba(31,31,31,.14);
  pointer-events: none; z-index: 1;
}
[dir="rtl"] .bp-hero__stripe { transform: rotate(3.4deg); }
.bp-hero__stripe::after {
  content: ''; position: absolute; inset-inline: 0; inset-block-start: 20px;
  block-size: 3px; background: var(--ink); opacity: .18;
}

.bp-hero__in {
  position: relative; z-index: var(--z-raised);
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 4vw, 60px); align-items: end;
  padding-block: clamp(50px, 8vw, 104px) clamp(46px, 6vw, 84px);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .1em;
  color: var(--ink); margin-block-end: clamp(18px, 2.5vw, 28px);
}
.eyebrow::before {
  content: ''; inline-size: 46px; block-size: 10px; flex: none;
  background: var(--yellow); box-shadow: 0 0 0 1px rgba(31,31,31,.2);
}

/* العنوان الضخم — بطل الصفحة */
.bp-hero h1 {
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
  max-width: 12ch;
  text-wrap: balance;
}
html[lang="ar"] .bp-hero h1 { line-height: 1.25; letter-spacing: -.02em; }

.bp-hero__rule {
  inline-size: clamp(160px, 26vw, 300px); block-size: var(--rule-thick);
  background: var(--ink); border: 0;
  margin: clamp(22px, 3vw, 34px) 0 clamp(18px, 2.4vw, 26px);
}

.bp-hero__line {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--concrete); max-width: 46ch; font-weight: 500;
}

.bp-hero__act { margin-block-start: clamp(26px, 3.4vw, 40px); }

/* خط أبعاد هندسي — |←—— نص ——→| */
.dimline {
  display: flex; align-items: center; gap: 14px;
  margin-block-start: clamp(28px, 4vw, 44px);
  max-width: 44rem;
  font-size: 14px; font-weight: 500; color: var(--concrete);
}
.dimline::before, .dimline::after {
  content: ''; block-size: 1px; background: var(--concrete-3); flex: 1;
  min-inline-size: 18px;
}
.dimline__cap {
  display: inline-flex; align-items: center; gap: 9px; flex: none;
  text-align: center;
}
.dimline__cap svg { inline-size: 18px; block-size: 18px; color: var(--blue); flex: none; }
.dimline__t { position: relative; }
.dimline__t::before, .dimline__t::after {
  content: ''; position: absolute; inset-block: -7px; inline-size: 1px;
  background: var(--concrete-3);
}
.dimline__t::before { inset-inline-start: -9px; }
.dimline__t::after  { inset-inline-end: -9px; }

/* بطاقة اللوحة (Title block) — الركن الهندسي */
.tblock {
  inline-size: min(300px, 100%);
  background: var(--white);
  border: var(--rule) solid var(--ink);
  box-shadow: 8px 8px 0 rgba(31,31,31,.08);
}
.tblock__h {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--ink); color: var(--yellow);
  padding: 9px 14px; font-size: 11.5px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase;
}
.tblock__h svg { inline-size: 15px; block-size: 15px; flex: none; }
.tblock__r {
  display: grid; grid-template-columns: 1fr auto; gap: 10px;
  padding: 10px 14px; border-block-start: 1px solid var(--line);
  font-size: 13.5px; align-items: baseline;
}
.tblock__r:first-of-type { border-block-start: 0; }
.tblock__k { color: var(--concrete-2); letter-spacing: .04em; }
.tblock__v { font-weight: 700; color: var(--ink); }
.tblock__bar { block-size: 6px; background: var(--yellow); }

@media (max-width: 940px) {
  .bp-hero__in { grid-template-columns: 1fr; align-items: start; }
  .tblock { inline-size: 100%; max-width: 420px; }
  .bp-hero__stripe { inset-block-start: 74%; }
}
@media (max-width: 600px) {
  .bp-hero h1 { max-width: none; letter-spacing: -.02em; }
  .dimline::before, .dimline::after { min-inline-size: 10px; }
}

/* ═══════════════════════════════════════════════════════
   ٢) سكة العدّادات — أرقام ضخمة على الشبكة
   ═══════════════════════════════════════════════════════ */
.cbar {
  position: relative; z-index: var(--z-raised);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-block-start: var(--rule) solid var(--ink);
}
.cbar__i {
  padding: clamp(22px, 3vw, 36px) clamp(12px, 1.6vw, 22px) clamp(20px, 3vw, 32px);
  border-inline-start: var(--rule) solid var(--ink);
  position: relative;
}
.cbar__i:first-child { border-inline-start: 0; }
.cbar__i::before {
  content: ''; position: absolute; inset-block-start: 0; inset-inline-start: 0;
  inline-size: 44px; block-size: var(--rule); background: var(--yellow);
}
.cbar__i:first-child::before { inline-size: 0; }
.cbar__n {
  display: block;
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  font-weight: 800; line-height: .96; letter-spacing: -.045em;
  color: var(--ink);
}
.cbar__l {
  display: block; margin-block-start: 12px;
  font-size: 13.5px; font-weight: 500; color: var(--concrete);
  line-height: 1.5; max-width: 22ch;
}
@media (max-width: 780px) {
  .cbar { grid-template-columns: 1fr 1fr; }
  .cbar__i:nth-child(3) { border-inline-start: 0; }
  .cbar__i:nth-child(-n+2) { border-block-end: var(--rule) solid var(--ink); }
  .cbar__i:nth-child(3)::before { inline-size: 0; }
}

/* ═══════════════════════════════════════════════════════
   ٣) فسيفساء المشاريع (بينتو بمقاسات مختلفة)
   ═══════════════════════════════════════════════════════ */
.mos-bar {
  display: flex; flex-wrap: wrap; gap: 16px 20px;
  align-items: center; justify-content: space-between;
  padding-block-end: 20px; margin-block-end: 26px;
  border-block-end: var(--rule) solid var(--ink);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 46px; padding: 10px 20px;
  background: var(--white); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--r);
  font-weight: 600; font-size: 15px;
  transition: background .16s var(--ease), color .16s var(--ease), box-shadow .16s var(--ease);
}
.chip:hover { background: var(--paper-2); box-shadow: 0 3px 0 var(--yellow); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(96px, 11vw, 132px);
  gap: 14px;
}
.mtile { position: relative; margin: 0; }
.mtile--a { grid-column: 1 / 3; grid-row: 1 / 4; }
.mtile--b { grid-column: 3 / 5; grid-row: 1 / 3; }
.mtile--c { grid-column: 3 / 4; grid-row: 3 / 6; }
.mtile--d { grid-column: 4 / 5; grid-row: 3 / 6; }
.mtile--e { grid-column: 1 / 3; grid-row: 4 / 6; }

.mtile__link {
  position: absolute; inset: 0; display: block; overflow: hidden;
  border: var(--rule) solid var(--ink); background: var(--concrete);
  transition: box-shadow .22s var(--ease), transform .22s var(--ease);
}
.mtile__link:hover { transform: translateY(-4px); box-shadow: 0 10px 0 -2px var(--yellow); }
.mtile__link img {
  inline-size: 100%; block-size: 100%; object-fit: cover;
  transition: transform .5s var(--ease), filter .3s var(--ease);
}
.mtile__link:hover img { transform: scale(1.05); }
/* تدرّج في أسفل الصورة فقط — المبنى يبقى مضيئاً في الأعلى */
.mtile__link::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg,
    rgba(20,20,19,.92) 0%, rgba(20,20,19,.78) 22%,
    rgba(20,20,19,.34) 48%, rgba(20,20,19,0) 72%);
}
.mtile__chip {
  position: absolute; inset-block-start: 0; inset-inline-start: 0; z-index: 2;
  background: var(--yellow); color: var(--ink);
  padding: 6px 13px; font-size: 12px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase;
}
.mtile__cap {
  position: absolute; inset-block-end: 0; inset-inline: 0; z-index: 2;
  padding: 16px 18px 18px; color: var(--white);
}
.mtile__t {
  display: block; font-weight: 700; font-size: clamp(1rem, 1.7vw, 1.24rem);
  line-height: 1.35; text-shadow: 0 1px 10px rgba(0,0,0,.5);
}
.mtile__d {
  display: flex; align-items: center; gap: 8px;
  margin-block-start: 8px; font-size: 13.5px; color: #EDEDE9;
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.mtile__d svg { inline-size: 15px; block-size: 15px; color: var(--yellow); flex: none; }
.mtile__link:hover .mtile__d,
.mtile__link:focus-visible .mtile__d { opacity: 1; transform: none; }
/* على الأجهزة اللمسية لا يوجد hover — السطر يظهر دائماً */
@media (hover: none) {
  .mtile__d { opacity: 1; transform: none; }
}

/* عند تفعيل فلتر، الشبكة تتحول لتوزيع منتظم حتى لا تظهر فجوات */
.mosaic.is-filtered { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); grid-auto-rows: auto; }
.mosaic.is-filtered .mtile { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }

.mos-empty {
  border: var(--rule) dashed var(--line-strong); background: var(--white);
  padding: clamp(30px, 5vw, 48px); text-align: center; color: var(--concrete);
}

@media (max-width: 1000px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .mtile { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .mtile--a { grid-column: 1 / 3; aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  .mosaic { grid-template-columns: 1fr; }
  .mtile, .mtile--a { grid-column: auto; aspect-ratio: 4 / 3; }
}

/* ═══════════════════════════════════════════════════════
   ٤) شريط قبل / بعد — يكسر الحاوية بعرض الشاشة كاملاً
   ═══════════════════════════════════════════════════════ */
.band { background: var(--ink); color: var(--paper); padding-block: clamp(48px, 7vw, 84px); }
.band__head {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px); align-items: end;
  margin-block-end: clamp(26px, 4vw, 40px);
}
@media (max-width: 860px) { .band__head { grid-template-columns: 1fr; align-items: start; } }
.band__stage { padding-inline: 0; }

.ba {
  position: relative; overflow: hidden;
  block-size: clamp(340px, 58vh, 620px);
  border-block: var(--rule) solid var(--yellow);
  background: var(--concrete);
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
  cursor: ew-resize;
}
.ba__layer { position: absolute; inset: 0; }
.ba__layer img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.ba__after {
  position: absolute; inset-block: 0; inset-inline-start: 0;
  inline-size: var(--split, 50%);
  overflow: hidden;
}
.ba__pane { position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: var(--ba-w, 100%); }
.ba__pane img { inline-size: 100%; block-size: 100%; object-fit: cover; }

.ba__divider {
  position: absolute; inset-block: 0; inset-inline-start: var(--split, 50%);
  inline-size: 5px; margin-inline-start: -2.5px;
  background: var(--yellow); pointer-events: none;
  box-shadow: 0 0 0 1px rgba(31,31,31,.55);
}
.ba__handle {
  position: absolute; inset-block-start: 50%; inset-inline-start: var(--split, 50%);
  transform: translateY(-50%);
  margin-inline-start: -32px;
  inline-size: 64px; block-size: 64px;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--ink);
  border: var(--rule) solid var(--ink); border-radius: var(--r);
  z-index: var(--z-raised);
  touch-action: none; cursor: ew-resize;
  transition: background .16s var(--ease), transform .16s var(--ease);
}
.ba__handle:hover { background: var(--white); }
.ba__handle:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.ba__handle svg { inline-size: 28px; block-size: 28px; pointer-events: none; }

.ba__tag {
  position: absolute; inset-block-start: 16px; z-index: 2;
  background: rgba(31,31,31,.9); color: var(--paper);
  padding: 7px 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; pointer-events: none;
}
.ba__tag--a { inset-inline-start: 16px; background: var(--yellow); color: var(--ink); }
.ba__tag--b { inset-inline-end: 16px; }

.ba__hint {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: #C6C6C0; margin-block-start: 14px;
}
.ba__hint svg { inline-size: 18px; block-size: 18px; flex: none; color: var(--yellow); margin-block-start: 3px; }

/* ═══════════════════════════════════════════════════════
   ٥) فهرس الخدمات المرقّم — عمودان بخطوط شعرية
   ═══════════════════════════════════════════════════════ */
.ix-list {
  display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  column-gap: clamp(28px, 5vw, 72px);
  border-block-start: var(--rule) solid var(--ink);
}
.ix {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start; gap: clamp(14px, 2vw, 24px);
  padding-block: clamp(18px, 2.4vw, 26px);
  border-block-end: 1px solid var(--line);
  transition: background .2s var(--ease), padding-inline .2s var(--ease);
}
.ix:hover, .ix:focus-visible { background: var(--white); }
.ix__n {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; line-height: 1;
  letter-spacing: -.04em; color: var(--concrete-3);
  direction: ltr; unicode-bidi: isolate;
  transition: color .2s var(--ease), -webkit-text-stroke-color .2s var(--ease);
}
@supports (-webkit-text-stroke: 1px #000) {
  .ix__n { color: transparent; -webkit-text-stroke: 1.6px var(--line-strong); }
  .ix:hover .ix__n, .ix:focus-visible .ix__n { -webkit-text-stroke-color: var(--blue); }
}
.ix__b { min-width: 0; }
.ix__t { font-size: clamp(1.05rem, 1.9vw, 1.28rem); font-weight: 700; line-height: 1.35; }
.ix__d {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .28s var(--ease), opacity .28s var(--ease);
  opacity: 0;
}
.ix__d > span { overflow: hidden; display: block; }
.ix__d span span {
  display: block; padding-block-start: 8px;
  font-size: 15px; color: var(--concrete); line-height: 1.65;
}
.ix:hover .ix__d, .ix:focus-visible .ix__d, .ix:focus-within .ix__d { grid-template-rows: 1fr; opacity: 1; }
.ix__go {
  inline-size: 34px; block-size: 34px; display: grid; place-items: center;
  border: 2px solid var(--line-strong); color: var(--concrete-2);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.ix__go svg { inline-size: 17px; block-size: 17px; }
.ix:hover .ix__go, .ix:focus-visible .ix__go { background: var(--yellow); border-color: var(--ink); color: var(--ink); }

@media (min-width: 821px) {
  .ix:nth-child(n+4) {
    border-inline-start: 1px solid var(--line);
    padding-inline-start: clamp(22px, 3.4vw, 44px);
  }
}
@media (max-width: 820px) {
  .ix-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  /* بلا hover على اللمس — التفصيلة تظهر دائماً */
  .ix__d { grid-template-rows: 1fr; opacity: 1; }
}

/* ═══════════════════════════════════════════════════════
   ٦) خط سير المشروع — سكة أفقية بعلامات سميكة
   ═══════════════════════════════════════════════════════ */
.stages {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-block-start: var(--rule-thick) solid var(--ink);
}
.stg {
  position: relative;
  padding-block: 34px 0;
  padding-inline: 0 clamp(14px, 2vw, 28px);
}
.stg::before {
  content: ''; position: absolute; inset-block-start: 0; inset-inline-start: 0;
  inline-size: 5px; block-size: 26px; background: var(--yellow);
  box-shadow: 0 0 0 1px rgba(31,31,31,.25);
}
.stg__n {
  display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .2em;
  color: var(--blue); margin-block-end: 10px;
  direction: ltr; unicode-bidi: isolate;
}
.stg h3 { font-size: 1.1rem; margin-block-end: 8px; }
.stg p { font-size: 14.5px; color: var(--concrete); }
@media (max-width: 900px) {
  .stages { grid-template-columns: 1fr 1fr; row-gap: 26px; }
}
@media (max-width: 520px) {
  .stages { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   تقارير المُلّاك — أعمدة بخطوط شعرية، بلا بطاقات
   ═══════════════════════════════════════════════════════ */
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.voice {
  margin: 0; padding: clamp(20px, 2.6vw, 30px) clamp(16px, 2.2vw, 28px);
  border-inline-start: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.voice:first-child { border-inline-start: 0; padding-inline-start: 0; }
.voice svg.q { inline-size: 28px; block-size: 28px; color: var(--yellow); flex: none; }
.voice blockquote { margin: 0; font-size: 16px; line-height: 1.8; flex: 1; }
.voice figcaption { border-block-start: 2px solid var(--ink); padding-block-start: 12px; }
.voice b { display: block; font-size: 15px; }
.voice span { font-size: 13.5px; color: var(--concrete); }
@media (max-width: 900px) {
  .voices { grid-template-columns: 1fr; }
  .voice { border-inline-start: 0; border-block-start: 1px solid var(--line); padding-inline: 0; }
  .voice:first-child { border-block-start: 0; }
}

/* ═══════════════════════════════════════════════════════
   ٧) نداء الإجراء — لوح خرساني بشريط أصفر
   ═══════════════════════════════════════════════════════ */
.slab { position: relative; overflow: hidden; }
.slab__stripe {
  position: absolute; inset-inline: 0; inset-block-start: 0;
  block-size: 10px; background: var(--yellow); z-index: 1;
}
.slab__stripe--b { inset-block-start: auto; inset-block-end: 0; }
/* المحتوى يعلو خطوط الشبكة المكشوفة داخل اللوح */
.slab > .wrap { position: relative; z-index: var(--z-raised); }

.cta-band { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 44px); align-items: center; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band h2 { max-width: 20ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.callout {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 44px; font-weight: 700; font-size: 1.15rem;
}
.callout svg { inline-size: 24px; block-size: 24px; color: var(--yellow); flex: none; }
.callout:hover { color: var(--yellow); }

/* ═══════════════════════════════════════════════════════
   رأس الصفحات الداخلية — نفس حقل اللوحة
   ═══════════════════════════════════════════════════════ */
.page-head {
  position: relative; overflow: hidden;
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg,  var(--bp-major) 0 1px, transparent 1px),
    linear-gradient(180deg, var(--bp-major) 0 1px, transparent 1px),
    linear-gradient(90deg,  var(--bp-minor) 0 1px, transparent 1px),
    linear-gradient(180deg, var(--bp-minor) 0 1px, transparent 1px);
  background-size:
    calc(var(--bp-cell) * 5) calc(var(--bp-cell) * 5),
    calc(var(--bp-cell) * 5) calc(var(--bp-cell) * 5),
    var(--bp-cell) var(--bp-cell),
    var(--bp-cell) var(--bp-cell);
  border-block-end: var(--rule-thick) solid var(--ink);
  padding-block: clamp(58px, 7vw, 92px) clamp(40px, 6vw, 78px);
  color: var(--ink);
}
/* المسطرة نفسها الموجودة في غلاف الرئيسية — تلصق بالحافة العلوية */
.page-head .ruler {
  position: absolute; inset-block-start: 0; inset-inline: 0; z-index: 1;
}
.page-head__in { position: relative; z-index: var(--z-raised); }
.page-head h1 { max-width: 17ch; font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; }
.page-head h1::after {
  content: ''; display: block; inline-size: 120px; block-size: var(--rule-thick);
  background: var(--ink); margin-block-start: 20px;
}
.page-head .tag { color: var(--blue); }
.page-head .lead { color: var(--concrete); }
.page-head .crumb { color: var(--blue); }
/* شريط أصفر مائل خفيف في رأس الصفحات الداخلية أيضاً */
.page-head::after {
  content: ''; position: absolute; inset-inline: -10%; inset-block-end: 14%;
  block-size: 8px; background: var(--yellow); transform: rotate(-2.4deg);
  box-shadow: 0 0 0 1px rgba(31,31,31,.12); pointer-events: none;
}
[dir="rtl"] .page-head::after { transform: rotate(2.4deg); }

/* ═════════════════ كتل نص + صورة ═════════════════ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.split--rev .split__media { order: -1; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev .split__media { order: 0; } }

.split__media { position: relative; }
.split__media::before {
  content: ''; position: absolute; inset-block-start: -14px; inset-inline-start: -14px;
  inline-size: 110px; block-size: 110px;
  border-block-start: var(--rule-thick) solid var(--yellow);
  border-inline-start: var(--rule-thick) solid var(--yellow);
  pointer-events: none;
}
@media (max-width: 860px) { .split__media::before { display: none; } }

.frame { border: var(--rule) solid var(--ink); background: var(--concrete); overflow: hidden; }
.frame img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.ratio-32  { aspect-ratio: 3 / 2; }
.ratio-43  { aspect-ratio: 4 / 3; }
.ratio-11  { aspect-ratio: 1 / 1; }
.ratio-169 { aspect-ratio: 16 / 9; }

.ticks { margin-block-start: 26px; display: grid; gap: 12px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; }
.ticks svg { inline-size: 22px; block-size: 22px; flex: none; color: var(--blue); margin-block-start: 2px; }
.sec--ink .ticks svg, .sec--blue .ticks svg, .sec--concrete .ticks svg, .on-dark .ticks svg { color: var(--yellow); }

/* ═════════════════ بطاقات الخدمات (صفحة الخدمات) ═════════════════ */
.cards { display: grid; gap: 0; grid-template-columns: repeat(3, 1fr); border: var(--rule) solid var(--ink); background: var(--ink); }
.cards > * { background: var(--white); }
.svc { padding: clamp(22px, 3vw, 32px); border: 1.5px solid var(--line); transition: background .2s var(--ease); }
.svc:hover { background: var(--paper); }
.svc__ico {
  inline-size: 52px; block-size: 52px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue);
  border-block-end: 4px solid var(--yellow);
  margin-block-end: 18px;
}
.svc__ico svg { inline-size: 26px; block-size: 26px; }
.svc h3 { margin-block-end: 10px; }
.svc p { color: var(--concrete); font-size: 15.5px; }
.svc__list { margin-block-start: 16px; display: grid; gap: 7px; }
.svc__list li { position: relative; padding-inline-start: 18px; font-size: 14.5px; color: var(--concrete); }
.svc__list li::before {
  content: ''; position: absolute; inset-inline-start: 0; inset-block-start: 11px;
  inline-size: 9px; block-size: 3px; background: var(--yellow);
}
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* ═════════════════ مراحل العمل (صفحة الخدمات) ═════════════════ */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-block-start: var(--rule-thick) solid var(--ink); }
.step {
  position: relative;
  padding-block: 28px 0; padding-inline: 0 20px;
  border-inline-end: 1px solid var(--line);
}
.step:last-child { border-inline-end: none; }
.step::before {
  content: ''; position: absolute; inset-block-start: 0; inset-inline-start: 0;
  inline-size: 5px; block-size: 26px; background: var(--yellow);
}
.big-num {
  display: block; font-size: clamp(2.4rem, 4.6vw, 3.4rem); font-weight: 800; line-height: 1;
  color: var(--concrete-3); letter-spacing: -.04em; margin-block-end: 12px;
}
@supports (-webkit-text-stroke: 1px #000) {
  .big-num { color: transparent; -webkit-text-stroke: 1.6px var(--line-strong); }
}
.step h3 { font-size: 1.05rem; margin-block-end: 8px; }
.step p { font-size: 14.5px; color: var(--concrete); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } .step { border-block-end: 1px solid var(--line); padding-block-end: 22px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step { border-inline-end: none; } }

/* ═════════════════ جدول الأسعار ═════════════════ */
.table-scroll { overflow-x: auto; border: var(--rule) solid var(--ink); background: var(--white); }
table.rates { inline-size: 100%; border-collapse: collapse; min-inline-size: 520px; }
table.rates th, table.rates td { padding: 16px 18px; text-align: start; border-block-end: 1px solid var(--line); }
table.rates thead th { background: var(--ink); color: var(--paper); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
table.rates tbody tr:last-child td { border-block-end: none; }
table.rates tbody tr:nth-child(even) { background: var(--paper); }
table.rates td.name { font-weight: 600; }
table.rates td.unit { color: var(--concrete); font-size: 14.5px; }
.price { font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.price .cur { font-size: 13px; font-weight: 600; color: var(--blue); margin-inline-start: 4px; }
.note-line {
  display: flex; gap: 10px; align-items: flex-start;
  margin-block-start: 18px; font-size: 14px; color: var(--concrete);
  border-inline-start: 5px solid var(--yellow); padding-inline-start: 14px;
}

/* ═════════════════ مزايا / قيم ═════════════════ */
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.6vw, 30px); }
@media (max-width: 1000px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } }
.feat { border-block-start: 5px solid var(--yellow); padding-block-start: 20px; }
.feat__ico { inline-size: 40px; block-size: 40px; display: grid; place-items: center; color: var(--blue); margin-block-end: 12px; }
.sec--ink .feat__ico, .sec--blue .feat__ico, .sec--concrete .feat__ico, .on-dark .feat__ico { color: var(--yellow); }
.feat__ico svg { inline-size: 30px; block-size: 30px; }
.feat h3 { margin-block-end: 8px; }
.feat p { color: var(--concrete); font-size: 15.5px; }
.sec--ink .feat p, .sec--blue .feat p, .sec--concrete .feat p, .on-dark .feat p { color: #D2D2CC; }

/* ═════════════════ سكة أرقام داكنة (صفحة من نحن) ═════════════════ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block-start: var(--rule-thick) solid var(--yellow); }
.stat { padding: clamp(20px, 3vw, 34px) clamp(14px, 2vw, 24px); border-inline-end: 1px solid rgba(255,255,255,.16); }
.stat:last-child { border-inline-end: none; }
.stat b {
  display: block; font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  font-weight: 800; line-height: 1; color: var(--yellow); letter-spacing: -.04em;
  direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-block-start: 10px; font-size: 14px; color: #C9C9C3; line-height: 1.5; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-inline-end: none; }
  .stat:nth-child(-n+2) { border-block-end: 1px solid rgba(255,255,255,.16); }
}

/* ═════════════════ فريق ═════════════════ */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } }
.member { background: var(--white); border: var(--rule) solid var(--ink); padding: 22px; }
.member__badge {
  inline-size: 54px; block-size: 54px; display: grid; place-items: center;
  background: var(--ink); color: var(--yellow); font-weight: 700; font-size: 20px;
  margin-block-end: 16px;
}
.member b { display: block; font-size: 16.5px; }
.member span { display: block; margin-block-start: 5px; font-size: 14px; color: var(--concrete); }

/* ═════════════════ محطات زمنية ═════════════════ */
.timeline { border-inline-start: var(--rule-thick) solid var(--ink); padding-inline-start: 28px; display: grid; gap: 30px; }
.tl { position: relative; }
.tl::before {
  content: ''; position: absolute; inset-inline-start: -36px; inset-block-start: 10px;
  inline-size: 16px; block-size: 16px; background: var(--yellow); border: var(--rule) solid var(--ink);
}
.tl__year {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--blue); line-height: 1;
  direction: ltr; unicode-bidi: isolate;
}
.tl h3 { margin-block: 8px 6px; }
.tl p { color: var(--concrete); font-size: 15.5px; }

/* ═════════════════ شهادات ═════════════════ */
.certs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 700px) { .certs { grid-template-columns: 1fr; } }
.cert {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 2px solid var(--line-strong);
  border-inline-start: 5px solid var(--yellow);
  padding: 16px 18px; font-weight: 500; font-size: 15.5px;
}
.cert svg { inline-size: 24px; block-size: 24px; color: var(--blue); flex: none; }

/* ═════════════════ شبكة المشاريع (صفحة المشاريع) ═════════════════ */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end;
  justify-content: space-between;
  padding-block-end: 22px; margin-block-end: 30px;
  border-block-end: var(--rule) solid var(--ink);
}
.search-field { display: flex; flex-direction: column; gap: 6px; min-width: 250px; }
.search-field label { font-size: 13px; font-weight: 600; color: var(--concrete); }
.search-wrap { position: relative; display: flex; align-items: center; }
.search-wrap svg {
  position: absolute; inset-inline-start: 12px;
  inline-size: 18px; block-size: 18px; color: var(--concrete); pointer-events: none;
}
.search-wrap input { padding-inline-start: 40px; }
.count { font-size: 15px; font-weight: 600; color: var(--blue); padding-block: 8px; }

.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 980px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .proj-grid { grid-template-columns: 1fr; } }

.proj {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white);
  border: var(--rule) solid var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.proj:hover { transform: translateY(-5px); box-shadow: 0 8px 0 var(--yellow); }
.proj:focus-within { box-shadow: 0 8px 0 var(--yellow); }
.proj__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--concrete); }
.proj__media img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.proj:hover .proj__media img { transform: scale(1.04); }
.proj__cat {
  position: absolute; inset-block-end: 0; inset-inline-start: 0;
  background: var(--ink); color: var(--yellow);
  padding: 7px 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
}
.proj__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.proj__title { font-size: 1.18rem; }
.proj__title a::after { content: ''; position: absolute; inset: 0; }
.proj__loc { display: flex; align-items: center; gap: 7px; margin-block-start: 8px; font-size: 14px; color: var(--concrete); }
.proj__loc svg { inline-size: 16px; block-size: 16px; flex: none; color: var(--blue); }
.proj__sum { margin-block-start: 12px; font-size: 15px; color: var(--concrete); flex: 1; }

.proj__meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-block-start: 18px; border-block-start: 1px solid var(--line); padding-block-start: 14px;
}
.proj__meta div { border-inline-end: 1px solid var(--line); padding-inline-end: 10px; }
.proj__meta div:last-child { border-inline-end: none; }
.proj__meta dt { font-size: 11.5px; color: var(--concrete-2); letter-spacing: .07em; text-transform: uppercase; }
.proj__meta dd { margin: 4px 0 0; font-size: 17px; font-weight: 700; }
.proj__meta .unit { font-size: 12px; font-weight: 500; color: var(--concrete); margin-inline-start: 3px; }

.proj__go { display: inline-flex; align-items: center; gap: 8px; margin-block-start: 16px; font-weight: 600; font-size: 15px; color: var(--blue); }
.proj__go svg { inline-size: 18px; block-size: 18px; }

.empty { border: var(--rule) dashed var(--line-strong); padding: clamp(34px, 6vw, 56px); text-align: center; background: var(--white); }
.empty svg { inline-size: 44px; block-size: 44px; color: var(--concrete-2); margin: 0 auto 16px; }
.empty p { color: var(--concrete); margin-block: 10px 22px; }

/* ═════════════════ صفحة تفاصيل المشروع ═════════════════ */
.crumb { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 15px; color: var(--blue); }
.crumb:hover { color: var(--ink); }
.crumb svg { inline-size: 18px; block-size: 18px; }

.dl-meta { display: grid; grid-template-columns: repeat(3, 1fr); border: var(--rule) solid var(--ink); background: var(--white); }
@media (max-width: 780px) { .dl-meta { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .dl-meta { grid-template-columns: 1fr; } }
.dl-meta > div { padding: 18px 20px; border-inline-end: 1px solid var(--line); border-block-end: 1px solid var(--line); }
.dl-meta dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--concrete-2); }
.dl-meta dd { margin: 6px 0 0; font-size: 18px; font-weight: 700; }

.scope-list { display: grid; gap: 12px; margin-block-start: 20px; }
.scope-list li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--white); border-inline-start: 5px solid var(--yellow);
  padding: 14px 16px; font-weight: 500;
}
.scope-list svg { inline-size: 20px; block-size: 20px; color: var(--blue); flex: none; margin-block-start: 3px; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }

.pager { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; border-block-start: var(--rule) solid var(--ink); padding-block-start: 24px; }

/* ═════════════════ نماذج ═════════════════ */
.field { display: flex; flex-direction: column; gap: 7px; margin-block-end: 20px; }
.field > label, .fieldset__legend { font-weight: 600; font-size: 15px; }
.hint { font-size: 13.5px; color: var(--concrete-2); }

input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select, textarea {
  inline-size: 100%; min-height: 50px;
  padding: 12px 14px;
  background: var(--white); color: var(--ink);
  border: 2px solid var(--line-strong); border-radius: var(--r);
  font-size: 16px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
select { appearance: none; padding-inline-end: 40px; background-image: none; }
.select-wrap { position: relative; display: block; }
.select-wrap svg {
  position: absolute; inset-inline-end: 14px; inset-block-start: 50%; transform: translateY(-50%);
  inline-size: 18px; block-size: 18px; color: var(--concrete); pointer-events: none;
}
input:hover, select:hover, textarea:hover { border-color: var(--concrete); }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }

.err { display: none; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--danger); }
.err svg { inline-size: 17px; block-size: 17px; flex: none; }
.err.is-on { display: flex; }

fieldset { border: 0; padding: 0; margin: 0; }
legend { padding: 0; }

.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 620px) { .opt-grid { grid-template-columns: 1fr; } }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; }
.opt label {
  display: flex; gap: 14px; align-items: flex-start;
  min-height: 44px; padding: 18px;
  background: var(--white); border: 2px solid var(--line-strong); border-radius: var(--r);
  cursor: pointer;
  transition: border-color .16s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease);
}
.opt label:hover { border-color: var(--concrete); }
.opt input:checked + label { border-color: var(--ink); background: #FFFBEA; box-shadow: inset 0 0 0 2px var(--yellow); }
.opt input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt__ico { inline-size: 30px; block-size: 30px; color: var(--blue); flex: none; }
.opt__ico svg { inline-size: 30px; block-size: 30px; }
.opt__txt { flex: 1; }
.opt b { display: block; font-size: 16px; }
.opt .opt__d { display: block; margin-block-start: 4px; font-size: 14px; color: var(--concrete); }

/* ═════════════════ معالج طلب العرض ═════════════════ */
.wiz-shell { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 4vw, 44px); align-items: start; }
@media (max-width: 900px) { .wiz-shell { grid-template-columns: 1fr; } }

.wiz { background: var(--white); border: var(--rule) solid var(--ink); padding: clamp(20px, 3vw, 34px); }
.wiz__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; justify-content: space-between; }
.wiz__of { font-size: 14px; font-weight: 600; color: var(--blue); }
.wiz__track { block-size: 12px; background: var(--paper-2); border: 2px solid var(--ink); margin-block: 14px 6px; }
.wiz__fill { block-size: 100%; inline-size: 33.33%; background: var(--yellow); transition: inline-size .3s var(--ease); }
.wiz__labels { display: flex; gap: 8px; justify-content: space-between; font-size: 13px; color: var(--concrete-2); margin-block-end: 26px; }
.wiz__labels span { flex: 1; }
.wiz__labels span:nth-child(2) { text-align: center; }
.wiz__labels span:last-child { text-align: end; }
.wiz__labels span.is-on { color: var(--ink); font-weight: 600; }

.wiz__panel[hidden] { display: none; }
.wiz__panel h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.wiz__panel > p.lead { margin-block: 10px 24px; font-size: 16px; }
.wiz__nav { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 28px; border-block-start: 1px solid var(--line); padding-block-start: 22px; }
.wiz__nav [data-wiz-next], .wiz__nav [data-wiz-submit] { margin-inline-start: auto; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }

.summary { border: 2px solid var(--line-strong); border-inline-start: 5px solid var(--yellow); background: var(--paper); padding: 18px; margin-block-start: 8px; }
.summary h3 { font-size: 1rem; margin-block-end: 12px; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 15px; }
.summary dt { color: var(--concrete); }
.summary dd { margin: 0; font-weight: 600; text-align: start; }

.done { text-align: center; padding-block: 10px; }
.done__ico { inline-size: 68px; block-size: 68px; margin: 0 auto 20px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); }
.done__ico svg { inline-size: 36px; block-size: 36px; }
.ref {
  display: inline-block; margin-block: 20px;
  background: var(--ink); color: var(--yellow);
  padding: 14px 24px; font-size: 1.25rem; font-weight: 700; letter-spacing: .1em;
  direction: ltr; unicode-bidi: isolate;
}
.done__note { font-size: 14px; color: var(--concrete); margin-block-start: 18px; }
.done .actions { justify-content: center; margin-block-start: 22px; }

.aside-card { background: var(--ink); color: var(--paper); padding: clamp(20px, 3vw, 28px); border-block-start: var(--rule-thick) solid var(--yellow); }
.aside-card h3 { color: var(--white); margin-block-end: 16px; }
.aside-card .ticks li { font-size: 15px; }
.aside-card .ticks svg { color: var(--yellow); }
.aside-card hr { border: 0; border-block-start: 1px solid rgba(255,255,255,.18); margin-block: 22px; }
.aside-card .k { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: #A9A9A3; }
.aside-card .v { font-weight: 700; font-size: 1.1rem; margin-block-start: 4px; color: var(--yellow); }
.aside-card .v a { display: inline-flex; align-items: center; min-height: 44px; }
.aside-card .v--sm { font-size: 15px; font-weight: 500; color: var(--paper); }

/* ═════════════════ التذييل ═════════════════ */
.foot { background: var(--ink); color: #C9C9C3; border-block-start: var(--rule-thick) solid var(--yellow); }
.foot__in { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; gap: 32px; padding-block: clamp(38px, 5vw, 58px); }
@media (max-width: 900px) { .foot__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot__in { grid-template-columns: 1fr; } }
.foot h4 { color: var(--white); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-block-end: 16px; }
.foot p { font-size: 15px; line-height: 1.7; }
.foot ul { display: grid; gap: 2px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.foot a:hover { color: var(--yellow); }
.foot .brand__mark { background: transparent; border: 2px solid var(--yellow); }
.foot .brand:hover .brand__mark { background: var(--yellow); color: var(--ink); }
.foot .brand__name { color: var(--white); }
.foot .brand__sub { color: #9C9C96; }
.foot .brand { margin-block-end: 16px; }
.foot__row { display: flex; gap: 10px; align-items: flex-start; margin-block-end: 12px; font-size: 15px; }
.foot__row svg { inline-size: 18px; block-size: 18px; color: var(--yellow); flex: none; margin-block-start: 4px; }
.foot__bar {
  border-block-start: 1px solid rgba(255,255,255,.14);
  padding-block: 20px; display: flex; flex-wrap: wrap; gap: 10px 24px;
  justify-content: space-between; font-size: 13.5px; color: #9C9C96;
}

/* ═════════════════ حركة مخفّضة ═════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .ix__d { grid-template-rows: 1fr; opacity: 1; }
  .mtile__d { opacity: 1; transform: none; }
}

/* ═════════════════ طباعة ═════════════════ */
@media print {
  .hdr, .strip, .foot, .nav-toggle, .px-demo-badge, .bp-hero__stripe { display: none; }
  body { background: #fff; color: #000; }
  .bp, .page-head { background-image: none; }
}

/* ═══ تصفير هوامش المتصفح الافتراضية ═══
   المتصفح يطبّق margin: 1em 40px على figure و blockquote تلقائيًا،
   فتظهر فجوة 40 بكسل غير مقصودة حول الصور والاقتباسات. */
figure, blockquote, dl, dd { margin: 0; }
