@charset "UTF-8";
/* =====================================================================
   روافد | Rafidain Dev
   نظام التصميم — ورق جيري دافئ · حبر · أزرق لازوردي (لابيس) · مغرة
   ---------------------------------------------------------------------
   قواعد ثابتة لا تُكسر:
   · letter-spacing ممنوع على أي نص عربي (الحروف تتصل).
   · IBM Plex Mono للأرقام واللاتيني فقط — لا حروف عربية فيه.
   · أي رقم أو هاتف: unicode-bidi:plaintext + text-align:right —
     لا direction:ltr (تقلب المحاذاة)، ولا plaintext وحدها (تجعل
     الفقرة لاتينية فيهرب الرقم إلى يسار خانته).
   · خصائص منطقية دائماً (inline-start/end) لا left/right.
   ===================================================================== */

/* ------------------------------ 1. المتغيّرات ------------------------------ */
:root {
  /* الورق والحبر */
  --paper:    #F7F4EE;
  --paper-2:  #F1EDE5;
  --paper-3:  #E8E3D8;
  --ink:      #14161A;
  --ink-2:    #3E434B;
  --ink-3:    #767B84;
  --rule:     #DED8CB;
  --rule-2:   #C9C1B1;

  /* لون العلامة — أزرق لازوردي بابلي */
  --lapis:    #1B3D7E;
  --lapis-d:  #0F2450;
  --lapis-l:  #2C57A8;
  --lapis-t:  rgba(27, 61, 126, .08);

  /* لهجة ثانية — مغرة الطين العراقي.
     تُستخدم في ثلاثة مواضع فقط في الموقع كله: شارة «الأكثر طلباً»،
     نجمة الحقل المطلوب، والخط السفلي داخل الشعار (--ochre-l).
     ممنوعة كلون نصّ أو رقم. (لوحة الغلاف البنّية #6E3D1E في .plate--ochre خلفية
     لا حبر، فهي جزء من مجموعة ألواح الأعمال لا من لهجة النص.)
     لا تُستخدم للأرقام ولا للتسميات — انظر «نظام أرقام الفهرسة» أدناه. */
  --ochre:    #A85D2B;
  --ochre-l:  #C0703A;

  /* خطوط */
  --f-disp: 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --f-body: 'IBM Plex Sans Arabic', 'Noto Kufi Arabic', 'Segoe UI', Tahoma, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* قياسات */
  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 56px);
  --pad-sec: clamp(72px, 8.5vw, 132px);
  --r: 3px;
  --nav-h: 76px;

  /* حركة */
  --ease: cubic-bezier(.22, .68, .16, 1);
}

/* ------------------------------ 2. الأساس ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0125rem;
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* حبيبات ورق — أهم تفصيل يمنع الإحساس بالسطح الرقمي المسطّح */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* قفل التمرير خلف القائمة المفتوحة. iOS يتجاهل overflow:hidden على body،
   فنثبّت الجسم مكانه — و main.js يحفظ موضع التمرير في inline top ويعيده
   عند الإغلاق، وإلا قفزت الصفحة إلى أعلاها. */
body.locked { position: fixed; inset-inline: 0; width: 100%; overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }
::selection { background: var(--lapis); color: var(--paper); }

/* ------------------------------ 3. الطباعة ------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--f-disp);
  font-weight: 700;
  letter-spacing: normal;   /* العربية تتصل */
  margin: 0;
  color: var(--ink);
  /* يمنع بقاء كلمة وحيدة في السطر الأخير */
  text-wrap: balance;
}

h1, .d1 {
  font-size: clamp(2.15rem, 5.6vw, 4.15rem);
  line-height: 1.22;
}
h2, .d2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  line-height: 1.32;
}
h3 { font-size: 1.14rem; line-height: 1.6; font-weight: 600; }
h4 { font-size: 1rem; line-height: 1.6; font-weight: 600; }

.lead {
  font-size: clamp(1.03rem, 1.35vw, 1.16rem);
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 62ch;
}
.sm  { font-size: .93rem; }
.xs  { font-size: .84rem; }
.mut { color: var(--ink-3); }
.soft { color: var(--ink-2); }
.lap { color: var(--lapis); }
/* لا يوجد صنف مساعد للمغرة عن قصد — المغرة ليست لوناً للنص. اقرأ قاعدة الأرقام أدناه. */

/* الأرقام واللاتيني — دائماً معزولة عن اتجاه النص */
.num, .ltr,
[data-site="contact.phoneDisplay"],
[data-site="contact.phone2Display"],
[data-site="contact.email"] {
  /* plaintext ترتّب المحتوى من اليسار لليمين (الترتيب الصحيح للرقم)،
     لكن الفقرة تصبح لاتينية فتهرب المحاذاة إلى اليسار — لذلك
     text-align:right يعيدها إلى بداية السطر العربية. (right فيزيائي
     مقصود: الموقع عربي بالكامل ولا نسخة لاتينية له.) */
  unicode-bidi: plaintext;
  text-align: right;
  text-align: right;
  font-feature-settings: 'tnum' 1;
}
.mono { font-family: var(--f-mono); unicode-bidi: plaintext; text-align: right; }

/* تسمية القسم: رقم لاتيني بخط مونو + كلمة عربية */
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 20px;
}

/* ═══════════════ نظام أرقام الفهرسة — قاعدة واحدة للموقع كله ═══════════════
   الرقم الترتيبي (01، 02، …) بنية لا زينة، فله لون واحد في كل مكان:
     • على الورق:    غرافيتي هادئ  var(--ink-2)  — مونو + أرقام جدولية tnum
     • على الداكن:   rgba(255,255,255,.55)
     • عند التفاعل:  var(--lapis) — صف قابل للنقر تحت المؤشّر، أو سؤال مفتوح
   والتسميات اللاتينية الصغيرة (ANALYSIS، HOW WE WORK) أهدأ درجة: var(--ink-3).
   ممنوع تلوين الأرقام بالمغرة. المغرة كحبر محجوزة لثلاثة مواضع فقط في الموقع:
   شارة «الأكثر طلباً»، نجمة الحقل المطلوب، والخط السفلي داخل الشعار.
   لتغيير لون كل الأرقام دفعة واحدة: بدّل var(--ink-2) في القواعد أدناه. */
.kicker i {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: .76rem;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: .06em;            /* لاتيني — التباعد مسموح */
  font-feature-settings: 'tnum' 1;  /* أرقام بعرض ثابت فتصطفّ عمودياً */
  unicode-bidi: plaintext;
  text-align: right;
  padding-block-end: 1px;
}
.kicker i::after {
  content: '';
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--rule-2);
  vertical-align: 4px;
  margin-inline-start: 12px;
}

/* عنوان قسم + وصف */
.head { max-width: 46ch; }
.head h2 + p { margin-top: 18px; }
.head--wide { max-width: 62ch; }
.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

/* ------------------------------ 4. التخطيط ------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.section { padding-block: var(--pad-sec); }
.section--tight { padding-block: clamp(52px, 6vw, 84px); }
.section--line { border-top: 1px solid var(--rule); }
.section--paper2 { background: var(--paper-2); }

.grid { display: grid; gap: clamp(26px, 3vw, 40px); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

/* شقّان: نص + محتوى، بعرض غير متساوٍ (تكوين تحريري) */
.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(36px, 5vw, 84px);
  align-items: start;
}
.split--even { grid-template-columns: 1fr 1fr; }
.split--wide-start { grid-template-columns: 1.25fr 1fr; }
.sticky { position: sticky; top: calc(var(--nav-h) + 40px); }

/* شبكة زخرفية مشتقّة من الآجر البابلي — تُستخدم بشفافية منخفضة جداً */
.lattice {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M0 22L22 0l22 22L22 44z'/%3E%3Cpath d='M22 0v44M0 22h44'/%3E%3C/g%3E%3C/svg%3E");
}

/* ------------------------------ 5. الأزرار والروابط ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--r);
  font-family: var(--f-body);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary { background: var(--lapis); color: var(--paper); }
.btn--primary:hover { background: var(--lapis-d); }

.btn--ghost { border-color: var(--rule-2); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.btn--light { background: var(--paper); color: var(--lapis-d); }
.btn--light:hover { background: #fff; }

.btn--outline-light { border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .55); }

.btn--sm { padding: 11px 20px; font-size: .88rem; }
.btn--block { width: 100%; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* رابط نصّي بسهم */
.lnk {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: .93rem;
  color: var(--lapis);
  padding-block-end: 2px;
  border-bottom: 1px solid var(--rule-2);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
/* السهم بعد النص (أي: على يساره في الاتجاه العربي) */
.lnk::after {
  content: '←';
  font-family: var(--f-mono);
  font-size: .9em;
  transition: transform .25s var(--ease);
}
.lnk:hover { color: var(--lapis-d); border-color: var(--lapis); }
.lnk:hover::after { transform: translateX(-4px); }
.lnk--light { color: #fff; border-color: rgba(255, 255, 255, .35); }
.lnk--light:hover { color: #fff; border-color: #fff; }

/* ------------------------------ 6. الشريط العلوي ------------------------------ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.topbar.is-stuck { border-bottom-color: var(--rule); background: rgba(247, 244, 238, .93); backdrop-filter: blur(10px); }

.topbar-in {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* الشعار */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-mark svg { width: 100%; height: 100%; }
.logo-txt { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.logo-txt b {
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: normal;
}
.logo-txt span {
  font-family: var(--f-mono);
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .17em;   /* لاتيني — التباعد مسموح */
  color: var(--ink-3);
  unicode-bidi: plaintext;
  text-align: right;
  margin-inline-end: -.17em;  /* يلغي تباعد الحرف الأخير فيتطابق حدّ السطرين */
}

/* التنقل */
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  position: relative;
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink-2);
  padding-block: 6px;
  transition: color .2s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); font-weight: 600; }
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 2px;
  background: var(--lapis);
}

.topbar-cta { display: flex; align-items: center; gap: 18px; }

/* زر القائمة للموبايل */
.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.burger i { display: block; width: 17px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.burger.is-open i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open i:nth-child(2) { opacity: 0; }
.burger.is-open i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* القائمة المنسدلة */
.drawer {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 190;
  background: var(--paper);
  padding: 8px var(--gut) 40px;
  overflow-y: auto;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.drawer a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 21px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--f-disp);
  font-size: 1.32rem;
  font-weight: 600;
}
.drawer a em {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: .74rem;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: .06em;
  font-feature-settings: 'tnum' 1;
  unicode-bidi: plaintext;
  text-align: right;
}
.drawer a.active em { color: var(--lapis); }
.drawer a.active { color: var(--lapis); }
.drawer .btn { margin-top: 30px; }
.drawer-foot { margin-top: 26px; font-size: .9rem; color: var(--ink-3); }
.drawer-foot a { display: inline; font-family: var(--f-body); font-size: inherit; border: 0; padding: 0; }

/* ------------------------------ 7. الواجهة (الهيرو) ------------------------------ */
.hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 116px) clamp(44px, 5vw, 72px);
  overflow: hidden;
}
/* زخرفة خفيفة جداً في الزاوية — نسيج لا صورة */
.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  inset-inline-start: -80px;
  width: 460px;
  height: 460px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='none' stroke='%231B3D7E' stroke-width='1'%3E%3Cpath d='M0 22L22 0l22 22L22 44z'/%3E%3Cpath d='M22 0v44M0 22h44'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .07;
  mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero > * { position: relative; }

.hero h1 { max-width: 20ch; text-wrap: balance; }
.hero .lead { margin-top: 26px; max-width: 56ch; }
.hero .btns { margin-top: 36px; }

/* شقّا الواجهة: النص يمين والمشهد المرسوم يسار.
   المشهد SVG داخلي (لا صورة) مرسوم بألوان النظام نفسها — متصفح بلوحة
   تحكم عربية وهاتف وبطاقتا إشعار — فيبقى حاداً على كل الشاشات وخفيفاً
   على الشبكة. الحركة العائمة تتوقف تلقائياً مع prefers-reduced-motion. */
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }
.hero-art .ha-shadow    { filter: drop-shadow(0 22px 34px rgba(15, 36, 80, .13)); }
.hero-art .ha-shadow-sm { filter: drop-shadow(0 10px 20px rgba(15, 36, 80, .16)); }
@keyframes ha-float {
  from { transform: translateY(-5px); }
  to   { transform: translateY(7px); }
}
.hero-art .ha-fl1 { animation: ha-float 7s var(--ease) infinite alternate; }
.hero-art .ha-fl2 { animation: ha-float 6s var(--ease) -2s infinite alternate; }
.hero-art .ha-fl3 { animation: ha-float 8s var(--ease) -4s infinite alternate; }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* على الشاشة الضيقة يأتي المشهد بعد الأزرار وقبل شريط الحقائق، مصغّراً
     كي لا يدفع الأرقام بعيداً عن أول شاشة */
  .hero-art { max-width: 460px; margin-top: 14px; }
}

/* شريط الحقائق أسفل الهيرو */
.factbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  margin-top: clamp(48px, 6vw, 82px);
}
.factbar > div {
  padding: 26px 0 4px;
  padding-inline-end: 24px;
  border-inline-start: 1px solid var(--rule);
  padding-inline-start: 24px;
}
.factbar > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.fact-n {
  font-family: var(--f-disp);
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--lapis);
  unicode-bidi: plaintext;
  text-align: right;
  font-feature-settings: 'tnum' 1;
}
.fact-l { font-size: .86rem; color: var(--ink-3); margin-top: 8px; line-height: 1.6; }

/* شريط الأرقام داخل الشريط الداكن */
.band .factbar,
.band .factbar > div { border-color: rgba(255, 255, 255, .18); }
.band .fact-n { color: #fff; }
.band .fact-l { color: rgba(255, 255, 255, .58); }

/* ------------------------------ 8. الشريط الداكن (لابيس) ------------------------------ */
.band {
  position: relative;
  background: var(--lapis-d);
  color: #EAE7E0;
  padding-block: clamp(62px, 7vw, 104px);
  overflow: hidden;
}
.band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M0 22L22 0l22 22L22 44z'/%3E%3Cpath d='M22 0v44M0 22h44'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .045;
  pointer-events: none;
}
.band > * { position: relative; }
.band h2, .band h3 { color: #fff; }
.band .lead, .band p { color: rgba(255, 255, 255, .74); }
.band .kicker { color: rgba(255, 255, 255, .7); }
.band .kicker i { color: rgba(255, 255, 255, .55); }
.band .kicker i::after { background: rgba(255, 255, 255, .25); }
.band--lapis { background: var(--lapis); }

/* بيان + ثلاثة أعمدة */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.pillars > div {
  padding: 30px 0 0;
  padding-inline: 28px;
  border-inline-start: 1px solid rgba(255, 255, 255, .18);
}
.pillars > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.pillars h3 { font-size: 1.05rem; margin-bottom: 10px; }
.pillars p { font-size: .93rem; }
.pillars em {
  display: block;
  font-family: var(--f-mono);
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 14px;
  unicode-bidi: plaintext;
  text-align: right;
}

/* ------------------------------ 9. قائمة الخدمات (صفوف بخطوط شعرية) ------------------------------ */
.rows { border-top: 1px solid var(--rule); }
.row-item {
  display: grid;
  grid-template-columns: 54px 1fr 1.2fr auto 18px;
  gap: 26px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
  transition: background .25s var(--ease);
}
.row-item:hover { background: var(--paper-2); }
.row-n {
  font-family: var(--f-mono);
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: .06em;
  font-feature-settings: 'tnum' 1;
  unicode-bidi: plaintext;
  text-align: right;
  padding-block-start: 4px;
  transition: color .25s var(--ease);
}
.row-item:hover .row-n { color: var(--lapis); }
.row-item h3 { font-size: 1.22rem; font-weight: 700; font-family: var(--f-disp); }
.row-item > p { font-size: .95rem; color: var(--ink-2); margin: 0; }
.row-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag {
  font-family: var(--f-mono);
  font-size: .68rem;
  font-weight: 500;
  padding: 4px 9px;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  color: var(--ink-2);
  unicode-bidi: plaintext;
  text-align: right;
  white-space: nowrap;
}
.tag--ar { font-family: var(--f-body); font-size: .76rem; direction: rtl; }
.row-go { color: var(--ink-3); font-size: 1.1rem; transition: color .2s, transform .25s var(--ease); }
.row-item:hover .row-go { color: var(--lapis); transform: translateX(-4px); }

/* ------------------------------ 10. البطاقات الهادئة ------------------------------ */
.card {
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: clamp(24px, 2.6vw, 34px);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.card:hover { border-color: var(--rule-2); background: var(--paper-2); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .95rem; color: var(--ink-2); }
.card--fill { background: var(--paper-2); border-color: transparent; }
.card--fill:hover { border-color: var(--rule-2); }
.card--ink { background: var(--lapis-d); border-color: transparent; color: #EAE7E0; }
.card--ink h3 { color: #fff; }
.card--ink p { color: rgba(255, 255, 255, .74); }

.card-n {
  font-family: var(--f-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--ink-3);
  unicode-bidi: plaintext;
  text-align: right;
  display: block;
  margin-bottom: 18px;
}
.band .card-n,
.card--ink .card-n { color: rgba(255, 255, 255, .55); }

/* خطوة بلا إطار — تُستخدم داخل شبكة */
.stepbox h3 { margin-bottom: 10px; }
.stepbox p { font-size: .94rem; margin: 0; }

/* أيقونة خطّية بسيطة */
.ico {
  width: 34px; height: 34px;
  margin-bottom: 20px;
  color: var(--lapis);
}
.ico svg { width: 100%; height: 100%; }

/* ------------------------------ 11. قائمة بعلامات ------------------------------ */
.ticks li {
  position: relative;
  padding-inline-start: 24px;
  padding-block: 7px;
  font-size: .95rem;
  color: var(--ink-2);
}
.ticks li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 17px;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--lapis);
  border-radius: 1px;
  transform: rotate(45deg);
}
.ticks--light li { color: rgba(255, 255, 255, .78); }
.ticks--light li::before { border-color: rgba(255, 255, 255, .45); }

/* نقاط مرقّمة */
.numbered { border-top: 1px solid var(--rule); }
.numbered li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.numbered em {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: .84rem;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: .06em;
  font-feature-settings: 'tnum' 1;
  unicode-bidi: plaintext;
  text-align: right;
  padding-block-start: 4px;
}
.numbered h4 { margin-bottom: 6px; }
.numbered p { font-size: .93rem; color: var(--ink-2); margin: 0; }

/* ------------------------------ 12. مراحل العمل ------------------------------ */
.phases { border-top: 1px solid var(--rule); }
.phase {
  display: grid;
  grid-template-columns: 58px 1.1fr 1.4fr 130px;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.phase em {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: .84rem;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: .06em;
  font-feature-settings: 'tnum' 1;
  unicode-bidi: plaintext;
  text-align: right;
}
.phase h3 { font-family: var(--f-disp); font-size: 1.1rem; font-weight: 700; }
.phase p { font-size: .94rem; color: var(--ink-2); margin: 0; }
.phase-t {
  font-size: .84rem;
  color: var(--ink-3);
  text-align: start;
}

/* ------------------------------ 13. الأعمال ------------------------------ */
.works { display: grid; gap: clamp(34px, 4vw, 54px); }
.works--3 { grid-template-columns: repeat(3, 1fr); }
.works--2 { grid-template-columns: repeat(2, 1fr); }

.work { display: flex; flex-direction: column; }
.work-plate {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--lapis-d);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.work:hover .work-plate {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(10, 18, 38, .25);
}
.work-plate::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M0 22L22 0l22 22L22 44z'/%3E%3Cpath d='M22 0v44M0 22h44'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .07;
}
/* عمق خفيف فوق اللوح كله — ضوء من الأعلى وظل من الأسفل */
.work-plate::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(168deg, rgba(255, 255, 255, .07), transparent 34%, rgba(0, 0, 0, .18));
  pointer-events: none;
}
.plate--slate  { background: #2C3742; }
.plate--ochre  { background: #6E3D1E; }
.plate--olive  { background: #333A2E; }
.plate--ink    { background: #1B1D21; }
.plate--lapis  { background: var(--lapis); }
.plate--clay   { background: #58323B; }

/* رسم تخطيطي أبيض داخل اللوح (assets/art/‏*.svg) — بديل شريف للسكرين‌شوت
   الوهمي: مخطط سلكي مجرّد يوحي بنوع المشروع بلا نص ولا شعار مختلَق.
   الملفات مرسومة بأبيض شفّاف فتصلح فوق أي لون لوح، وترتفع قليلاً مع المرور. */
.work-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.work:hover .work-art { transform: translateY(-3px) scale(1.015); }
.work-cat {
  position: absolute;
  top: 15px;
  inset-inline-end: 15px;
  font-size: .74rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .88);
  background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 2px;
  padding: 4px 10px;
  backdrop-filter: blur(4px);
}
.work-body { padding-top: 20px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.work-body h3 { font-family: var(--f-disp); font-size: 1.1rem; font-weight: 700; }
.work-body > p { font-size: .93rem; color: var(--ink-2); margin: 0; }
.work-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 13px;
  margin-top: auto;
  border-top: 1px solid var(--rule);
  font-size: .87rem;
}
.work-meta b { font-family: var(--f-mono); font-weight: 500; font-feature-settings: 'tnum' 1; font-size: .84rem; color: var(--lapis); unicode-bidi: plaintext; text-align: right; }
.work-meta span { color: var(--ink-3); }

/* أزرار الفلترة */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 8px 0;
}
.filters button {
  font-size: .89rem;
  font-weight: 500;
  padding: 9px 17px;
  border: 1px solid var(--rule-2);
  border-radius: 99px;
  color: var(--ink-2);
  transition: all .2s var(--ease);
}
.filters button:hover { border-color: var(--ink-3); color: var(--ink); }
.filters button.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ------------------------------ 14. الفريق ------------------------------ */
/* لوحة العضو: صورة العضو بنسبة موحّدة (1 : 1.12) — أو حرف اسمه إن لم
   تتوفّر صورة. الصور بالأبيض والأسود دائماً — لا تعود بألوانها عند المرور
   ولا عند اللمس — لتوحيد ثلاث صور مختلفة الإضاءة والخلفية في صفّ واحد.
   لعرضها بألوانها: احذف سطر filter في .member-plate img. */
.member-plate {
  aspect-ratio: 1 / 1.12;
  border-radius: var(--r);
  border: 1px solid var(--rule);
  background: var(--paper-3);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.member-plate span {
  font-family: var(--f-disp);
  font-size: 2.7rem;
  font-weight: 700;
  color: var(--lapis);
  opacity: .38;
}
.member-plate::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='none' stroke='%231B3D7E' stroke-width='1'%3E%3Cpath d='M0 22L22 0l22 22L22 44z'/%3E%3Cpath d='M22 0v44M0 22h44'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .1;
}
/* الشبكة الهندسية للحرف فقط — لا تُرسم فوق وجه إنسان */
.member-plate:has(img)::after { display: none; }
.member-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.03);
}
.member h3 { margin-top: 18px; font-size: 1.05rem; }
.member .role {
  font-size: .86rem;
  color: var(--lapis);
  font-weight: 600;
  margin-top: 3px;
}
.member p { font-size: .9rem; color: var(--ink-2); margin-top: 10px; }

/* ------------------------------ 15. الاقتباس ------------------------------ */
/* قسم «آراء العملاء» محذوف من الصفحات حالياً (بانتظار آراء حقيقية)، لكن هذه
   الأصناف باقية جاهزة: أعِد بناء القسم بنسخ القالب من README (القسم 5)
   وستعمل بلا أي تعديل هنا. `.quote-body` وحدها مستخدمة الآن في الشريط الداكن. */
.quote { max-width: 30ch; }

/* شبكة اقتباسات بعمودين، كل واحد مسنود بخط رأسي رقيق */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(30px, 4vw, 66px);
  margin-top: clamp(44px, 5vw, 70px);
}
.quotes .quote {
  max-width: none;
  padding-inline-start: clamp(22px, 2.6vw, 38px);
  border-inline-start: 1px solid var(--rule-2);
}
.quotes .quote-body { font-size: clamp(1.1rem, 1.7vw, 1.4rem); max-width: none; }
.quote-body {
  font-family: var(--f-disp);
  font-size: clamp(1.3rem, 2.5vw, 1.95rem);
  font-weight: 600;   /* 600 لا 500: وزن الكوفي الوحيد المحمَّل للعناوين */
  line-height: 1.6;
  color: var(--ink);
  max-width: 34ch;
}
.band .quote-body { color: #fff; }
.quote-mark {
  font-family: var(--f-disp);
  font-size: 3.4rem;
  line-height: .6;
  color: var(--rule-2);
  display: block;
  margin-bottom: 18px;
}
.quote-by {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.band .quote-by { border-top-color: rgba(255, 255, 255, .2); }
.quote-by i {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 2px;
  background: var(--paper-3);
  display: grid;
  place-items: center;
  font-family: var(--f-disp);
  font-style: normal;
  font-weight: 700;
  color: var(--lapis);
  font-size: 1rem;
}
.band .quote-by i { background: rgba(255, 255, 255, .12); color: #fff; }
.quote-by b { display: block; font-size: .95rem; font-weight: 600; }
.quote-by span { display: block; font-size: .84rem; color: var(--ink-3); }
.band .quote-by span { color: rgba(255, 255, 255, .6); }

/* ------------------------------ 16. الأسئلة الشائعة ------------------------------ */
.qas { border-top: 1px solid var(--rule); }
.qa { border-bottom: 1px solid var(--rule); }
.qa summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--f-disp);
  font-size: 1.03rem;
  font-weight: 600;
  list-style: none;
  transition: color .2s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--lapis); }
.qa summary i {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink-3);
  flex: none;
  line-height: 1;
  transition: transform .28s var(--ease), color .2s var(--ease);
}
.qa summary:hover i { color: var(--lapis); }
.qa[open] summary i { transform: rotate(45deg); color: var(--lapis); }
.qa-a {
  padding-block: 0 26px;
  font-size: .95rem;
  color: var(--ink-2);
  max-width: 74ch;
}

/* ------------------------------ 17. الباقات ------------------------------ */
.plan {
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: clamp(26px, 2.8vw, 36px);
  display: flex;
  flex-direction: column;
}

/* باقة داكنة (داخل خلفية ورقية) */
.plan--hi { background: var(--lapis-d); border-color: transparent; color: #EAE7E0; position: relative; }
.plan--hi h3, .plan--hi .plan-price { color: #fff; }
.plan--hi .plan-note, .plan--hi p { color: rgba(255, 255, 255, .72); }
.plan--hi .ticks li { color: rgba(255, 255, 255, .8); }
.plan--hi .ticks li::before { border-color: rgba(255, 255, 255, .45); }

/* باقة زجاجية (داخل شريط لازوردي داكن) */
.plan--glass {
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .16);
  position: relative;
}
.plan--glass h3, .plan--glass .plan-price { color: #fff; }
.plan--glass .plan-note, .plan--glass p { color: rgba(255, 255, 255, .62); }
.plan--glass hr { border-top-color: rgba(255, 255, 255, .18); }

/* الباقة المميّزة: ورقة بيضاء داخل الشريط الداكن */
.plan--paper {
  background: var(--paper);
  border-color: transparent;
  position: relative;
  box-shadow: 0 18px 44px rgba(8, 20, 45, .28);
}
.band .plan--paper h3 { color: var(--ink); }
.band .plan--paper p, .band .plan--paper .plan-note { color: var(--ink-3); }
.band .plan--paper .ticks li { color: var(--ink-2); }
.plan-flag {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  background: var(--ochre);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-end-start-radius: var(--r);
}
.plan h3 { font-size: 1.15rem; }
.plan-price {
  font-family: var(--f-disp);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 16px;
  unicode-bidi: plaintext;
  text-align: right;
  color: var(--lapis);
}
/* بديل الرقم حين لا يكون هناك سعر معلن: عبارة عربية قصيرة */
.plan-price--ar { font-size: 1.42rem; }
.plan-note { font-size: .85rem; color: var(--ink-3); margin-top: 4px; }
.plan hr { margin-block: 24px; }
.plan--hi hr { border-top-color: rgba(255, 255, 255, .2); }
.plan .btn { margin-top: 28px; }
.plan .ticks { margin-top: 4px; }
.plan-spacer { flex: 1; }

/* ------------------------------ 18. النماذج ------------------------------ */
/* بطاقة النموذج: ورقة بيضاء مرفوعة فوق الخلفية — النموذج العاري على الورق
   يبدو غير مكتمل، والبطاقة تجعله قطعة مصمَّمة */
.form-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: clamp(22px, 3vw, 40px);
  box-shadow: 0 24px 60px rgba(20, 22, 26, .07);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .87rem; font-weight: 600; color: var(--ink-2); }
.field label b { color: var(--ochre); font-weight: 600; }
.field input,
.field select,
.field textarea {
  font-family: var(--f-body);
  font-size: .95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  padding: 13px 15px;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.8; }
.field input::placeholder, .field textarea::placeholder { color: #A9A398; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--lapis);
  box-shadow: 0 0 0 3px var(--lapis-t);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%233E434B' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 15px center;
}
.field input[type="email"], .field input[type="tel"] { direction: ltr; unicode-bidi: isolate; text-align: start; }
.field input[type="email"]::placeholder, .field input[type="tel"]::placeholder { text-align: start; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: #B0362B; }
.field-err { font-size: .8rem; color: #B0362B; display: none; }
.field.has-err .field-err { display: block; }

/* اختيار قناة الإرسال — صفّان بعرض النموذج كاملاً، فلا يلتف نص ولا يختل
   ارتفاع مهما ضاقت الشاشة. التلميحة (الأسرع) تُدفع إلى نهاية الصف. */
.radios { display: grid; gap: 10px; }
.radio {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  padding: 13px 16px;
  font-size: .93rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.radio .mut { margin-inline-start: auto; font-size: .82rem; font-weight: 400; }
/* width:auto تلغي «width:100%» القادمة من ‎.field input‎ — بدونها ينتفخ
   زر الاختيار الصغير ليملأ الصف كله ويكسر سطر النص */
.radio input { accent-color: var(--lapis); margin: 0; width: auto; flex: none; }
.radio:has(input:checked) { border-color: var(--lapis); background: var(--lapis-t); color: var(--lapis-d); font-weight: 600; }

.form-status {
  margin-top: 16px;
  font-size: .9rem;
  font-weight: 500;
  display: none;
}
.form-status.is-on { display: block; }
.form-status.ok { color: #24603C; }
.form-status.bad { color: #B0362B; }

/* ------------------------------ 19. قنوات التواصل ------------------------------ */
.channels { border-top: 1px solid var(--rule); }
.channel {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
/* الأيقونة داخل مربع لازوردي شفاف — لا أيقونة عائمة عارية */
.channel svg {
  width: 46px;
  height: 46px;
  padding: 13px;
  color: var(--lapis);
  background: var(--lapis-t);
  border-radius: var(--r);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.channel-k { font-size: .82rem; color: var(--ink-3); }
.channel-v { font-size: 1rem; font-weight: 600; margin-top: 2px; }
a.channel:hover .channel-v { color: var(--lapis); }
a.channel:hover svg { background: var(--lapis); color: #fff; }

.socials { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.socials a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  color: var(--ink-2);
  transition: all .2s var(--ease);
}
.socials a svg { width: 17px; height: 17px; }
.socials a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ------------------------------ 20. رأس الصفحة الداخلية ------------------------------ */
.pagehead {
  position: relative;
  padding-block: clamp(44px, 5.5vw, 78px) clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.pagehead::before {
  content: '';
  position: absolute;
  top: -90px;
  inset-inline-start: -60px;
  width: 380px; height: 380px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='none' stroke='%231B3D7E' stroke-width='1'%3E%3Cpath d='M0 22L22 0l22 22L22 44z'/%3E%3Cpath d='M22 0v44M0 22h44'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .06;
  mask-image: radial-gradient(circle at 35% 35%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 35% 35%, #000, transparent 70%);
}
.pagehead > * { position: relative; }
.crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .83rem;
  color: var(--ink-3);
  margin-bottom: 22px;
}
.crumbs a:hover { color: var(--lapis); }
.crumbs span { color: var(--rule-2); }
.pagehead h1 { font-size: clamp(1.95rem, 4.6vw, 3.25rem); max-width: 24ch; }
.pagehead .lead { margin-top: 20px; }

/* ------------------------------ 21. الفوتر ------------------------------ */
.footer {
  background: var(--lapis-d);
  color: rgba(255, 255, 255, .72);
  padding-block: clamp(56px, 6vw, 84px) 0;
  font-size: .93rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 3.5vw, 52px);
  padding-bottom: clamp(40px, 5vw, 60px);
}
.footer h4 {
  color: #fff;
  font-size: .84rem;
  font-weight: 600;
  margin-bottom: 18px;
  font-family: var(--f-body);
}
.footer .logo-txt b { color: #fff; }
.footer .logo-txt span { color: rgba(255, 255, 255, .5); }
.footer-about { margin-top: 20px; max-width: 34ch; color: rgba(255, 255, 255, .66); }
.footer nav { display: flex; flex-direction: column; gap: 11px; }
.footer nav a:hover, .footer-c a:hover { color: #fff; }
.footer-c { display: flex; flex-direction: column; gap: 11px; }
.footer-c a, .footer-c span { display: block; }
.footer .socials { margin-top: 22px; }
.footer .socials a { border-color: rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .8); }
.footer .socials a:hover { background: #fff; border-color: #fff; color: var(--lapis-d); }
.footer-bot {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-block: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: space-between;
  font-size: .84rem;
  color: rgba(255, 255, 255, .5);
}

/* ------------------------------ 22. أزرار عائمة ------------------------------ */
.fab {
  position: fixed;
  bottom: 22px;
  inset-inline-start: 22px;
  z-index: 180;
  width: 50px; height: 50px;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  background: var(--lapis);
  color: #fff;
  box-shadow: 0 6px 22px rgba(15, 36, 80, .26);
  transition: background .22s var(--ease), transform .22s var(--ease);
}
.fab:hover { background: var(--lapis-d); transform: translateY(-2px); }
.fab svg { width: 22px; height: 22px; }
.fab-top {
  inset-inline-start: auto;
  inset-inline-end: 22px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule-2);
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
}
.fab-top.is-on { opacity: 1; visibility: visible; }
.fab-top:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fab-top svg { width: 17px; height: 17px; }

/* ------------------------------ 23. الظهور التدريجي ------------------------------ */
.rv {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.rv.in { opacity: 1; transform: none; }

/* ------------------------------ 24. الاستجابة ------------------------------ */
@media (max-width: 1080px) {
  .split, .split--wide-start, .split--even { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .row-item { grid-template-columns: 46px 1fr; row-gap: 10px; }
  .row-item > p { grid-column: 2; }
  .row-tags { grid-column: 2; }
  .row-go { display: none; }
  .phase { grid-template-columns: 46px 1fr; row-gap: 8px; }
  .phase p, .phase-t { grid-column: 2; }
  .phase-t { color: var(--ink-3); font-size: .82rem; }
}

@media (max-width: 900px) {
  .nav, .topbar-cta .btn { display: none; }
  .burger { display: flex; }
  .works--3 { grid-template-columns: repeat(2, 1fr); }
  .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); }
  /* صفّ الفريق يبقى ثلاثة أعمدة على اللوحي — «2 + 1» يكسر الصف */
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .pillars > div {
    padding-inline: 0;
    border-inline-start: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    padding-block: 24px;
  }
  .pillars > div:last-child { border-bottom: 0; padding-bottom: 0; }
  .quotes { grid-template-columns: 1fr; }
  .factbar { grid-template-columns: 1fr 1fr; }
  .factbar > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .factbar > div:nth-child(-n+2) { padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
}

@media (max-width: 620px) {
  body { font-size: .985rem; }
  .works--3, .works--2, .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .factbar { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .btns .btn { width: 100%; }
  .fact-n { font-size: 1.5rem; }
  .quote-body { font-size: 1.16rem; }
  /* العضو يصبح بطاقة أفقية: صورة صغيرة والنص بجانبها — الصورة بعرض
     الشاشة كاملاً تجبر الزائر على تمرير ثلاث شاشات ليقرأ ثلاثة أسماء */
  .member { display: grid; grid-template-columns: 118px 1fr; gap: 18px; align-items: start; }
  .member h3 { margin-top: 0; }
  .member-plate span { font-size: 2rem; }
}

/* ------------------------------ 25. الوصولية ------------------------------ */
.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;
}
.skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 10px;
  z-index: 500;
  background: var(--lapis);
  color: #fff;
  padding: 11px 20px;
  border-radius: var(--r);
}
.skip:focus { inset-inline-start: 16px; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .rv { opacity: 1; transform: none; }
}

/* ------------------------------ 26. اللمس (الهاتف واللوح) ------------------------------ */
/* قواعد تخصّ الإصبع لا المؤشّر. شرط (pointer: coarse) أدقّ من عرض الشاشة:
   يشمل الهاتف واللوح، ولا يمسّ حاسوباً بفأرة مهما صغّر نافذته. ثلاثة أمور
   تُفسد التصفّح على الهاتف وقد عولجت هنا:
     1) حقل خطّه أصغر من 16px يجعل iOS يكبّر الصفحة تلقائياً عند لمسه، فيضطرّ
        الزائر إلى تصغيرها بإصبعين بعد كل حقل.
     2) هدف لمس أصغر من 44px يعدّه معيار Apple و Google خطأً — عولج بارتفاع
        أدنى لا بتكبير الخط، حفاظاً على شكل التصميم.
     3) وميض اللمس الأزرق الافتراضي يبدو دخيلاً على ورق دافئ. */
@media (pointer: coarse) {
  .field input, .field select, .field textarea { font-size: 16px; }

  .btn--sm    { min-height: 44px; }
  .burger     { width: 44px; height: 44px; }
  .socials a  { width: 44px; height: 44px; }
  .footer nav a, .footer-c a {
    min-height: 40px;          /* + فراغ القائمة = ‏44px بين مركزَي رابطين */
    display: flex;
    align-items: center;
  }
}
a, button, summary, label, input, select, textarea {
  -webkit-tap-highlight-color: rgba(27, 61, 126, .10);
}
/* يلغي تأخير 300ms على متصفّحات أندرويد القديمة دون منع التكبير بإصبعين */
a, button, summary, .filters button { touch-action: manipulation; }
/* التمرير داخل القائمة لا يتسرّب إلى الصفحة تحتها */
.drawer { overscroll-behavior: contain; }

@media print {
  .topbar, .drawer, .fab, .band::before, body::after { display: none !important; }
  body { background: #fff; color: #000; }
}
