/* ==========================================================================
   موقع مكتب أبو فهد لخدمات المرور - التنسيقات العصرية الفاخرة
   متوافق 100% مع جميع شاشات الجوال وهواتف الآيفون (iOS Safari) ومعايير إعلانات جوجل
   ========================================================================== */

:root {
  --font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* لوحة ألوان فاخرة وعصرية */
  --primary: #0f2b48;
  --primary-dark: #091b2e;
  --primary-light: #183e65;
  --accent-emerald: #10b981;
  --accent-emerald-dark: #059669;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-gold: #f59e0b;
  --accent-gold-dark: #d97706;
  --whatsapp-color: #25d366;
  --whatsapp-hover: #1ebd5a;
  --call-color: #2563eb;
  --call-hover: #1d4ed8;
  
  /* خلفيات ونصوص */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  /* تأثيرات وظلال */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.35);
  
  /* استدارة الحواف */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* انتقالات سلسة */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   إعادة الضبط الأساسي ومنع التمرير الأفقي في الجوال والآيفون
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  direction: rtl;
  text-align: right;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  /* احتساب مساحة الشريط العائم والمنطقة الآمنة لأسفل شاشة الآيفون (Home Indicator) */
  padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

img, svg, video, canvas, audio, iframe, embed, object {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul {
  list-style: none;
}

/* ضبط أزرار ونماذج الإدخال لتجنب تكبير شاشة الآيفون التلقائي (iOS Safari Zoom Fix) */
button, input, select, textarea {
  font-family: inherit;
  font-size: 16px; /* 16px إلزامي لمنع سفاري من التكبير التلقائي عند النقر */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: var(--radius-sm);
}

/* تنسيق أرقام الهواتف لتظهر بالترتيب الصحيح في الواجهات العربية */
.conf-phone-display, 
.conf-phone-intl-display,
.phone-number,
[dir="ltr"] {
  direction: ltr !important;
  unicode-bidi: isolate;
  display: inline-block;
  font-family: system-ui, -apple-system, sans-serif;
}

/* الحاوية الأساسية المتوافقة مع النتوء والحواف الجانبية للآيفون */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

/* ==========================================================================
   الهيدر وشريط التنقل (Header & Navigation)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding-top: env(safe-area-inset-top, 0px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 43, 72, 0.22);
  flex-shrink: 0;
}

.brand-icon svg {
  width: 24px;
  height: 24px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text h1, .brand-text .brand-title {
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1.25;
  white-space: nowrap;
  margin: 0;
}

.brand-text p {
  font-size: clamp(0.74rem, 2.4vw, 0.84rem);
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0.15rem 0 0;
}

@media (min-width: 768px) {
  .header-inner {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }
  .brand-icon {
    width: 48px;
    height: 48px;
  }
  .brand-icon svg {
    width: 26px;
    height: 26px;
  }
}

/* ==========================================================================
   أزرار الاتصال والتفاعل
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
  min-height: 44px; /* معايير آبل لتجربة لمس مريحة في الآيفون */
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 43, 72, 0.25);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover, .btn-whatsapp:active {
  background: linear-gradient(135deg, #1ebd5a 0%, #0d7367 100%);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

.btn-call {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-call:hover, .btn-call:active {
  background: #1e40af;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  color: var(--primary);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  min-height: 38px;
}

@media (min-width: 768px) {
  .btn-sm {
    padding: 0.45rem 0.95rem;
    font-size: 0.88rem;
  }
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1.05rem;
  min-height: 52px;
}

/* زر الهيدر على شاشات الجوال الصغيرة */
#header-call-btn span {
  display: inline;
}

#header-wa-btn span {
  display: none;
}

@media (min-width: 480px) {
  #header-wa-btn span {
    display: inline;
  }
}

/* ==========================================================================
   القسم الرئيسي (Hero Section)
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #091b2e 0%, #0f2b48 50%, #183e65 100%);
  color: #ffffff;
  padding: 2.25rem 0 3rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 3.5rem 0 4.5rem;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
  }
}

.hero-badge-container {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: #a7f3d0;
  font-weight: 700;
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 100%;
}

.hero-badge-container .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: clamp(1.45rem, 5.2vw, 2.7rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 1rem;
  word-break: break-word;
}

.hero-title .highlight {
  background: linear-gradient(120deg, #34d399 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(0.92rem, 2.5vw, 1.1rem);
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  width: 100%;
}

@media (min-width: 576px) {
  .hero-cta-group {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .hero-cta-group .btn {
    flex: 1 1 auto;
  }
}

.hero-trust-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.metric-item {
  text-align: center;
}

.metric-value {
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  font-weight: 800;
  color: #34d399;
  line-height: 1.2;
}

.metric-label {
  font-size: clamp(0.72rem, 2vw, 0.82rem);
  color: #94a3b8;
  margin-top: 0.2rem;
}

/* بطاقة الطلب السريع في الهيرو */
.hero-card {
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-main);
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
  .hero-card {
    padding: 2rem;
  }
}

.hero-card-header {
  margin-bottom: 1.25rem;
  text-align: center;
}

.hero-card-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.hero-card-header p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.quick-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

/* تخصيص قوائم الاختيار ومربعات النصوص للآيفون */
.form-control {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 16px !important; /* هام جداً لمنع زوم الآيفون */
  background-color: #f8fafc;
  color: var(--text-main);
  transition: var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.85rem center;
  background-size: 16px;
  padding-left: 2.25rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(24, 62, 101, 0.12);
}

.phone-quick-box {
  background: #eff6ff;
  border: 1px dashed #93c5fd;
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.25rem;
  gap: 0.5rem;
}

.phone-quick-info {
  display: flex;
  flex-direction: column;
}

.phone-quick-info span:first-child {
  font-size: 0.72rem;
  color: #1e40af;
  font-weight: 700;
}

.phone-quick-info span:last-child {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e3a8a;
  direction: ltr;
  text-align: right;
}

/* ==========================================================================
   قسم التنويه والتأكيد على الاستقلالية (Google Ads Notice)
   ========================================================================== */
.compliance-banner-section {
  background: #ffffff;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-color);
}

.compliance-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
  border: 1px solid #bbf7d0;
  border-right: 4px solid var(--accent-emerald-dark);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .compliance-box {
    padding: 1.25rem 1.5rem;
    gap: 1rem;
    border-right-width: 5px;
  }
}

.compliance-icon {
  background: #10b981;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .compliance-icon {
    width: 38px;
    height: 38px;
  }
}

.compliance-text h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 0.2rem;
}

.compliance-text p {
  font-size: 0.84rem;
  color: #1e293b;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .compliance-text h4 {
    font-size: 1rem;
  }
  .compliance-text p {
    font-size: 0.88rem;
  }
}

/* ==========================================================================
   أقسام الموقع العامة والخدمات
   ========================================================================== */
.section-padding {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 4.5rem 0;
  }
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 2.25rem;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 3.5rem;
  }
}

.section-tag {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.4rem, 4vw, 2.3rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.section-subtitle {
  font-size: clamp(0.88rem, 2vw, 1.05rem);
  color: var(--text-muted);
}

/* شبكة الخدمات (Services Grid) */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .service-card {
    padding: 1.75rem;
  }
  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
  }
}

.service-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.service-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-card-action {
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  padding-top: 0.85rem;
}

.btn-service-wa {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  min-height: 46px; /* لمس مريح على الآيفون */
  touch-action: manipulation;
}

.btn-service-wa:active, .btn-service-wa:hover {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
}

/* ==========================================================================
   قسم مميزات المكتب (Why Choose Us)
   ========================================================================== */
.features-section {
  background: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-item {
  background: var(--bg-surface-alt);
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--border-light);
}

@media (min-width: 768px) {
  .feature-item {
    padding: 2rem 1.5rem;
  }
}

.feature-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   قسم خطوات العمل (Process Steps)
   ========================================================================== */
.process-section {
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  position: relative;
  text-align: center;
}

@media (min-width: 768px) {
  .step-card {
    padding: 2.25rem 1.75rem;
  }
}

.step-number {
  position: absolute;
  top: -16px;
  right: 50%;
  transform: translateX(50%);
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
}

.step-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   قسم الأسئلة الشائعة (FAQ Accordion)
   ========================================================================== */
.faq-section {
  background: #ffffff;
}

.faq-list {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item.active {
  background: #ffffff;
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  text-align: right;
  padding: 1rem 1.15rem;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  cursor: pointer;
  gap: 0.75rem;
  min-height: 50px;
  touch-action: manipulation;
}

@media (min-width: 768px) {
  .faq-question {
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
  }
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.15rem;
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .faq-answer {
    padding: 0 1.5rem;
    font-size: 0.95rem;
  }
}

.faq-item.active .faq-answer {
  padding-bottom: 1rem;
}

/* ==========================================================================
   قسم إخلاء المسؤولية المفصل
   ========================================================================== */
.legal-disclaimer-section {
  background: #f1f5f9;
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
}

.legal-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.15rem;
}

@media (min-width: 768px) {
  .legal-card {
    padding: 2rem;
  }
}

.legal-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-card p {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 0.65rem;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   قسم أرقام التواصل بنص عادي بسيط (Plain Text Phone Numbers for Google Ads)
   ========================================================================== */
.phone-formats-section {
  background: #f8fafc;
  padding: 1.25rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
}

.plain-phone-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

@media (min-width: 640px) {
  .plain-phone-box {
    flex-direction: row;
    gap: 0.75rem;
  }
}

.plain-phone-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
  margin: 0;
}

.plain-phone-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.plain-phone-item {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  direction: ltr !important;
  unicode-bidi: isolate;
  font-family: inherit;
  cursor: default;
  user-select: all;
}

.plain-phone-divider {
  color: #94a3b8;
  font-size: 0.85rem;
  user-select: none;
}

/* ==========================================================================
   الفوتر (Footer)
   ========================================================================== */
.site-footer {
  background: var(--primary-dark);
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
  }
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.86rem;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.88rem;
  padding: 0.2rem 0;
  display: inline-block;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
}

.footer-contact-item svg {
  color: #34d399;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  font-size: 0.8rem;
  color: #64748b;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-legal-links {
  display: flex;
  gap: 1rem;
}

.footer-legal-links a {
  color: #94a3b8;
}

/* ==========================================================================
   الشريط السفلي العائم للجوال والآيفون (Mobile & iPhone Floating Dock)
   ========================================================================== */
.floating-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.55rem 0.85rem;
  padding-bottom: max(0.55rem, env(safe-area-inset-bottom, 0px));
  padding-left: max(0.85rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.85rem, env(safe-area-inset-right, 0px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--border-color);
  z-index: 9999;
}

@media (min-width: 768px) {
  .floating-mobile-bar {
    display: none;
  }
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.98rem;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  min-height: 48px; /* معايير اللمس في الآيفون */
  touch-action: manipulation;
}

.floating-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.floating-btn-call {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.floating-btn-wa {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  animation: pulse-green 2.5s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); box-shadow: 0 0 15px rgba(37, 211, 102, 0.5); }
  100% { transform: scale(1); }
}

/* الأزرار العائمة للشاشات الكبيرة (Desktop Floating Actions) */
.desktop-floating-actions {
  display: none;
}

@media (min-width: 768px) {
  .desktop-floating-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 999;
  }
  
  .desktop-floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-normal);
    position: relative;
  }
  
  .desktop-floating-btn:hover {
    transform: scale(1.1);
  }
  
  .desktop-floating-btn svg {
    width: 28px;
    height: 28px;
  }
  
  .desktop-wa {
    background: #25d366;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    animation: pulse-green 2.5s infinite;
  }
  
  .desktop-call {
    background: #2563eb;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  }

  .desktop-floating-btn .tooltip {
    position: absolute;
    right: calc(100% + 12px);
    background: var(--primary-dark);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    pointer-events: none;
  }

  .desktop-floating-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
  }
}

/* ==========================================================================
   تنسيقات الصفحات الثانوية (سياسة الخصوصية والشروط)
   ========================================================================== */
.policy-header {
  background: var(--primary);
  color: #ffffff;
  padding: 2.5rem 0;
  text-align: center;
}

.policy-content {
  background: #ffffff;
  padding: 1.5rem 1.2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-top: -1.5rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .policy-header {
    padding: 3rem 0;
  }
  .policy-content {
    padding: 3rem;
    margin-top: -2rem;
    margin-bottom: 4rem;
  }
}

.policy-content h2 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0.35rem;
}

.policy-content p {
  color: #334155;
  margin-bottom: 0.85rem;
  line-height: 1.75;
  font-size: 0.92rem;
}

.policy-content ul {
  list-style: disc;
  padding-right: 1.25rem;
  margin-bottom: 0.85rem;
  color: #334155;
  font-size: 0.92rem;
}

.policy-content li {
  margin-bottom: 0.35rem;
}
