/* main.css — مدمج لتسريع التحميل (بلا سلسلة @import) */
@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ===== base ===== */
/* ============================================================
   base.css — أثر | الأساس
   الهوية: زمردي فاتح + لمسة تقنية (مونو)
   ============================================================ */

/* الخطوط */

:root {
  /* ---- الألوان (الاتجاه ٣: زمردي عصري) ---- */
  --ink: #0F1F1A;          /* النص الأساسي / القسم الداكن */
  --ink-2: #20312B;
  --muted: #5C6B64;        /* نص ثانوي */
  --muted-2: #8A968F;
  --line: #E2EAE6;         /* حدود */
  --line-soft: #EDF2EF;
  --bg: #FFFFFF;           /* خلفية الصفحة */
  --surface: #FFFFFF;
  --surface-2: #F2F8F6;    /* سطح زمردي ناعم */

  --primary: #0D9488;      /* الزمردي الأساسي */
  --primary-strong: #0B7A70;
  --primary-ink: #075A52;
  --primary-soft: rgba(13, 148, 136, 0.10);
  --primary-line: rgba(13, 148, 136, 0.28);

  --accent: #6366F1;       /* النيلي المميّز */
  --accent-soft: rgba(99, 102, 241, 0.10);

  /* حالات */
  --ok: #15803D;  --ok-soft: rgba(21,128,61,.10);
  --warn: #B45309; --warn-soft: rgba(180,83,9,.10);
  --danger: #B91C1C; --danger-soft: rgba(185,28,28,.10);

  /* الزوايا */
  --r-xs: 6px; --r-sm: 10px; --r: 14px; --r-lg: 18px; --r-xl: 26px;

  /* الظلال (ناعمة، فخمة) */
  --shadow-sm: 0 1px 2px rgba(15,31,26,.04), 0 2px 6px rgba(15,31,26,.05);
  --shadow: 0 6px 24px rgba(15,31,26,.07), 0 2px 8px rgba(15,31,26,.05);
  --shadow-lg: 0 24px 60px rgba(15,31,26,.13);
  --glow: 0 0 0 4px var(--primary-soft);

  /* التخطيط */
  --max: 1180px;

  /* الخطوط */
  --font-display: "Readex Pro", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.35; font-weight: 600; letter-spacing: 0; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; color: inherit; }
::selection { background: var(--primary-soft); color: var(--primary-ink); }

/* ---- التخطيط ---- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 24px; }

.section { padding: clamp(64px, 9vw, 120px) 0; }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  font-weight: 700; margin-top: 14px;
}
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ---- العنوان الفرعي التقني (eyebrow) — لمسة مونو ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.12em; color: var(--primary-strong);
}
.eyebrow::before {
  content: "<>"; color: var(--primary); opacity: .6;
  font-weight: 700;
}

/* رقم مونو */
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

/* القسم الداكن (لمسة فخمة) */
.section-dark {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: #5DCAA5; }
.section-dark .eyebrow::before { color: #5DCAA5; }

/* أدوات */
.text-primary { color: var(--primary-strong); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }

/* ---- ضبط الجوال ---- */
@media (max-width: 560px) {
  .wrap { padding-inline: 18px; }
  body { font-size: 15.5px; }
}

/* ===== components ===== */
/* ============================================================
   components.css — أثر | المكوّنات المشتركة
   ============================================================ */

/* ---- الأزرار ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.96rem;
  padding: 13px 26px; border-radius: var(--r-sm);
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease,
              background .2s ease, color .2s ease, border-color .2s ease;
}
.btn i { font-size: 1.15em; }
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-strong); box-shadow: 0 8px 24px var(--primary-soft); transform: translateY(-2px); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); box-shadow: var(--shadow); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-strong); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.btn-sm { padding: 9px 16px; font-size: 0.86rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---- الحقول ---- */
.field { display: block; margin-bottom: 18px; }
.field > label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 8px; }
.field .hint { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.input, .textarea, .select {
  width: 100%; padding: 12px 15px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--primary); box-shadow: var(--glow);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

/* ---- البطاقات ---- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px;
  transition: transform .22s ease, box-shadow .25s ease, border-color .25s ease;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-line); }

/* ---- الشارات ---- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; font-weight: 600; font-family: var(--font-mono);
  padding: 5px 11px; border-radius: 999px; letter-spacing: .02em;
}
.badge-primary { background: var(--primary-soft); color: var(--primary-ink); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }

/* ---- النوافذ المنبثقة ---- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,31,26,.55);
  backdrop-filter: blur(4px); display: none;
  align-items: center; justify-content: center; padding: 20px; z-index: 100;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--r-lg);
  width: 100%; max-width: 540px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); animation: modal-pop .25s cubic-bezier(.2,.7,.3,1);
}
.modal-lg { max-width: 720px; }
@keyframes modal-pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--line-soft); }
.modal-head h3 { font-size: 1.25rem; }
.modal-body { padding: 26px; }
.modal-x { width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--muted); transition: background .15s, color .15s; }
.modal-x:hover { background: var(--surface-2); color: var(--ink); }

/* ---- التنبيهات ---- */
.toast-wrap { position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: #fff; padding: 14px 20px; border-radius: var(--r);
  box-shadow: var(--shadow-lg); font-size: 0.9rem; font-weight: 500;
  display: flex; align-items: center; gap: 10px; max-width: 360px;
  animation: toast-in .28s cubic-bezier(.2,.7,.3,1);
}
.toast.ok { background: var(--ok); } .toast.err { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---- حالات ---- */
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--primary); animation: spin .8s linear infinite; margin: 44px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty i { font-size: 2.4rem; opacity: .4; display: block; margin-bottom: 12px; }

/* ---- دعوة التواصل (مشتركة) ---- */
.cta-section { background: var(--surface-2); }
.cta-box {
  text-align: center; max-width: 820px; margin-inline: auto;
  background: linear-gradient(135deg, #0B7A70 0%, #0F1F1A 75%);
  color: #fff;
  border-radius: clamp(18px, 3vw, 30px);
  padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 60px);
  box-shadow: 0 30px 70px -24px rgba(13,148,136,.5);
  position: relative; overflow: hidden;
}
/* توهّج زمرّدي ناعم خلف المحتوى */
.cta-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(93,202,165,.35), transparent 60%);
  pointer-events: none;
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box .eyebrow { color: #9DE7CE; }
.cta-box h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 16px; color: #fff; }
.cta-box p { color: rgba(255,255,255,.82); font-size: 1.08rem; margin-bottom: 30px; }
.cta-box .btn-primary { background: #fff; color: var(--primary-strong); }
.cta-box .btn-primary:hover { background: #f0fdf9; transform: translateY(-2px); }

/* ---- بطاقة خدمة (مشتركة) ---- */
.svc-card { display: flex; flex-direction: column; height: 100%; }
.svc-card h3 { font-size: 1.18rem; margin: 16px 0 9px; }
.svc-card p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.svc-card .more { margin-top: 16px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--primary-strong); display: inline-flex; align-items: center; gap: 6px; }
.svc-card .more i { transition: transform .2s; }
.svc-card:hover .more i { transform: translateX(-4px); }

/* ---- بطاقة عمل (مشتركة) ---- */
.work-card { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); aspect-ratio: 4/3; display: flex; cursor: pointer; transition: transform .22s ease, box-shadow .25s ease; }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.work-card .ph { flex: 1; display: grid; place-items: center; background: linear-gradient(135deg, #0f1f1a, #16352c); color: rgba(255,255,255,.25); font-size: 2.4rem; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work-card:hover img { transform: scale(1.05); }
.work-meta { position: absolute; inset-inline: 0; bottom: 0; padding: 18px; background: linear-gradient(to top, rgba(15,31,26,.92), transparent); color: #fff; }
.work-meta .cat { font-family: var(--font-mono); font-size: 0.72rem; color: #5DCAA5; }
.work-meta h3 { color: #fff; font-size: 1.1rem; margin-top: 4px; }
.work-tech { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.work-tech span { font-family: var(--font-mono); font-size: 0.68rem; background: rgba(255,255,255,.12); color: #cde9e0; padding: 2px 8px; border-radius: 999px; }

/* ---- فلاتر (مشتركة) ---- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-pill { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 0.88rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .18s ease; font-family: var(--font-body); }
.filter-pill:hover { border-color: var(--primary-line); color: var(--primary-strong); }
.filter-pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---- الأرقام (مشتركة) ---- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px; text-align: center; }
.stat .num { font-family: var(--font-mono); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--primary-strong); line-height: 1; }
.stat .label { color: var(--muted); margin-top: 10px; font-size: 0.96rem; }

/* ---- خطوات العمل (مشتركة) ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding-top: 14px; }
.step .n { font-family: var(--font-mono); font-size: 0.82rem; color: var(--primary); font-weight: 700; }
.step h3 { font-size: 1.12rem; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 0.9rem; }
.step::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 2px; background: var(--line); }
.step:first-child::before { background: var(--primary); }

/* ---- شبكة عامة ---- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .stats, .steps { grid-template-columns: 1fr; } }

/* ===== animations ===== */
/* ============================================================
   animations.css — أثر | الحركة التقنية
   ============================================================ */

/* ---- الظهور عند التمرير ---- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* تتابع للعناصر داخل حاوية [data-stagger] */
[data-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
[data-stagger].in > * { opacity: 1; transform: none; }
[data-stagger].in > *:nth-child(1) { transition-delay: .05s; }
[data-stagger].in > *:nth-child(2) { transition-delay: .12s; }
[data-stagger].in > *:nth-child(3) { transition-delay: .19s; }
[data-stagger].in > *:nth-child(4) { transition-delay: .26s; }
[data-stagger].in > *:nth-child(5) { transition-delay: .33s; }
[data-stagger].in > *:nth-child(6) { transition-delay: .40s; }
[data-stagger].in > *:nth-child(7) { transition-delay: .47s; }
[data-stagger].in > *:nth-child(8) { transition-delay: .54s; }
[data-stagger].in > *:nth-child(9) { transition-delay: .61s; }

/* ---- مؤشّر الطرفية (terminal cursor) ---- */
.term-cursor {
  display: inline-block; width: .6ch; height: 1.05em;
  background: var(--primary); margin-inline-start: 3px;
  vertical-align: -2px; animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* النص أثناء التفكّك (scramble) */
.scramble-char { color: var(--primary); }

/* ---- خلفية الشبكة التقنية ---- */
.tech-grid { position: relative; }
.tech-grid::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
}
.tech-grid > * { position: relative; z-index: 1; }

/* شبكة على القسم الداكن */
.section-dark.tech-grid::before {
  background-image:
    linear-gradient(rgba(93,202,165,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93,202,165,.10) 1px, transparent 1px);
}

/* خط مسح يتحرّك (scanline) */
.scanline { position: relative; overflow: hidden; }
.scanline::after {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: .5; animation: scan 5s linear infinite;
}
@keyframes scan { 0% { top: 0; } 100% { top: 100%; } }

/* ---- توهّج وحدود البطاقة عند المرور (تقني) ---- */
.tech-card { position: relative; isolation: isolate; }
.tech-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  padding: 1px; background: linear-gradient(135deg, var(--primary), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease;
}
.tech-card:hover::after { opacity: 1; }

/* أيقونة الخدمة */
.svc-icon {
  width: 52px; height: 52px; border-radius: var(--r-sm);
  display: grid; place-items: center; font-size: 1.5rem;
  background: var(--primary-soft); color: var(--primary-strong);
  transition: background .25s, color .25s, transform .25s;
}
.tech-card:hover .svc-icon { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* دخول الهيرو */
.hero-in { animation: hero-up .9s cubic-bezier(.2,.7,.3,1) both; }
.hero-in.d1 { animation-delay: .1s; }
.hero-in.d2 { animation-delay: .22s; }
.hero-in.d3 { animation-delay: .34s; }
@keyframes hero-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---- احترام تقليل الحركة ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal, [data-stagger] > * { opacity: 1 !important; transform: none !important; }
  .term-cursor { animation: none; }
}

/* ===== layout ===== */
/* ============================================================
   layout.css — أثر | الهيدر والفوتر (مشترك لكل الصفحات)
   ============================================================ */

/* ---- الهيدر ---- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand .mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  position: relative; overflow: hidden; flex-shrink: 0;
}
.brand .mark::after { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 4px; background: var(--primary); }
.brand .name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.94rem; font-weight: 500; color: var(--muted); position: relative; padding: 4px 0; transition: color .15s; }
.nav-links a::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0; height: 2px; width: 0;
  background: var(--primary); transition: width .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

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

/* زر القائمة (جوال) */
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: var(--r-sm); place-items: center; border: 1px solid var(--line); font-size: 1.3rem; }
.mobile-menu {
  position: fixed; inset: 74px 0 auto 0; z-index: 55;
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 18px 24px; display: none; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow); animation: toast-in .2s ease;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 8px; font-weight: 500; color: var(--ink-2); border-radius: var(--r-sm); }
.mobile-menu a:hover { background: var(--surface-2); color: var(--primary-strong); }
.mobile-menu .btn { margin-top: 10px; }

/* ---- الفوتر ---- */
.site-footer { background: var(--ink); color: #fff; padding: clamp(36px, 4vw, 52px) 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-brand .name { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: #fff; margin-bottom: 10px; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: 0.9rem; max-width: 38ch; line-height: 1.7; margin-bottom: 14px; }
.footer-col h4 { font-size: 0.78rem; font-family: var(--font-mono); letter-spacing: .08em; color: #5DCAA5; margin-bottom: 10px; font-weight: 500; }
.footer-col a, .footer-col p { color: rgba(255,255,255,.62); font-size: 0.88rem; line-height: 1.85; display: block; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: rgba(255,255,255,.07); color: #fff; font-size: 1.05rem; transition: background .2s;
}
.footer-social a:hover { background: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 0.8rem; color: rgba(255,255,255,.5); font-family: var(--font-mono);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #5DCAA5; }

/* ---- ترويسة الصفحات الداخلية (مشتركة) ---- */
.page-hero { padding: clamp(48px, 7vw, 92px) 0 clamp(24px, 4vw, 40px); }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 700; margin-top: 14px; letter-spacing: 0; line-height: 1.35; }
.page-hero p { color: var(--muted); margin-top: 14px; max-width: 56ch; font-size: 1.06rem; }

/* ---- زر واتساب عائم ---- */
.wa-float {
  position: fixed; inset-block-end: 24px; inset-inline-end: 24px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: none; place-items: center;
  box-shadow: var(--shadow-lg); transition: transform .18s;
}
.wa-float.show { display: grid; }
.wa-float:hover { transform: scale(1.07); }
.wa-float i { font-size: 1.7rem; }

/* ---- استجابة ---- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== تحصين التجاوب الشامل ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: clip; }
img, svg, video { max-width: 100%; height: auto; }
/* منع عناصر الشبكة/الفلكس من تجاوز العرض */
.grid > *, .hero-grid > *, .svc-layout > *, .contact-grid > *, .footer-grid > * { min-width: 0; }
.tbl-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* الشاشات المتوسطة (تابلت) */
@media (max-width: 1024px) {
  .nav { height: 68px; }
  .wrap { padding-inline: 20px; }
}

/* دون 640px: هاتف */
@media (max-width: 640px) {
  .nav { height: 62px; }
  .brand .name { font-size: 1.05rem; }
  /* زر "اطلب خدمة" في الهيدر يختفي على الهاتف (موجود في قائمة الجوال) */
  .site-header .btn-primary.btn-sm { display: none; }
  .hero h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); line-height: 1.25; }
  .hero .lead { font-size: 1rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .section { padding-block: clamp(40px, 9vw, 64px); }
  .section-head h2 { font-size: clamp(1.5rem, 6.5vw, 2rem); }
  .cta-box { padding: 32px 20px; }
  .cta-box h2 { font-size: clamp(1.5rem, 6.5vw, 2rem); }
  .cta-box .btn { width: 100%; justify-content: center; }
  .svc-hero .head-row { flex-direction: row; align-items: flex-start; gap: 12px; }
  .svc-hero .svc-icon { width: 48px; height: 48px; font-size: 1.4rem; }
  /* أزرار النماذج والبطاقات ملء العرض */
  .price-card .btn, .contact-form-card .btn { width: 100%; justify-content: center; }
}

/* دون 380px: هواتف صغيرة جدًّا */
@media (max-width: 380px) {
  .wrap { padding-inline: 14px; }
  .hero h1 { font-size: 1.55rem; }
}
