/* تحديث تصميم نفوذ المستقبل 2026 — يُحمَّل آخر ملف ليحسّن الشكل دون تغيير الوظائف */
:root {
  --nf-navy: #073d86;
  --nf-navy-deep: #061d3d;
  --nf-teal: #0aa5c0;
  --nf-gold: #c89a47;
  --nf-ink: #0b1a33;
  --nf-mute: #52627c;
  --nf-line: #e2e9f3;
  --nf-soft: #f4f7fb;
  --nf-radius: 18px;
  --nf-shadow: 0 1px 2px rgba(6, 29, 61, .05), 0 8px 24px rgba(6, 29, 61, .06);
}

/* الخط العربي */
body, button, input, select, textarea {
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif !important;
}
body { color: var(--nf-ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { letter-spacing: 0; text-wrap: balance; }
.section h2 { font-weight: 700; }

/* إيقاع الأقسام أقصر وأهدأ */
.section { padding-block: clamp(48px, 6vw, 80px) !important; }
.section-muted { background: var(--nf-soft) !important; }
.section-head { border-bottom: 0 !important; margin-bottom: 28px !important; padding-bottom: 0 !important; }
.section-head > div { border-inline-start: 4px solid var(--nf-teal) !important; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 40px) !important; line-height: 1.15; }
.section-head > p { color: var(--nf-mute); }

/* الواجهة الرئيسية: شريط ترحيب أزرق قوي */
.official-welcome {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(10, 165, 192, .35), transparent 55%),
    linear-gradient(135deg, var(--nf-navy-deep), var(--nf-navy) 70%);
  color: #fff !important;
  border-radius: 24px;
  padding: clamp(28px, 4vw, 52px) clamp(22px, 4vw, 48px) !important;
  margin-block: 20px 18px !important;
  box-shadow: 0 18px 40px rgba(6, 29, 61, .18);
  align-items: center !important;
  gap: 24px !important;
}
.official-welcome .official-eyebrow { color: #8fdcec !important; font-weight: 600; letter-spacing: 0; }
.official-welcome h2 {
  color: #fff !important;
  font-size: clamp(30px, 4.2vw, 50px) !important;
  line-height: 1.12 !important;
  margin: 6px 0 12px !important;
  max-width: 18ch;
}
.official-welcome p { color: #d5e4fb !important; font-size: clamp(16px, 1.5vw, 19px) !important; }
.official-welcome-actions { flex-wrap: wrap; gap: 12px !important; }
.official-welcome-actions a {
  min-height: 52px; padding: 0 26px !important; border-radius: 14px !important;
  display: inline-flex !important; align-items: center; gap: 8px;
  font-weight: 700 !important; font-size: 17px !important; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.official-welcome-actions a:first-child { background: #fff !important; color: var(--nf-navy) !important; border: 0 !important; }
.official-welcome-actions a:last-child { background: var(--nf-gold) !important; color: #fff !important; border: 0 !important; }
.official-welcome-actions a:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, .18); }

/* إزالة التكرار: لوحة "الوصول السريع" مكررة مع شريط التنقل، و"صور الأقسام" مكررة مع بطاقات الأقسام */
#main-group, #showcase { display: none !important; }

/* البطاقات موحّدة */
.sector-card, .service-card, .unit-card, .audience-card,
.company-quality-grid > article, .catalog-card, .company-legal-grid > *, .official-category-card {
  border: 1px solid var(--nf-line) !important;
  border-radius: var(--nf-radius) !important;
  box-shadow: var(--nf-shadow) !important;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}
.sector-card { border-top: 1px solid var(--nf-line) !important; }
.sector-card:hover, .service-card:hover, .unit-card:hover, .audience-card:hover, .catalog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(6, 29, 61, .06), 0 16px 34px rgba(6, 29, 61, .10) !important;
}
.service-card::before, .company-quality-grid > article::before { display: none !important; }

/* الأزرار والحقول */
.homepage-modern :is(input, select, textarea) {
  border-radius: 12px !important; border: 1px solid #cfdbea !important; min-height: 50px; background: #fff;
}
.homepage-modern :is(input, select, textarea):focus-visible {
  outline: 3px solid rgba(10, 165, 192, .35) !important; outline-offset: 1px; border-color: var(--nf-teal) !important;
}

/* نموذج عرض السعر: محاذاة الحقول */
.quote-form { align-items: start !important; }
.quote-form .form-field { align-self: start; }
.quote-form .form-note { font-size: .9rem !important; line-height: 1.6 !important; color: var(--nf-mute); }
.quote-form button[type="submit"] { min-height: 54px; border-radius: 14px !important; font-size: 17px; }
.quote-shell { border-radius: 24px !important; box-shadow: var(--nf-shadow); }

/* الأسئلة الشائعة */
#faq details { border-radius: 14px !important; box-shadow: var(--nf-shadow); border-color: var(--nf-line) !important; }

/* الجوال */
@media (max-width: 700px) {
  .official-welcome { border-radius: 18px; margin-inline: 0; }
  .official-welcome h2 { max-width: none; }
  .official-welcome-actions a { flex: 1 1 100%; justify-content: center; }
  .section-head > div { padding-inline-start: 14px !important; }
}

/* الجوال: ترويسة أقصر — شريط تنقل أفقي قابل للتمرير بدل شبكة الروابط */
@media (max-width: 700px) {
  .company-header-modern-panel { display: none !important; }
  .official-navigation-links {
    display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; gap: 8px !important; justify-content: flex-start !important;
    padding-block: 10px !important; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .official-navigation-links::-webkit-scrollbar { display: none; }
  .official-navigation-links > a {
    flex: none !important; width: auto !important; min-height: 42px; padding: 0 16px !important;
    display: inline-flex !important; align-items: center; border-radius: 99px !important; white-space: nowrap; font-size: 15px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
/* مفتاح اللغة: زرّان واضحان بدون تداخل */
.header-language-switch { display: inline-flex !important; gap: 4px !important; }
.header-language-switch a { position: static !important; min-width: 40px; min-height: 36px; display: inline-flex !important; align-items: center; justify-content: center; }
