/* ==========================================================================
   مكتب أبو محمد للخدمات العامة - ملف التنسيقات الأساسي المحدث (CSS)
   الخط: Cairo بالكامل لجميع العناصر
   تصميم فائق التجاوب ومحسن بدقة لهواتف iPhone وجميع الشاشات الذكية
   ========================================================================== */

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

/* المتغيرات العامة ونظام الألوان */
:root {
  --font-family-base: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* ألوان الهوية */
  --primary-color: #0b3954;       /* كحلي ملكي */
  --primary-dark: #072537;
  --primary-light: #165b85;
  --secondary-color: #00875a;     /* أخضر إنجاز وخدمات */
  --secondary-dark: #006644;
  --accent-gold: #c59b27;        /* لمسات ذهبية */
  --accent-gold-light: #e5b842;
  --whatsapp-color: #25d366;     /* واتساب */
  
  /* الخلفيات والنصوص */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  /* الظلال */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(11, 57, 84, 0.08);
  --shadow-lg: 0 10px 25px rgba(11, 57, 84, 0.12);
  --shadow-xl: 0 20px 40px rgba(11, 57, 84, 0.16);
  --shadow-fab: 0 8px 24px rgba(37, 211, 102, 0.4);
  
  /* نصف قطر الحواف */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 76px;
}

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

body, button, input, textarea, select {
  font-family: var(--font-family-base);
}

/* ضمان ظهور أيقونات Font Awesome بكافة أوزانها وعائلاتها دون أي تعارض */
.fa, .fas, .fa-solid {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

.far, .fa-regular {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 400 !important;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

.fab, .fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

html {
  font-size: 16px;
  direction: rtl;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  /* دعم حواف شاشات آيفون (Notch & Dynamic Island) */
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* مساحة سفلية كافية لحماية أزرار وشريط المنزل في الآيفون */
  padding-bottom: calc(90px + env(safe-area-inset-bottom));
}

/* نصوص وعناوين */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  font-weight: 800;
  line-height: 1.35;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   شريط الهيدر (Header) - مرن ومناسب لشاشات الآيفون الصغيرة والكبيرة
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  width: 100%;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  min-height: 65px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.75rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  color: var(--primary-color);
  min-width: 0;
  flex-shrink: 1;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 3px 8px rgba(11, 57, 84, 0.2);
  flex-shrink: 0;
}

.brand-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title .main-name {
  color: var(--primary-color);
  font-weight: 800;
  font-size: 1.22rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* الأزرار العامة */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-normal);
  border: 2px solid transparent;
  white-space: nowrap;
  touch-action: manipulation;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: #1eb856;
  transform: translateY(-2px);
  box-shadow: var(--shadow-fab);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: #1e293b;
  font-weight: 800;
}

.btn-gold:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(197, 155, 39, 0.35);
}

/* ==========================================================================
   قسم البطل (Hero Section)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(circle at 80% 20%, rgba(0, 135, 90, 0.07) 0%, rgba(11, 57, 84, 0.03) 60%, transparent 100%),
              linear-gradient(180deg, #ffffff 0%, var(--bg-body) 100%);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: rgba(0, 135, 90, 0.1);
  color: var(--secondary-color);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(0, 135, 90, 0.2);
}

.hero-badge-wrap i {
  color: var(--accent-gold);
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--primary-color);
  line-height: 1.32;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-title .highlight {
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 6px;
  right: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(0, 135, 90, 0.18);
  border-radius: 4px;
  z-index: -1;
}

.hero-lead {
  font-size: 1.2rem;
  color: #334155;
  font-weight: 500;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.hero-phone-preview {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

.hero-phone-preview .label {
  font-weight: 700;
  color: var(--text-muted);
}

.hero-phone-preview .number-text {
  font-weight: 800;
  color: var(--primary-color);
  direction: ltr;
  font-size: 1.15rem;
  unicode-bidi: isolate;
}

.hero-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
}

.hero-card-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.hero-card-header h3 {
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-card-header h3 i {
  color: var(--secondary-color);
}

.features-mini-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.mini-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.mini-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(0, 135, 90, 0.1);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.mini-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: var(--primary-color);
}

.mini-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   شريط الإحصائيات (Stats Strip)
   ========================================================================== */
.stats-strip {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 1.75rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-box {
  padding: 0.5rem;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.stat-number span {
  color: var(--secondary-color);
}

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

/* ==========================================================================
   الأقسام المشتركة
   ========================================================================== */
.section {
  padding: 4.5rem 0;
  position: relative;
}

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

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

.section-tag {
  display: inline-block;
  color: var(--secondary-color);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 0.85rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* قسم عن المكتب (About Section) */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.highlight-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-color);
}

.highlight-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background-color: rgba(11, 57, 84, 0.08);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.highlight-card:nth-child(2) .highlight-icon {
  background-color: rgba(0, 135, 90, 0.1);
  color: var(--secondary-color);
}

.highlight-card:nth-child(3) .highlight-icon {
  background-color: rgba(197, 155, 39, 0.12);
  color: var(--accent-gold);
}

.highlight-card:nth-child(4) .highlight-icon {
  background-color: rgba(11, 57, 84, 0.08);
  color: var(--primary-light);
}

.highlight-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.highlight-card p {
  font-size: 0.92rem;
  line-height: 1.65;
}

.about-text-wrap .lead-badge {
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: block;
}

.about-text-wrap h2 {
  font-size: 2.1rem;
  margin-bottom: 1.25rem;
}

.about-paragraph {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.experience-quote {
  background: linear-gradient(135deg, rgba(11, 57, 84, 0.05), rgba(0, 135, 90, 0.05));
  border-right: 4px solid var(--secondary-color);
  padding: 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 1.75rem;
}

.experience-quote p {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.05rem;
  margin: 0;
}

/* ==========================================================================
   قسم ركائزنا وقيمنا (Core Values)
   ========================================================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-box {
  background-color: #ffffff;
  padding: 2.2rem 1.8rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.value-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-color);
  transition: var(--transition-fast);
}

.value-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.value-box:hover::before {
  height: 6px;
  background: var(--secondary-color);
}

.value-icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(11, 57, 84, 0.08), rgba(0, 135, 90, 0.12));
  color: var(--secondary-color);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: var(--transition-normal);
}

.value-box:hover .value-icon-circle {
  background: var(--secondary-color);
  color: #ffffff;
  transform: scale(1.05);
}

.value-box h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   قسم تأكيد تقديم جميع الخدمات العامة التي تحتاجها
   ========================================================================== */
.services-statement-section {
  padding: 4.5rem 0;
}

.services-statement-box {
  background: linear-gradient(135deg, #ffffff 0%, var(--bg-surface-alt) 100%);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.services-statement-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.statement-icon {
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, rgba(11, 57, 84, 0.1), rgba(0, 135, 90, 0.15));
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1.5rem;
}

.statement-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 1.1rem;
}

.statement-desc {
  font-size: 1.18rem;
  color: #475569;
  line-height: 1.9;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.statement-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   قسم أرقام التواصل بصيغه الثلاث (Plain Text Section)
   صيغ بدون فواصل: 0592306854 | +966592306854 | 966592306854+
   ========================================================================== */
.phones-display-section {
  background-color: #ffffff;
  padding: 3.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.phones-container-box {
  background-color: var(--bg-surface-alt);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  max-width: 860px;
  margin: 0 auto;
}

.phones-box-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.phones-box-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.phones-box-header p {
  font-size: 0.95rem;
}

.phones-formats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.phone-format-item {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.phone-format-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  display: block;
}

.plain-phone-text {
  font-family: var(--font-family-base) !important;
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  user-select: all;
  -webkit-user-select: all;
  letter-spacing: 0.2px;
  background: none;
  border: none;
}

.copy-btn {
  margin-top: 0.75rem;
  background: transparent;
  border: 1px dashed var(--border-color);
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
  touch-action: manipulation;
}

.copy-btn:hover {
  background-color: var(--bg-surface-alt);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* ==========================================================================
   قسم المراجعات (Reviews Section - 6 Reviews)
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-color);
}

.review-stars {
  color: var(--accent-gold);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
  display: flex;
  gap: 0.2rem;
}

.review-quote-icon {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 1.6rem;
  color: rgba(11, 57, 84, 0.08);
}

.review-card p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.1rem;
}

.author-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   قسم الدعوة للتواصل السريع (CTA Banner)
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 1rem auto 0;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 10%, transparent 20%);
  background-size: 30px 30px;
  pointer-events: none;
}

.cta-banner h2 {
  color: #ffffff;
  font-size: 2.3rem;
  margin-bottom: 0.9rem;
}

.cta-banner p {
  color: #cbd5e1;
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   تذييل الصفحة (Footer)
   ========================================================================== */
.site-footer {
  background-color: #0b1d28;
  color: #94a3b8;
  padding: 3.5rem 0 1.5rem;
  margin-top: 3.5rem;
  border-top: 4px solid var(--accent-gold);
}

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

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-contact h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.contact-row i {
  color: var(--accent-gold);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* التنبيه القانوني في أسفل الفوتر المطلوب من العميل */
.footer-disclaimer-container {
  margin: 1.75rem auto;
}

.footer-disclaimer-alert {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 4px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.75;
}

.footer-disclaimer-icon {
  color: var(--accent-gold);
  font-size: 1.25rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.footer-disclaimer-text {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin: 0;
}

.footer-disclaimer-text strong {
  color: var(--accent-gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: #64748b;
}

/* ==========================================================================
   الزر العائم للتواصل السريع (FAB) - تأثيرات احترافية ومناسب تماماً للجوال
   ========================================================================== */
.floating-contact-wrapper {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  right: calc(20px + env(safe-area-inset-right));
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  user-select: none;
}

/* حاوية الزر المشغل والمؤثرات */
.fab-trigger-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* الزر المشغل الرئيسي */
.fab-main-trigger {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  border: 3px solid rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.95rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(18, 140, 126, 0.5), 0 3px 10px rgba(0, 0, 0, 0.18);
  position: relative;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
  z-index: 5;
  animation: fabFloat 3.5s ease-in-out infinite;
}

.fab-main-trigger:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 32px rgba(18, 140, 126, 0.6), 0 4px 12px rgba(0, 0, 0, 0.22);
}

.fab-main-trigger:active {
  transform: scale(0.93);
}

/* تبديل الأيقونة بين الواتساب وزر الإغلاق */
.fab-icon-view {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fab-icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  font-size: 1.65rem;
}

.floating-contact-wrapper.active .fab-icon-default {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.floating-contact-wrapper.active .fab-icon-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.floating-contact-wrapper.active .fab-main-trigger {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
  border-color: #ffffff;
  animation: none;
}

/* تأثير أمواج الرادار المستمرة (Double Ripple Wave) */
.fab-ripple-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(37, 211, 102, 0.45);
  z-index: 1;
  pointer-events: none;
  animation: fabRadar 2.4s cubic-bezier(0.1, 0.7, 0.1, 1) infinite;
}

.fab-ripple-wave.wave-2 {
  animation-delay: 1.2s;
}

.floating-contact-wrapper.active .fab-ripple-wave {
  display: none;
}

@keyframes fabRadar {
  0% {
    width: 60px;
    height: 60px;
    opacity: 0.85;
  }
  100% {
    width: 125px;
    height: 125px;
    opacity: 0;
  }
}

@keyframes fabFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* نقطة التواجد المباشر (Online Status Dot) */
.fab-online-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  z-index: 10;
  pointer-events: none;
}

.ping-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #22c55e;
  opacity: 0.75;
  animation: pingAnimation 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ping-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #22c55e;
  border: 2px solid #ffffff;
}

@keyframes pingAnimation {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* القائمة المنبثقة */
.floating-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.92);
  transform-origin: bottom right;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.floating-contact-wrapper.active .floating-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* أزرار الخيارات */
.fab-option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 14px;
  border-radius: 35px;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  transition: all 0.25s ease;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.fab-option-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.fab-option-btn:hover::after {
  left: 100%;
}

.fab-option-btn:hover {
  transform: translateX(-4px) scale(1.04);
}

.fab-option-btn:active {
  transform: scale(0.96);
}

.fab-option-btn.fab-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.fab-option-btn.fab-call {
  background: linear-gradient(135deg, #0b3954 0%, #165b85 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.fab-option-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.fab-option-text {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.fab-option-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.fab-option-subtitle {
  font-size: 0.75rem;
  opacity: 0.9;
  font-weight: 400;
}

.fab-option-badge {
  background-color: #ffffff;
  color: #128c7e;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 12px;
  margin-right: auto;
  margin-left: -4px;
}

/* التولتيب الترحيبي العائم */
.fab-tooltip {
  position: absolute;
  right: 80px;
  background: rgba(15, 23, 42, 0.94);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: tooltipPulse 2.8s infinite;
}

.fab-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(15, 23, 42, 0.94);
}

.fab-tooltip .tooltip-icon {
  color: #25d366;
  font-size: 0.95rem;
}

.floating-contact-wrapper.active .fab-tooltip {
  display: none;
  opacity: 0;
}

@keyframes tooltipPulse {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
}

/* توست النسخ */
.copy-toast {
  position: fixed;
  bottom: calc(30px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #1e293b;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-xl);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.copy-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   التوافق الفائق مع الهواتف الذكية وخاصة شاشات iPhone
   ========================================================================== */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-phone-preview {
    margin: 0 auto;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .values-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 66px;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .section-desc {
    font-size: 1rem;
  }

  /* تحسين الهيدر للهواتف */
  .brand-icon {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }

  .brand-title .main-name {
    font-size: 1.1rem;
  }

  .header-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
  }

  /* تحسين قسم البطل */
  .hero-section {
    padding: 2.75rem 0 2rem;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-lead {
    font-size: 1.05rem;
  }

  .hero-card {
    padding: 1.5rem 1.25rem;
  }

  /* تحسين قسم أرقام التواصل */
  .phones-container-box {
    padding: 1.5rem 1rem;
  }

  .phones-formats-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .plain-phone-text {
    font-size: 1.35rem;
  }

  .copy-btn {
    width: 100%;
    justify-content: center;
    padding: 0.45rem 1rem;
  }

  /* تحسين قسم الخدمات والمراجعات */
  .services-statement-box {
    padding: 2.25rem 1.25rem;
  }

  .statement-title {
    font-size: 1.65rem;
  }

  .statement-desc {
    font-size: 1.02rem;
  }

  .values-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 2.25rem 1.25rem;
  }

  .cta-banner h2 {
    font-size: 1.8rem;
  }

  .cta-banner p {
    font-size: 1rem;
  }

  .fab-tooltip {
    display: none;
  }
}

/* ضبط دقيق جداً لشاشات الآيفون الصغيرة والمتوسطة (320px إلى 480px) */
@media (max-width: 480px) {
  :root {
    --header-height: 60px;
  }

  .header-container {
    gap: 0.4rem;
  }

  .brand-logo {
    gap: 0.45rem;
  }

  .brand-icon {
    width: 35px;
    height: 35px;
    font-size: 0.95rem;
  }

  .brand-title .main-name {
    font-size: 0.98rem;
  }

  .header-actions .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.82rem;
    gap: 0.35rem;
  }

  .hero-badge-wrap {
    font-size: 0.82rem;
    padding: 0.35rem 0.75rem;
  }

  .hero-title {
    font-size: 1.7rem;
    line-height: 1.35;
  }

  .hero-lead {
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-actions .btn,
  .statement-action .btn,
  .cta-buttons .btn {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    min-height: 48px; /* معيار مريح للمس بالأصابع على الآيفون */
  }

  .hero-phone-preview {
    width: 100%;
    justify-content: center;
    font-size: 0.92rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .stat-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.85rem 0.4rem;
  }

  .stat-number {
    font-size: 1.65rem;
  }

  .stat-label {
    font-size: 0.82rem;
  }

  .about-highlights {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .highlight-card {
    padding: 1.15rem;
  }

  .value-box {
    padding: 1.5rem 1.15rem;
  }

  .services-statement-box {
    padding: 1.75rem 1rem;
  }

  .statement-icon {
    width: 60px;
    height: 60px;
    font-size: 1.7rem;
    margin-bottom: 1rem;
  }

  .statement-title {
    font-size: 1.4rem;
  }

  .review-card {
    padding: 1.25rem 1rem;
  }

  .cta-banner {
    padding: 2rem 1rem;
  }

  .cta-banner h2 {
    font-size: 1.5rem;
  }

  .floating-contact-wrapper {
    bottom: calc(16px + env(safe-area-inset-bottom));
    right: calc(16px + env(safe-area-inset-right));
    gap: 10px;
  }

  .fab-main-trigger {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .fab-tooltip {
    display: none;
  }

  .fab-option-btn {
    padding: 10px 16px 10px 12px;
    min-width: 210px;
  }

  .fab-option-icon {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

  .fab-option-title {
    font-size: 0.92rem;
  }

  .fab-option-subtitle {
    font-size: 0.72rem;
  }

  .footer-disclaimer-alert {
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
  }
}
