@charset "UTF-8";
/* ==========================================================================
   al-rasana.com — نظام التصميم
   --------------------------------------------------------------------------
   اللون   : مشتق حرفيًا من دليل الهوية — 06403e / 31938e / 91d4d4
             والحياديات مائلة نحو التركواز، غير رمادية محضة.
   الخط    : IBM Plex Sans Arabic للعناوين والنصّ،
             و IBM Plex Mono للأرقام ورموز المواصفات القياسية.
   التخطيط : شبكة صارمة، زوايا قائمة بلا استدارة، وميل ٤٥° مأخوذ من
             هندسة الشعار يُستعمل كنسيج إنشائي لا كزخرفة.
   ========================================================================== */

/* ── 1. الرموز ─────────────────────────────────────────────────────────── */

:root {
  /* العلامة */
  --ink:        #06403e;   /* سطح داكن — ليس لونَ نصّ */
  --ink-deep:   #042d2c;
  /* أقوى لون نصّ بمسحة العلامة، يُقلَب في الوضع الداكن.
     استعمله كلما وقع النصّ على سطح يتبع السمة. */
  --ink-text:   #06403e;
  --teal:       #31938e;
  --teal-dark:  #237a76;
  --teal-lift:  #3fa39d;
  --mist:       #91d4d4;
  --mist-pale:  #d4ecea;

  /* الحياديات — مائلة نحو التركواز */
  --paper:      #ffffff;
  --paper-2:    #f4f8f7;
  --paper-3:    #e9f0ef;
  --line:       #dbe6e4;
  --line-soft:  #eaf1f0;
  --text:       #0e1c1b;
  --text-2:     #41534f;
  /* ‎5.48:1 على الأبيض و‎5.12:1 على الورقي — يجتاز AA للنص الصغير */
  --text-3:     #5a6d6a;

  /* دلالية — منفصلة عن لون العلامة */
  --pass:       #2f7d4f;
  --caution:    #916312;
  --fail:       #a63d2f;
  --pass-bg:    #eaf4ee;
  --caution-bg: #f8f1e2;
  --fail-bg:    #f8ecea;

  /* الأسطح */
  --surface:    var(--paper);
  --surface-2:  var(--paper-2);
  --surface-3:  var(--paper-3);
  --on-dark:    #e6f2f1;
  --on-dark-2:  #a9c7c5;

  /* الخطوط */
  --font: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* سُلّم الحجم */
  --fs-xs:   0.75rem;
  --fs-sm:   0.8125rem;
  --fs-base: 0.9375rem;
  --fs-md:   1.0625rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  1.875rem;
  --fs-3xl:  2.375rem;
  --fs-4xl:  3rem;
  --fs-5xl:  3.75rem;

  /* المسافات */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  --wrap: 1200px;
  --wrap-narrow: 780px;
  --head-h: 72px;

  /* الظل — خافت، الحدّ يحمل الفصل لا الظل */
  --shadow-1: 0 1px 2px rgba(6, 64, 62, .06);
  --shadow-2: 0 6px 24px -12px rgba(6, 64, 62, .28);
  --shadow-3: 0 24px 60px -28px rgba(6, 64, 62, .40);

  --ring: 0 0 0 3px rgba(49, 147, 142, .35);
  --dur: 180ms;
  --ease: cubic-bezier(.2, .6, .3, 1);
}

/* الوضع الداكن — تُعاد تسمية الرموز فقط، ولا تُلمس المكوّنات.
   لا يوجد زر تبديل: نتبع تفضيل النظام، ويمكن تثبيت الوضع بوسم
   data-theme على عنصر الجذر عند الحاجة. */

:root { color-scheme: light; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --ink:        #041f1e;
    --ink-deep:   #031413;
    --ink-text:   #d9edeb;
    --teal:       #4bb0aa;
    --teal-dark:  #6ec8c2;
    --teal-lift:  #63bdb7;
    --mist:       #9fdcdc;
    --mist-pale:  #14322f;

    --paper:      #0a1a19;
    --paper-2:    #0e2322;
    --paper-3:    #143029;
    --line:       #1d3a37;
    --line-soft:  #17302e;
    --text:       #e8f3f2;
    --text-2:     #b3c9c6;
    --text-3:     #8aa5a2;

    --pass:       #5fbf87;
    --caution:    #d8ac52;
    --fail:       #e08375;
    --pass-bg:    #102b1e;
    --caution-bg: #2c2413;
    --fail-bg:    #2e1a17;

    --surface:    var(--paper);
    --surface-2:  var(--paper-2);
    --surface-3:  var(--paper-3);
    --on-dark:    #e6f2f1;
    --on-dark-2:  #a9c7c5;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 6px 24px -12px rgba(0, 0, 0, .7);
    --shadow-3: 0 24px 60px -28px rgba(0, 0, 0, .85);
    --ring: 0 0 0 3px rgba(75, 176, 170, .4);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --ink:        #041f1e;
  --ink-deep:   #031413;
  --ink-text:   #d9edeb;
  --teal:       #4bb0aa;
  --teal-dark:  #6ec8c2;
  --teal-lift:  #63bdb7;
  --mist:       #9fdcdc;
  --mist-pale:  #14322f;

  --paper:      #0a1a19;
  --paper-2:    #0e2322;
  --paper-3:    #143029;
  --line:       #1d3a37;
  --line-soft:  #17302e;
  --text:       #e8f3f2;
  --text-2:     #b3c9c6;
  --text-3:     #8aa5a2;

  --pass:       #5fbf87;
  --caution:    #d8ac52;
  --fail:       #e08375;
  --pass-bg:    #102b1e;
  --caution-bg: #2c2413;
  --fail-bg:    #2e1a17;

  --surface:    var(--paper);
  --surface-2:  var(--paper-2);
  --surface-3:  var(--paper-3);

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 6px 24px -12px rgba(0, 0, 0, .7);
  --shadow-3: 0 24px 60px -28px rgba(0, 0, 0, .85);
  --ring: 0 0 0 3px rgba(75, 176, 170, .4);
}

/* ── 2. الأساس ─────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 16px);
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--ink-text); }

ul, ol { padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 1px;
}

::selection { background: var(--mist); color: var(--ink); }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.22;
  color: var(--text);
  text-wrap: balance;
  letter-spacing: -0.01em;
}

p { text-wrap: pretty; }

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 999;
  padding: var(--sp-3) var(--sp-5);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { inset-inline-start: 0; color: #fff; }

/* ── 3. التخطيط ────────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.wrap-narrow { max-width: var(--wrap-narrow); }

.section {
  padding-block: var(--sp-8);
}
.section-lg { padding-block: var(--sp-9); }
.section-tight { padding-block: var(--sp-7); }

.section-alt { background: var(--surface-2); }

.section-dark {
  background: var(--ink);
  color: var(--on-dark-2);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

/* رأس القسم */
.sec-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 62ch;
  margin-bottom: var(--sp-6);
}
.sec-head-center { margin-inline: auto; text-align: center; align-items: center; }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--teal);
  flex: none;
}
.sec-head-center .eyebrow::after {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--teal);
  flex: none;
}
.section-dark .eyebrow { color: var(--mist); }
.section-dark .eyebrow::before,
.section-dark .eyebrow::after { background: var(--teal-lift); }

.sec-title {
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, var(--fs-3xl));
  font-weight: 600;
}
.sec-lede {
  font-size: var(--fs-md);
  color: var(--text-2);
  max-width: 60ch;
}
.section-dark .sec-lede { color: var(--on-dark-2); }

/* نسيج الميل ٤٥° — مأخوذ من هندسة الشعار */
.diag {
  background-image: repeating-linear-gradient(
    45deg,
    var(--line) 0 1px,
    transparent 1px 9px
  );
}

/* ── 4. الأزرار ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn-dark {
  background: var(--ink);
  border-color: var(--ink-text);
  color: #fff;
}
.btn-dark:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--ink-text); background: var(--surface-2); color: var(--ink-text); }

.btn-light {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.btn-light:hover { background: var(--mist); border-color: var(--mist); color: var(--ink); }

.btn-ghost-light {
  background: transparent;
  border-color: rgba(230, 242, 241, .35);
  color: #fff;
}
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }

.btn-outline-light {
  background: transparent;
  border-color: rgba(230, 242, 241, .3);
  color: var(--on-dark);
}
.btn-outline-light:hover { border-color: var(--mist); color: #fff; }

.btn-sm { padding: 0.5rem 1rem; font-size: var(--fs-sm); }
.btn-lg { padding: 0.95rem 1.9rem; font-size: var(--fs-md); }
.btn-block { width: 100%; }

.btn .icon { width: 18px; height: 18px; flex: none; }

/* رابط نصّي بسهم */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  color: var(--teal-dark);
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover { color: var(--ink-text); }
.link-arrow:hover .icon { transform: translateX(3px); }
[dir="rtl"] .link-arrow:hover .icon { transform: translateX(-3px); }

/* ── 5. الأيقونات ──────────────────────────────────────────────────────── */

.icon { width: 22px; height: 22px; flex: none; }
.icon-xs { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

/* ── 6. الشريط العلوي ──────────────────────────────────────────────────── */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-head.is-stuck { box-shadow: var(--shadow-2); }

.head-strip {
  background: var(--ink);
  color: var(--on-dark-2);
  font-size: var(--fs-xs);
}
.head-strip-in {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: 34px;
  flex-wrap: wrap;
}
.strip-item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--on-dark-2);
}
.strip-item:hover { color: #fff; }
.strip-item .icon { color: var(--teal-lift); }
.strip-sep { flex: 1; }

.head-main {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: var(--head-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  flex: none;
}
.brand-mark { width: 44px; height: 36px; }
/* الشعار الداكن يختفي على خلفية داكنة — نبدّله بنسخة فاتحة */
.brand-mark-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-mark-dark  { display: none; }
  :root:not([data-theme="light"]) .brand-mark-light { display: block; }
}
:root[data-theme="dark"] .brand-mark-dark  { display: none; }
:root[data-theme="dark"] .brand-mark-light { display: block; }
:root[data-theme="light"] .brand-mark-dark  { display: block; }
:root[data-theme="light"] .brand-mark-light { display: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink-text);
  letter-spacing: -0.015em;
}
.lang-en .brand-name { letter-spacing: .06em; font-size: var(--fs-md); }
.brand-sub {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: .06em;
  color: var(--text-3);
  text-transform: uppercase;
}

/* القائمة */
.nav { margin-inline-start: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--text-2);
  position: relative;
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: var(--sp-3);
  bottom: -2px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}
.nav-link:hover { color: var(--ink-text); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--ink-text); font-weight: 600; }

.caret { width: 9px; height: 6px; transition: transform var(--dur) var(--ease); }
.has-drop:hover .caret,
.has-drop:focus-within .caret { transform: rotate(180deg); }

/* القائمة المنسدلة */
.has-drop { position: relative; }
.drop {
  position: absolute;
  top: calc(100% + 1px);
  inset-inline-start: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: min(620px, 92vw);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  box-shadow: var(--shadow-3);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  padding: var(--sp-4);
}
[dir="rtl"] .drop { transform: translateX(50%) translateY(-6px); }
.has-drop:hover .drop,
.has-drop:focus-within .drop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
[dir="rtl"] .has-drop:hover .drop,
[dir="rtl"] .has-drop:focus-within .drop { transform: translateX(50%) translateY(0); }

.drop-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.drop-link {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3);
  transition: background var(--dur) var(--ease);
}
.drop-link:hover { background: var(--surface-2); }
.drop-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  background: var(--mist-pale);
  color: var(--ink-text);
}
.drop-link:hover .drop-ico { background: var(--teal); color: #fff; }
.drop-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.drop-txt strong {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.drop-txt em {
  font-style: normal;
  font-size: var(--fs-xs);
  color: var(--text-3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.drop-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line-soft);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.head-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: none;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: .04em;
}
.lang-btn:hover { border-color: var(--ink-text); color: var(--ink-text); }

.nav-foot { display: none; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--ink-text);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6, 64, 62, .5);
  backdrop-filter: blur(2px);
}

/* ── 7. الواجهة الرئيسية ───────────────────────────────────────────────── */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-dark-2);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    repeating-linear-gradient(45deg, rgba(145, 212, 212, .05) 0 1px, transparent 1px 14px);
}
.hero::after {
  content: "";
  position: absolute;
  inset-block: -20%;
  inset-inline-end: -8%;
  width: 46%;
  z-index: -1;
  background: url("/assets/img/logo-mark-light.svg") no-repeat center / contain;
  opacity: .07;
  pointer-events: none;
}

.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  gap: var(--sp-8);
  align-items: center;
  padding-block: clamp(3rem, 1.5rem + 6vw, 6.5rem);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
  border: 1px solid rgba(145, 212, 212, .25);
  padding: 0.35rem 0.8rem;
  margin-bottom: var(--sp-5);
}
.hero-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--teal-lift);
}

.hero h1 {
  font-size: clamp(1.9rem, 1.2rem + 3vw, var(--fs-5xl));
  font-weight: 700;
  line-height: 1.13;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-5);
}
.hero h1 .hl {
  color: var(--mist);
  position: relative;
  white-space: nowrap;
}

.hero-lede {
  font-size: clamp(var(--fs-base), .9rem + .35vw, var(--fs-md));
  color: var(--on-dark-2);
  max-width: 56ch;
  margin-bottom: var(--sp-6);
}

.hero-btns { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-6); }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(230, 242, 241, .14);
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--on-dark-2);
}
.hero-trust .icon { width: 15px; height: 15px; color: var(--teal-lift); }

/* بطاقة النطاق — تعرض ما يصل العميل فعلًا.
   لوح مصمت لا شفّاف: البيانات الجدولية يجب أن تُقرأ فوق نسيج الخلفية. */
.scope-card {
  background: #052f2e;
  border: 1px solid rgba(145, 212, 212, .22);
  border-top: 3px solid var(--teal-lift);
  padding: var(--sp-5);
  box-shadow: var(--shadow-3);
}
.scope-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid rgba(230, 242, 241, .14);
}
.scope-head h2 {
  font-size: var(--fs-md);
  font-weight: 600;
  color: #fff;
}
.scope-no {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--mist);
  letter-spacing: .08em;
}
.scope-rows { display: flex; flex-direction: column; gap: 1px; }
.scope-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-3);
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(230, 242, 241, .12);
  font-size: var(--fs-sm);
}
.scope-row:last-child { border-bottom: 0; }
.scope-row dt { color: var(--on-dark-2); }
.scope-row dd {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: #fff;
  font-weight: 500;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.scope-foot {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(230, 242, 241, .14);
  font-size: var(--fs-xs);
  color: var(--on-dark-2);
  line-height: 1.6;
}

/* ── 8. شريط الأرقام ───────────────────────────────────────────────────── */

.stats {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: var(--sp-5) var(--sp-4);
  border-inline-start: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat:first-child { border-inline-start: 0; }
.stat-v {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, var(--fs-2xl));
  font-weight: 600;
  color: var(--ink-text);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat-v span { color: var(--teal); }
.stat-l {
  font-size: var(--fs-sm);
  color: var(--text-3);
  line-height: 1.45;
}

/* ── 9. بطاقات الخدمات ─────────────────────────────────────────────────── */

.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.svc-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.svc-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: var(--origin, left);
  transition: transform var(--dur) var(--ease);
}
[dir="rtl"] .svc-card::before { transform-origin: right; }
.svc-card:hover {
  border-color: var(--mist);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.svc-card:hover::before { transform: scaleX(1); }

.svc-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--mist-pale);
  color: var(--ink-text);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.svc-card:hover .svc-ico { background: var(--ink); color: var(--mist); }
.svc-ico .icon { width: 24px; height: 24px; }

.svc-card h3 {
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.35;
}
.svc-card p {
  font-size: var(--fs-sm);
  color: var(--text-2);
  flex: 1;
}
.svc-foot {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--teal-dark);
  padding-top: var(--sp-2);
}
.svc-foot .icon { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
.svc-card:hover .svc-foot .icon { transform: translateX(3px); }
[dir="rtl"] .svc-card:hover .svc-foot .icon { transform: translateX(-3px); }

/* رقائق المواصفات القياسية — دور الخط الأحادي */
.std-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.chip {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .03em;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  color: var(--text-3);
  background: var(--surface-2);
  white-space: nowrap;
}
.chip-solid {
  background: var(--mist-pale);
  border-color: var(--mist);
  color: var(--ink-text);
}
/* رقاقة تحمل نصًّا لا رمزًا قياسيًا — تُضبط بخط النصّ */
.chip-nav {
  font-family: var(--font);
  letter-spacing: 0;
  padding: 0.3rem 0.7rem;
}
.chip-nav:hover { border-color: var(--ink-text); color: var(--ink-text); background: var(--paper); }
.section-dark .chip {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(145, 212, 212, .22);
  color: var(--mist);
}

/* ── 10. المنهجية (تسلسل حقيقي، لذلك رُقّم) ───────────────────────────── */

.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  counter-reset: step;
}
.step {
  position: relative;
  padding: var(--sp-5) var(--sp-4);
  border-inline-start: 1px solid var(--line);
}
.step:first-child { border-inline-start: 0; padding-inline-start: 0; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--teal);
  letter-spacing: .08em;
  margin-bottom: var(--sp-3);
}
.step h3 {
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}
.step p { font-size: var(--fs-sm); color: var(--text-2); }

.section-dark .step { border-color: rgba(230, 242, 241, .14); }
.section-dark .step::before { color: var(--mist); }
.section-dark .step p { color: var(--on-dark-2); }

/* ── 11. لماذا نحن ─────────────────────────────────────────────────────── */

.why-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border: 1px solid var(--line);
  background: var(--paper);
}
.why-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--mist);
  color: var(--teal-dark);
}
.why-card h3 { font-size: var(--fs-md); font-weight: 600; }
.why-card p { font-size: var(--fs-sm); color: var(--text-2); }

/* ── 12. القطاعات ──────────────────────────────────────────────────────── */

.sector {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.sector:hover { border-color: var(--mist); background: var(--surface-2); }
.sector .icon { width: 26px; height: 26px; color: var(--teal); }
.sector h3 { font-size: var(--fs-base); font-weight: 600; margin-bottom: var(--sp-1); }
.sector p { font-size: var(--fs-sm); color: var(--text-2); }

/* ── 13. أنواع الأعمال ─────────────────────────────────────────────────── */

.work {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-5);
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--line);
}
.work:last-child { border-bottom: 1px solid var(--line); }
.work-code {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--ink-text);
  background: var(--mist-pale);
  padding: 0.3rem 0.6rem;
  height: fit-content;
  min-width: 56px;
  text-align: center;
}
.work h3 { font-size: var(--fs-md); font-weight: 600; margin-bottom: var(--sp-2); }
.work p { font-size: var(--fs-sm); color: var(--text-2); max-width: 78ch; }

/* ── 14. رأس الصفحات الداخلية ──────────────────────────────────────────── */

.page-hero {
  background: var(--ink);
  color: var(--on-dark-2);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(45deg, rgba(145, 212, 212, .05) 0 1px, transparent 1px 14px);
}
.page-hero-in {
  padding-block: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  max-width: 68ch;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 1.2rem + 2vw, var(--fs-3xl));
  color: #fff;
  margin-block: var(--sp-3) var(--sp-4);
}
.page-hero p {
  font-size: var(--fs-md);
  color: var(--on-dark-2);
}
.page-hero .eyebrow { color: var(--mist); }
.page-hero .eyebrow::before { background: var(--teal-lift); }

/* فتات الخبز */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--on-dark-2);
  padding-top: var(--sp-5);
}
.crumbs a { color: var(--on-dark-2); }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .5; }
.crumbs [aria-current] { color: var(--mist); }

/* ── 15. صفحة الخدمة ───────────────────────────────────────────────────── */

.svc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--sp-7);
  align-items: start;
}

.prose { max-width: 68ch; }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 {
  font-size: var(--fs-xl);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: var(--fs-md); margin-top: var(--sp-5); }
.prose p { color: var(--text-2); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  border-inline-start: 3px solid var(--teal);
  padding: var(--sp-2) var(--sp-5);
  background: var(--surface-2);
  font-size: var(--fs-md);
  color: var(--text);
}
.prose code {
  font-family: var(--mono);
  font-size: .9em;
  background: var(--surface-3);
  padding: 0.1em 0.35em;
}

.check-list { display: grid; gap: var(--sp-3); }
.check-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-3);
  align-items: start;
  font-size: var(--fs-base);
  color: var(--text-2);
}
.check-list .icon {
  width: 18px;
  height: 18px;
  color: var(--teal);
  margin-top: 5px;
}
.check-list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* الشريط الجانبي */
.aside { display: flex; flex-direction: column; gap: var(--sp-4); position: sticky; top: calc(var(--head-h) + 20px); }
.aside-card {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: var(--sp-5);
}
.aside-card h3 {
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line-soft);
}
.aside-card p { font-size: var(--fs-sm); color: var(--text-2); }
.aside-dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark-2); }
.aside-dark h3 { color: #fff; border-color: rgba(230, 242, 241, .16); }
.aside-dark p { color: var(--on-dark-2); }

.aside-links { display: flex; flex-direction: column; }
.aside-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.aside-links a:last-child { border-bottom: 0; }
.aside-links a:hover { color: var(--ink-text); }
.aside-links a[aria-current] { color: var(--ink-text); font-weight: 600; }
.aside-links .icon { width: 14px; height: 14px; color: var(--teal); opacity: 0; transition: opacity var(--dur) var(--ease); }
.aside-links a:hover .icon { opacity: 1; }

/* لوح التسليم */
.deliver {
  border: 1px solid var(--mist);
  background: var(--mist-pale);
  padding: var(--sp-5);
}
.deliver h3 {
  font-size: var(--fs-sm);
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-text);
  margin-bottom: var(--sp-2);
}
.deliver p { font-size: var(--fs-base); color: var(--ink-text); }

/* ── 16. شريط الدعوة ───────────────────────────────────────────────────── */

.cta-band {
  background: var(--ink);
  color: var(--on-dark-2);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(45deg, rgba(145, 212, 212, .06) 0 1px, transparent 1px 12px);
}
.cta-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-6);
  align-items: center;
  padding-block: var(--sp-7);
}
.cta-title {
  font-size: clamp(1.25rem, 1rem + 1.1vw, var(--fs-xl));
  color: #fff;
  margin-bottom: var(--sp-2);
}
.cta-sub { font-size: var(--fs-sm); color: var(--on-dark-2); max-width: 62ch; }
.cta-btns { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ── 17. الأسئلة الشائعة ───────────────────────────────────────────────── */

.section-faq { background: var(--surface-2); }
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  cursor: pointer;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--teal-dark); }
.faq-sign {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 7px;
}
.faq-sign::before,
.faq-sign::after {
  content: "";
  position: absolute;
  background: var(--teal);
  transition: transform var(--dur) var(--ease);
}
.faq-sign::before { inset-inline: 0; top: 7px; height: 2px; }
.faq-sign::after { inset-block: 0; left: 7px; width: 2px; }
.faq-item[open] .faq-sign::after { transform: scaleY(0); }
.faq-a { padding-bottom: var(--sp-5); }
.faq-a p { font-size: var(--fs-base); color: var(--text-2); max-width: 78ch; }

/* ── 18. النماذج ───────────────────────────────────────────────────────── */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
}
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field-full { grid-column: 1 / -1; }

.label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.label .req {
  color: var(--fail);
  font-family: var(--mono);
  font-size: var(--fs-xs);
}
.hint { font-size: var(--fs-xs); color: var(--text-3); }

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: var(--fs-base);
  color: var(--text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: var(--ring);
}
.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] { border-color: var(--fail); }
.textarea { min-height: 130px; resize: vertical; line-height: 1.7; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236c7f7c' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.9rem center;
  padding-inline-end: 0.9rem;
  padding-inline-start: 2.2rem;
}
[dir="ltr"] .select {
  background-position: right 0.9rem center;
  padding-inline-start: 0.9rem;
  padding-inline-end: 2.2rem;
}

.checkline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-3);
  align-items: start;
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.checkline input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--teal);
}

.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.err-msg {
  font-size: var(--fs-xs);
  color: var(--fail);
  font-weight: 500;
}

/* تنبيهات */
.alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-3);
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-inline-start-width: 3px;
  background: var(--surface-2);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-5);
}
.alert .icon { width: 20px; height: 20px; margin-top: 2px; }
.alert strong { display: block; color: var(--text); margin-bottom: 2px; }
.alert-ok { background: var(--pass-bg); border-color: var(--pass); color: #1e5636; }
.alert-ok .icon, .alert-ok strong { color: var(--pass); }
.alert-err { background: var(--fail-bg); border-color: var(--fail); color: #7d2e23; }
.alert-err .icon, .alert-err strong { color: var(--fail); }
.alert-warn { background: var(--caution-bg); border-color: var(--caution); color: #6b490d; }
.alert-warn .icon, .alert-warn strong { color: var(--caution); }

/* ── 20. الجداول ───────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  min-width: 520px;
}
.table th, .table td {
  padding: 0.7rem 0.9rem;
  text-align: start;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.table thead th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--text);
  font-size: var(--fs-xs);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-family: var(--mono);
  white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* الخلايا الفنية تُقرأ من اليسار حتى في الصفحة العربية.
   بدون ذلك يقلب محرّك الاتجاه إشارات المقارنة (≥ تظهر ≤)،
   وهو خطأ يغيّر معنى حدّ المواصفة. */
[dir="rtl"] .table .num {
  direction: ltr;
  text-align: right;
  unicode-bidi: isolate;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  letter-spacing: .04em;
  white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; }
.pill-ok { background: var(--pass-bg); color: var(--pass); }
.pill-ok::before { background: var(--pass); }
.pill-warn { background: var(--caution-bg); color: var(--caution); }
.pill-warn::before { background: var(--caution); }
.pill-off { background: var(--fail-bg); color: var(--fail); }
.pill-off::before { background: var(--fail); }

/* ── 21. التذييل ───────────────────────────────────────────────────────── */

.site-foot {
  background: var(--ink-deep);
  color: var(--on-dark-2);
  font-size: var(--fs-sm);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: var(--sp-6);
  padding-block: var(--sp-8) var(--sp-7);
}
.foot-mark { width: 54px; height: 44px; margin-bottom: var(--sp-4); }
.foot-name { color: var(--on-dark); font-weight: 500; line-height: 1.6; margin-bottom: var(--sp-2); }
.foot-tag {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--mist);
  letter-spacing: .04em;
}
.foot-social { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.foot-social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(230, 242, 241, .2);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--on-dark-2);
}
.foot-social a:hover { border-color: var(--mist); color: #fff; }

.foot-h {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid rgba(230, 242, 241, .14);
}
.foot-links { display: flex; flex-direction: column; gap: var(--sp-2); }
.foot-links a { color: var(--on-dark-2); line-height: 1.5; }
.foot-links a:hover { color: var(--mist); }

.foot-contact { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.foot-contact li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-3); align-items: start; }
.foot-contact .icon { color: var(--teal-lift); margin-top: 4px; }
.foot-contact a { color: var(--on-dark-2); }
.foot-contact a:hover { color: var(--mist); }

.foot-bar { border-top: 1px solid rgba(230, 242, 241, .1); }
.foot-bar-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--on-dark-2);
}
.foot-credit {
  color: var(--on-dark-2);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.foot-credit a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--mist);
  font-weight: 600;
  border-bottom: 1px solid rgba(145, 212, 212, .35);
  padding-bottom: 1px;
}
.foot-credit a:hover { color: #fff; border-bottom-color: #fff; }
.foot-credit .icon { width: 14px; height: 14px; }

.foot-lang { display: flex; gap: var(--sp-2); }
.foot-lang a { color: var(--on-dark-2); }
.foot-lang a:hover, .foot-lang a[aria-current] { color: var(--mist); }

/* واتساب عائم */
.wa-float {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--teal);
  box-shadow: var(--shadow-3);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.wa-float:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.wa-float .icon { width: 26px; height: 26px; }

/* ── 22. الصفحة ٤٠٤ ────────────────────────────────────────────────────── */

.nf {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 58vh;
  padding-block: var(--sp-8);
}
.nf-code {
  font-family: var(--mono);
  font-size: clamp(4rem, 3rem + 8vw, 9rem);
  font-weight: 600;
  line-height: 1;
  color: var(--teal);
  letter-spacing: -0.04em;
}
.nf h1 { font-size: var(--fs-2xl); margin-block: var(--sp-4) var(--sp-3); }
.nf p { max-width: 48ch; margin-inline: auto; margin-bottom: var(--sp-5); }

/* ── 23. أدوات ─────────────────────────────────────────────────────────── */

/* ── الخط الأحادي والعربية ─────────────────────────────────────────────── */
/* IBM Plex Mono لا يحوي حروفًا عربية، فيسقط النص إلى خط بديل رديء،
   كما أنّ التباعد الحرفي يفكّ وصل الحروف. نحصر الأحادي في اللاتيني
   والأرقام، ونعيد العربية إلى خط النصّ بتباعد مخفّف. */
[dir="rtl"] .eyebrow,
[dir="rtl"] .foot-h,
[dir="rtl"] .foot-tag,
[dir="rtl"] .brand-sub,
[dir="rtl"] .deliver h3,
[dir="rtl"] .pill,
[dir="rtl"] .table thead th,
[dir="rtl"] .scope-row dd {
  font-family: var(--font);
  letter-spacing: .02em;
}

/* الأرقام والرموز اللاتينية تبقى أحادية حتى داخل الصفحة العربية */
[dir="rtl"] .stat-v,
[dir="rtl"] .nf-code,
[dir="rtl"] .chip,
[dir="rtl"] .work-code,
[dir="rtl"] .scope-no,
[dir="rtl"] .table .num,
[dir="rtl"] .mono {
  font-family: var(--mono);
}

/* رابط يمدّ منطقة النقر على البطاقة كاملة */
.stretch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.mono { font-family: var(--mono); }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-3); }
.center { text-align: center; }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mb-0 { margin-bottom: 0; }
.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;
}
.divider { height: 1px; background: var(--line); border: 0; margin-block: var(--sp-6); }

/* ── 24. الاستجابة ─────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .hero-in { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero::after { opacity: .05; width: 70%; }
  .svc-layout { grid-template-columns: 1fr; }
  .aside { position: static; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .step { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline: 0; }
  .step:first-child { border-top: 1px solid var(--line); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
  .cta-in { grid-template-columns: 1fr; }

  /* درج القائمة على الشاشات المتوسطة والصغيرة */
  .burger { display: flex; }
  .head-cta { display: none; }
  .nav {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    z-index: 95;
    width: min(360px, 88vw);
    background: var(--paper);
    border-inline-start: 1px solid var(--line);
    padding: var(--sp-6) var(--sp-5);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    margin-inline-start: 0;
  }
  [dir="rtl"] .nav { transform: translateX(-100%); }
  .nav.is-open { transform: translateX(0); }
  [dir="rtl"] .nav.is-open { transform: translateX(0); }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line-soft); }
  .nav-link { padding: var(--sp-4) 0; justify-content: space-between; font-size: var(--fs-md); }
  .nav-link::after { display: none; }
  .nav-link.is-active { color: var(--teal-dark); }

  .drop {
    position: static;
    transform: none;
    width: auto;
    opacity: 1;
    visibility: visible;
    border: 0;
    box-shadow: none;
    padding: 0 0 var(--sp-4);
    display: none;
  }
  [dir="rtl"] .drop { transform: none; }
  .has-drop.is-open .drop { display: block; }
  .has-drop:hover .drop, .has-drop:focus-within .drop { transform: none; }
  .drop-list { grid-template-columns: 1fr; }
  .drop-link { padding: var(--sp-3) 0; }
  .nav-foot { display: block; }
}

@media (max-width: 760px) {
  :root { --head-h: 62px; }
  .head-strip .strip-mail { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-inline-start: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(2) { border-inline-start: 1px solid var(--line); }
  .stat:nth-child(4) { border-inline-start: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .check-list-2 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: var(--sp-5); padding-block: var(--sp-6); }
  .work { grid-template-columns: 1fr; gap: var(--sp-3); }
  .work-code { justify-self: start; }
  .section { padding-block: var(--sp-7); }
  .section-lg { padding-block: var(--sp-8); }
  .brand-sub { display: none; }
  .wa-float { width: 46px; height: 46px; inset-inline-end: 12px; bottom: 12px; }
}

@media (max-width: 420px) {
  .head-strip { display: none; }
  .hero-btns .btn { width: 100%; }
}

/* ── 25. الحركة والطباعة ───────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-head, .site-foot, .cta-band, .wa-float, .nav-scrim, .skip-link { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .section { padding-block: 1rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .page-hero, .hero { background: #fff !important; color: #000 !important; }
  .page-hero h1, .hero h1 { color: #000 !important; }
}
