/* =============================================================
   styles.css — مرسى بورت | MARSA PORT
   نظام تصميم موحّد: RTL، mobile-first، متجاوب بالكامل.
   ============================================================= */

/* ---------- 1) المتغيّرات ---------- */
:root {
  /* الألوان الأساسية */
  --char: #17191C;   /* فحمي أساسي */
  --char2: #0E0F11;  /* أغمق */
  --orange: #F26522; /* برتقالي غروب مميّز */
  --orange2: #FF7A3C;
  --sand: #F1EBE1;   /* رملي فاتح */
  --rock: #3A3F45;   /* رمادي صخري */
  --green: #25D366;  /* واتساب فقط */

  /* مشتقات */
  --ink: var(--char);
  --ink-soft: #4a5057;
  --line: #e4ddd0;
  --line-strong: #d3cabb;
  --white: #ffffff;
  --bg: #fbf9f5;
  --card: #ffffff;
  --sand-deep: #e8e0d2;

  /* الخطوط */
  --font-head: "Tajawal", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* المقاسات */
  --container: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 3px rgba(23, 25, 28, 0.06), 0 2px 8px rgba(23, 25, 28, 0.05);
  --shadow: 0 6px 20px rgba(23, 25, 28, 0.08), 0 2px 6px rgba(23, 25, 28, 0.05);
  --shadow-lg: 0 18px 50px rgba(23, 25, 28, 0.16);
  --shadow-orange: 0 8px 24px rgba(242, 101, 34, 0.32);

  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2) إعادة الضبط ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.22; font-weight: 800; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

/* أرقام لاتينية بخط مونو حتى داخل النص العربي */
[dir="rtl"] .mono { direction: ltr; unicode-bidi: embed; display: inline-block; }

/* ---------- 3) أدوات عامة ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: clamp(48px, 8vw, 96px); }
.section--tight { padding-block: clamp(36px, 6vw, 64px); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--char); color: var(--sand); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.section-head { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .eyebrow { margin-inline: auto; }
.section-head h2 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); letter-spacing: -0.5px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin-top: 12px; }
.section--dark .section-head p { color: #c7c1b6; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  color: var(--orange);
  background: rgba(242, 101, 34, 0.1);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.text-accent { color: var(--orange); }

/* ---------- 4) الأزرار ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 100px;
  border: 2px solid transparent;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s, color 0.18s;
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 11px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--orange); color: var(--white); box-shadow: var(--shadow-orange); }
.btn-primary:hover { background: var(--orange2); box-shadow: 0 12px 30px rgba(242, 101, 34, 0.42); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--char); background: var(--char); color: var(--white); }
.section--dark .btn-ghost { color: var(--sand); border-color: rgba(241, 235, 225, 0.35); }
.section--dark .btn-ghost:hover { background: var(--white); color: var(--char); border-color: var(--white); }

.btn-dark { background: var(--char); color: var(--white); }
.btn-dark:hover { background: var(--char2); }

.btn-wa { background: var(--green); color: #06351a; }
.btn-wa:hover { background: #1ec25c; }
.btn-wa svg { color: #06351a; }

/* ---------- 5) الهيدر ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 245, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 4px 20px rgba(23, 25, 28, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark { flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-ar { font-family: var(--font-head); font-weight: 800; font-size: 1.22rem; color: var(--char); }
.brand-latin { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 2px; color: var(--orange); font-weight: 500; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink-soft);
  padding: 9px 14px;
  border-radius: 100px;
  transition: color 0.15s, background 0.15s;
  position: relative;
}
.nav-link:hover { color: var(--char); background: rgba(23, 25, 28, 0.05); }
.nav-link.is-active { color: var(--orange); }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* زر القائمة (جوال) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: 12px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--char);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.skip-link {
  position: absolute;
  right: 12px; top: -60px;
  background: var(--char);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 10px;
  z-index: 200;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- 6) الفوتر ---------- */
.site-footer { background: var(--char2); color: #b8b3aa; margin-top: auto; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-block: clamp(48px, 7vw, 72px);
}
.brand--footer .brand-ar { color: var(--white); }
.footer-about p { margin-top: 16px; font-size: 0.95rem; line-height: 1.8; }
.footer-langs { color: #8f8a82; font-size: 0.85rem; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: #b8b3aa; font-size: 0.95rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--orange2); }
.footer-contact a { display: inline-flex; align-items: center; gap: 9px; }
.footer-contact svg { color: var(--orange); flex-shrink: 0; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #7d786f;
}

/* ---------- 7) زر واتساب العائم ---------- */
.wa-float {
  position: fixed;
  inset-inline-start: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--green);
  color: #06351a;
  padding: 15px;
  border-radius: 100px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: gap 0.28s var(--ease), padding 0.28s var(--ease), transform 0.18s;
  overflow: hidden;
}
.wa-float svg { color: #06351a; width: 26px; height: 26px; }
.wa-float-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  max-width: 0;
  white-space: nowrap;
  transition: max-width 0.28s var(--ease);
}
.wa-float:hover { gap: 9px; padding-inline: 20px; transform: translateY(-2px); }
.wa-float:hover .wa-float-label { max-width: 160px; }
@media (max-width: 640px) {
  .wa-float:hover .wa-float-label { max-width: 0; }
  .wa-float { padding: 14px; }
}

/* نبض خفيف */
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: waPulse 2.4s infinite;
}
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- 8) الهيرو ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 120% at 85% -10%, rgba(242, 101, 34, 0.14), transparent 55%),
    linear-gradient(180deg, var(--char) 0%, var(--char2) 100%);
  color: var(--sand);
  overflow: hidden;
  padding-block: clamp(56px, 9vw, 104px);
}
/* نمط الحاويات في الخلفية */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(241, 235, 225, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 235, 225, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 85%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(242, 101, 34, 0.16);
  border: 1px solid rgba(242, 101, 34, 0.4);
  color: var(--orange2);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

.hero h1 {
  font-size: clamp(2.2rem, 6.5vw, 4rem);
  letter-spacing: -1px;
  color: var(--white);
}
.hero h1 .accent {
  display: block;
  color: var(--orange);
  font-size: clamp(1.3rem, 3.6vw, 2.1rem);
  margin-top: 10px;
  font-weight: 700;
}
.hero-sub {
  color: #cec8bd;
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  margin-top: 20px;
  max-width: 48ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(241, 235, 225, 0.12);
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: #d7d1c6; }
.trust-item svg { color: var(--orange); flex-shrink: 0; }

/* ---------- 9) متتبّع الهيرو ---------- */
.hero-tracker {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(241, 235, 225, 0.12);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero-tracker-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.hero-tracker-head .pulse-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  animation: waPulse 2s infinite;
}
.hero-tracker-head h3 { color: var(--white); font-size: 1.1rem; }
.hero-tracker-head p { color: #a49e94; font-size: 0.82rem; }

.track-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  --progress: 0%;
}
/* الخط الرأسي */
.track-steps::before {
  content: "";
  position: absolute;
  inset-inline-start: 17px;
  top: 18px;
  bottom: 18px;
  width: 3px;
  background: rgba(241, 235, 225, 0.14);
  border-radius: 3px;
}
.track-steps::after {
  content: "";
  position: absolute;
  inset-inline-start: 17px;
  top: 18px;
  width: 3px;
  height: var(--progress);
  background: linear-gradient(var(--orange), var(--orange2));
  border-radius: 3px;
  transition: height 0.7s var(--ease);
  max-height: calc(100% - 36px);
}
.track-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 11px 0;
  z-index: 1;
}
.track-step .dot {
  width: 37px; height: 37px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--char);
  border: 3px solid rgba(241, 235, 225, 0.2);
  display: grid;
  place-items: center;
  color: #8b857b;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.4s var(--ease);
}
.track-step .step-label {
  font-family: var(--font-head);
  font-weight: 600;
  color: #9a948a;
  transition: color 0.4s;
}
.track-step.is-done .dot { background: var(--orange); border-color: var(--orange); color: #fff; }
.track-step.is-done .step-label { color: #d7d1c6; }
.track-step.is-active .dot {
  background: var(--orange); border-color: var(--orange2); color: #fff;
  box-shadow: 0 0 0 6px rgba(242, 101, 34, 0.18);
  transform: scale(1.08);
}
.track-step.is-active .step-label { color: var(--white); font-weight: 700; }

/* ---------- 10) بطاقات الخدمات ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; inset-inline-start: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--orange2));
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform 0.3s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 58px; height: 58px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(242, 101, 34, 0.14), rgba(242, 101, 34, 0.06));
  display: grid; place-items: center;
  margin-bottom: 20px;
  color: var(--orange);
}
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service-card > p { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 18px; }
.service-points { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.service-points li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.92rem; color: var(--rock); }
.service-points li svg { color: var(--orange); flex-shrink: 0; margin-top: 3px; }

/* ---------- 11) كيف نعمل ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  position: relative;
}
.step-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 3rem;
  color: var(--sand-deep);
  line-height: 1;
  margin-bottom: 12px;
}
.step-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step-card p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- 12) التصاريح (شرائح) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 900px; margin-inline: auto; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 11px 20px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--rock);
  transition: transform 0.18s var(--ease), border-color 0.18s, color 0.18s;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.chip:hover { transform: translateY(-3px); border-color: var(--orange); color: var(--char); }

/* ---------- 13) قسم الترانزيت (مقسوم) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}
.split-visual {
  background: linear-gradient(150deg, var(--char), var(--char2));
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--sand);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.split-visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(241, 235, 225, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 235, 225, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(80% 80% at 30% 30%, #000, transparent);
}
.split-visual h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 8px; position: relative; }
.split-visual .cities-label { color: var(--orange2); font-weight: 700; font-size: 0.85rem; margin-bottom: 14px; position: relative; }
.city-tags { display: flex; flex-wrap: wrap; gap: 10px; position: relative; }
.city-tag {
  background: rgba(241, 235, 225, 0.08);
  border: 1px solid rgba(241, 235, 225, 0.18);
  padding: 8px 15px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-family: var(--font-head);
  font-weight: 600;
}
.split-content h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 16px; }
.split-content > p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 20px; }
.check-list { display: flex; flex-direction: column; gap: 13px; margin-bottom: 26px; }
.check-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 1rem; }
.check-list li svg { color: var(--orange); flex-shrink: 0; margin-top: 4px; }

/* ---------- 14) الإحصاءات ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat {
  text-align: center;
  padding: 20px;
}
.stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  color: var(--orange);
  line-height: 1;
}
.stat-label { color: #c7c1b6; font-size: 0.95rem; margin-top: 10px; }

/* ---------- 15) بطاقات الآراء ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.stars { display: flex; gap: 3px; margin-bottom: 14px; color: var(--orange); }
.stars svg { width: 18px; height: 18px; }
.review-text { color: var(--rock); font-size: 1rem; line-height: 1.75; flex-grow: 1; margin-bottom: 18px; }
.review-text::before { content: "”"; font-family: var(--font-head); font-size: 2.4rem; color: var(--sand-deep); line-height: 0; vertical-align: -0.35em; margin-inline-end: 4px; }
.review-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange2));
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.review-name { font-family: var(--font-head); font-weight: 700; }
.review-city { color: var(--ink-soft); font-size: 0.85rem; }

/* ---------- 16) بطاقات المقالات ---------- */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.article-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--char), var(--rock));
  display: grid;
  place-items: center;
  color: var(--orange2);
  position: relative;
  overflow: hidden;
}
.article-thumb svg { width: 56px; height: 56px; opacity: 0.9; }
.article-thumb::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(241, 235, 225, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 235, 225, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
}
.article-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.article-date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--orange); margin-bottom: 10px; }
.article-card h3 { font-size: 1.18rem; margin-bottom: 10px; line-height: 1.4; }
.article-card p { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 16px; flex-grow: 1; }
.article-more { font-family: var(--font-head); font-weight: 700; color: var(--orange); display: inline-flex; align-items: center; gap: 6px; }
.article-more svg { transition: transform 0.2s; }
.article-card:hover .article-more svg { transform: translateX(-4px); }

/* ---------- 17) شريط CTA ---------- */
.cta-band {
  background:
    radial-gradient(100% 140% at 90% 0%, rgba(242, 101, 34, 0.28), transparent 60%),
    linear-gradient(135deg, var(--char), var(--char2));
  border-radius: var(--radius-lg);
  padding: clamp(38px, 6vw, 64px);
  text-align: center;
  color: var(--sand);
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
.cta-band p { color: #cec8bd; font-size: 1.1rem; margin-top: 14px; max-width: 46ch; margin-inline: auto; }
.cta-band .btn { margin-top: 28px; }

.center { text-align: center; }
.mt-md { margin-top: 32px; }
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--orange);
}
.link-more svg { transition: transform 0.2s; }
.link-more:hover svg { transform: translateX(-4px); }

/* ---------- 18) رأس الصفحات الداخلية ---------- */
.page-hero {
  background:
    radial-gradient(110% 130% at 88% -20%, rgba(242, 101, 34, 0.16), transparent 55%),
    linear-gradient(180deg, var(--char), var(--char2));
  color: var(--sand);
  padding-block: clamp(48px, 8vw, 84px);
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 5.5vw, 3.2rem); letter-spacing: -0.6px; }
.page-hero p { color: #cec8bd; font-size: 1.1rem; margin-top: 14px; max-width: 60ch; margin-inline: auto; }
.breadcrumb { display: flex; gap: 8px; justify-content: center; font-size: 0.85rem; color: #9a948a; margin-bottom: 18px; }
.breadcrumb a { color: var(--orange2); }

/* ---------- 19) النماذج ---------- */
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; }
.form-field .hint { font-size: 0.8rem; color: var(--ink-soft); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 15px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(242, 101, 34, 0.14);
  background: var(--white);
}
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233A3F45' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-inline-start: 15px;
  padding-inline-end: 40px;
}
.form-field.has-error input,
.form-field.has-error select { border-color: #e04848; }
.field-error { color: #d13232; font-size: 0.82rem; min-height: 1em; }
.form-field.is-dim { opacity: 0.45; }
.form-actions { margin-top: 26px; }

/* تنبيه */
.notice {
  display: flex;
  gap: 12px;
  background: rgba(242, 101, 34, 0.08);
  border: 1px solid rgba(242, 101, 34, 0.28);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  font-size: 0.92rem;
  color: var(--rock);
  margin-top: 22px;
}
.notice svg { color: var(--orange); flex-shrink: 0; margin-top: 2px; }

/* نتيجة الحاسبة */
.pricing-result {
  margin-top: 26px;
  background: var(--char);
  color: var(--sand);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 34px);
}
.pricing-result:focus { outline: 2px solid var(--orange); outline-offset: 3px; }
.pricing-result h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 6px; }
.result-range {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  color: var(--orange2);
  margin-block: 12px;
}
.result-range .range-cur { font-family: var(--font-head); font-size: 1.1rem; color: var(--sand); }
.result-summary { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0; padding-block: 18px; border-block: 1px solid rgba(241,235,225,0.14); }
.result-summary li { font-size: 0.92rem; color: #cec8bd; }
.result-summary strong { color: var(--white); }
.pop { animation: popIn 0.4s var(--ease); }
@keyframes popIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 20) خط زمني للتتبّع ---------- */
.tracking-loading, .tracking-error { text-align: center; padding: 20px; color: var(--ink-soft); }
.track-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow);
}
.track-head { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.track-ref-label { font-size: 0.8rem; color: var(--ink-soft); }
.track-head h3 { font-size: 1.5rem; color: var(--char); }
.track-status-badge { background: rgba(242, 101, 34, 0.1); color: var(--rock); padding: 8px 16px; border-radius: 100px; font-size: 0.9rem; }
.track-status-badge strong { color: var(--orange); }
.track-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px; margin: 22px 0; }
.track-meta dt { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 3px; }
.track-meta dd { font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; }

.timeline { position: relative; margin: 26px 0; --tl-progress: 0%; }
.timeline::before {
  content: ""; position: absolute; inset-inline-start: 18px; top: 20px; bottom: 20px;
  width: 3px; background: var(--sand-deep); border-radius: 3px;
}
.timeline::after {
  content: ""; position: absolute; inset-inline-start: 18px; top: 20px;
  width: 3px; height: var(--tl-progress); background: linear-gradient(var(--orange), var(--orange2));
  border-radius: 3px; transition: height 0.8s var(--ease);
  max-height: calc(100% - 40px);
}
.tl-step { position: relative; display: flex; gap: 16px; padding: 14px 0; z-index: 1; }
.tl-dot {
  width: 39px; height: 39px; flex-shrink: 0; border-radius: 50%;
  background: var(--white); border: 3px solid var(--sand-deep);
  display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600;
  color: var(--ink-soft); transition: all 0.3s;
}
.tl-step.is-done .tl-dot { background: var(--orange); border-color: var(--orange); color: #fff; }
.tl-step.is-active .tl-dot { background: var(--orange); border-color: var(--orange2); color: #fff; box-shadow: 0 0 0 5px rgba(242,101,34,0.16); }
.tl-content { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.tl-label { font-family: var(--font-head); font-weight: 700; }
.tl-step:not(.is-done):not(.is-active) .tl-label { color: var(--ink-soft); }
.tl-date { font-size: 0.8rem; color: var(--orange); }
.tl-note { font-size: 0.9rem; color: var(--rock); }

.track-notfound { text-align: center; padding: 30px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.track-notfound-icon { font-size: 3rem; margin-bottom: 12px; }
.track-notfound h3 { font-size: 1.4rem; margin-bottom: 8px; }
.track-notfound p { color: var(--ink-soft); margin-bottom: 22px; max-width: 40ch; margin-inline: auto; }

/* ---------- 21) صفحة المقال ---------- */
.article-layout { max-width: 760px; margin-inline: auto; }
.article-full h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); letter-spacing: -0.5px; margin-bottom: 14px; }
.article-meta { display: flex; align-items: center; gap: 14px; color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.article-meta .mono { color: var(--orange); }
.article-content { font-size: 1.08rem; line-height: 1.9; color: #2c3036; }
.article-content h2 { font-size: 1.5rem; margin: 34px 0 14px; }
.article-content h3 { font-size: 1.2rem; margin: 26px 0 10px; }
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { margin: 0 0 20px; padding-inline-start: 24px; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 9px; }
.article-content strong { color: var(--char); }
.article-content blockquote {
  border-inline-start: 4px solid var(--orange);
  background: var(--sand);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 22px 0;
  font-size: 1.05rem;
}
.article-share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.article-share span { font-family: var(--font-head); font-weight: 700; }
.share-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sand); color: var(--rock);
  border: 1px solid var(--line-strong);
  transition: all 0.18s;
}
.share-btn:hover { background: var(--char); color: #fff; transform: translateY(-2px); }
.article-cta {
  margin-top: 40px;
  background: var(--sand);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
}
.article-cta h3 { font-size: 1.3rem; margin-bottom: 8px; }
.article-cta p { color: var(--ink-soft); margin-bottom: 20px; }

/* ---------- 22) حركات الظهور ---------- */
/* لا يوجد إخفاء إلا إذا فعّل JS الحركة (reveal-enabled) — بديل آمن لو تعطّل JS */
.reveal-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-enabled [data-reveal].is-visible { opacity: 1; transform: none; }
.reveal-enabled [data-reveal][data-delay="1"] { transition-delay: 0.08s; }
.reveal-enabled [data-reveal][data-delay="2"] { transition-delay: 0.16s; }
.reveal-enabled [data-reveal][data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal-enabled [data-reveal] { opacity: 1; transform: none; }
}

/* التركيز بلوحة المفاتيح */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* ---------- 23) التجاوب ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-tracker { max-width: 460px; }
  .split { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .cards-grid, .steps-grid, .reviews-grid, .articles-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .header-actions .btn-wa span { display: none; }
  .header-actions .btn-wa { padding: 11px; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 14px 20px 22px;
    gap: 2px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.2s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  body.nav-open .main-nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav-link { padding: 13px 16px; font-size: 1.05rem; border-radius: var(--radius-sm); }
  .nav-link.is-active { background: rgba(242, 101, 34, 0.1); }
}

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-trust { gap: 14px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .brand-latin { font-size: 0.56rem; }
}

/* أدوات مساعدة للوصول */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
