/* ==========================================================================
   متغيرات CSS - قابلة للتعديل من مكان واحد
   ========================================================================== */
:root {
  /* الألوان الأساسية */
  --primary: #0EA5E9;
  --primary-dark: #0369A1;
  --primary-light: #7DD3FC;
  --primary-bg: #F0F9FF;
  
  --secondary: #FCD34D;
  --secondary-dark: #F59E0B;
  
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  
  --dark: #0F172A;
  --gray-900: #1E293B;
  --gray-700: #334155;
  --gray-500: #64748B;
  --gray-300: #CBD5E1;
  --gray-100: #F1F5F9;
  --white: #FFFFFF;
  
  /* الخطوط */
  --font-heading: 'Cairo', 'Tajawal', sans-serif;
  --font-body: 'Tajawal', 'Cairo', sans-serif;
  
  /* المسافات */
  --container: 1280px;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  
  /* الظلال */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 60px rgba(14, 165, 233, 0.15);
  --shadow-xl: 0 25px 80px rgba(14, 165, 233, 0.25);
  
  /* الانتقالات */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   إعادة تعيين عامة
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

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

/* ==========================================================================
   شريط علوي - معلومات سريعة
   ========================================================================== */
.top-bar {
  background: linear-gradient(135deg, var(--primary-dark), var(--dark));
  color: var(--white);
  padding: 10px 0;
  font-size: 14px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-info {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-info svg {
  width: 16px;
  height: 16px;
  color: var(--secondary);
}

.top-bar-social {
  display: flex;
  gap: 12px;
}

.top-bar-social a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.top-bar-social a:hover {
  background: var(--secondary);
  color: var(--dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   الهيدر الرئيسي
   ========================================================================== */
.header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid var(--gray-100);
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.95);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}

.logo img {
  height: 64px;
  width: auto;
  transition: var(--transition);
}

.logo:hover img {
  transform: scale(1.03);
}

/* === القائمة الرئيسية الاحترافية === */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
  background: var(--gray-100);
  padding: 6px;
  border-radius: 50px;
}

.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  font-weight: 700;
  font-size: 15px;
  color: var(--gray-700);
  border-radius: 50px;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35);
  transform: translateY(-1px);
}

.main-nav > ul > li > a .arrow {
  width: 12px;
  height: 12px;
  transition: var(--transition);
}

.main-nav .dropdown:hover > a .arrow {
  transform: rotate(180deg);
}

/* === الـ Dropdown الاحترافي === */
.main-nav .dropdown {
  position: relative;
}

.main-nav .dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 50%;
  transform: translateX(50%) translateY(10px);
  background: var(--white);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
  border-radius: 20px;
  min-width: 340px;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* سهم فوق الـ dropdown */
.main-nav .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 50%;
  transform: translateX(50%) rotate(45deg);
  width: 16px;
  height: 16px;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  border-right: 1px solid var(--gray-100);
}

/* عنوان قسم في الـ dropdown */
.dropdown-section-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 8px 14px 6px;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 4px;
}

.main-nav .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(50%) translateY(0);
}

.main-nav .dropdown-menu li { width: 100%; }

.main-nav .dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-700);
  transition: var(--transition);
}

.main-nav .dropdown-menu a:hover {
  background: var(--primary-bg);
  color: var(--primary-dark);
  transform: translateX(-4px);
}

.main-nav .dropdown-menu a .icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.main-nav .dropdown-menu a:hover .icon-wrap {
  background: var(--primary);
  color: white;
}

.main-nav .dropdown-menu a .icon-wrap svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  transition: var(--transition);
}

.main-nav .dropdown-menu a:hover .icon-wrap svg { color: white; }

.main-nav .dropdown-menu a .text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.main-nav .dropdown-menu a .text small {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ====== أيقونات دائرية: اتصل + واتساب ====== */
.header-icon-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.15);
  flex-shrink: 0;
  overflow: hidden;
}

.header-icon-btn svg {
  width: 22px;
  height: 22px;
  position: relative;
  z-index: 2;
}

.header-icon-btn.icon-call {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.4);
}

.header-icon-btn.icon-call:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.55);
}

.header-icon-btn.icon-wa {
  background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

.header-icon-btn.icon-wa:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.55);
}

/* نبضة على أيقونة الاتصال */
.header-icon-btn.icon-call .pulse-icon {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--primary);
  animation: pulseRing 2s infinite;
  pointer-events: none;
}

@keyframes pulseRing {
  0%   { transform: scale(1);   opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0;   }
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-toggle span {
  width: 26px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   قسم البطل (Hero)
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15), transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(252, 211, 77, 0.1), transparent 70%);
  border-radius: 50%;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary-dark);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 24px;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--whatsapp);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  font-weight: 900;
  line-height: 1.22;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: -2px;
  left: -2px;
  width: auto;
  height: 10px;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-dark));
  z-index: -1;
  opacity: 0.45;
  border-radius: 999px;
  transform: skew(-6deg);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.28;
    text-align: center;
    margin-bottom: 16px;
  }
  .hero h1 .highlight::after {
    height: 8px;
    bottom: 1px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.32;
  }
}

/* ==========================================================================
   ✨ Hero Illustration (عربية + عمال + بيت)
   ========================================================================== */
.hero-illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  width: 100%;
}

.hero-illustration svg {
  width: 100%;
  height: auto;
  max-width: 580px;
  filter: drop-shadow(0 18px 45px rgba(14, 165, 233, 0.16));
}

@media (max-width: 992px) {
  .hero-illustration { max-width: 520px; margin: 0 auto; }
}

@media (max-width: 480px) {
  .hero-illustration { padding: 0; }
  .hero-illustration svg { max-width: 100%; }
}

.hero p.lead {
  font-size: 18px;
  color: var(--gray-700);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: var(--transition);
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(14, 165, 233, 0.5);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hero-feature {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}

.hero-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.hero-feature svg {
  width: 36px;
  height: 36px;
  color: var(--primary);
  margin-bottom: 12px;
}

.hero-feature h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.hero-feature p {
  font-size: 13px;
  color: var(--gray-500);
}

/* ====== Showcase Card (بديل الفورم) ====== */
.hero-showcase {
  background: linear-gradient(135deg, #ffffff 0%, #F0F9FF 100%);
  border-radius: 28px;
  box-shadow: 
    0 30px 80px rgba(14, 165, 233, 0.15),
    0 0 0 1px rgba(14, 165, 233, 0.06);
  overflow: hidden;
  position: relative;
}

.hero-showcase::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(252, 211, 77, 0.2), transparent 70%);
  border-radius: 50%;
}

.showcase-top {
  background: linear-gradient(135deg, var(--dark) 0%, var(--gray-900) 100%);
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.showcase-dots {
  display: flex;
  gap: 8px;
}

.showcase-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.showcase-dots span:nth-child(1) { background: #FF5F57; }
.showcase-dots span:nth-child(2) { background: #FEBC2E; }
.showcase-dots span:nth-child(3) { background: #28C840; }

.showcase-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 13px;
  font-weight: 700;
  background: rgba(37, 211, 102, 0.15);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #25D366;
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 10px #25D366;
}

.showcase-body {
  padding: 0;
  position: relative;
  min-height: 480px;
}

.showcase-visual {
  position: relative;
  height: 480px;
  background: 
    radial-gradient(circle at 30% 40%, rgba(14, 165, 233, 0.15), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(252, 211, 77, 0.12), transparent 50%);
}

.visual-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(14, 165, 233, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* small-cards-row: شفاف على الديسكتوب (البطاقات تظهر عائمة)، grid على الموبايل */
.small-cards-row { display: contents; }

/* البطاقات العائمة */
.floating-card {
  position: absolute;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: floatUp 4s ease-in-out infinite;
  border: 1px solid rgba(14, 165, 233, 0.08);
}

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

/* البطاقة الرئيسية الكبيرة */
.card-main {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 28px 24px;
  min-width: 260px;
  border: none;
  box-shadow: 
    0 25px 60px rgba(14, 165, 233, 0.4),
    inset 0 0 0 1px rgba(255,255,255,0.1);
  animation: floatUpMain 4s ease-in-out infinite;
}

@keyframes floatUpMain {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 8px)); }
}

.card-main .card-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-main .card-icon svg {
  width: 30px;
  height: 30px;
  color: var(--secondary);
}

.card-main h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.card-main p {
  font-size: 13px;
  opacity: 0.9;
}

/* بطاقة التقييم */
.card-rating {
  top: 8%;
  right: 8%;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px 20px;
  animation-delay: 0.3s;
}

.stars-row {
  display: flex;
  gap: 3px;
  margin-bottom: 4px;
}

.stars-row svg {
  width: 16px;
  height: 16px;
}

.card-rating strong {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  color: var(--dark);
  line-height: 1;
}

.card-rating small {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 600;
}

/* بطاقة السرعة */
.card-speed {
  bottom: 12%;
  right: 5%;
  animation-delay: 0.6s;
}

.speed-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #FCD34D, #F59E0B);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.speed-icon svg {
  width: 22px;
  height: 22px;
  color: white;
}

.card-speed strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}

.card-speed small {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 600;
}

/* بطاقة الضمان */
.card-guarantee {
  bottom: 8%;
  left: 5%;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  text-align: center;
  animation-delay: 0.9s;
}

.guarantee-shield {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guarantee-shield svg {
  width: 24px;
  height: 24px;
  color: white;
}

.card-guarantee strong {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--dark);
}

/* ==========================================================================
   شريط الأرقام والإحصائيات
   ========================================================================== */
/* ============= موجة فاصلة احترافية معوّجة ============= */
.wave-divider {
  display: block;
  width: 100%;
  height: 80px;
  line-height: 0;
  margin: 0;
  padding: 0;
  background: transparent;
}
.wave-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 768px) {
  .wave-divider { height: 50px; }
}

@media (max-width: 480px) {
  .wave-divider { height: 36px; }
}

.stats {
  background: var(--dark);
  padding: 40px 0 60px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  margin-top: -1px;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(252, 211, 77, 0.1) 0%, transparent 50%);
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 2;
}

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

.stat-item .number {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 900;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.stat-item .label {
  font-size: 16px;
  color: var(--gray-300);
  font-weight: 600;
}

/* ==========================================================================
   قسم الخدمات
   ========================================================================== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  background: var(--primary-bg);
  color: var(--primary-dark);
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-title .accent { color: var(--primary); }

.section-subtitle {
  font-size: 17px;
  color: var(--gray-500);
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

/* ====== صورة الكارت — نسبة ثابتة 4:3 + تغطية كاملة ====== */
.service-card-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-bg), #DBEAFE);
}

/* وضع الأيقونة (مفيش صورة مرفوعة) */
.service-card-image.is-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-image.is-icon::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 50%);
  transform: rotate(-45deg);
  pointer-events: none;
}

.service-card-image.is-icon svg {
  width: 110px;
  height: 110px;
  color: var(--primary-dark);
  position: relative;
  z-index: 2;
  transition: var(--transition);
  filter: drop-shadow(0 4px 12px rgba(14, 165, 233, 0.2));
}

.service-card:hover .service-card-image.is-icon svg {
  transform: scale(1.08) rotate(-3deg);
  filter: drop-shadow(0 8px 20px rgba(14, 165, 233, 0.3));
}

/* وضع الصورة الحقيقية */
.service-card-image.is-photo img,
.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-image.is-photo img {
  transform: scale(1.06);
}

.service-card-image.is-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0) 60%, rgba(15,23,42,0.15) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ====== جسم الكارت ====== */
.service-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #FCD34D, #F59E0B);
  color: var(--dark);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(252, 211, 77, 0.3);
}

.service-card-tag::before {
  content: '📍';
  font-size: 10px;
}

.service-card-tag.tag-makkah {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.35;
}

.service-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.service-card h3 a:hover {
  color: var(--primary-dark);
}

.service-card p {
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 14px;
  transition: var(--transition);
  text-decoration: none;
}

.service-card-link:hover {
  gap: 12px;
  color: var(--primary-darker, #075985);
}

.service-card-link svg {
  width: 16px;
  height: 16px;
}

/* ====== صف الأزرار: اتصل + واتساب ====== */
.service-card-actions {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--gray-200);
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.svc-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13.5px;
  font-family: var(--font-body);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-width: 0;
  line-height: 1;
}

.svc-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.svc-btn-call {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.32);
}

.svc-btn-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(14, 165, 233, 0.42);
  color: var(--white);
}

.svc-btn-wa {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
}

.svc-btn-wa:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.38);
  color: var(--white);
}

/* ==========================================================================
   لماذا نحن
   ========================================================================== */
.why-us {
  background: var(--gray-100);
}

.why-us .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.why-us-image {
  position: relative;
}

.why-us-image .main-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.why-us-image .main-box::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.why-us-image .main-box svg {
  width: 100px;
  height: 100px;
  color: var(--secondary);
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.why-us-image .main-box h3 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.why-us-image .main-box p {
  font-size: 16px;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.why-us-image .badge-box {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 16px;
}

.why-us-image .badge-box .icon {
  width: 56px;
  height: 56px;
  background: var(--secondary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-us-image .badge-box .icon svg {
  width: 30px;
  height: 30px;
  color: var(--dark);
}

.why-us-image .badge-box h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
}

.why-us-image .badge-box p {
  font-size: 13px;
  color: var(--gray-500);
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  transition: var(--transition);
  border-right: 4px solid transparent;
}

.feature-item:hover {
  border-right-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateX(-4px);
}

.feature-item .icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--primary-bg);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item .icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.feature-item h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}

.feature-item p {
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.7;
}

/* ==========================================================================
   كيف نعمل (خطوات العمل)
   ========================================================================== */
.process {
  position: relative;
  overflow: hidden;
}

.process::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 5%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.1), transparent 70%);
  border-radius: 50%;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 40px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--primary-light) 0, var(--primary-light) 8px, transparent 8px, transparent 16px);
  z-index: 0;
}

.process-step:first-child::after { display: none; }

.process-step .number {
  width: 80px;
  height: 80px;
  background: var(--white);
  border: 3px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  margin: 0 auto 24px;
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.process-step:hover .number {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.process-step h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.process-step p {
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.7;
}

/* ==========================================================================
   شهادات العملاء
   ========================================================================== */
.testimonials {
  background: linear-gradient(135deg, var(--dark) 0%, #1E293B 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2), transparent 70%);
  border-radius: 50%;
}

.testimonials .section-title { color: var(--white); }
.testimonials .section-subtitle { color: var(--gray-300); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 32px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-6px);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 20px;
  height: 20px;
  color: var(--secondary);
}

.testimonial-card p {
  color: var(--gray-300);
  line-height: 1.8;
  margin-bottom: 24px;
  font-size: 15px;
}

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

.testimonial-author .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
}

.testimonial-author h5 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.testimonial-author span {
  color: var(--gray-500);
  font-size: 13px;
}

/* ==========================================================================
   قسم CTA
   ========================================================================== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: rgba(255,255,255,0.05);
  transform: rotate(-15deg);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.3;
}

.cta-content p {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-section .btn-primary:hover {
  background: var(--secondary);
}

/* ==========================================================================
   الفوتر
   ========================================================================== */
.footer {
  background: var(--dark);
  color: var(--gray-300);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

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

.footer-col p {
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 14px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  color: var(--gray-300);
  font-size: 14px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul a:hover {
  color: var(--secondary);
  transform: translateX(-4px);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.footer-contact-item .icon {
  width: 36px;
  height: 36px;
  background: rgba(14, 165, 233, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-contact-item .icon svg {
  width: 18px;
  height: 18px;
  color: var(--primary-light);
}

.footer-contact-item .text strong {
  display: block;
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 2px;
}

.footer-contact-item .text a {
  color: var(--gray-300);
  font-size: 14px;
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 14px;
  color: var(--gray-500);
}

.footer-bottom strong { color: var(--secondary); }

/* ==========================================================================
   الأزرار العائمة (واتساب + اتصال)
   ========================================================================== */
.floating-buttons {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: var(--transition);
  position: relative;
}

.float-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  z-index: -1;
  animation: ripple 2s infinite;
}

.float-btn.whatsapp { background: var(--whatsapp); }
.float-btn.whatsapp::before { background: var(--whatsapp); }

.float-btn.call { background: var(--primary); }
.float-btn.call::before { background: var(--primary); }

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-btn svg {
  width: 30px;
  height: 30px;
}

.float-btn .tooltip {
  position: absolute;
  right: 75px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--dark);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.float-btn:hover .tooltip {
  opacity: 1;
  visibility: visible;
  right: 80px;
}

/* ==========================================================================
   استجابة الموبايل
   ========================================================================== */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-showcase { max-width: 600px; margin: 0 auto; }
  .why-us .container { grid-template-columns: 1fr; gap: 40px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .main-nav { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .hero { padding: 60px 0; }
  
  .top-bar { display: none; }
  
  .mobile-toggle { display: flex; }

  /* الأيقونات الدائرية في الموبايل */
  .header-cta { gap: 8px; }
  .header-icon-btn { width: 42px; height: 42px; }
  .header-icon-btn svg { width: 20px; height: 20px; }

  .logo img { height: 50px; }
  
  /* ✅ أزرار الـ Hero - حجم احترافي صغير في الموبايل */
  .hero-cta { 
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-cta .btn { 
    flex: 1 1 45%;
    width: auto;
    max-width: none;
    min-width: 0;
    justify-content: center;
    padding: 11px 14px !important;
    font-size: 13px !important;
    border-radius: 12px !important;
    gap: 6px !important;
    font-weight: 700 !important;
  }
  .hero-cta .btn svg {
    width: 15px !important;
    height: 15px !important;
  }
  
  .hero-features { grid-template-columns: 1fr; }
  
  /* ====== Showcase على الموبايل (تنسيق جديد - Grid مرتب) ====== */
  .hero-showcase { 
    max-width: 100%;
    border-radius: 20px;
  }
  .showcase-top { padding: 12px 16px; }
  .showcase-status { font-size: 12px; padding: 6px 12px; }
  .showcase-dots span { width: 9px; height: 9px; }
  
  /* تحويل الـ visual لشكل grid عمودي مرتب */
  .showcase-body { min-height: auto; }
  .showcase-visual {
    height: auto;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: 
      radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.12), transparent 60%),
      radial-gradient(circle at 50% 100%, rgba(252, 211, 77, 0.08), transparent 60%);
  }
  
  /* إلغاء الـ animation العائمة على الموبايل */
  .floating-card {
    position: static;
    animation: none;
    width: 100%;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  }
  
  /* البطاقة الرئيسية - تكبر وتاخد عرض كامل */
  .card-main {
    position: static;
    transform: none;
    animation: none;
    width: 100%;
    min-width: auto;
    padding: 22px 20px;
    border-radius: 18px;
    order: 1;
  }
  .card-main .card-icon { width: 50px; height: 50px; }
  .card-main .card-icon svg { width: 26px; height: 26px; }
  .card-main h4 { font-size: 17px; }
  .card-main p { font-size: 13px; }
  
  /* البطاقات الثلاثة في صف أفقي 3 أعمدة */
  .small-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    order: 2;
  }
  
  .card-rating, .card-speed, .card-guarantee {
    position: static;
    transform: none;
    animation: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 8px;
    gap: 8px;
    border-radius: 14px;
    width: 100%;
  }
  
  .card-rating .stars-row { justify-content: center; }
  .stars-row svg { width: 12px; height: 12px; }
  .card-rating strong { font-size: 16px; }
  .card-rating small { font-size: 10px; text-align: center; }
  
  .speed-icon { width: 38px; height: 38px; }
  .speed-icon svg { width: 19px; height: 19px; }
  .card-speed strong { font-size: 13px; text-align: center; }
  .card-speed small { font-size: 10px; text-align: center; }
  
  .guarantee-shield { width: 38px; height: 38px; }
  .guarantee-shield svg { width: 19px; height: 19px; }
  .card-guarantee strong { font-size: 12px; }
  
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  
  .floating-buttons { bottom: 20px; left: 20px; }
  .float-btn { width: 52px; height: 52px; }
  .float-btn svg { width: 26px; height: 26px; }
  
  .why-us-image .badge-box { 
    position: relative; 
    bottom: 0; left: 0; 
    margin-top: 20px;
  }
}

/* للشاشات الصغيرة جداً */
@media (max-width: 380px) {
  .small-cards-row { gap: 8px; }
  .card-rating, .card-speed, .card-guarantee { padding: 12px 6px; }
}

/* ==========================================================================
   كروت الخدمات - تجاوب الموبايل
   ========================================================================== */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .service-card-body { padding: 18px 18px 20px; }
  .service-card h3 { font-size: 16.5px; }
  .service-card p { font-size: 13px; -webkit-line-clamp: 2; margin-bottom: 14px; }
  .service-card-image.is-icon svg { width: 80px; height: 80px; }
  .service-card-link { font-size: 12.5px; margin-bottom: 12px; }
  .service-card-link svg { width: 14px; height: 14px; }

  .service-card-actions { padding-top: 12px; gap: 6px; }
  .svc-btn {
    font-size: 12px;
    padding: 9px 6px;
    gap: 5px;
    border-radius: 10px;
  }
  .svc-btn svg { width: 13px; height: 13px; }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .service-card-image { aspect-ratio: 16 / 10; }
  .service-card-image.is-icon svg { width: 100px; height: 100px; }
  .service-card-body { padding: 20px; }
  .service-card h3 { font-size: 18px; }
  .service-card p { font-size: 14px; -webkit-line-clamp: 3; }
  .svc-btn { font-size: 13.5px; padding: 11px 12px; gap: 7px; }
  .svc-btn svg { width: 15px; height: 15px; }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* ==========================================================================
   صفحة الخدمة المنفردة - حجم محسّن ومتناسق
   ========================================================================== */
.service-hero {
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.service-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15), transparent 70%);
  border-radius: 50%;
}

.service-hero .container {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.service-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #FCD34D, #F59E0B);
  color: var(--dark);
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(252, 211, 77, 0.3);
}

.service-hero-tag.tag-makkah {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
}

.service-hero-tag svg { width: 16px; height: 16px; }

.service-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 18px;
}

.service-hero .lead {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* === أزرار CTA في الـ Hero - حجم متوسط منظم === */
.service-hero .hero-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.service-hero .hero-cta .btn {
  padding: 13px 22px;
  font-size: 14px;
  border-radius: 50px;
  min-width: 160px;
  max-width: 220px;
  flex: 1 1 160px;
  justify-content: center;
  gap: 8px;
}

.service-hero .hero-cta .btn svg { width: 17px; height: 17px; }

.service-hero-trust {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  background: white;
  padding: 8px 14px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 12px;
  box-shadow: var(--shadow-sm);
  color: var(--gray-700);
}

.trust-item svg { width: 14px; height: 14px; color: var(--primary); }

.service-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-hero-icon .icon-bg {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 25px 70px rgba(14, 165, 233, 0.3);
  animation: morphShape 8s ease-in-out infinite;
}

@keyframes morphShape {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.service-hero-icon .icon-bg svg {
  width: 60%; height: 60%; color: white;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.2));
}

/* === Service Content === */
.service-content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  align-items: flex-start;
}

.content-block {
  background: white;
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
  border: 1px solid var(--gray-100);
}

.content-block h2 {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--primary-bg);
}

.content-block p {
  color: var(--gray-700);
  line-height: 1.9;
  margin-bottom: 14px;
}

.service-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.feature-card {
  padding: 18px;
  background: var(--primary-bg);
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid rgba(14, 165, 233, 0.1);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: white;
}

.feature-card .icon {
  width: 44px; height: 44px;
  background: white;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  color: var(--primary);
}

.feature-card .icon svg { width: 22px; height: 22px; }

.feature-card h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* === Sidebar - حجم محسّن === */
.service-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: white;
  padding: 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  border: 1px solid var(--gray-100);
}

.sidebar-card h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.sidebar-card > p {
  color: var(--gray-500);
  margin-bottom: 16px;
  font-size: 13px;
}

.sidebar-cta {
  background: linear-gradient(135deg, #F0F9FF 0%, white 100%);
  border-top: 4px solid var(--primary);
}

/* ✅ أزرار الـ Sidebar - حجم صغير متناسق */
.sidebar-cta .btn,
.sidebar-card .btn {
  width: 100% !important;
  padding: 12px 18px !important;
  font-size: 14px !important;
  border-radius: 12px !important;
  justify-content: center !important;
  gap: 8px !important;
  font-weight: 700 !important;
}

.sidebar-cta .btn svg,
.sidebar-card .btn svg {
  width: 16px !important;
  height: 16px !important;
}

.sidebar-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 18px 0;
}

.sidebar-contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 6px;
}

.sidebar-contact-item strong {
  color: var(--gray-700);
  font-weight: 700;
}

.sidebar-contact-item a {
  color: var(--primary);
  font-weight: 700;
}

.related-services {
  list-style: none;
}

.related-services li { margin-bottom: 6px; }

.related-services a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--gray-100);
  transition: var(--transition);
  color: var(--dark);
}

.related-services a:hover {
  background: var(--primary-bg);
  transform: translateX(-4px);
}

.related-services a svg {
  width: 14px; height: 14px;
  color: var(--primary);
  flex-shrink: 0;
}

.related-services a span {
  font-weight: 700;
  font-size: 13px;
  flex: 1;
}

.related-services a small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .service-hero .container { grid-template-columns: 1fr; gap: 30px; }
  .service-content-grid { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
  .service-hero-icon .icon-bg { max-width: 250px; }
}

@media (max-width: 768px) {
  .service-hero { padding: 30px 0 20px; }
  .service-hero .container { gap: 20px; text-align: center; }
  .service-hero-content { order: 1; }
  .service-hero-icon { order: 0; display: flex !important; }
  .service-hero-icon .icon-bg { max-width: 200px; margin: 0 auto; }
  .content-block { padding: 22px; }
  
  /* ✅ أزرار الـ Hero - حجم احترافي متناسق على الموبايل */
  .service-hero .hero-cta {
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .service-hero .hero-cta .btn {
    flex: 1 1 45%;
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 11px 14px !important;
    font-size: 13px !important;
    border-radius: 12px !important;
    gap: 6px !important;
    font-weight: 700 !important;
  }
  .service-hero .hero-cta .btn svg {
    width: 15px !important;
    height: 15px !important;
  }
  
  /* بطاقة الـ Sidebar متناسبة على الموبايل */
  .sidebar-card { padding: 18px; }
  .sidebar-card h3 { font-size: 17px; }
  
  /* Trust items - أصغر ومتناسقة */
  .service-hero-trust {
    justify-content: center;
    gap: 6px;
  }
  .trust-item { padding: 6px 10px; font-size: 11px; }
  .trust-item svg { width: 12px; height: 12px; }
  
  .service-hero h1 { font-size: 1.4rem; line-height: 1.3; }
  .service-hero .lead { font-size: 14px; line-height: 1.7; }
  .service-hero-tag { font-size: 12px; padding: 6px 14px; }
}

@media (max-width: 480px) {
  .service-hero-icon .icon-bg { max-width: 160px; }
  .service-hero h1 { font-size: 1.25rem; }
}

/* ==========================================================================
   صفحات أساسية (page.php / single.php)
   ========================================================================== */
.main-content {
  background: var(--gray-100);
}

.page-article, .single-article {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.page-header, .single-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--primary-bg);
}

.page-title, .single-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 10px;
}

.single-meta {
  color: var(--gray-500);
  font-size: 14px;
}

.page-content, .single-content {
  line-height: 1.9;
  color: var(--gray-700);
}

.page-content h2, .single-content h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  margin: 30px 0 16px;
}

.page-content p, .single-content p {
  margin-bottom: 16px;
}

.single-thumb {
  margin-bottom: 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.post-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.post-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-body {
  padding: 24px;
}

.post-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.post-title a {
  color: var(--dark);
  font-weight: 800;
}

.post-meta {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.post-excerpt {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 16px;
}

@media (max-width: 1024px) {
  .service-hero .container { grid-template-columns: 1fr; gap: 40px; }
  .service-content-grid { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
}

@media (max-width: 768px) {
  .service-hero-icon { display: none; }
  .content-block { padding: 24px; }
  .page-article, .single-article { padding: 24px; }
}

/* ==========================================================================
   اللوجو الديناميكي
   ========================================================================== */
.topclean-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topclean-logo-icon {
  width: 55px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.logo:hover .topclean-logo-icon {
  transform: scale(1.05) rotate(-5deg);
}

.topclean-logo-text {
  line-height: 1.2;
}

.topclean-logo-text-ar {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #0F172A;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.topclean-logo-text-en {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: #0EA5E9;
  letter-spacing: 3px;
  margin-top: 3px;
  white-space: nowrap;
}

/* في الفوتر - تنسيق خاص */
.footer-logo {
  margin-bottom: 20px;
  background: white;
  padding: 14px 18px;
  border-radius: 12px;
  display: inline-block;
}

.footer-logo .topclean-logo-icon {
  width: 45px;
}

.footer-logo .topclean-logo-text-ar {
  font-size: 20px;
}

/* ====== الموبايل: تكبير اللوغو والنص معاً بشكل متناسب ====== */
@media (max-width: 768px) {
  .topclean-logo-wrap { gap: 10px; }
  .topclean-logo-icon { width: 44px !important; }
  .topclean-logo-text-ar { font-size: 19px; letter-spacing: -0.3px; }
  .topclean-logo-text-en { font-size: 8px; letter-spacing: 2.2px; margin-top: 2px; }
}

@media (max-width: 480px) {
  .topclean-logo-wrap { gap: 8px; }
  .topclean-logo-icon { width: 38px !important; }
  .topclean-logo-text-ar { font-size: 17px; }
  .topclean-logo-text-en { font-size: 7.5px; letter-spacing: 2px; }
}

@media (max-width: 380px) {
  .topclean-logo-text-en { display: none; }
}

/* ==========================================================================
   قائمة الموبايل (سايدبار منزلق)
   ========================================================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85%;
  height: 100vh;
  background: white;
  z-index: 9999;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  visibility: hidden;
}

.mobile-menu.open {
  right: 0;
  visibility: visible;
}

.mobile-menu-header {
  padding: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-header h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.mobile-menu-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
  flex: 1 1 auto;
  overflow-y: auto;
}

.mobile-menu-list > li {
  border-bottom: 1px solid var(--gray-100);
}

.mobile-menu-list > li > a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  color: var(--gray-900);
  font-weight: 700;
  font-size: 15.5px;
  transition: var(--transition);
  text-decoration: none;
}

.mobile-menu-list > li > a:hover {
  background: var(--primary-bg);
  color: var(--primary-dark);
}

.mobile-menu-list > li > a:hover .mm-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.08);
}

.mobile-menu-list .mm-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--primary-bg);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.mobile-menu-list .mm-icon svg {
  width: 20px;
  height: 20px;
}

.mobile-menu-list .mm-label {
  flex: 1;
}

/* ألوان مختلفة لكل أيقونة */
.mobile-menu-list .mm-icon-home    { background: rgba(14,165,233,0.12);  color: #0369A1; }
.mobile-menu-list .mm-icon-info    { background: rgba(139,92,246,0.12);  color: #6D28D9; }
.mobile-menu-list .mm-icon-services{ background: rgba(16,185,129,0.12);  color: #047857; }
.mobile-menu-list .mm-icon-features{ background: rgba(245,158,11,0.14);  color: #B45309; }
.mobile-menu-list .mm-icon-blog    { background: rgba(236,72,153,0.12);  color: #BE185D; }
.mobile-menu-list .mm-icon-contact { background: rgba(239,68,68,0.12);   color: #B91C1C; }

.mobile-menu-list .has-sub > a {
  position: relative;
}

.mobile-menu-list .has-sub > a::after {
  content: '+';
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--primary);
  font-weight: 700;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border-radius: 50%;
  line-height: 1;
}

.mobile-menu-list .has-sub.open > a::after {
  content: '−';
}

.mobile-menu-list .has-sub ul {
  display: none;
  background: var(--gray-50);
  padding: 6px 0;
  list-style: none;
  margin: 0;
}

.mobile-menu-list .has-sub.open ul {
  display: block;
}

.mobile-menu-list .has-sub ul a {
  display: block;
  padding: 11px 22px 11px 22px;
  padding-right: 74px;
  font-size: 14px;
  color: var(--gray-700);
  transition: var(--transition);
  text-decoration: none;
  position: relative;
}

.mobile-menu-list .has-sub ul a::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 56px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-300);
  transform: translateY(-50%);
  transition: var(--transition);
}

.mobile-menu-list .has-sub ul a:hover {
  color: var(--primary-dark);
  background: white;
}

.mobile-menu-list .has-sub ul a:hover::before {
  background: var(--primary);
  transform: translateY(-50%) scale(1.4);
}

/* ====== زرارين كبيرين فوق قائمة الموبايل ====== */
.mobile-menu-cta {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--gray-100);
  background: linear-gradient(180deg, var(--gray-50), transparent);
}

.mobile-menu-cta .mm-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14.5px;
  font-family: var(--font-body);
  text-decoration: none;
  transition: var(--transition);
  color: white;
  line-height: 1;
}

.mobile-menu-cta .mm-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.mobile-menu-cta .mm-btn-call {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.38);
}

.mobile-menu-cta .mm-btn-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.5);
}

.mobile-menu-cta .mm-btn-wa {
  background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.38);
}

.mobile-menu-cta .mm-btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.5);
}

/* الـ Overlay لما القائمة تتفتح */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ✅ مهم جداً: إخفاء زر الموبايل على الديسكتوب */
@media (min-width: 1025px) {
  .mobile-toggle {
    display: none !important;
  }
  .mobile-menu {
    display: none !important;
  }
  .menu-overlay {
    display: none !important;
  }
}

/* على الموبايل والتابلت */
@media (max-width: 1024px) {
  .mobile-toggle {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
  }
  .mobile-toggle span {
    width: 26px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
  }
  
  /* إخفاء القائمة الرئيسية على الموبايل */
  .main-nav {
    display: none !important;
  }
}

/* ==========================================================================
   الصورة البارزة في صفحة الخدمة
   ========================================================================== */
.featured-image-wrap {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 70px rgba(14, 165, 233, 0.3);
  animation: morphShape 8s ease-in-out infinite;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.featured-image-wrap .featured-img,
.featured-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* تأثير overlay خفيف على الصورة */
.featured-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(3, 105, 161, 0.2));
  border-radius: inherit;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .featured-image-wrap { max-width: 280px; }
}

@media (max-width: 768px) {
  .featured-image-wrap {
    max-width: 240px;
    margin: 20px auto 0;
  }
}

/* ==========================================================================
   فهرس المحتويات (Table of Contents)
   ========================================================================== */
.toc-wrapper {
  background: linear-gradient(135deg, #F0F9FF 0%, white 100%);
  border: 2px solid var(--primary-bg);
  border-right: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 30px 0;
  position: relative;
  transition: all 0.3s ease;
}

.toc-wrapper:hover {
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.12);
}

.toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.toc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  margin: 0;
}

.toc-title svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.toc-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  margin-right: 6px;
}

.toc-toggle {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  line-height: 1;
}

.toc-toggle:hover {
  background: var(--primary-dark);
  transform: scale(1.1) rotate(90deg);
}

.toc-toggle.collapsed:hover {
  transform: scale(1.1) rotate(180deg);
}

/* ====== الحالة المغلقة (افتراضي) ====== */
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc-counter;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
  overflow: hidden;
  opacity: 1;
  max-height: 1000px;
}

.toc-list:not(.collapsed) {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--primary-bg);
}

.toc-list.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.toc-list li {
  counter-increment: toc-counter;
  position: relative;
  margin-bottom: 4px;
}

.toc-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--gray-700);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.toc-list li a::before {
  content: counter(toc-counter);
  width: 26px;
  height: 26px;
  background: white;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  border: 2px solid var(--primary-bg);
  flex-shrink: 0;
  transition: var(--transition);
}

.toc-list li a:hover {
  background: white;
  color: var(--primary);
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

.toc-list li a:hover::before {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* مستويات فرعية (H3) */
.toc-list li.toc-sub {
  margin-right: 20px;
}

.toc-list li.toc-sub a {
  font-size: 13px;
  padding: 7px 10px;
}

.toc-list li.toc-sub a::before {
  width: 20px;
  height: 20px;
  font-size: 10px;
}

@media (max-width: 768px) {
  .toc-wrapper { padding: 16px 18px; }
  .toc-title { font-size: 15px; }
  .toc-count { font-size: 11px; }
  .toc-toggle { width: 30px; height: 30px; font-size: 18px; }
  .toc-list li a { font-size: 13px; }
}

/* تنسيق العناوين داخل المحتوى عشان scroll لها */
.content-block h2[id],
.content-block h3[id] {
  scroll-margin-top: 100px;
}


/* ==========================================================================
   تحكم في نص الأزرار حسب الشاشة
   ========================================================================== */
.btn-text-short { display: none; }
.btn-text-full { display: inline; }

@media (max-width: 768px) {
  .btn-text-short { display: inline; }
  .btn-text-full { display: none; }
}

/* ==========================================================================
   قسم FAQ - الأسئلة الشائعة
   ========================================================================== */
.faq-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #F8FAFC 0%, white 100%);
  position: relative;
}

.faq-section .section-tag.faq-tag {
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary);
}

.faq-list {
  max-width: 900px;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.faq-item.open {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.12);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  font-family: inherit;
  text-align: right;
  transition: background 0.3s;
}

.faq-question:hover {
  background: rgba(14, 165, 233, 0.02);
}

.faq-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-icon svg {
  width: 20px;
  height: 20px;
}

/* ألوان الأيقونات */
.faq-icon-blue   { background: #DBEAFE; color: #0EA5E9; }
.faq-icon-green  { background: #D1FAE5; color: #10B981; }
.faq-icon-orange { background: #FED7AA; color: #EA580C; }
.faq-icon-red    { background: #FEE2E2; color: #EF4444; }
.faq-icon-purple { background: #F3E8FF; color: #A855F7; }
.faq-icon-pink   { background: #FCE7F3; color: #DB2777; }
.faq-icon-yellow { background: #FEF3C7; color: #F59E0B; }

.faq-q-text {
  flex: 1;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.5;
}

.faq-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  color: var(--gray-700);
}

.faq-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}

.faq-item.open .faq-toggle {
  background: var(--primary);
  color: white;
}

.faq-item.open .faq-toggle svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 2000px;
}

.faq-answer-inner {
  padding: 0 22px 22px 76px;
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.9;
}

.faq-answer-inner ul,
.faq-answer-inner ol {
  margin: 12px 0;
  padding-right: 24px;
}

.faq-answer-inner li {
  margin-bottom: 8px;
}

.faq-answer-inner strong {
  color: var(--primary);
  font-weight: 800;
}

/* بطاقة الاتصال في نهاية الـ FAQ */
.faq-contact-box {
  max-width: 900px;
  margin: 50px auto 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 20px;
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: white;
  box-shadow: 0 20px 50px rgba(14, 165, 233, 0.25);
  position: relative;
  overflow: hidden;
}

.faq-contact-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: rgba(252, 211, 77, 0.15);
  border-radius: 50%;
  filter: blur(40px);
}

.faq-contact-content {
  position: relative;
  z-index: 1;
}

.faq-contact-content h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 6px;
  color: white;
}

.faq-contact-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  margin: 0;
}

.faq-contact-buttons {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.faq-contact-buttons .btn {
  padding: 12px 22px;
  font-size: 14px;
}

.faq-contact-buttons .btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.faq-contact-buttons .btn-primary:hover {
  background: var(--secondary);
  color: var(--dark);
}

/* موبايل */
@media (max-width: 768px) {
  .faq-section { padding: 50px 0; }
  .faq-question { padding: 14px 16px; gap: 10px; }
  .faq-icon { width: 36px; height: 36px; }
  .faq-icon svg { width: 18px; height: 18px; }
  .faq-q-text { font-size: 14px; }
  .faq-toggle { width: 30px; height: 30px; }
  .faq-toggle svg { width: 14px; height: 14px; }
  .faq-answer-inner { 
    padding: 0 16px 18px 16px; 
    font-size: 13px;
  }
  
  .faq-contact-box {
    flex-direction: column;
    padding: 26px 24px;
    text-align: center;
  }
  .faq-contact-buttons {
    width: 100%;
  }
  .faq-contact-buttons .btn {
    flex: 1;
    justify-content: center;
    padding: 11px 14px;
    font-size: 13px;
  }
}

/* ==========================================================================
   Footer Pro - الفوتر الاحترافي الداكن
   ========================================================================== */
.footer-pro {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
  color: white;
  position: relative;
  overflow: hidden;
  padding: 70px 0 0;
}

/* خلفية نقاط خفيفة */
.footer-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.footer-pro::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08), transparent 60%);
  pointer-events: none;
}

.footer-pro::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(252, 211, 77, 0.05), transparent 60%);
  pointer-events: none;
}

.footer-pro .container {
  position: relative;
  z-index: 2;
}

/* الأعمدة الرئيسية */
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col {
  position: relative;
}

/* عنوان كل عمود */
.footer-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: white;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-line {
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, var(--secondary), var(--primary));
  border-radius: 2px;
}

/* العمود 1: About */
.footer-logo {
  margin-bottom: 18px;
}

.footer-logo img,
.footer-logo svg {
  max-height: 60px;
  filter: brightness(0) invert(1);
}

.footer-about-text {
  color: #CBD5E1;
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 20px;
}

.footer-since {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.since-line {
  width: 30px;
  height: 2px;
  background: var(--secondary);
}

.since-text {
  color: var(--secondary);
  font-size: 13px;
  font-weight: 700;
}

/* بطاقة التقييم */
.footer-rating-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.rating-stars {
  display: flex;
  gap: 3px;
}

.rating-stars svg {
  width: 16px;
  height: 16px;
  color: var(--secondary);
  fill: var(--secondary);
}

.rating-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.rating-info strong {
  font-size: 18px;
  color: white;
  font-weight: 900;
  font-family: var(--font-heading);
}

.rating-info span {
  font-size: 11px;
  color: #94A3B8;
}

/* السوشيال ميديا */
.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

/* العمود 2: Quick Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #CBD5E1;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(-5px);
}

/* العمود 3: Services */
.footer-services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-services-list li {
  margin-bottom: 12px;
}

.footer-services-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #CBD5E1;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s;
}

.footer-services-list a:hover {
  color: white;
  transform: translateX(-5px);
}

.service-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* العمود 4: Contact */
.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  text-decoration: none;
  transition: all 0.3s;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  color: white;
}

.contact-phone .contact-icon { background: var(--primary); }
.contact-whatsapp .contact-icon { background: #10B981; }
.contact-location .contact-icon { background: #EF4444; }

.contact-info {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.contact-info .label {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 500;
}

.contact-info .value {
  font-size: 13px;
  color: white;
  font-weight: 700;
  direction: ltr;
  text-align: right;
}

.contact-location .value {
  font-size: 12px;
}

/* بطاقة ساعات العمل */
.hours-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 12px;
}

.hours-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hours-header svg {
  width: 16px;
  height: 16px;
  color: var(--secondary);
}

.hours-header strong {
  font-size: 13px;
  color: white;
  font-weight: 700;
}

.hours-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.hours-row .day {
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hours-row .time {
  color: white;
  font-weight: 600;
  direction: ltr;
}

.hours-row.featured {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 6px;
  padding: 6px 10px;
  margin-top: 4px;
}

.hours-row.featured .day {
  color: #10B981;
  font-weight: 700;
}

.hours-row.featured .time {
  color: #10B981;
  font-weight: 800;
}

/* شريط المميزات */
.footer-features-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transition: all 0.3s;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  color: white;
}

.feature-icon.icon-blue { background: linear-gradient(135deg, #0EA5E9, #0369A1); }
.feature-icon.icon-green { background: linear-gradient(135deg, #10B981, #059669); }
.feature-icon.icon-yellow { background: linear-gradient(135deg, #F59E0B, #D97706); }
.feature-icon.icon-purple { background: linear-gradient(135deg, #A855F7, #7C3AED); }

.feature-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.feature-text strong {
  font-size: 14px;
  color: white;
  font-weight: 800;
  margin-bottom: 2px;
}

.feature-text span {
  font-size: 12px;
  color: #94A3B8;
}

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

.footer-copyright {
  color: #94A3B8;
  font-size: 13px;
}

.footer-copyright strong {
  color: white;
  font-weight: 700;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.footer-legal a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-legal .sep {
  color: #475569;
}

/* الفوتر على الموبايل */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-features-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .footer-pro { padding: 50px 0 0; }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 30px;
  }
  .footer-features-bar {
    grid-template-columns: 1fr;
    padding: 30px 0;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
  }
}


/* ==========================================================================
   إصلاح الأزرار العائمة - لون أبيض دائماً
   ========================================================================== */
.floating-buttons .float-btn svg {
  width: 28px;
  height: 28px;
  fill: white !important;
  color: white !important;
}

.floating-buttons .float-btn svg path,
.floating-buttons .float-btn svg circle,
.floating-buttons .float-btn svg rect {
  fill: white !important;
  stroke: white !important;
}


/* ==========================================================================
   تصميم احترافي للصور داخل المقالة
   ========================================================================== */

/* الصور داخل المحتوى */
.content-block img,
.service-content img,
article img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px auto;
  border-radius: 16px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Wrapper احترافي للصور */
.content-block p:has(> img),
.content-block p > img,
.service-content figure,
.wp-block-image {
  position: relative;
  margin: 30px auto !important;
  display: block;
}

/* تأثير hover للصور */
.content-block .wp-block-image,
.service-content figure,
.content-block figure {
  position: relative;
  display: block;
  overflow: visible;
  margin: 36px auto !important;
  padding: 14px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(252, 211, 77, 0.05));
  border-radius: 24px;
  border: 1px dashed rgba(14, 165, 233, 0.2);
  transition: all 0.4s ease;
  max-width: 90%;
}

.content-block .wp-block-image::before,
.service-content figure::before,
.content-block figure::before {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 50px;
  height: 50px;
  border-top: 3px solid var(--primary);
  border-right: 3px solid var(--primary);
  border-radius: 4px 24px 0 0;
  opacity: 0.8;
}

.content-block .wp-block-image::after,
.service-content figure::after,
.content-block figure::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: -8px;
  width: 50px;
  height: 50px;
  border-bottom: 3px solid var(--secondary);
  border-left: 3px solid var(--secondary);
  border-radius: 0 0 4px 24px;
  opacity: 0.8;
}

.content-block .wp-block-image img,
.service-content figure img,
.content-block figure img {
  margin: 0 !important;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
  width: 100%;
  height: auto;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effect */
.content-block .wp-block-image:hover,
.service-content figure:hover,
.content-block figure:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.content-block .wp-block-image:hover img,
.service-content figure:hover img,
.content-block figure:hover img {
  transform: scale(1.02);
  box-shadow: 0 25px 50px rgba(14, 165, 233, 0.25);
}

/* شارة "رضا العميل" المتحركة فوق الصورة */
.content-block .wp-block-image,
.service-content figure,
.content-block figure {
  position: relative;
}

.content-block .wp-block-image::before {
  content: '✨ رضا العملاء';
  position: absolute;
  top: -16px;
  right: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-heading);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
  z-index: 2;
  border: none;
  width: auto;
  height: auto;
  animation: floatBadge 3s ease-in-out infinite;
}

.content-block .wp-block-image::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 20px;
  background: linear-gradient(135deg, var(--secondary), #F59E0B);
  color: var(--dark);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(252, 211, 77, 0.5);
  z-index: 2;
  width: auto;
  height: auto;
  border: none;
  border-radius: 50px;
  animation: floatBadge2 3.5s ease-in-out infinite;
  content: '⭐ 4.9/5';
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}

@keyframes floatBadge2 {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-8px) rotate(-3deg); }
}

/* تأثير Caption احترافي */
.content-block .wp-block-image figcaption,
.service-content figure figcaption,
.content-block figure figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--gray-700);
  margin-top: 12px;
  font-weight: 700;
  font-style: normal;
  padding: 8px 16px;
  background: rgba(14, 165, 233, 0.05);
  border-radius: 8px;
  display: inline-block;
  width: auto;
}

/* للصور الكبيرة (alignfull / alignwide) */
.wp-block-image.alignfull,
.wp-block-image.alignwide {
  max-width: 100%;
}

/* للصور المحاذية يميناً ويساراً */
.wp-block-image.alignright,
.alignright {
  float: left;
  margin: 0 0 20px 30px !important;
  max-width: 45%;
}

.wp-block-image.alignleft,
.alignleft {
  float: right;
  margin: 0 30px 20px 0 !important;
  max-width: 45%;
}

@media (max-width: 768px) {
  .content-block .wp-block-image,
  .service-content figure,
  .content-block figure {
    padding: 8px;
    margin: 24px auto !important;
  }
  
  .content-block .wp-block-image::before {
    font-size: 10px;
    padding: 6px 12px;
    top: -12px;
    right: 10px;
  }
  
  .content-block .wp-block-image::after {
    font-size: 10px;
    padding: 5px 10px;
    bottom: -10px;
    left: 10px;
  }
  
  .wp-block-image.alignright,
  .alignright,
  .wp-block-image.alignleft,
  .alignleft {
    float: none;
    margin: 20px auto !important;
    max-width: 100%;
  }
}

/* ==========================================================================
   تنسيق احترافي وشيق لعناوين المقالات (H2, H3, H4)
   ========================================================================== */

.content-block h2,
.service-content h2,
article .entry-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--dark);
  margin: 50px 0 24px;
  position: relative;
  padding: 0 0 16px 0;
  line-height: 1.3;
}

/* خط مزدوج تحت H2 */
.content-block h2::before,
.service-content h2::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
}

.content-block h2::after,
.service-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

/* أيقونة قبل H2 */
.content-block h2,
.service-content h2 {
  display: flex;
  align-items: center;
  gap: 14px;
}

.content-block h2 > span:first-child,
.service-content h2 > span:first-child {
  flex-shrink: 0;
}

.content-block h2::first-letter {
  color: var(--primary);
}

/* H3 - عناوين فرعية بأيقونة */
.content-block h3,
.service-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--dark);
  margin: 36px 0 18px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(14, 165, 233, 0.02));
  border-right: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  position: relative;
  line-height: 1.4;
  transition: all 0.3s;
}

.content-block h3:hover,
.service-content h3:hover {
  transform: translateX(-4px);
  border-right-width: 6px;
  box-shadow: -4px 4px 16px rgba(14, 165, 233, 0.1);
}

.content-block h3::before,
.service-content h3::before {
  content: '◆';
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary);
  font-size: 14px;
  background: white;
  padding: 2px;
}

/* H4 - عناوين صغيرة */
.content-block h4,
.service-content h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  margin: 28px 0 14px;
  padding-right: 16px;
  border-right: 3px dotted var(--primary);
  position: relative;
}

.content-block h4::before,
.service-content h4::before {
  content: '✦';
  color: var(--secondary);
  margin-left: 6px;
  font-size: 13px;
}

/* تنسيق الفقرات */
.content-block p,
.service-content p {
  font-size: 16px;
  line-height: 2;
  color: var(--gray-700);
  margin-bottom: 18px;
}

/* القوائم بتنسيق احترافي */
.content-block ul,
.content-block ol,
.service-content ul,
.service-content ol {
  margin: 20px 0;
  padding-right: 8px;
}

.content-block ul li,
.service-content ul li {
  position: relative;
  padding: 8px 32px 8px 0;
  list-style: none;
  line-height: 1.9;
  color: var(--gray-700);
}

.content-block ul li::before,
.service-content ul li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 18px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-block ul li::after,
.service-content ul li::after {
  content: '✓';
  position: absolute;
  right: 5px;
  top: 14px;
  width: 12px;
  height: 12px;
  color: white;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  line-height: 12px;
}

.content-block ol,
.service-content ol {
  counter-reset: list-counter;
}

.content-block ol li,
.service-content ol li {
  counter-increment: list-counter;
  position: relative;
  padding: 10px 44px 10px 0;
  list-style: none;
  line-height: 1.9;
  color: var(--gray-700);
}

.content-block ol li::before,
.service-content ol li::before {
  content: counter(list-counter);
  position: absolute;
  right: 0;
  top: 8px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  font-family: var(--font-heading);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* اقتباسات احترافية */
.content-block blockquote,
.service-content blockquote {
  position: relative;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.04), white);
  border-right: 4px solid var(--primary);
  padding: 24px 30px 24px 30px;
  margin: 30px 0;
  border-radius: 0 16px 16px 0;
  font-size: 17px;
  line-height: 1.9;
  color: var(--dark);
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.08);
}

.content-block blockquote::before,
.service-content blockquote::before {
  content: '"';
  position: absolute;
  top: -16px;
  right: 16px;
  font-size: 60px;
  color: var(--primary);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.3;
}

/* تأكيد النص bold و italic */
.content-block strong,
.service-content strong {
  color: var(--primary-dark);
  font-weight: 800;
}

.content-block em,
.service-content em {
  color: var(--gray-900);
  font-style: italic;
  background: linear-gradient(180deg, transparent 60%, rgba(252, 211, 77, 0.3) 60%);
  padding: 0 4px;
}

