/* ====================================================================
   Pulse Fix — نظام التصميم الأساسي
   لوحة الألوان: أبيض نقي + أزرق خدمة عميق (ثقة/برودة) + برتقالي نداء واحد
   ==================================================================== */

:root {
  --white: #ffffff;
  --ink: #11181f;          /* نص أساسي غامق جداً، ليس أسود بحت */
  --ink-soft: #4a5660;     /* نص ثانوي */
  --line: #e7ebee;         /* خطوط فاصلة فاتحة جداً */
  --surface: #f6f8f9;      /* خلفية قسم فاتحة جداً، ليست رمادية ملحوظة */
  --deep: #0e3a5c;         /* أزرق خدمة عميق - العنصر اللوني الأساسي */
  --deep-dark: #082a44;
  --deep-tint: #eaf1f6;    /* صبغة فاتحة من الأزرق للخلفيات الهادئة */
  --call: #ff5a1f;         /* برتقالي نداء - للاتصال فقط */
  --call-dark: #e0480f;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(14, 58, 92, 0.06);
  --shadow-md: 0 8px 24px rgba(14, 58, 92, 0.08);
  --shadow-lg: 0 20px 48px rgba(14, 58, 92, 0.14);
  --maxw: 1180px;
  --font-display: 'IBM Plex Sans Arabic', 'Cairo', 'Tahoma', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Cairo', 'Tahoma', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  direction: rtl;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--ink);
}

h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.5px; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 20px; }
p { margin: 0 0 16px; color: var(--ink-soft); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--deep);
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--call);
  display: inline-block;
}

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--surface { background: var(--surface); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { font-size: 17px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ===================== الأزرار ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15.5px;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-call {
  background: var(--call);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(255, 90, 31, 0.28);
}
.btn-call:hover { background: var(--call-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--deep);
  border: 1.5px solid var(--deep);
}
.btn-outline:hover { background: var(--deep); color: var(--white); }
.btn-ghost {
  background: var(--deep-tint);
  color: var(--deep);
}
.btn-ghost:hover { background: var(--deep); color: var(--white); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===================== الهيدر ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--deep);
}
.brand .pulse-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--call);
  box-shadow: 0 0 0 0 rgba(255,90,31,.5);
  animation: pulseDot 2.2s infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(255,90,31,.45); }
  70%  { box-shadow: 0 0 0 9px rgba(255,90,31,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,90,31,0); }
}
.brand span.sub { display:block; font-size: 11px; font-weight: 600; color: var(--ink-soft); letter-spacing: .5px; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color .15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--deep); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -2px; right: 0; left: 0;
  height: 2px;
  background: var(--call);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 14px; }
.phone-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
  color: var(--deep);
  direction: ltr;
}
.phone-pill svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; color: var(--deep); }

/* ===================== فوتر ===================== */
.site-footer {
  background: var(--deep-dark);
  color: #cdd9e2;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-brand { font-family: var(--font-display); color: var(--white); font-weight: 800; font-size: 22px; margin-bottom: 14px; display:flex; align-items:center; gap:8px;}
.footer-col h4 { color: var(--white); font-size: 15px; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { color: #aebfcb; font-size: 14.5px; transition: color .15s ease; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: #8fa3b2;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-call-line { color: var(--white); font-weight: 700; direction: ltr; }

/* ===================== زر الاتصال العائم ===================== */
.float-call {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--call);
  color: var(--white);
  padding: 16px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 14px 32px rgba(255,90,31,0.38);
  animation: floatPulse 2.6s infinite;
}
.float-call svg { width: 20px; height: 20px; }
@keyframes floatPulse {
  0%   { box-shadow: 0 14px 32px rgba(255,90,31,0.38); }
  50%  { box-shadow: 0 14px 32px rgba(255,90,31,0.55); }
  100% { box-shadow: 0 14px 32px rgba(255,90,31,0.38); }
}

/* ===================== الهيرو: سلايدر متحرك بتلاشي ===================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  min-height: 640px;
  display: flex;
  align-items: center;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(8,30,48,0.92) 0%, rgba(8,30,48,0.74) 42%, rgba(8,30,48,0.38) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 620px;
  padding: 110px 0 90px;
}
.hero-content .eyebrow { color: #8fd0ff; }
.hero-content .eyebrow::before { background: var(--call); }
.hero-content h1 { color: var(--white); }
.hero-content p.lead { color: #d6e3ea; font-size: 18.5px; max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-trust div { color: #c4d4dd; font-size: 14px; }
.hero-trust strong { display: block; color: var(--white); font-size: 26px; font-family: var(--font-display); }

/* ===================== شريط الأجهزة المتحرك (التوقيع البصري) ===================== */
.appliance-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  position: relative;
}
.strip-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: stripScroll 38s linear infinite;
}
.appliance-strip:hover .strip-track { animation-play-state: paused; }
@keyframes stripScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.strip-item {
  position: relative;
  width: 220px;
  height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.strip-item img { width: 100%; height: 100%; object-fit: cover; }
.strip-item span {
  position: absolute;
  bottom: 0; right: 0; left: 0;
  background: linear-gradient(transparent, rgba(8,30,48,0.82));
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 26px 12px 9px;
}

/* ===================== شبكة الخدمات ===================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-media { position: relative; height: 190px; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-media img { transform: scale(1.08); }
.service-body { padding: 22px 22px 26px; }
.service-body h3 { margin-bottom: 8px; }
.service-body p { font-size: 14.5px; margin-bottom: 14px; }
.service-link { color: var(--deep); font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.service-link svg { width: 15px; height: 15px; transition: transform .15s ease; }
.service-card:hover .service-link svg { transform: translateX(-4px); }

/* ===================== لماذا نحن / مميزات ===================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  padding: 28px 22px;
  border-radius: var(--radius);
  background: var(--surface);
}
.why-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--deep-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.why-icon svg { width: 24px; height: 24px; color: var(--deep); }
.why-card h3 { font-size: 17px; margin-bottom: 6px; }
.why-card p { font-size: 14px; margin-bottom: 0; }

/* ===================== قسم اتصل الآن (CTA كبير) ===================== */
.cta-band {
  background: var(--deep);
  color: var(--white);
  border-radius: 24px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.08), transparent 55%);
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; position: relative; }
.cta-band p { color: #cfe1ea; margin-bottom: 0; position: relative; }
.cta-band .btn-call { position: relative; }

/* ===================== صفحة داخلية: هيدر صفحة ===================== */
.page-hero {
  background: var(--surface);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}
.breadcrumb { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 14px; }
.breadcrumb a { color: var(--deep); font-weight: 600; }

/* ===================== بطاقات المقالات ===================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-media { height: 180px; overflow: hidden; }
.article-media img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 20px; }
.article-date { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 8px; display:block; }
.article-body h3 { font-size: 18px; margin-bottom: 8px; }
.article-body p { font-size: 14px; margin-bottom: 0; }

.article-single img.cover { border-radius: var(--radius); margin-bottom: 28px; max-height: 420px; width:100%; object-fit:cover; }
.article-single .content { max-width: 760px; margin: 0 auto; }
.article-single .content h2 { margin-top: 36px; font-size: 24px; }
.article-single .content p { font-size: 16.5px; color: var(--ink); }

/* ===================== نموذج تواصل ===================== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info-card {
  background: var(--deep);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-info-card h3 { color: var(--white); }
.contact-info-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info-row svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; color: #8fd0ff; }
.contact-info-row strong { display: block; color: var(--white); font-size: 15px; margin-bottom: 2px; }
.contact-info-row span { color: #cfe1ea; font-size: 14px; direction: ltr; display:inline-block; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--surface);
  transition: border-color .15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--deep);
  background: var(--white);
}
.form-field textarea { resize: vertical; min-height: 130px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14.5px; margin-bottom: 20px; font-weight: 600; }
.alert-success { background: #e9f7ef; color: #1e7d46; border: 1px solid #c5ead4; }
.alert-error { background: #fdecea; color: #b3261e; border: 1px solid #f6cbc7; }

/* ===================== صفحات نصية (سياسة/شروط) ===================== */
.prose { max-width: 760px; }
.prose h2 { margin-top: 32px; font-size: 22px; }
.prose ul { margin: 0 0 16px; padding-inline-start: 22px; }
.prose li { margin-bottom: 8px; color: var(--ink-soft); }

/* ===================== انيميشن ظهور عند التمرير ===================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===================== Footer/Header phone glow ===================== */
.glow-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ===================== استجابة للموبايل ===================== */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .phone-pill span.label { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .why-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 80px 0 60px; }
  .hero { min-height: 560px; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 26px; }
  .float-call span.label { display: none; }
  .float-call { padding: 16px; }
}

/* قائمة الموبايل المنبثقة */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 84px 0 0 0;
  background: var(--white);
  z-index: 480;
  padding: 30px 24px;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}
.mobile-nav .btn { width: 100%; margin-top: 20px; }

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; }
  .hero-slide { transition: none; }
  .brand .pulse-dot, .float-call { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* وضوح التركيز بلوحة المفاتيح */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2.5px solid var(--call);
  outline-offset: 2px;
}
