/* ============================================================
   ملف التنسيقات الرئيسي - وكالة ناسا للتسويق الرقمي
   NASA For Digital Marketing - style.css
   المطور: Senior Frontend Developer | UI/UX Expert
   ============================================================ */

/* ============================================================
   1. استيراد الخطوط من Google Fonts
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800&display=swap');

/* ============================================================
   2. متغيرات التصميم العامة (:root)
   ============================================================ */
:root {
  /* الألوان الرئيسية */
  --primary-color: #1b365d;
  --primary-dark: #122444;
  --primary-light: #254a80;
  --secondary-color: #4A90E2;
  --secondary-dark: #2d6fc0;
  --secondary-light: #6aadf0;

  /* التدرج الحيوي - مستوحى من سهم الشعار */
  --accent-gradient: linear-gradient(90deg, #ff7e5f 0%, #feb47b 50%, #c471ed 100%);
  --accent-gradient-hover: linear-gradient(90deg, #e06a4c 0%, #e09a60 50%, #a855d4 100%);
  --blue-gradient: linear-gradient(135deg, #1b365d 0%, #4A90E2 100%);
  --light-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);

  /* ألوان النصوص */
  --text-dark: #333333;
  --text-medium: #555555;
  --text-light: #ffffff;
  --text-muted: #888888;

  /* ألوان الخلفيات */
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --bg-dark: #0d1f3c;
  --bg-section: #f0f4f8;

  /* الحدود */
  --border-color: #dee2e6;
  --border-light: #e9ecef;
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 32px;
  --border-radius-full: 9999px;

  /* الخطوط */
  --font-primary: 'Cairo', 'Tajawal', sans-serif;
  --font-size-xs: 0.75rem;     /* 12px */
  --font-size-sm: 0.875rem;    /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-md: 1.125rem;    /* 18px */
  --font-size-lg: 1.25rem;     /* 20px */
  --font-size-xl: 1.5rem;      /* 24px */
  --font-size-2xl: 2rem;       /* 32px */
  --font-size-3xl: 2.5rem;     /* 40px */
  --font-size-4xl: 3rem;       /* 48px */

  /* الظلال */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
  --shadow-colored: 0 8px 30px rgba(74, 144, 226, 0.25);
  --shadow-accent: 0 8px 30px rgba(255, 126, 95, 0.35);

  /* الانتقالات */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* المسافات */
  --section-padding: 80px 0;
  --container-padding: 0 20px;
  --header-height: 75px;
}

/* ============================================================
   3. التهيئة الأساسية (Reset & Base)
   ============================================================ */

/* تصفير شامل */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* إعدادات HTML الجذر */
html {
  direction: rtl;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* إعدادات body الأساسية */
body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--text-dark);
  background-color: var(--bg-white);
  text-align: right;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* تنسيق الروابط */
a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--secondary-color);
}

/* تنسيق القوائم */
ul, ol {
  list-style: none;
}

/* تنسيق الصور */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* تنسيق الحقول */
input, textarea, select, button {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  outline: none;
  border: none;
}

/* تنسيق العناوين الافتراضية */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

/* تنسيق الفقرات */
p {
  line-height: 1.8;
  color: var(--text-medium);
}

/* ============================================================
   4. مكونات التخطيط العام (Layout Utilities)
   ============================================================ */

/* الحاوية الرئيسية */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.container-fluid {
  width: 100%;
  padding: var(--container-padding);
}

/* الأقسام */
.section {
  padding: var(--section-padding);
}

.section-light {
  background-color: var(--bg-light);
}

.section-dark {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.section-gradient {
  background: var(--blue-gradient);
  color: var(--text-light);
}

/* شبكات Flexbox المساعدة */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

/* شبكات Grid المساعدة */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* محاذاة النصوص */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }

/* ============================================================
   5. المكونات العامة القابلة لإعادة الاستخدام
   ============================================================ */

/* --- 5.1 الأزرار (Buttons) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: 700;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

/* زر أساسي - يستخدم التدرج الحيوي */
.btn-primary {
  background: var(--accent-gradient);
  color: var(--text-light);
  border-color: transparent;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 126, 95, 0.45);
  color: var(--text-light);
  background: var(--accent-gradient-hover);
}

.btn-primary:active {
  transform: translateY(-1px);
}

/* زر ثانوي - حدود ملونة وخلفية شفافة */
.btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-colored);
}

/* زر أبيض للخلفيات الداكنة */
.btn-white {
  background: var(--bg-white);
  color: var(--primary-color);
  border-color: var(--bg-white);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: var(--bg-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--primary-color);
}

/* أحجام الأزرار */
.btn-sm {
  padding: 8px 20px;
  font-size: var(--font-size-sm);
}

.btn-lg {
  padding: 16px 40px;
  font-size: var(--font-size-md);
}

/* --- 5.2 عناوين الأقسام (.section-title) --- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: var(--font-size-sm);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

/* الخط السفلي المتدرج للزينة */
.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 50%;
  transform: translateX(50%);
  width: 70px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: var(--border-radius-full);
}

/* عنوان القسم المحاذى لليمين */
.section-title.title-right::after {
  right: 0;
  transform: none;
}

.section-subtitle {
  font-size: var(--font-size-md);
  color: var(--text-muted);
  max-width: 600px;
  margin: 20px auto 0;
  line-height: 1.8;
}

/* --- 5.3 البطاقات (.card) --- */
.card {
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

/* تأثير الخط العلوي الملون عند التمرير */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover::before {
  opacity: 1;
}

/* بطاقة الخدمة مع أيقونة */
.card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--border-radius-md);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
  transition: all var(--transition-base);
}

.card:hover .card-icon {
  background: var(--accent-gradient);
  transform: scale(1.1) rotate(-5deg);
}

.card-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.card-text {
  font-size: var(--font-size-sm);
  color: var(--text-medium);
  line-height: 1.8;
}

/* --- 5.4 شريطة التميز (.badge) --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  white-space: nowrap;
}

/* شريطة التميز للباقات - "الأكثر طلباً" */
.badge-popular {
  background: var(--accent-gradient);
  color: var(--text-light);
  box-shadow: var(--shadow-accent);
}

/* شريطة الزاوية للباقات */
.badge-corner {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--accent-gradient);
  color: var(--text-light);
  font-size: var(--font-size-xs);
  font-weight: 800;
  padding: 5px 16px;
  border-radius: var(--border-radius-full);
  box-shadow: var(--shadow-accent);
  z-index: 1;
}

.badge-blue   { background-color: var(--secondary-color); color: #fff; }
.badge-dark   { background-color: var(--primary-color); color: #fff; }
.badge-light  { background-color: var(--bg-light); color: var(--text-dark); }

/* --- 5.5 الأسئلة الشائعة (.accordion) --- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xs);
}

.accordion-item.active {
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-colored);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition-fast);
}

.accordion-header:hover {
  background: var(--bg-light);
}

.accordion-question {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--primary-color);
  flex: 1;
}

/* أيقونة الزائد والناقص */
.accordion-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 300;
  color: var(--secondary-color);
  transition: all var(--transition-base);
  flex-shrink: 0;
  margin-right: 16px;
}

.accordion-item.active .accordion-icon {
  background: var(--accent-gradient);
  color: var(--text-light);
  transform: rotate(45deg);
}

/* إجابة السؤال - مخفية بالافتراضي */
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-base);
  padding: 0 24px;
}

.accordion-item.active .accordion-body {
  max-height: 400px;
  padding: 0 24px 20px;
}

.accordion-answer {
  font-size: var(--font-size-base);
  color: var(--text-medium);
  line-height: 1.9;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

/* ============================================================
   6. الهيكل المشترك - الترويسة (Header)
   ============================================================ */

.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);

  /* تأثير Glassmorphism */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: all var(--transition-base);
}

/* تأثير الظل عند النزول (يُضاف عبر JS) */
.header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--border-light);
}

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* شعار الوكالة */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-size: var(--font-size-md);
  font-weight: 800;
  color: var(--primary-color);
}

.logo-tagline {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  font-weight: 400;
}

/* قائمة التنقل الرئيسية */
.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-item {}

.nav-link {
  display: inline-block;
  padding: 8px 16px;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--border-radius-full);
  transition: all var(--transition-base);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 50%;
  transform: translateX(50%);
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: var(--border-radius-full);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color);
  background: rgba(74, 144, 226, 0.08);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

/* زر طلب الخدمة في الهيدر */
.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ============================================================
   7. قائمة الجوال (Mobile Menu)
   ============================================================ */

/* زر الهمبرجر */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  padding: 0;
  background: transparent;
  border: none;
  z-index: 1100;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

/* تحويل الهمبرجر لـ X عند الفتح */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(9.75px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-9.75px) rotate(-45deg);
}

/* القائمة الجانبية المنسدلة للجوال */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  right: 0;
  left: 0;
  background: var(--bg-white);
  box-shadow: var(--shadow-xl);
  padding: 20px;
  z-index: 999;
  border-top: 3px solid transparent;
  border-image: var(--accent-gradient) 1;
  transform: translateY(-10px);
  opacity: 0;
  transition: all var(--transition-base);
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: block;
  padding: 14px 16px;
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-base);
  border-right: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--bg-light);
  color: var(--secondary-color);
  border-right-color: var(--secondary-color);
  padding-right: 22px;
}

.mobile-menu-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================================
   8. قسم ما قبل الترويسة (Offset للمحتوى بسبب الهيدر الثابت)
   ============================================================ */
.page-content {
  padding-top: var(--header-height);
}

/* ============================================================
   9. بطاقات الأسعار (Pricing Cards)
   ============================================================ */
.pricing-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 40px 32px;
  border: 2px solid var(--border-light);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--secondary-color);
}

/* بطاقة السعر المميزة */
.pricing-card.featured {
  background: var(--blue-gradient);
  border-color: transparent;
  color: var(--text-light);
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured:hover {
  transform: scale(1.07) translateY(-4px);
}

.pricing-card.featured .pricing-title,
.pricing-card.featured .pricing-price,
.pricing-card.featured .pricing-period,
.pricing-card.featured .pricing-feature {
  color: var(--text-light);
}

.pricing-title {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: var(--font-size-4xl);
  font-weight: 900;
  color: var(--primary-color);
  line-height: 1;
  margin: 20px 0 4px;
}

.pricing-period {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  text-align: right;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-size-sm);
  color: var(--text-medium);
}

.pricing-feature::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--accent-gradient);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
  flex-shrink: 0;
}

.pricing-feature.disabled {
  opacity: 0.45;
  text-decoration: line-through;
}

.pricing-feature.disabled::before {
  content: '✕';
  background: var(--border-color);
  color: var(--text-muted);
}

/* ============================================================
   10. الإحصائيات والأرقام (Stats)
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 32px 20px;
}

.stat-number {
  font-size: var(--font-size-4xl);
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: var(--font-size-base);
  color: var(--text-muted);
  font-weight: 600;
}

/* ============================================================
   11. أقسام شهادات العملاء (Testimonials)
   ============================================================ */
.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: var(--font-size-lg);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: var(--font-size-base);
  color: var(--text-medium);
  line-height: 1.9;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-light);
}

.testimonial-name {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--primary-color);
}

.testimonial-role {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* ============================================================
   12. نماذج الاتصال (Contact Forms)
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-label {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--text-dark);
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  text-align: right;
  direction: rtl;
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.15);
}

.form-control::placeholder {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* ============================================================
   13. الذيل (Footer)
   ============================================================ */
.footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 70px 0 0;
}

/* شبكة توزيع محتوى الفوتر */
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 50px;
}

/* عمود الشعار والوصف */
.footer-brand .logo-name {
  color: var(--text-light);
}

.footer-brand .logo-tagline {
  color: rgba(255,255,255,0.55);
}

.footer-desc {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.9;
  margin: 20px 0 24px;
}

/* أيقونات التواصل الاجتماعي */
.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: var(--font-size-md);
  transition: all var(--transition-base);
  text-decoration: none;
}

.social-link:hover {
  background: var(--accent-gradient);
  transform: translateY(-3px);
  color: var(--text-light);
  box-shadow: var(--shadow-accent);
}

/* عناوين أعمدة الفوتر */
.footer-heading {
  font-size: var(--font-size-md);
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: var(--border-radius-full);
}

/* روابط الفوتر */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-link:hover {
  color: var(--text-light);
  padding-right: 6px;
}

.footer-link::before {
  content: '←';
  font-size: 12px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.footer-link:hover::before {
  opacity: 1;
}

/* معلومات التواصل */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.footer-contact-info {}

.footer-contact-label {
  font-size: var(--font-size-xs);
  color: rgba(255,255,255,0.45);
  margin-bottom: 2px;
}

.footer-contact-value {
  color: var(--text-light);
  font-weight: 600;
  direction: ltr;
  text-align: right;
  unicode-bidi: embed;
}

/* خط فاصل الفوتر */
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* شريط حقوق النشر */
.footer-bottom {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.5);
}

.footer-copyright span {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
}

.footer-policies {
  display: flex;
  gap: 20px;
}

.footer-policy-link {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-base);
}

.footer-policy-link:hover {
  color: var(--text-light);
}

/* ============================================================
   14. مكونات مساعدة إضافية (Utility Components)
   ============================================================ */

/* تحميل التقدم / شريط التقدم */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-light);
  border-radius: var(--border-radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--border-radius-full);
  transition: width 1s ease-in-out;
}

/* تنسيق زر الواتساب العائم */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: all var(--transition-base);
  text-decoration: none;
  color: #fff;
  font-size: 28px;
}

.whatsapp-float:hover {
  transform: scale(1.15) translateY(-3px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.55);
  color: #fff;
}

/* نبضة الواتساب */
.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: whatsapp-pulse 2s ease-out infinite;
}

@keyframes whatsapp-pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* تنسيق زر العودة للأعلى */
.scroll-to-top {
  position: fixed;
  bottom: 100px;
  left: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 998;
  transition: all var(--transition-base);
  opacity: 0;
  visibility: hidden;
  font-size: var(--font-size-lg);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-colored);
}

/* تنسيق Overlay الخلفية */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  backdrop-filter: blur(4px);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   15. رسوم متحركة (Animations)
   ============================================================ */

/* تأثير الظهور من الأسفل */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* تأثير الظهور من اليمين */
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* تأثير التبدل اللوني للخلفية */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* تأثير النبض للعناصر المميزة */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}

/* كلاسات تطبيق الأنيميشن */
.animate-fade-up   { animation: fadeInUp 0.6s ease forwards; }
.animate-fade-right { animation: fadeInRight 0.6s ease forwards; }
.animate-pulse     { animation: pulse 2s ease-in-out infinite; }

/* تأخيرات الأنيميشن */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ============================================================
   16. التجاوب مع الشاشات (Media Queries)
   ============================================================ */

/* --- شاشات كبيرة جداً (أكبر من 1400px) --- */
@media (min-width: 1400px) {
  .container { max-width: 1340px; }

  :root {
    --font-size-3xl: 2.75rem;
    --font-size-4xl: 3.5rem;
  }
}

/* --- شاشات المتوسطة - Tablets (max-width: 1024px) --- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 60px 0;
  }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card.featured {
    transform: scale(1.02);
  }
}

/* --- شاشات الجوال (max-width: 768px) --- */
@media (max-width: 768px) {
  :root {
    --font-size-2xl: 1.6rem;
    --font-size-3xl: 1.9rem;
    --font-size-4xl: 2.2rem;
    --section-padding: 50px 0;
    --header-height: 65px;
  }

  /* إخفاء القائمة والـ CTA في الهيدر وإظهار الهمبرجر */
  .nav,
  .header-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
    pointer-events: none;
  }

  .mobile-menu.active {
    pointer-events: all;
  }

  /* تحويل الشبكات لعمود واحد */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* إعادة تنسيق الفوتر */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-policies {
    justify-content: center;
  }

  /* تعديل الشعار في الفوتر */
  .footer-heading::after {
    right: 50%;
    transform: translateX(50%);
  }

  /* تعديل عناوين الأقسام */
  .section-header {
    margin-bottom: 40px;
  }

  .section-title::after {
    right: 50%;
    transform: translateX(50%);
  }

  /* تعديل بطاقات الأسعار */
  .pricing-card.featured {
    transform: scale(1);
  }

  /* تعديل زر الواتساب */
  .whatsapp-float { left: 20px; bottom: 20px; width: 54px; height: 54px; }
  .scroll-to-top  { left: 20px; bottom: 88px; }
}

/* --- شاشات صغيرة جداً (max-width: 480px) --- */
@media (max-width: 480px) {
  :root {
    --font-size-2xl: 1.4rem;
    --font-size-3xl: 1.7rem;
    --font-size-4xl: 2rem;
  }

  .container { padding: 0 16px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .btn-lg {
    padding: 14px 28px;
    font-size: var(--font-size-base);
  }

  .card { padding: 24px 20px; }

  .accordion-header { padding: 16px 18px; }

  .accordion-question { font-size: var(--font-size-base); }
}