/* ============================================================
   مسوق حملات إعلانية — نظام التصميم
   لوحة الألوان: أزرق ملكي عميق + كريمي دافئ + عنبري مميز
   الخط: Tajawal (عربي) — مقياس مرن clamp
   ============================================================ */

:root {
  /* الطبقة الأولى: ألوان خام */
  --blue-950: #031642;
  --blue-900: #04194F;
  --blue-800: #033399;
  --cobalt-600: #0A4DD6;
  --cobalt-500: #2E6BEF;
  --cyan-400: #61DFF2;
  --amber-500: #FFB300;
  --amber-600: #E69F00;
  --paper: #F5F3EF;
  --cream: #FFFDF7;
  --ink-900: #101820;
  --slate-600: #2E3A40;
  --slate-400: #5C6B73;
  --line: #E4E0D8;
  --wa: #25D366;
  --wa-dark: #1DA851;

  /* الطبقة الثانية: دلالية */
  --color-bg: var(--paper);
  --color-surface: var(--cream);
  --color-text: var(--ink-900);
  --color-muted: var(--slate-400);
  --color-brand: var(--cobalt-600);
  --color-brand-deep: var(--blue-800);
  --color-dark: var(--blue-900);
  --color-accent: var(--amber-500);
  --color-border: var(--line);

  /* خطوط */
  --font-main: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  --fs-hero: clamp(2.4rem, 1.6rem + 4vw, 4.6rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
  --fs-body: 1.06rem;
  --fs-small: 0.9rem;

  /* أبعاد */
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --container: 1180px;
  --header-h: 74px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: hidden; }

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--fs-body);
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-brand); text-decoration: none; }
a:hover { color: var(--blue-800); }
ul { list-style: none; }

::selection { background: var(--amber-500); color: var(--blue-950); }

:focus-visible {
  outline: 3px solid var(--cobalt-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* ---------- الهيدر ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(4, 25, 79, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 253, 247, 0.12);
  transition: transform 0.3s var(--ease-out);
}
.site-header.hidden { transform: translateY(-100%); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  font-weight: 800;
  font-size: 1.22rem;
  line-height: 1.25;
}
.brand:hover { color: var(--cream); }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--cyan-400);
  letter-spacing: 0.04em;
}

.main-nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: rgba(255, 253, 247, 0.82);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.main-nav a:hover { color: var(--cream); background: rgba(255, 253, 247, 0.08); }
.main-nav a.active { color: var(--blue-950); background: var(--cyan-400); font-weight: 700; }

.header-cta {
  margin-inline-start: 12px;
  background: var(--amber-500);
  color: var(--blue-950) !important;
  font-weight: 800;
  padding: 11px 22px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out), background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.header-cta:hover { background: var(--amber-600); color: var(--blue-950) !important; transform: translateY(-2px); }

/* زر القائمة الجانبية */
.drawer-toggle {
  display: none;
  margin-inline-start: auto;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 253, 247, 0.25);
  background: rgba(255, 253, 247, 0.06);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.drawer-toggle:hover { background: rgba(255, 253, 247, 0.14); }
.drawer-toggle:active { transform: scale(0.94); }
.drawer-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}
.drawer-toggle span::before,
.drawer-toggle span::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out);
}
.drawer-toggle span::before { top: -7px; }
.drawer-toggle span::after { top: 7px; }
body.drawer-open .drawer-toggle span { background: transparent; }
body.drawer-open .drawer-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.drawer-open .drawer-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- القائمة الجانبية (الدرج) ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(3, 22, 66, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease-out);
}
body.drawer-open .drawer-overlay { opacity: 1; pointer-events: auto; }

.side-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0; /* يظهر من اليسار في واجهة RTL */
  width: min(340px, 88vw);
  z-index: 200;
  background: linear-gradient(165deg, var(--blue-900), var(--blue-950));
  color: var(--cream);
  transform: translateX(-105%);
  transition: transform 0.32s var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: 24px 22px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  box-shadow: 20px 0 60px rgba(3, 22, 66, 0.45);
}
body.drawer-open .side-drawer { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 253, 247, 0.14);
  margin-bottom: 18px;
}
.drawer-head .brand { font-size: 1.05rem; }
.drawer-head .brand img { width: 38px; height: 38px; }
.drawer-close {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 253, 247, 0.25);
  background: transparent;
  color: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s, transform 0.2s;
}
.drawer-close:hover { background: rgba(255, 253, 247, 0.12); }
.drawer-close:active { transform: scale(0.92); }

.drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 253, 247, 0.88);
  font-weight: 700;
  font-size: 1.08rem;
  padding: 13px 14px;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease-out);
  transform: translateX(12px);
  opacity: 0;
}
body.drawer-open .drawer-nav a {
  transform: translateX(0);
  opacity: 1;
  transition: background 0.2s, color 0.2s, transform 0.35s var(--ease-out), opacity 0.3s;
}
.drawer-nav a:nth-child(1) { transition-delay: 0.05s; }
.drawer-nav a:nth-child(2) { transition-delay: 0.09s; }
.drawer-nav a:nth-child(3) { transition-delay: 0.13s; }
.drawer-nav a:nth-child(4) { transition-delay: 0.17s; }
.drawer-nav a:nth-child(5) { transition-delay: 0.21s; }
.drawer-nav a:nth-child(6) { transition-delay: 0.25s; }
.drawer-nav a:hover, .drawer-nav a.active { background: rgba(97, 223, 242, 0.14); color: var(--cyan-400); }
.drawer-nav a svg { width: 22px; height: 22px; flex-shrink: 0; }

.drawer-section-title {
  margin: 20px 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan-400);
  letter-spacing: 0.08em;
}

.drawer-articles { display: flex; flex-direction: column; gap: 4px; }
.drawer-articles a {
  display: block;
  color: rgba(255, 253, 247, 0.78);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 10px;
  border-inline-start: 3px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.drawer-articles a:hover { background: rgba(255, 253, 247, 0.07); color: var(--cream); border-inline-start-color: var(--amber-500); }

.drawer-foot {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.drawer-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--wa);
  color: #fff !important;
  font-weight: 800;
  padding: 14px;
  border-radius: 14px;
  transition: background 0.2s, transform 0.2s var(--ease-out);
}
.drawer-wa:hover { background: var(--wa-dark); color: #fff !important; transform: translateY(-2px); }
.drawer-wa svg { width: 22px; height: 22px; }

/* ---------- زر واتساب النابض ---------- */
.wa-float {
  position: fixed;
  bottom: calc(22px + env(safe-area-inset-bottom));
  inset-inline-end: 22px;
  z-index: 180;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--wa);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s var(--ease-out), background 0.2s;
}
.wa-float:hover { transform: scale(1.08); background: var(--wa-dark); }
.wa-float:active { transform: scale(0.95); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float::before,
.wa-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: wa-pulse 2.2s var(--ease-out) infinite;
  pointer-events: none;
}
.wa-float::after { animation-delay: 1.1s; }
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.75; }
  80%, 100% { transform: scale(1.75); opacity: 0; }
}
.wa-tip {
  position: absolute;
  inset-inline-end: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--blue-950);
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease-out);
}
.wa-float:hover .wa-tip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.02rem;
  padding: 15px 32px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  min-height: 52px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn svg { width: 20px; height: 20px; }

.btn-primary {
  background: var(--amber-500);
  color: var(--blue-950);
  box-shadow: 0 8px 24px rgba(255, 179, 0, 0.35);
}
.btn-primary:hover { background: var(--amber-600); color: var(--blue-950); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255, 253, 247, 0.45);
}
.btn-ghost:hover { border-color: var(--cream); background: rgba(255, 253, 247, 0.08); color: var(--cream); }

.btn-wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}
.btn-wa:hover { background: var(--wa-dark); color: #fff; }

.btn-outline-dark {
  background: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
}
.btn-outline-dark:hover { background: var(--color-brand); color: #fff; }

/* ---------- قسم البطل (Hero) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(97, 223, 242, 0.22), transparent 60%),
    radial-gradient(900px 600px at 5% 110%, rgba(255, 179, 0, 0.14), transparent 55%),
    linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 55%, var(--cobalt-600) 100%);
  color: var(--cream);
  padding: calc(var(--header-h) + 56px) 0 90px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 253, 247, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 253, 247, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(97, 223, 242, 0.12);
  border: 1px solid rgba(97, 223, 242, 0.35);
  color: var(--cyan-400);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero-badge .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--amber-500);
  animation: dot-blink 1.6s ease-in-out infinite;
}
@keyframes dot-blink { 50% { opacity: 0.25; } }

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hero h1 .highlight { position: relative; display: inline-block; color: var(--amber-500); }
.hero h1 .highlight svg {
  position: absolute;
  inset-inline: -4px;
  bottom: -0.18em;
  width: calc(100% + 8px);
  height: 0.32em;
  overflow: visible;
}
.hero h1 .highlight svg path {
  fill: none;
  stroke: var(--cyan-400);
  stroke-width: 7;
  stroke-linecap: round;
  opacity: 0.9;
}
.hero p.lead {
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.3rem);
  color: rgba(255, 253, 247, 0.85);
  max-width: 56ch;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 253, 247, 0.16);
}
.hero-stats .stat b {
  display: block;
  font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.5rem);
  font-weight: 800;
  color: var(--cyan-400);
  line-height: 1.2;
}
.hero-stats .stat span { font-size: 0.92rem; color: rgba(255, 253, 247, 0.72); }

/* بطاقة الصورة الجانبية */
.hero-visual { position: relative; }
.hero-photo {
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid rgba(255, 253, 247, 0.2);
  box-shadow: 0 40px 80px rgba(3, 22, 66, 0.5);
  transform: rotate(-2deg);
  transition: transform 0.5s var(--ease-out);
}
.hero-photo:hover { transform: rotate(0deg) scale(1.015); }
.hero-photo img { width: 100%; aspect-ratio: 4/4.6; object-fit: cover; }
.hero-chip {
  position: absolute;
  background: var(--cream);
  color: var(--blue-950);
  border-radius: var(--radius-m);
  padding: 12px 18px;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 16px 40px rgba(3, 22, 66, 0.35);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: chip-float 5s ease-in-out infinite;
}
.hero-chip small { display: block; font-weight: 500; color: var(--slate-600); font-size: 0.75rem; }
.hero-chip .chip-num { font-size: 1.35rem; font-weight: 800; color: var(--cobalt-600); }
.hero-chip.chip-1 { top: 8%; inset-inline-start: -30px; }
.hero-chip.chip-2 { bottom: 10%; inset-inline-end: -22px; animation-delay: 2.4s; }
@keyframes chip-float { 50% { transform: translateY(-12px); } }

/* ---------- الشريط المتحرك ---------- */
.marquee-band {
  background: var(--amber-500);
  padding: 16px 0;
  overflow: hidden;
  transform: rotate(-1.2deg) scale(1.02);
  margin-top: -34px;
  position: relative;
  z-index: 5;
  box-shadow: 0 12px 30px rgba(3, 22, 66, 0.25);
}
.marquee-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-band:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--blue-950);
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
}
.marquee-track span::after {
  content: '';
  width: 8px; height: 8px;
  background: var(--blue-950);
  border-radius: 50%;
  margin-inline-start: 30px;
}
@keyframes marquee { to { transform: translateX(50%); } }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(-50%); } }

/* ---------- الأقسام العامة ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-dark {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(97, 223, 242, 0.1), transparent 60%),
    linear-gradient(170deg, var(--blue-900), var(--blue-950));
  color: var(--cream);
}
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cobalt-600);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.kicker::before { content: ''; width: 26px; height: 3px; background: var(--amber-500); border-radius: 2px; }
.section-dark .kicker { color: var(--cyan-400); }
.section-head h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 16px;
}
.section-head p { color: var(--color-muted); font-size: 1.08rem; }
.section-dark .section-head p { color: rgba(255, 253, 247, 0.75); }

/* ---------- شبكة الخدمات ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 28px 24px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cobalt-600), var(--cyan-400));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(4, 25, 79, 0.12);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--blue-800), var(--cobalt-600));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 28px; height: 28px; stroke: var(--cream); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 8px; }
.service-card p { font-size: 0.94rem; color: var(--color-muted); line-height: 1.75; }
.service-card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.9rem;
}
.service-card .more svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease-out); }
.service-card:hover .more svg { transform: translateX(-5px); }

/* ---------- لماذا نحن (خطوات) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step-card {
  position: relative;
  padding: 30px 24px;
  border-radius: var(--radius-m);
  background: rgba(255, 253, 247, 0.05);
  border: 1px solid rgba(255, 253, 247, 0.14);
  transition: background 0.25s, transform 0.25s var(--ease-out);
}
.step-card:hover { background: rgba(255, 253, 247, 0.09); transform: translateY(-5px); }
.step-card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cyan-400);
  margin-bottom: 14px;
  line-height: 1;
}
.step-card h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 8px; color: var(--cream); }
.step-card p { font-size: 0.92rem; color: rgba(255, 253, 247, 0.7); }

/* ---------- المدن / المقالات ---------- */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.city-card {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  box-shadow: 0 14px 34px rgba(4, 25, 79, 0.14);
}
.city-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s var(--ease-out);
}
.city-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(3, 22, 66, 0.92) 8%, rgba(3, 22, 66, 0.25) 55%, transparent);
}
.city-card:hover img { transform: scale(1.07); }
.city-body { padding: 24px; color: var(--cream); width: 100%; }
.city-body .tag {
  display: inline-block;
  background: var(--amber-500);
  color: var(--blue-950);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.city-body h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.city-body p { font-size: 0.9rem; color: rgba(255, 253, 247, 0.82); margin-bottom: 12px; }
.city-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan-400);
  font-weight: 700;
  font-size: 0.94rem;
}
.city-link svg { width: 17px; height: 17px; transition: transform 0.2s var(--ease-out); }
.city-card:hover .city-link svg { transform: translateX(-6px); }

/* ---------- جداول الأسعار ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.price-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(4, 25, 79, 0.13); }
.price-card.featured {
  background: linear-gradient(165deg, var(--blue-800), var(--blue-950));
  color: var(--cream);
  border-color: transparent;
  position: relative;
  box-shadow: 0 26px 60px rgba(3, 22, 66, 0.4);
}
.price-card.featured::before {
  content: 'الأكثر طلباً';
  position: absolute;
  top: -14px;
  inset-inline-start: 28px;
  background: var(--amber-500);
  color: var(--blue-950);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 999px;
}
.price-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.price-card .price-sub { font-size: 0.88rem; color: var(--color-muted); margin-bottom: 20px; }
.price-card.featured .price-sub { color: rgba(255, 253, 247, 0.7); }
.price-card .amount { font-size: 2.2rem; font-weight: 800; color: var(--cobalt-600); margin-bottom: 22px; }
.price-card.featured .amount { color: var(--amber-500); }
.price-card .amount small { font-size: 0.9rem; font-weight: 500; }
.price-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
}
.price-list li svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; }
.price-list li.ok svg { stroke: var(--wa-dark); }
.price-list li.no { color: var(--color-muted); }
.price-list li.no svg { stroke: #C0564B; }
.price-card .btn { width: 100%; }

/* جدول مقارنة */
.compare-table-wrap { overflow-x: auto; border-radius: var(--radius-m); border: 1px solid var(--color-border); background: var(--color-surface); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td { padding: 16px 18px; text-align: right; border-bottom: 1px solid var(--color-border); }
.compare-table thead th {
  background: var(--blue-900);
  color: var(--cream);
  font-weight: 800;
  font-size: 0.95rem;
}
.compare-table tbody tr:nth-child(even) { background: #FAF8F3; }
.compare-table tbody tr:hover { background: #F0EDE5; }
.compare-table td:not(:first-child), .compare-table th:not(:first-child) { text-align: center; }
.compare-table .yes { color: var(--wa-dark); font-weight: 800; }
.compare-table .no { color: #C0564B; }

/* ---------- شعار الثقة ---------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 22px;
}
.trust-item svg { width: 40px; height: 40px; stroke: var(--cobalt-600); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.trust-item b { display: block; font-size: 1.02rem; }
.trust-item span { font-size: 0.85rem; color: var(--color-muted); }

/* ---------- الأسئلة الشائعة ---------- */
.faq-list { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--cobalt-500); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 800;
  font-size: 1.04rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--cobalt-600);
  transition: transform 0.25s var(--ease-out);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--slate-600); font-size: 0.98rem; }

/* ---------- نداء أخير ---------- */
.cta-band {
  background:
    radial-gradient(700px 360px at 12% 20%, rgba(97, 223, 242, 0.16), transparent 60%),
    linear-gradient(140deg, var(--cobalt-600), var(--blue-800) 60%, var(--blue-950));
  border-radius: var(--radius-l);
  color: var(--cream);
  padding: clamp(36px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { font-size: var(--fs-h2); font-weight: 800; line-height: 1.35; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 253, 247, 0.8); max-width: 52ch; }

/* ---------- الفوتر ---------- */
.site-footer {
  background: var(--blue-950);
  color: rgba(255, 253, 247, 0.78);
  padding: 72px 0 0;
  margin-top: 96px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: 0.94rem; max-width: 34ch; }
.footer-col h4 {
  color: var(--cream);
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255, 253, 247, 0.72); font-size: 0.94rem; transition: color 0.2s, transform 0.2s var(--ease-out); display: inline-block; }
.footer-col a:hover { color: var(--cyan-400); transform: translateX(-4px); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.94rem; }
.footer-contact svg { width: 19px; height: 19px; flex-shrink: 0; stroke: var(--amber-500); fill: none; stroke-width: 1.8; margin-top: 4px; }

.hashtag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.hashtag-cloud a, .hashtag-cloud span {
  background: rgba(255, 253, 247, 0.07);
  border: 1px solid rgba(255, 253, 247, 0.14);
  color: var(--cyan-400);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.hashtag-cloud a:hover { background: var(--cyan-400); color: var(--blue-950); }

.footer-bottom {
  border-top: 1px solid rgba(255, 253, 247, 0.12);
  padding: 22px 0 calc(22px + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  color: rgba(255, 253, 247, 0.55);
}

/* ---------- نموذج التواصل ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
  align-items: start;
}
.contact-info-card {
  background: linear-gradient(165deg, var(--blue-800), var(--blue-950));
  color: var(--cream);
  border-radius: var(--radius-l);
  padding: 36px 30px;
}
.contact-info-card h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 12px; }
.contact-info-card > p { color: rgba(255, 253, 247, 0.78); margin-bottom: 26px; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 253, 247, 0.12);
  font-size: 0.98rem;
}
.contact-line:last-of-type { border-bottom: 0; }
.contact-line svg { width: 22px; height: 22px; stroke: var(--amber-500); fill: none; stroke-width: 1.8; flex-shrink: 0; }
.contact-line svg[viewBox="0 0 32 32"] { fill: var(--amber-500); stroke: none; }
.contact-line svg[viewBox="0 0 24 24"]:has(path:not([fill])) { }
.contact-line a { color: var(--cream); font-weight: 700; }
.contact-line a:hover { color: var(--cyan-400); }

.lead-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.lead-form h3 { font-size: 1.3rem; font-weight: 800; }
.field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-main);
  font-size: 1rem;
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  background: #FBFAF7;
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 52px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cobalt-500);
  box-shadow: 0 0 0 4px rgba(46, 107, 239, 0.14);
}
.field .error-msg { display: none; color: #C0564B; font-size: 0.84rem; margin-top: 6px; font-weight: 700; }
.field.invalid input, .field.invalid select { border-color: #C0564B; }
.field.invalid .error-msg { display: block; }
.form-note { font-size: 0.84rem; color: var(--color-muted); }
.form-success {
  display: none;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: var(--wa-dark);
  font-weight: 700;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
}
.form-success.show { display: block; }

/* ---------- صفحات المقالات ---------- */
.page-hero {
  padding: calc(var(--header-h) + 64px) 0 64px;
  background:
    radial-gradient(800px 400px at 88% 0%, rgba(97, 223, 242, 0.16), transparent 60%),
    linear-gradient(160deg, var(--blue-900), var(--blue-800));
  color: var(--cream);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  margin-bottom: 22px;
  color: rgba(255, 253, 247, 0.65);
}
.breadcrumb a { color: var(--cyan-400); font-weight: 700; }
.breadcrumb a:hover { color: var(--cream); }
.breadcrumb .sep { opacity: 0.5; }
.page-hero h1 {
  font-size: clamp(1.8rem, 1.3rem + 2.4vw, 3rem);
  font-weight: 800;
  line-height: 1.4;
  max-width: 22ch;
}
.page-hero .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 22px;
  font-size: 0.9rem;
  color: rgba(255, 253, 247, 0.72);
}
.page-hero .hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.page-hero .hero-meta svg { width: 17px; height: 17px; stroke: var(--amber-500); fill: none; stroke-width: 2; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.article-body {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: clamp(26px, 4vw, 52px);
  font-size: 1.06rem;
}
.article-body h2 {
  font-size: var(--fs-h3);
  font-weight: 800;
  margin: 40px 0 14px;
  padding-inline-start: 16px;
  border-inline-start: 5px solid var(--amber-500);
  line-height: 1.5;
}
.article-body h2:first-of-type { margin-top: 8px; }
.article-body h3 { font-size: 1.15rem; font-weight: 800; margin: 28px 0 10px; }
.article-body p { margin-bottom: 16px; color: #26333B; }
.article-body ul.dash { margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.article-body ul.dash li {
  position: relative;
  padding-inline-start: 22px;
}
.article-body ul.dash li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.72em;
  width: 10px; height: 3px;
  background: var(--cobalt-600);
  border-radius: 2px;
}
.article-body a { font-weight: 700; border-bottom: 2px solid rgba(10, 77, 214, 0.25); transition: border-color 0.2s; }
.article-body a:hover { border-bottom-color: var(--cobalt-600); }
.article-body strong { color: var(--blue-800); }

.article-figure {
  margin: 30px 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(4, 25, 79, 0.12);
}
.article-figure img { width: 100%; }
.article-figure figcaption {
  background: var(--blue-900);
  color: rgba(255, 253, 247, 0.85);
  font-size: 0.85rem;
  padding: 12px 18px;
}
.article-figure figcaption b { color: var(--cyan-400); }

.article-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--radius-m);
  border: 1px solid var(--color-border);
}
.article-table { width: 100%; border-collapse: collapse; min-width: 560px; background: #FBFAF7; }
.article-table th, .article-table td { padding: 14px 16px; border-bottom: 1px solid var(--color-border); font-size: 0.95rem; text-align: right; }
.article-table thead th { background: var(--blue-800); color: var(--cream); font-weight: 800; }
.article-table tbody tr:nth-child(even) { background: #F3F0E9; }

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 36px 0 8px;
  padding-top: 26px;
  border-top: 1px dashed var(--color-border);
}
.article-tags span {
  background: rgba(10, 77, 214, 0.08);
  color: var(--blue-800);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 7px 16px;
  border-radius: 999px;
}

.article-cta {
  margin-top: 36px;
  background: linear-gradient(140deg, var(--cobalt-600), var(--blue-900));
  color: var(--cream);
  border-radius: var(--radius-m);
  padding: 30px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.article-cta h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 6px; }
.article-cta p { color: rgba(255, 253, 247, 0.8); font-size: 0.95rem; }

/* الشريط الجانبي للمقال */
.article-aside { display: flex; flex-direction: column; gap: 22px; position: sticky; top: calc(var(--header-h) + 20px); }
.aside-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 24px;
}
.aside-box h4 { font-size: 1.02rem; font-weight: 800; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--amber-500); display: inline-block; }
.aside-links { display: flex; flex-direction: column; gap: 6px; }
.aside-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--slate-600);
  transition: background 0.2s, color 0.2s;
}
.aside-links a:hover { background: rgba(10, 77, 214, 0.07); color: var(--blue-800); }
.aside-links a svg { width: 16px; height: 16px; stroke: var(--amber-500); fill: none; stroke-width: 2.4; flex-shrink: 0; }
.aside-wa { background: linear-gradient(150deg, var(--wa), var(--wa-dark)); border: 0; color: #fff; }
.aside-wa h4 { color: #fff; border-bottom-color: rgba(255,255,255,0.5); }
.aside-wa p { font-size: 0.9rem; opacity: 0.92; margin-bottom: 16px; }
.aside-wa .btn { width: 100%; background: #fff; color: var(--wa-dark); }

/* روابط المقالات المترابطة */
.related-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.related-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 16px;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s;
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(4, 25, 79, 0.12); }
.related-card img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.related-card b { display: block; font-size: 0.97rem; line-height: 1.55; color: var(--color-text); }
.related-card small { color: var(--color-muted); font-size: 0.8rem; }

/* ---------- ظهور تدريجي عند التمرير ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

/* زر العودة للأعلى */
.to-top {
  position: fixed;
  bottom: calc(100px + env(safe-area-inset-bottom));
  inset-inline-end: 30px;
  z-index: 170;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue-900);
  color: var(--cream);
  border: 1px solid rgba(255, 253, 247, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s var(--ease-out), background 0.2s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--cobalt-600); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- استجابة الشاشات ---------- */
@media (max-width: 1080px) {
  .services-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .cities-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}

@media (max-width: 860px) {
  .main-nav, .header-cta { display: none; }
  .drawer-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-bottom: 70px; }
  .hero-photo { transform: none; }
  .hero-chip.chip-1 { inset-inline-start: 8px; }
  .hero-chip.chip-2 { inset-inline-end: 8px; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
}

@media (max-width: 560px) {
  .services-grid, .steps-grid, .cities-grid, .pricing-grid, .trust-strip, .footer-grid, .related-strip { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 22px; }
  .cta-band { text-align: center; justify-content: center; }
  .wa-float { width: 56px; height: 56px; inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .article-cta { justify-content: center; text-align: center; }
}

/* تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
