/* ==========================================================================
   كلين لايف — نظام التصميم
   Clean Life · Design System
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --brand-50:  #E6F5F6;
  --brand-100: #C2E7EA;
  --brand-200: #8FD2D8;
  --brand-300: #55B8C1;
  --brand-400: #2A9AA6;
  --brand-500: #0E7C86;
  --brand-600: #0A626B;
  --brand-700: #084C54;
  --brand-800: #063940;
  --brand-900: #04262B;

  --gold-400: #F7C46C;
  --gold-500: #F2A93B;
  --gold-600: #D98C1B;

  --wa: #25D366;
  --wa-dark: #128C7E;

  /* Neutrals (light) */
  --bg:        #FFFFFF;
  --bg-soft:   #F6F9FA;
  --bg-sunken: #EDF3F4;
  --surface:   #FFFFFF;
  --surface-2: #F6F9FA;
  --line:      #E2EAEC;
  --line-soft: #EFF4F5;
  --ink:       #0A2126;
  --ink-2:     #37535A;
  --ink-3:     #6A868D;
  --on-brand:  #FFFFFF;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(4,38,43,.06);
  --sh-sm: 0 2px 8px rgba(4,38,43,.07);
  --sh-md: 0 10px 28px -10px rgba(4,38,43,.18);
  --sh-lg: 0 26px 60px -22px rgba(4,38,43,.32);
  --sh-brand: 0 16px 36px -16px rgba(14,124,134,.55);

  /* Geometry */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --r-full: 999px;

  /* Rhythm */
  --pad: clamp(16px, 4vw, 28px);
  --section-y: clamp(56px, 8vw, 108px);
  --maxw: 1220px;

  /* Type */
  --font: "Tajawal", "Cairo", system-ui, "Segoe UI", sans-serif;
  --font-display: "Cairo", "Tajawal", system-ui, sans-serif;

  --t-hero: clamp(2rem, 1.2rem + 3.4vw, 3.9rem);
  --t-h2:   clamp(1.55rem, 1.1rem + 1.9vw, 2.65rem);
  --t-h3:   clamp(1.15rem, .98rem + .7vw, 1.5rem);
  --t-lead: clamp(1rem, .95rem + .35vw, 1.19rem);
  --t-body: 1.0625rem;
  --t-sm:   .9375rem;
  --t-xs:   .8125rem;

  --ease: cubic-bezier(.22,.9,.28,1);
  --dur: .42s;
}

/* الوضع الليلي حسب إعداد النظام — يعمل حتى بدون جافاسكربت */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #071216;
    --bg-soft:   #0A1B20;
    --bg-sunken: #061014;
    --surface:   #0D2127;
    --surface-2: #102B32;
    --line:      #1A3A42;
    --line-soft: #143138;
    --ink:       #EAF6F8;
    --ink-2:     #A9C6CD;
    --ink-3:     #7A9AA2;
    --brand-500: #2BB3BF;
    --brand-600: #1E9AA6;
    --sh-md: 0 10px 28px -10px rgba(0,0,0,.6);
    --sh-lg: 0 26px 60px -22px rgba(0,0,0,.75);
    --sh-brand: 0 16px 36px -16px rgba(43,179,191,.45);
  }
}

/* الوضع الليلي عند اختياره يدوياً */
:root[data-theme="dark"] {
  --bg:        #071216;
  --bg-soft:   #0A1B20;
  --bg-sunken: #061014;
  --surface:   #0D2127;
  --surface-2: #102B32;
  --line:      #1A3A42;
  --line-soft: #143138;
  --ink:       #EAF6F8;
  --ink-2:     #A9C6CD;
  --ink-3:     #7A9AA2;
  --brand-500: #2BB3BF;
  --brand-600: #1E9AA6;
  --sh-md: 0 10px 28px -10px rgba(0,0,0,.6);
  --sh-lg: 0 26px 60px -22px rgba(0,0,0,.75);
  --sh-brand: 0 16px 36px -16px rgba(43,179,191,.45);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;      /* يمنع أي تمرير أفقي عرضي */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;   /* بدونها تتكرر اللانهائية بسرعة جنونية */
    animation-delay: -1ms !important;
    transition-duration: .01ms !important;
  }
  /* الشريط استثناء مقصود: حركة خطية بطيئة بلا وميض، تبقى شغالة
     (القاعدة العامة فوق تختصر مدتها إلى 0.01ms فنعيدها هنا صراحة).
     نستخدم الخصائص المفردة لا الاختصار حتى يظل التوقف عند المرور بالماوس يعمل. */
  .strip__track {
    animation-name: slide !important;
    animation-duration: 100s !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
    animation-delay: 0s !important;
  }
  /* النبضة وميض متكرر — تبقى مطفأة مع تقليل الحركة */
  .fab--wa::after { display: none !important; }
}

body {
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -.01em;
  color: var(--ink);
}
h1 { font-size: var(--t-hero); line-height: 1.15; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }

p { color: var(--ink-2); }
a { color: var(--brand-500); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-600); }
img, svg, video { display: block; max-width: 100%; height: auto; }
ul, ol { padding-inline-start: 1.25em; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--brand-200); color: var(--brand-900); }

:focus-visible {
  outline: 3px solid var(--brand-400);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -80px;
  background: var(--brand-600); color: #fff;
  padding: 12px 22px; border-radius: var(--r-sm); z-index: 999;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- 3. Layout helpers ---------- */
.wrap { width: min(100% - (var(--pad) * 2), var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section--soft { background: var(--bg-soft); }
.section--sunken { background: var(--bg-sunken); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .06em;
  color: var(--brand-600);
  background: color-mix(in srgb, var(--brand-500) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-500) 22%, transparent);
  padding: 7px 15px; border-radius: var(--r-full);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 20%, transparent);
}

.section-head { max-width: 660px; margin-bottom: clamp(30px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: var(--t-lead); margin-top: 14px; }

.grid { display: grid; gap: clamp(16px, 2.2vw, 26px); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: var(--brand-500);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  font-weight: 700; font-size: var(--t-sm); font-family: var(--font-display);
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid transparent; border-radius: var(--r-full);
  cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), background .25s var(--ease);
  box-shadow: var(--sh-brand);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 20px 44px -18px rgba(14,124,134,.7); }
.btn:active { transform: translateY(0); }
.btn svg { width: 19px; height: 19px; flex: none; }

.btn--gold { --btn-bg: var(--gold-500); --btn-fg: #2B1B02; box-shadow: 0 16px 36px -16px rgba(242,169,59,.65); }
.btn--gold:hover { box-shadow: 0 20px 44px -18px rgba(242,169,59,.75); }
.btn--wa { --btn-bg: var(--wa); --btn-fg: #04321C; box-shadow: 0 16px 36px -16px rgba(37,211,102,.6); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--line); box-shadow: none;
}
.btn--ghost:hover { background: var(--surface-2); box-shadow: var(--sh-sm); }
.btn--light { --btn-bg: rgba(255,255,255,.14); --btn-fg: #fff; border-color: rgba(255,255,255,.32); box-shadow: none; backdrop-filter: blur(8px); }
.btn--light:hover { --btn-bg: rgba(255,255,255,.24); box-shadow: none; }
.btn--lg { padding: 17px 36px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- 5. Header ---------- */
.topbar {
  background: var(--brand-800);
  color: var(--brand-100);
  font-size: var(--t-xs);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 40px; }
.topbar a { color: var(--brand-100); display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar__list { display: flex; gap: 20px; align-items: center; }
.topbar svg { width: 15px; height: 15px; }
@media (max-width: 720px) { .topbar__hide { display: none; } }

.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.header.is-stuck { box-shadow: var(--sh-sm); border-bottom-color: var(--line); }
.header__in { display: flex; align-items: center; gap: 18px; height: 74px; }

.logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 1.2rem; }
.logo:hover { color: var(--ink); }
.logo__mark { width: 42px; height: 42px; flex: none; }
.logo__txt small { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .16em; color: var(--brand-500); line-height: 1; margin-top: 3px; }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.nav__link {
  display: block; padding: 9px 15px; border-radius: var(--r-full);
  font-size: var(--t-sm); font-weight: 600; color: var(--ink-2);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { background: var(--surface-2); color: var(--brand-600); }

.header__actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--ink-2); cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--brand-600); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}
html[data-theme="dark"] .theme-btn .sun { display: none; }
html[data-theme="dark"] .theme-btn .moon { display: block; }

.burger { display: none; }

@media (max-width: 1024px) {
  /* backdrop-filter على الهيدر يجعله حاوية للعناصر الثابتة داخله،
     فيقصّ الدرج — لذلك نستبدله بخلفية صلبة على الشاشات الصغيرة */
  .header { backdrop-filter: none; background: var(--bg); }

  .nav {
    position: fixed; top: 0; bottom: 0; right: 0; left: auto;
    width: min(340px, 86vw); z-index: 101;
    background: var(--surface); border-left: 1px solid var(--line);
    padding: 88px 24px 32px;
    transform: translateX(101%);            /* الدرج مثبّت على اليمين ويخرج يميناً */
    transition: transform .4s var(--ease); box-shadow: var(--sh-lg);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 13px 16px; border-radius: var(--r-sm); font-size: 1rem; }
  .burger { display: grid; }
  .header__cta-desktop { display: none; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(4,38,43,.5); backdrop-filter: blur(3px);
    opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); z-index: 99;
  }
  .nav-backdrop.is-on { opacity: 1; pointer-events: auto; }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(44px, 7vw, 92px) clamp(52px, 8vw, 104px);
  background:
    radial-gradient(1000px 520px at 88% -8%, color-mix(in srgb, var(--brand-300) 30%, transparent), transparent 62%),
    radial-gradient(760px 460px at 4% 104%, color-mix(in srgb, var(--gold-400) 22%, transparent), transparent 60%),
    var(--bg-soft);
}
.hero__grid {
  display: grid; gap: clamp(30px, 5vw, 58px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 940px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }

.hero h1 { margin-bottom: 20px; }
.hero h1 .hl {
  background: linear-gradient(105deg, var(--brand-500), var(--brand-300) 55%, var(--gold-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: var(--t-lead); max-width: 56ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding-top: 26px; border-top: 1px dashed var(--line); }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }
.hero__trust svg { width: 19px; height: 19px; color: var(--brand-500); flex: none; }

/* Hero collage */
.collage { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.collage figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); background: var(--surface-2); }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage__main { grid-row: span 2; aspect-ratio: 3/4.05; }
.collage__a { aspect-ratio: 4/3.1; }
.collage__b { aspect-ratio: 4/3.1; }

.badge-float {
  position: absolute; inset-inline-start: -12px; bottom: 24px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-lg);
  padding: 13px 18px; display: flex; align-items: center; gap: 12px;
}
.badge-float strong { font-family: var(--font-display); font-size: 1.28rem; color: var(--ink); line-height: 1.1; }
.badge-float small { font-size: var(--t-xs); color: var(--ink-3); }
.badge-float__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand-500) 14%, transparent); color: var(--brand-600); }
.badge-float__ic svg { width: 22px; height: 22px; }
.collage-wrap { position: relative; }
@media (max-width: 560px) { .badge-float { position: static; margin-top: 14px; } }

/* ---------- 7. Marquee strip ---------- */
/* direction: ltr على الحاوية نفسها لا على المسار فقط.
   في RTL يُثبَّت صندوق المسار على الحافة اليمنى ويمتد يساراً خارج الشاشة،
   فتسحبه الحركة للداخل ويفرغ الجانب الأيمن. تثبيته على اليسار يجعل
   العبارات تدخل من اليمين باستمرار ولا يفرغ الشريط أبداً. */
.strip { background: var(--brand-700); color: #EAF7F8; padding: 14px 0; overflow: hidden; direction: ltr; }

.strip__track {
  display: flex; width: max-content; direction: ltr;
  animation: slide 100s linear infinite;
  will-change: transform;
}
.strip:hover .strip__track { animation-play-state: paused; }

/* المسافة داخل العنصر لا عبر gap — حتى يكون النصف الأول مساوياً
   تماماً للنصف الثاني، فلا تحدث قفزة عند إعادة الدورة. */
.strip span {
  display: inline-flex; align-items: center; gap: 11px;
  margin-right: 44px; direction: rtl;
  font-size: .95rem; font-weight: 700; white-space: nowrap;
}
.strip span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); flex: none; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 8. Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: color-mix(in srgb, var(--brand-500) 32%, var(--line)); }

.card__media { position: relative; aspect-ratio: 16/10.4; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.07); }
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,38,43,.55), transparent 55%);
}
.card__tag {
  position: absolute; z-index: 2; inset-block-start: 13px; inset-inline-start: 13px;
  background: rgba(255,255,255,.93); color: var(--brand-700);
  font-size: var(--t-xs); font-weight: 800; padding: 6px 13px; border-radius: var(--r-full);
  backdrop-filter: blur(6px);
}
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.card__body p { font-size: var(--t-sm); line-height: 1.8; }
.card__list { list-style: none; padding: 0; margin: 2px 0 4px; display: grid; gap: 7px; }
.card__list li { position: relative; padding-inline-start: 24px; font-size: var(--t-sm); color: var(--ink-2); }
.card__list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .62em;
  width: 15px; height: 15px; border-radius: 50%;
  background: color-mix(in srgb, var(--brand-500) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7C86' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/9px no-repeat;
}
.card__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-soft); }
.card__link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: var(--t-sm); }
.card__link svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
html[dir="rtl"] .card__link svg { transform: scaleX(-1); }
.card:hover .card__link svg { transform: scaleX(-1) translateX(4px); }
.price-hint { font-size: var(--t-xs); color: var(--ink-3); font-weight: 600; }
.price-hint b { color: var(--brand-600); font-size: var(--t-sm); }

/* ---------- 9. Feature tiles ---------- */
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px 22px; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.tile::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--gold-500));
  transform: scaleX(0); transform-origin: inline-start;
  transition: transform .4s var(--ease);
}
.tile:hover::before { transform: scaleX(1); }
.tile__ic {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand-500) 12%, transparent);
  color: var(--brand-600); margin-bottom: 16px;
}
.tile__ic svg { width: 26px; height: 26px; }
.tile h3 { font-size: 1.08rem; margin-bottom: 7px; }
.tile p { font-size: var(--t-sm); line-height: 1.78; }

/* ---------- 10. Stats ---------- */
.stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { background: var(--surface); padding: 30px 20px; text-align: center; }
.stat__n { font-family: var(--font-display); font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); font-weight: 800; color: var(--brand-600); line-height: 1; }
.stat__n sup { font-size: .5em; vertical-align: super; }
.stat__l { font-size: var(--t-sm); color: var(--ink-3); margin-top: 8px; font-weight: 600; }

/* ---------- 11. Process ---------- */
.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { position: relative; padding: 28px 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; inset-block-start: -18px; inset-inline-start: 22px;
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  color: #fff; background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
  box-shadow: var(--sh-brand);
}
.step h3 { font-size: 1.04rem; margin: 16px 0 7px; }
.step p { font-size: var(--t-sm); }

/* ---------- 12. Estimator ---------- */
.calc {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md);
}
@media (min-width: 880px) { .calc { grid-template-columns: 1.15fr .85fr; } }
.calc__form { padding: clamp(22px, 3vw, 34px); display: grid; gap: 18px; }
.calc__out {
  padding: clamp(22px, 3vw, 34px);
  background: linear-gradient(155deg, var(--brand-700), var(--brand-900));
  color: #fff; display: flex; flex-direction: column; gap: 14px; justify-content: center;
}
.calc__out h3, .calc__out p { color: #fff; }
.calc__out p { color: var(--brand-100); font-size: var(--t-sm); }
.calc__summary { display: grid; gap: 1px; background: rgba(255,255,255,.16); border-radius: var(--r-md); overflow: hidden; }
.calc__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255,255,255,.07); padding: 13px 16px;
}
.calc__row span { color: var(--brand-200); font-size: var(--t-sm); }
.calc__row b { font-family: var(--font-display); font-size: 1.02rem; color: #fff; text-align: end; }
.calc__note { font-size: var(--t-xs); color: var(--brand-200); border-top: 1px solid rgba(255,255,255,.16); padding-top: 13px; }

.field { display: grid; gap: 7px; }
.field > label { font-size: var(--t-sm); font-weight: 700; color: var(--ink); }
.control {
  width: 100%; padding: 13px 15px; font-size: var(--t-sm);
  background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.control:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 15%, transparent); }
textarea.control { min-height: 118px; resize: vertical; line-height: 1.7; }
select.control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A868D' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; background-size: 17px; padding-inline-end: 15px; padding-inline-start: 40px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: block; padding: 9px 17px; font-size: var(--t-sm); font-weight: 600;
  border: 1px solid var(--line); border-radius: var(--r-full);
  background: var(--surface-2); color: var(--ink-2); cursor: pointer;
  transition: all .2s var(--ease);
}
.chip input:checked + span { background: var(--brand-500); border-color: var(--brand-500); color: #fff; box-shadow: var(--sh-brand); }
.chip input:focus-visible + span { outline: 3px solid var(--brand-400); outline-offset: 2px; }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 7px; border-radius: 99px; background: var(--bg-sunken); cursor: pointer; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-500); border: 3px solid #fff; box-shadow: var(--sh-sm); }
.range::-moz-range-thumb { width: 24px; height: 24px; border: 3px solid #fff; border-radius: 50%; background: var(--brand-500); }

/* ---------- 13. Testimonials ---------- */
.quote {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; height: 100%;
}
.quote__stars { display: flex; gap: 3px; color: var(--gold-500); }
.quote__stars svg { width: 17px; height: 17px; }
.quote p { font-size: var(--t-sm); line-height: 1.85; }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 1.02rem;
  background: linear-gradient(140deg, var(--brand-400), var(--brand-700));
}
.quote__who b { display: block; font-size: var(--t-sm); color: var(--ink); }
.quote__who small { font-size: var(--t-xs); color: var(--ink-3); }

/* ---------- 14. FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq details[open] { border-color: color-mix(in srgb, var(--brand-500) 40%, var(--line)); box-shadow: var(--sh-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 19px 22px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7C86' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq__a { padding: 0 22px 20px; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.85; }

/* ---------- 15. Coverage ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 10px; }
.area {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--line);
  font-size: var(--t-sm); font-weight: 600; color: var(--ink-2);
  transition: all .22s var(--ease);
}
.area:hover { background: var(--brand-500); border-color: var(--brand-500); color: #fff; transform: translateY(-2px); }
.area svg { width: 15px; height: 15px; opacity: .75; }

/* ---------- 16. CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 62px);
  background: linear-gradient(140deg, var(--brand-600), var(--brand-900) 78%);
  color: #fff; text-align: center;
  box-shadow: var(--sh-lg);
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.cta-band::before { width: 380px; height: 380px; background: radial-gradient(circle, rgba(242,169,59,.28), transparent 68%); top: -160px; inset-inline-end: -110px; }
.cta-band::after { width: 320px; height: 320px; background: radial-gradient(circle, rgba(85,184,193,.32), transparent 68%); bottom: -150px; inset-inline-start: -90px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--brand-100); font-size: var(--t-lead); margin: 14px auto 0; max-width: 56ch; }
.cta-band__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

/* ---------- 17. Footer ---------- */
.footer { background: var(--brand-900); color: var(--brand-100); padding-block: clamp(46px, 6vw, 76px) 0; margin-top: 0; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 17px; }
.footer p, .footer li, .footer a { color: color-mix(in srgb, var(--brand-100) 85%, transparent); font-size: var(--t-sm); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: clamp(26px, 4vw, 44px); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer__brand { max-width: 34ch; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer__bottom {
  margin-top: clamp(34px, 5vw, 54px); padding-block: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  font-size: var(--t-xs);
}
.socials { display: flex; gap: 9px; margin-top: 20px; }
.socials a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff; transition: all .22s var(--ease);
}
.socials a:hover { background: var(--brand-500); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }
.footer .logo, .footer .logo:hover { color: #fff; }

/* ---------- 18. Floating actions ---------- */
.fab-stack { position: fixed; inset-inline-end: 18px; bottom: 20px; z-index: 90; display: grid; gap: 11px; }
.fab {
  position: relative;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; box-shadow: var(--sh-lg);
  transition: transform .25s var(--ease);
}
.fab:hover { transform: scale(1.08); color: #fff; }
.fab svg { width: 27px; height: 27px; }
.fab--wa { background: var(--wa); }
.fab--wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(37,211,102,.5);
  animation: pulse 5s ease-out infinite;
}
.fab--call { background: var(--brand-500); }
.fab--top { background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); opacity: 0; pointer-events: none; box-shadow: var(--sh-md); }
.fab--top.is-on { opacity: 1; pointer-events: auto; }
.fab-wrap { position: relative; display: grid; }

/* نبضة واحدة هادئة ثم راحة — بدل التوهج المتواصل */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  45%  { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.mobile-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 95;
  display: none; grid-template-columns: 1fr 1fr;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); gap: 9px;
}
.mobile-bar .btn { padding: 12px 10px; font-size: var(--t-sm); box-shadow: none; }
@media (max-width: 640px) {
  .mobile-bar { display: grid; }
  body { padding-bottom: 74px; }
  .fab-stack { bottom: 90px; }
}

/* ---------- 19. Service page bits ---------- */
.page-hero {
  position: relative; padding-block: clamp(46px, 7vw, 86px);
  background: linear-gradient(150deg, var(--brand-700), var(--brand-900));
  color: #fff; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(620px 320px at 88% 0%, rgba(242,169,59,.2), transparent 62%);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero p { color: var(--brand-100); font-size: var(--t-lead); max-width: 62ch; margin-top: 14px; }
.page-hero .eyebrow { color: var(--gold-400); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.page-hero .eyebrow::before { background: var(--gold-500); box-shadow: 0 0 0 4px rgba(242,169,59,.25); }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--t-xs); margin-bottom: 16px; color: var(--brand-200); }
.crumbs a { color: var(--brand-200); }
.crumbs a:hover { color: #fff; }
.crumbs span { opacity: .55; }

.prose { max-width: 74ch; }
.prose h2 { margin-top: 42px; margin-bottom: 14px; }
.prose h3 { margin-top: 28px; margin-bottom: 10px; }
.prose p { margin-bottom: 16px; }
.prose ul { display: grid; gap: 9px; margin-bottom: 20px; list-style: none; padding: 0; }
.prose ul li { position: relative; padding-inline-start: 27px; color: var(--ink-2); }
.prose ul li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .58em;
  width: 17px; height: 17px; border-radius: 50%;
  background: color-mix(in srgb, var(--brand-500) 15%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7C86' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/10px no-repeat;
}
.prose img { border-radius: var(--r-md); margin-block: 24px; box-shadow: var(--sh-md); }

.layout-2 { display: grid; gap: clamp(26px, 4vw, 46px); align-items: start; }
@media (min-width: 980px) { .layout-2 { grid-template-columns: minmax(0,1fr) 340px; } }

.aside-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--sh-sm); position: sticky; top: 96px;
  display: grid; gap: 14px;
}
.aside-card h3 { font-size: 1.08rem; }
.aside-card p { font-size: var(--t-sm); }

.pricebox { border: 1px dashed var(--line); border-radius: var(--r-md); padding: 16px; background: var(--surface-2); }
.pricebox .row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t-sm); padding: 7px 0; }
.pricebox .row + .row { border-top: 1px dashed var(--line); }
.pricebox b { color: var(--brand-600); }

.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.gallery figure { margin: 0; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4/3; background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.08); }

/* ---------- 20. Reveal ----------
   يُخفى المحتوى فقط عندما تعمل الجافاسكربت (html.js).
   بدونها يظهر كل شيء طبيعياً — لا صفحة بيضاء أبداً. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- 21. Utils ---------- */
.center { text-align: center; }
.mt-s { margin-top: 14px; }
.mt-m { margin-top: 26px; }
.mt-l { margin-top: 42px; }
.muted { color: var(--ink-3); }
.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: 34px; }
