/* Design System & Core Styles - وثاب جدة لخدمات التنظيف */
/* الخط يُحمّل الآن من <head> عبر preconnect/preload لأداء أسرع */

:root {
  --primary-color: #0A5C36;      /* الأخضر الداكن - ثقة ونظافة */
  --primary-dark: #074327;
  --primary-light: #117a49;
  --accent-color: #D4AF37;       /* لون رملي/ذهبي سعودي */
  --accent-light: #F4E8C1;
  --bg-white: #FFFFFF;
  --bg-light: #F4F7F5;
  --text-dark: #1C2833;
  --text-muted: #566573;
  --cta-orange: #E67E22;         /* لون أزرار الاتصال والواتساب الساخن */
  --cta-green: #27AE60;          /* لون واتساب الأخضر */
  --border-color: #E5E8E8;
  --font-family: 'IBM Plex Sans Arabic', sans-serif;
  --transition-speed: 0.35s;
  --max-width: 1200px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
  --shadow-glow: 0 8px 24px rgba(10, 92, 54, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 30px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* يمنع التمرير الأفقي الوهمي من العناصر الثابتة (قائمة الجوال) */
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.8;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  transition: transform var(--transition-speed) ease;
}

img:hover {
  transform: scale(1.02);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

h1 { 
  font-size: 2.5rem; 
}

h2 { 
  font-size: 1.9rem; 
  border-bottom: 4px solid var(--accent-color); 
  display: inline-block; 
  padding-bottom: 8px; 
  margin-bottom: 1.8rem; 
  border-radius: 2px;
}

h3 { font-size: 1.45rem; }
p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 1.2rem; text-align: justify; }

/* Layout Helper */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 0;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-subtitle {
  color: var(--accent-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.6rem;
  display: block;
  font-size: 0.95rem;
}

/* Header & Navigation */
header {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  transition: padding var(--transition-speed) ease;
}

header.scrolled .header-container {
  padding: 0.6rem 5%;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform var(--transition-speed) ease;
}

.logo-wrapper:hover .logo-text {
  transform: scale(1.03);
}

.logo-tagline {
  font-size: 0.8rem;
  color: var(--accent-color);
  display: block;
  font-weight: 500;
  margin-top: -4px;
}

.desktop-nav {
  display: flex;
  gap: 1.8rem;
}

.nav-link {
  font-weight: 600;
  color: var(--text-dark);
  padding: 0.5rem 0;
  position: relative;
  font-size: 1rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  transition: width var(--transition-speed) ease;
  border-radius: 2px;
}

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

.nav-link:hover {
  color: var(--primary-color);
}

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

.btn-header {
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-header-call {
  background-color: var(--cta-orange);
  color: var(--bg-white);
}

.btn-header-call:hover {
  background-color: #d35400;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.9rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* Mobile Nav Overlay & Panel */
.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw; /* لا تتجاوز عرض الشاشة على الأجهزة الصغيرة */
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  /* الإخفاء عبر transform بدل right:-100% حتى لا يُنشئ تمريراً أفقياً */
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.mobile-nav-panel.open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-close-btn {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: transform var(--transition-speed) ease;
}

.mobile-close-btn:hover {
  transform: rotate(90deg);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  color: var(--text-dark);
}

.mobile-nav-link:hover {
  color: var(--primary-color);
  padding-right: 8px;
}

.mobile-nav-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1090;
  display: none;
}

.mobile-overlay.open {
  display: block;
}

/* Hero Section */
/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, #09472a 0%, #062817 50%, #03140c 100%);
  color: var(--bg-white);
  overflow: hidden;
  padding: 6.5rem 0 8.5rem 0;
  border-bottom-left-radius: 80px;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M10 10 H 70 V 70 H 10 Z' fill='none' stroke='white' stroke-width='0.08' stroke-dasharray='4,4'/%3E%3C/svg%3E");
  opacity: 0.08;
  pointer-events: none;
  z-index: 2;
}

/* Glowing Background Lights */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  opacity: 0.15;
  z-index: 1;
}

.hero-glow-1 {
  width: 400px;
  height: 400px;
  background-color: var(--primary-light);
  top: -50px;
  left: -50px;
}

.hero-glow-2 {
  width: 500px;
  height: 500px;
  background-color: var(--accent-color);
  bottom: -100px;
  right: -50px;
}

/* Floating Sparkle Bubbles */
.hero-bubbles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -60px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.05) 70%, rgba(212, 175, 55, 0.25) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.08);
  animation: floatBubble 12s infinite ease-in;
}

.bubble::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 15%;
  width: 25%;
  height: 25%;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

.bubble-1 { width: 45px; height: 45px; left: 10%; animation-duration: 9s; animation-delay: 0s; }
.bubble-2 { width: 30px; height: 30px; left: 25%; animation-duration: 12s; animation-delay: 2s; }
.bubble-3 { width: 60px; height: 60px; left: 55%; animation-duration: 15s; animation-delay: 1s; }
.bubble-4 { width: 35px; height: 35px; left: 75%; animation-duration: 10s; animation-delay: 4.5s; }
.bubble-5 { width: 50px; height: 50px; left: 90%; animation-duration: 14s; animation-delay: 3s; }

@keyframes floatBubble {
  0% { transform: translateY(0) scale(0.3) rotate(0deg); opacity: 0; }
  10% { opacity: 0.65; }
  90% { opacity: 0.65; }
  100% { transform: translateY(-120vh) scale(1.1) rotate(360deg); opacity: 0; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 3;
}

/* Offer tag & Subtitle */
.hero-offer-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #D4AF37 0%, #E67E22 100%);
  color: var(--bg-white);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
  animation: pulseTag 2s infinite alternate;
}

@keyframes pulseTag {
  0% { transform: scale(1); }
  100% { transform: scale(1.03); box-shadow: 0 4px 18px rgba(212, 175, 55, 0.4); }
}

.hero-subtitle {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.hero-content h1 {
  color: var(--bg-white);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.8rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Gold text gradient */
.text-gradient {
  background: linear-gradient(135deg, #FFE066 0%, #D4AF37 50%, #F5D76E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.hero-lead {
  color: rgba(255,255,255,0.92);
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  line-height: 1.75;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.hero-trust-badges {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2.8rem;
  flex-wrap: wrap;
}

.hero-trust-badges .badge {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--bg-white);
  transition: all var(--transition-speed) ease;
}

.hero-trust-badges .badge:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.14);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-ctas {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2.2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--cta-orange);
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: #d35400;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(230, 126, 34, 0.45);
}

.btn-secondary {
  background-color: var(--cta-green);
  color: var(--bg-white);
}

.btn-secondary:hover {
  background-color: #1e8449;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(39, 174, 96, 0.45);
}

/* Pulsing call button */
.btn-pulse {
  animation: pulseCallBtn 2s infinite;
}

@keyframes pulseCallBtn {
  0% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(230, 126, 34, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0); }
}

/* WhatsApp glowing buttons */
.btn-whatsapp-glow:hover {
  animation: pulseWaBtn 2.2s infinite;
}

@keyframes pulseWaBtn {
  0% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(39, 174, 96, 0); }
  100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255, 255, 255, 0.2);
  transition: transform var(--transition-speed) ease;
}

.hero-visual:hover {
  transform: translateY(-5px);
}

.hero-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 0;
}

/* Frosted Glass Booking Form Box */
.glass-form {
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--bg-white) !important;
  padding: 2.5rem 2.2rem !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg), 0 15px 35px rgba(0,0,0,0.2) !important;
  position: relative;
  z-index: 10;
  transition: all var(--transition-speed) ease !important;
}

.glass-form:focus-within {
  border-color: rgba(212, 175, 55, 0.4) !important;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(212, 175, 55, 0.15) !important;
}

.glass-form h3 {
  color: var(--bg-white) !important;
  margin-bottom: 2rem !important;
  font-size: 1.45rem !important;
  text-align: center !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding-bottom: 14px !important;
  font-weight: 700;
}

.form-urgency {
  display: block;
  font-size: 0.85rem;
  color: var(--accent-color);
  margin-top: 4px;
  font-weight: 600;
  animation: flashUrgency 1.5s infinite alternate;
}

@keyframes flashUrgency {
  0% { opacity: 0.6; }
  100% { opacity: 1; text-shadow: 0 0 8px rgba(212, 175, 55, 0.6); }
}

.glass-form .form-group {
  margin-bottom: 1.3rem;
}

.glass-form label {
  display: block;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 6px;
  font-weight: 500;
}

.glass-form .form-control {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: var(--bg-white);
  font-size: 0.98rem;
  font-family: inherit;
  transition: all var(--transition-speed) ease;
}

.glass-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.glass-form .form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.glass-form select.form-control option {
  background-color: #0c1c13;
  color: var(--bg-white);
}

.btn-form-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--cta-orange) 0%, #d35400 100%);
  color: var(--bg-white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(230, 126, 34, 0.5);
}

/* Shimmer animation overlay for button */
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shimmerBtn 4s infinite ease-in-out;
  pointer-events: none;
}

@keyframes shimmerBtn {
  0% { transform: translate(-30%, -30%) rotate(30deg); }
  20%, 100% { transform: translate(50%, 50%) rotate(30deg); }
}

/* Centered Layout Support for layouts B/C/E */
.centered-layout {
  text-align: center;
  padding: 7rem 0 8rem 0;
}

.centered-layout .container {
  max-width: 800px;
  margin: 0 auto;
}

.centered-layout .hero-offer-tag {
  justify-content: center;
}

.centered-layout .hero-ctas {
  justify-content: center;
  margin-top: 1.5rem;
}

.centered-layout .hero-trust-badges {
  justify-content: center;
}

.text-center-badges {
  justify-content: center;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 1rem;
  background-color: var(--bg-light);
  outline: none;
  transition: all var(--transition-speed) ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(10, 92, 54, 0.1);
}

.btn-form-submit {
  width: 100%;
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) ease;
}

.btn-form-submit:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 92, 54, 0.25);
}

/* Feature Grid & Cards */
.services-section, .about-section, .why-us-section, .workflow-section, .faq-section {
  padding: 5rem 0;
}

.services-grid, .why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 2.2rem;
}

.card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  padding: 2.2rem;
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-color) 0%, #B8860B 100%);
  transition: width var(--transition-speed) ease;
}

.card:hover::before {
  width: 10px;
}

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

.card-icon {
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 1.2rem;
  transition: transform var(--transition-speed) ease;
  display: inline-block;
}

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

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  color: var(--primary-dark);
}

.card p {
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.card-link {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

/* Details Page Content Styles */
.article-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3.5rem;
}

.rich-content {
  background-color: var(--bg-white);
}

.rich-content section {
  margin-bottom: 3.5rem;
}

.rich-content h3 {
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 1.2rem;
  position: relative;
  padding-right: 18px;
}

.rich-content h3::before {
  content: '';
  position: absolute;
  right: 0;
  top: 8px;
  width: 6px;
  height: 22px;
  background-color: var(--accent-color);
  border-radius: 3px;
}

.rich-content ul {
  margin-bottom: 1.8rem;
  padding-right: 1.8rem;
}

.rich-content ul li {
  position: relative;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.rich-content ul li::before {
  content: '✓';
  position: absolute;
  right: -1.8rem;
  color: var(--primary-color);
  font-weight: bold;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.comparison-table th, .comparison-table td {
  padding: 1.2rem;
  text-align: right;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background-color: var(--primary-color);
  color: var(--bg-white);
  font-weight: 700;
}

.comparison-table tr:nth-child(even) td {
  background-color: var(--bg-light);
}

.comparison-table tr:hover td {
  background-color: rgba(10, 92, 54, 0.03);
}

/* Steps list */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.step-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition-speed) ease;
}

.step-item:hover {
  border-color: var(--accent-light);
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
}

.step-num {
  background-color: var(--primary-color);
  color: var(--bg-white);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(10, 92, 54, 0.2);
  transition: transform var(--transition-speed) ease;
}

.step-item:hover .step-num {
  transform: scale(1.1) rotate(360deg);
}

.step-desc h4 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.step-desc p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

/* Sidebar */
.sidebar-sticky {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  transition: top var(--transition-speed) ease;
}

.sidebar-box {
  background-color: var(--bg-light);
  padding: 2.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-speed) ease;
}

.sidebar-box:hover {
  box-shadow: var(--shadow-md);
}

.sidebar-box h3 {
  font-size: 1.35rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 1.4rem;
}

.neighborhood-list-small {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-link {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.badge-link:hover {
  background-color: var(--primary-color);
  color: var(--bg-white);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-white);
  overflow: hidden;
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.4rem 1.8rem;
  text-align: right;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.6rem;
  color: var(--accent-color);
  transition: transform var(--transition-speed);
}

.faq-item.active .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-item.active {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: var(--bg-light);
}

.faq-answer-inner {
  padding: 1.4rem 1.8rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  line-height: 1.7;
}

/* CTA Final Section */
.cta-final {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  color: var(--bg-white);
  text-align: center;
  padding: 6rem 0;
  border-top-right-radius: 80px;
  position: relative;
  overflow: hidden;
}

.cta-final::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Ccircle cx='30' cy='30' r='1' fill='white' fill-opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-final h2 {
  color: var(--bg-white);
  border: none;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.cta-final p {
  color: rgba(255,255,255,0.92);
  max-width: 720px;
  margin: 0 auto 2.8rem auto;
  font-size: 1.25rem;
}

.cta-buttons-wrapper {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}

/* Floating Actions & Pulse Effects */
.floating-container {
  position: fixed;
  bottom: 85px;
  left: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  color: var(--bg-white);
  font-size: 1.8rem;
  transition: all var(--transition-speed) ease;
}

.float-whatsapp {
  background-color: var(--cta-green);
  animation: pulse-whatsapp 2s infinite;
}

.float-whatsapp:hover {
  background-color: #1e8449;
  transform: scale(1.1) rotate(10deg);
}

.float-call {
  background-color: var(--cta-orange);
  animation: pulse-call 2s infinite;
}

.float-call:hover {
  background-color: #d35400;
  transform: scale(1.1) rotate(-10deg);
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(39, 174, 96, 0); }
  100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}

@keyframes pulse-call {
  0% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(230, 126, 34, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0); }
}

/* Sticky Bottom Bar on Mobile */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
  grid-template-columns: 1fr 1fr;
  z-index: 1000;
  border-top: 1px solid var(--border-color);
}

.sticky-bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1.1rem 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--bg-white);
  transition: background-color var(--transition-speed) ease;
}

.sticky-call {
  background-color: var(--cta-orange);
}

.sticky-call:hover {
  background-color: #d35400;
}

.sticky-whatsapp {
  background-color: var(--cta-green);
}

.sticky-whatsapp:hover {
  background-color: #1e8449;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #072517 0%, #03100a 100%);
  color: rgba(255, 255, 255, 0.75);
  padding: 8rem 0 2.5rem 0; /* Extra top padding for overlapping CTA banner */
  font-size: 0.98rem;
  border-top: 5px solid var(--accent-color);
  position: relative;
  overflow: visible; /* Prevent clipping of negative margin CTA banner */
}

/* Glowing Background Lights */
.footer-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.12;
  z-index: 1;
}
.footer-glow-1 {
  width: 300px;
  height: 300px;
  background-color: var(--primary-light);
  top: 10%;
  left: 5%;
}
.footer-glow-2 {
  width: 400px;
  height: 400px;
  background-color: var(--accent-color);
  bottom: 5%;
  right: 5%;
}

.site-footer .container {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Footer Top CTA Banner */
.footer-cta-banner {
  background: linear-gradient(135deg, #09472a 0%, #052616 100%); /* Solid dark green gradient for perfect contrast on any background */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-right: 5px solid var(--accent-color);
  border-radius: var(--radius-md);
  padding: 2.5rem 3rem;
  margin-top: -11.5rem; /* Overlap footer */
  margin-bottom: 5rem;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(9, 71, 42, 0.35);
  position: relative;
  z-index: 10;
}

.cta-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cta-banner-text h3 {
  color: var(--bg-white);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-banner-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.6;
}

.cta-banner-actions {
  display: flex;
  gap: 1.2rem;
  flex-shrink: 0;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: all 0.5s ease;
  z-index: 1;
}

.cta-btn:hover::before {
  height: 300%;
}

.cta-btn span {
  position: relative;
  z-index: 2;
}

.cta-btn i {
  position: relative;
  z-index: 2;
  font-size: 1.1rem;
}

.btn-phone {
  background-color: var(--cta-orange);
  color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.35);
}

.btn-phone:hover {
  background-color: #d35400;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(230, 126, 34, 0.5);
}

.btn-whatsapp {
  background-color: var(--cta-green);
  color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.35);
}

.btn-whatsapp:hover {
  background-color: #1e8449;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(39, 174, 96, 0.5);
}

/* Footer Grid */
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.85fr);
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-col h3 {
  color: var(--bg-white);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 2px;
  transition: width var(--transition-speed) ease;
}

.footer-col:hover h3::after {
  width: 75px;
}

/* Brand Column Extra Styles */
.brand-col .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-col .footer-brand i {
  color: var(--accent-color);
  font-size: 1.4rem;
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}

.brand-desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.8rem;
}

.footer-credentials {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 2rem;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.credential-item i {
  color: var(--accent-color);
  font-size: 1rem;
}

/* Social media buttons with animations */
.footer-social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--bg-white);
  font-size: 1.2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 1;
}

.social-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: -1;
}

.social-btn:hover {
  transform: translateY(-5px) rotate(360deg);
  border-color: transparent;
  color: var(--bg-white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-btn:hover::after {
  transform: scale(1);
  opacity: 1;
}

/* Social Networks Hover Custom Colors */
.social-btn.whatsapp:hover::after { background-color: var(--cta-green); box-shadow: 0 0 15px rgba(39, 174, 96, 0.5); }
.social-btn.snapchat:hover::after { background-color: #FFFC00; }
.social-btn.snapchat:hover { color: #000000; }
.social-btn.twitter:hover::after { background-color: #1DA1F2; box-shadow: 0 0 15px rgba(29, 161, 242, 0.5); }
.social-btn.instagram:hover::after { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); box-shadow: 0 0 15px rgba(220, 39, 67, 0.5); }

/* Links Columns styling and micro-animations */
.links-col .footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-link-item a {
  color: rgba(255, 255, 255, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  transition: all var(--transition-speed) ease;
}

.footer-link-item a i {
  font-size: 0.75rem;
  color: var(--accent-color);
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-link-item a:hover {
  color: var(--accent-color);
  padding-right: 4px;
}

.footer-link-item a:hover i {
  opacity: 1;
  transform: translateX(0);
}

/* Footer Bottom styles with trust & payment badges */
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2.5rem;
  margin-top: 2rem;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.copyright-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin: 0;
}

.payment-methods {
  display: flex;
  align-items: center;
  gap: 15px;
}

.payment-title {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.payment-icons {
  display: flex;
  gap: 10px;
}

.payment-badge {
  height: 32px;
  width: auto;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  cursor: pointer;
}

.payment-badge svg {
  height: 100%;
  width: auto;
  display: block;
}

.payment-badge:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-md);
}

/* Performant Pure CSS Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transition: all 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-fade {
  transform: translateY(0);
}

.reveal-slide-up {
  transform: translateY(40px);
}

.reveal-slide-right {
  transform: translateX(-40px);
}

.reveal-slide-left {
  transform: translateX(40px);
}

.reveal.in-view {
  opacity: 1;
  transform: translate(0, 0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Media Queries */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-trust-badges {
    justify-content: center;
  }
  
  .hero-visual img {
    height: 320px;
  }
  
  .article-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  /* رفع الأولوية ليتغلّب على .site-footer .footer-grid الأساسي */
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  /* بنر الدعوة: تكديس عمودي على الأجهزة اللوحية */
  .cta-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
  }

  .cta-banner-actions {
    width: 100%;
  }

  .desktop-nav, .header-cta {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
}

@media (max-width: 576px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.55rem; }
  
  .hero-content h1 {
    font-size: 2.3rem;
  }
  
  /* ===== الفوتر على الجوال ===== */
  /* تقليل الحشوة العلوية وتراكب البنر ليتناسب مع الشاشة الصغيرة */
  .site-footer {
    padding-top: 3rem;
  }

  .footer-cta-banner {
    padding: 1.8rem 1.4rem;
    margin-top: -5.5rem;
    margin-bottom: 3rem;
    border-right-width: 4px;
  }

  .cta-banner-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 1.4rem;
  }

  .cta-banner-text h3 {
    font-size: 1.3rem;
  }

  .cta-banner-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }

  .cta-banner-actions .cta-btn {
    justify-content: center;
    width: 100%;
  }

  /* الأعمدة تتراص في عمود واحد (نتغلّب على قاعدة .site-footer .footer-grid) */
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
    margin-bottom: 3rem;
  }

  /* الشريط السفلي: حقوق فوق طرق الدفع بمحاذاة وسط */
  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
    gap: 1.3rem;
  }

  .payment-methods {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .payment-icons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .floating-container {
    bottom: 75px;
  }
  
  .mobile-sticky-bar {
    display: grid;
  }
  
  .hero {
    padding: 4.5rem 0 6rem 0;
  }
  
  .hero-trust-badges {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* Premium Collapsible Details Accordion */
details.premium-details-hub {
  cursor: pointer;
}

details.premium-details-hub[open] {
  border-color: var(--accent-color) !important;
  box-shadow: var(--shadow-md) !important;
  background-color: var(--bg-white) !important;
}

details.premium-details-hub[open] summary i {
  transform: rotate(180deg);
}

details.premium-details-hub summary {
  user-select: none;
}

details.premium-details-hub summary::-webkit-details-marker {
  display: none;
}

details.premium-details-hub summary::marker {
  display: none;
}

details.premium-details-hub .details-body {
  cursor: default;
}

/* Manual Cards & Links Styles */
.manual-paragraph-card {
  transition: all var(--transition-speed) ease;
}

.manual-paragraph-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md) !important;
  border-right-style: solid !important;
  background-color: var(--bg-light) !important;
}

.manual-link {
  position: relative;
  transition: color var(--transition-speed) ease;
}

.manual-link:hover {
  color: var(--primary-color) !important;
}

/* هوية العلامة: الشعار المائي + اسم وثّاب جدة */
.brand-link { display: flex; align-items: center; gap: 12px; }
.brand-emblem { width: 46px; height: 46px; flex-shrink: 0; display: block; transition: transform var(--transition-speed) cubic-bezier(0.16,1,0.3,1); }
.brand-emblem svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 7px rgba(7,67,39,0.28)); }
.brand-link:hover .brand-emblem { transform: rotate(-6deg) scale(1.06); }
.brand-textblock { display: flex; flex-direction: column; line-height: 1.15; }
.brand-textblock .logo-tagline { margin-top: 0; }
header.scrolled .brand-emblem { width: 40px; height: 40px; }
.mobile-nav-header .brand-textblock .logo-text { font-size: 1.4rem; }

/* =========================================================
   طبقة التحسينات: حركات وشكل احترافي (Polish & Animation Layer)
   ========================================================= */

/* 1) دخول عناصر الهيرو تِباعاً عند تحميل الصفحة */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content > * {
  opacity: 0;
  animation: heroIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.18s; }
.hero-content > *:nth-child(3) { animation-delay: 0.31s; }
.hero-content > *:nth-child(4) { animation-delay: 0.44s; }
.hero-content > *:nth-child(5) { animation-delay: 0.57s; }
.hero-content > *:nth-child(6) { animation-delay: 0.70s; }
.hero-form-box {
  opacity: 0;
  animation: heroIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

/* 2) خلفية متدرجة متحركة بلطف للهيرو وقسم الـ CTA */
.hero, .cta-final {
  background-size: 200% 200%;
  animation: gradientShift 16s ease infinite;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 3) ظهور تدريجي متتابع للبطاقات داخل الشبكات (Stagger) */
.reveal.in-view .card,
.services-grid.in-view .card,
.why-us-grid.in-view .card { animation: cardPop 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes cardPop {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.card:nth-child(1){animation-delay:.04s}.card:nth-child(2){animation-delay:.12s}
.card:nth-child(3){animation-delay:.20s}.card:nth-child(4){animation-delay:.28s}
.card:nth-child(5){animation-delay:.36s}.card:nth-child(6){animation-delay:.44s}

/* 4) تحريك خط عنوان القسم عند الظهور */
h2 { position: relative; }

/* 5) عنوان بتدرج ذهبي أنيق للأقسام المهمة */
.gradient-heading {
  background: linear-gradient(120deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 6) فتح سلس لصندوق "الموسوعة المهنية" */
details.premium-details-hub .details-body { animation: detailsOpen 0.5s ease; }
@keyframes detailsOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
details.premium-details-hub:hover {
  border-color: var(--accent-color) !important;
  box-shadow: var(--shadow-md) !important;
}
.manual-paragraph-card { transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease; }
.manual-paragraph-card:hover { transform: translateX(-4px); box-shadow: var(--shadow-md) !important; }

/* 7) زر العودة للأعلى */
.scroll-top-btn {
  position: fixed;
  bottom: 155px;
  left: 25px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 998;
}
.scroll-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--primary-dark); transform: translateY(-3px) scale(1.06); }

/* 8) شريط تقدّم القراءة أعلى الصفحة */
.read-progress {
  position: fixed;
  top: 0; right: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-light));
  z-index: 1200;
  transition: width 0.1s linear;
}

/* 9) إبراز عناصر التفاعل للوصولية (focus-visible) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 10) روابط الفوتر والقوائم: حركة سفلية أنيقة */
.footer-link-item a { position: relative; transition: color var(--transition-speed) ease, padding var(--transition-speed) ease; }

/* 11) تحسين ظهور الصور تدريجياً */
.reveal img { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease; }

/* 12) معرض صور الخدمة في الحي */
.sn-gallery-section { padding: 4rem 0; background: var(--bg-light); }
.sn-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}
.sn-figure {
  margin: 0;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-speed) cubic-bezier(0.16,1,0.3,1), box-shadow var(--transition-speed) ease;
}
.sn-figure:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.sn-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 0;
  display: block;
}
.sn-figure figcaption {
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  border-top: 3px solid var(--accent-color);
}

/* احترام تفضيل تقليل الحركة (وصولية مهمة) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-content > *, .hero-form-box { opacity: 1 !important; animation: none !important; }
}

/* =========================================================
   صفحة من نحن — مكوّنات مخصّصة
   ========================================================= */
.about-hero { padding: 5rem 0 6rem 0; }
.about-hero h1 { color: #fff; }
.about-hero .hero-lead { color: rgba(255,255,255,0.92); }

/* شريط الأرقام */
.about-stats {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  padding: 3.2rem 0;
  position: relative;
  margin-top: -1px;
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; text-align: center; }
.stat-box { color: #fff; display: flex; flex-direction: column; align-items: center; position: relative; }
.stat-box .stat-num, .stat-box .stat-plus {
  font-size: 2.8rem; font-weight: 800; color: var(--accent-color); line-height: 1;
  display: inline-block; text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.stat-box .stat-plus { margin-top: 0; }
.stat-box .stat-num, .stat-box .stat-plus { vertical-align: top; }
.stat-box .stat-label { margin-top: 0.6rem; font-size: 0.98rem; opacity: 0.92; }
.stat-box { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px; }
.stat-box .stat-label { flex-basis: 100%; }

/* القصة */
.about-story { padding: 5rem 0; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.story-visual { position: relative; }
.story-visual img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.story-badge {
  position: absolute; bottom: -22px; inset-inline-start: 24px;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 0.9rem 1.3rem; display: flex; align-items: center; gap: 12px; border: 1px solid var(--border-color);
}
.story-badge i { font-size: 1.8rem; color: var(--accent-color); }
.story-badge strong { display: block; color: var(--primary-dark); font-size: 1.05rem; }
.story-badge span { font-size: 0.85rem; color: var(--text-muted); }
.story-checklist { margin: 1.5rem 0 2rem; padding: 0; }
.story-checklist li { list-style: none; margin-bottom: 0.7rem; font-weight: 600; color: var(--text-dark); }
.story-checklist i { color: var(--cta-green); margin-inline-end: 8px; }

/* بطاقات الرؤية/الرسالة/القيم */
.mvv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.mvv-card {
  background: #fff; border-radius: var(--radius-md); padding: 2.5rem 2rem; text-align: center;
  border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
  transition: transform var(--transition-speed) cubic-bezier(0.16,1,0.3,1), box-shadow var(--transition-speed) ease;
}
.mvv-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.mvv-icon {
  width: 74px; height: 74px; margin: 0 auto 1.3rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  box-shadow: var(--shadow-glow);
}
.mvv-card:nth-child(2) .mvv-icon { background: linear-gradient(135deg, #E0B94B, #B8860B); }

/* الضمانات */
.about-guarantees {
  background: linear-gradient(135deg, #09472a 0%, #062817 100%); padding: 5rem 0;
  position: relative; overflow: hidden;
}
.guarantee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.8rem; }
.guarantee-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(212,175,55,0.3); backdrop-filter: blur(8px);
  border-radius: var(--radius-md); padding: 2rem 1.6rem; text-align: center; color: #fff;
  transition: all var(--transition-speed) cubic-bezier(0.16,1,0.3,1);
}
.guarantee-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.1); border-color: var(--accent-color); }
.guarantee-card i { font-size: 2.4rem; color: var(--accent-color); margin-bottom: 1rem; }
.guarantee-card h4 { color: #fff; font-size: 1.15rem; margin-bottom: 0.5rem; }
.guarantee-card p { color: rgba(255,255,255,0.8); font-size: 0.95rem; margin: 0; }

/* آراء العملاء */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card {
  background: #fff; border-radius: var(--radius-md); padding: 2rem; margin: 0;
  border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); position: relative;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.testimonial-card .stars { color: var(--accent-color); margin-bottom: 1rem; font-size: 0.95rem; }
.testimonial-card blockquote { margin: 0 0 1.3rem; font-size: 1.02rem; line-height: 1.9; color: var(--text-dark); }
.testimonial-card figcaption { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--border-color); padding-top: 1rem; }
.testimonial-card .avatar {
  width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; flex-shrink: 0;
}
.testimonial-card figcaption strong { display: block; color: var(--primary-dark); }
.testimonial-card figcaption span { font-size: 0.85rem; color: var(--text-muted); }

@media (max-width: 991px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-visual img { height: 320px; }
  .about-hero h1 { font-size: 2.3rem !important; }
}

/* Real Work Infinite Marquee Gallery */
.work-gallery-section {
  padding: 5.5rem 0;
  background-color: var(--bg-light);
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 1.5rem;
  padding: 1.5rem 0;
  position: relative;
  width: 100%;
}

/* Blur overlays on left and right edges for smooth fading effect */
.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-light) 0%, rgba(249, 251, 249, 0) 100%);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-light) 0%, rgba(249, 251, 249, 0) 100%);
}

/* المسار الكامل (نسختان من الصور) — عليه تُطبّق الحركة لضمان لفٍّ لا نهائي متصل بلا فجوة */
.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scrollMarquee 42s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  gap: 1.5rem;
}

/* Pause scroll animation on hover to allow users to inspect photos */
.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  position: relative;
  width: 320px;
  height: 220px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  border: 1px solid var(--border-color);
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
  background-color: #fff;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark semi-transparent hover details */
.item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 71, 42, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  padding: 1rem;
  text-align: center;
  z-index: 3;
}

.item-overlay span {
  color: var(--bg-white);
  font-size: 1.1rem;
  font-weight: 700;
  transform: translateY(15px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.marquee-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(9, 71, 42, 0.18);
  border-color: var(--primary-light);
}

.marquee-item:hover img {
  transform: scale(1.08);
}

.marquee-item:hover .item-overlay {
  opacity: 1;
}

.marquee-item:hover .item-overlay span {
  transform: translateY(0);
}

@keyframes scrollMarquee {
  0% {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
  }
  100% {
    /* اتجاه موجب لأن الموقع RTL — يمنع فراغ الشريط ويحافظ على اللف المتصل */
    transform: translate3d(calc(50% + 0.75rem), 0, 0);
    -webkit-transform: translate3d(calc(50% + 0.75rem), 0, 0);
  }
}

@media (max-width: 768px) {
  .work-gallery-section {
    padding: 3.5rem 0;
  }
  .marquee-item {
    width: 260px;
    height: 180px;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
  }
}

