/* ============================================================
   TRUSTY INSURANCE — styles.css  v3
   ─────────────────────────────────────────────────────────────
   الهيكل | Structure:
     1.  CSS Variables  — ألوان الوضع الليلي (dark) الافتراضي
     2.  Light Mode     — ألوان الوضع النهاري عبر @media prefers-color-scheme
     3.  Reset          — إعادة الضبط
     4.  Navigation     — شريط التنقل
     5.  Hamburger Menu — قائمة الموبايل
     6.  Lang Toggle    — تبديل اللغة
     7.  Theme Toggle   — زر تبديل الوضع ليلي/نهاري
     8.  Shared         — عناصر مشتركة
     9.  Buttons        — الأزرار
    10.  Hero           — الصفحة الرئيسية + بطاقات تفاعلية
    11.  How It Works   — كيف نعمل
    12.  Services       — الخدمات
    13.  Testimonials   — آراء العملاء
    14.  CTA            — الدعوة للفعل
    15.  Footer         — الفوتر
    16.  Floating       — العناصر العائمة
    17.  Scroll Reveal  — انيميشن التمرير
    18.  Responsive     — استجابة الشاشات
   ============================================================ */


/* ============================================================
   1. CSS VARIABLES — الوضع الليلي (DARK MODE)
   الوضع الافتراضي: داكن
   جميع ألوان الموقع معرّفة كمتغيرات لسهولة التبديل
   ============================================================ */
:root {
  /* ألوان البراند — ثابتة في كلا الوضعين */
  --teal:        #0fa878;
  --teal-dark:   #087a56;
  --teal-light:  #1dd4a0;
  --teal-glow:   rgba(15,168,120,0.15);
  --teal-glow2:  rgba(15,168,120,0.08);

  /* ── DARK: خلفيات ── */
  --bg-page:     #06090d;   /* خلفية الصفحة الرئيسية */
  --bg-alt:      #0d1219;   /* خلفية الأقسام المتناوبة */
  --bg-card:     #141d26;   /* خلفية البطاقات */
  --bg-card-alt: #1c2833;   /* حدود وعناصر ثانوية */

  /* ── DARK: نصوص ── */
  --text-primary:   #f0f5f9; /* العناوين والنصوص المهمة */
  --text-secondary: #8aa5be; /* الأوصاف والنصوص الثانوية */
  --text-muted:     #5a7490; /* نصوص خافتة جداً */
  --text-faint:     #3d5166; /* الأفتح — للـ footer copy */

  /* ── DARK: حدود ── */
  --border:      #1c2833;
  --border-soft: rgba(255,255,255,0.06);

  /* ── DARK: NAV ── */
  --nav-bg:      rgba(6,9,13,0.90);
  --nav-border:  rgba(15,168,120,0.10);

  /* ── DARK: Mobile menu ── */
  --mobile-menu-bg: rgba(6,9,13,0.97);

  /* ── DARK: خلفيات الأوراق الدوّارة (hero cards) ── */
  --hcard-bg:    #141d26;
  --hcard-glow:  rgba(15,168,120,0.14);

  /* ── DARK: Scrollbar ── */
  --scroll-track: #0d1219;
  --scroll-thumb: #087a56;

  /* متغيرات الـ layout — ثابتة */
  --nav-h:        72px;
  --page-pad:     60px;
  --section-pad:  100px;

  /* انتقال سلس عند تبديل الوضع */
  --theme-transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}


/* ============================================================
   2. LIGHT MODE — الوضع النهاري
   يُفعَّل تلقائياً حسب إعداد نظام التشغيل
   أو يدوياً عبر class "light" على الـ html
   ============================================================ */
@media (prefers-color-scheme: light) {
  :root { --scheme: light; }
}

/* يمكن تجاوز إعداد النظام يدوياً عبر html.light / html.dark */
html.light, html:not(.dark) {
  --bg-page:     #f4f7fb;
  --bg-alt:      #eaf0f8;
  --bg-card:     #ffffff;
  --bg-card-alt: #dde6f0;

  --text-primary:   #0d1a2a;
  --text-secondary: #3d5a78;
  --text-muted:     #6b88a4;
  --text-faint:     #9ab0c4;

  --border:      #d0dcea;
  --border-soft: rgba(0,0,0,0.07);

  --nav-bg:      rgba(244,247,251,0.92);
  --nav-border:  rgba(15,168,120,0.18);

  --mobile-menu-bg: rgba(244,247,251,0.98);

  --hcard-bg:    #ffffff;
  --hcard-glow:  rgba(15,168,120,0.18);

  --scroll-track: #eaf0f8;
  --scroll-thumb: #0fa878;

  --teal-glow:  rgba(15,168,120,0.12);
  --teal-glow2: rgba(15,168,120,0.06);
}

/* الوضع الداكن صريح — يُستخدم عند الضغط يدوياً */
html.dark {
  --bg-page:     #06090d;
  --bg-alt:      #0d1219;
  --bg-card:     #141d26;
  --bg-card-alt: #1c2833;
  --text-primary:   #f0f5f9;
  --text-secondary: #8aa5be;
  --text-muted:     #5a7490;
  --text-faint:     #3d5166;
  --border:      #1c2833;
  --border-soft: rgba(255,255,255,0.06);
  --nav-bg:      rgba(6,9,13,0.90);
  --nav-border:  rgba(15,168,120,0.10);
  --mobile-menu-bg: rgba(6,9,13,0.97);
  --hcard-bg:    #141d26;
  --hcard-glow:  rgba(15,168,120,0.14);
  --scroll-track: #0d1219;
  --scroll-thumb: #087a56;
  --teal-glow:  rgba(15,168,120,0.15);
  --teal-glow2: rgba(15,168,120,0.08);
}


/* ============================================================
   3. RESET — إعادة ضبط المتصفح
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box; margin: 0; padding: 0;
  transition: var(--theme-transition);
}
html  { scroll-behavior: smooth; }
body  {
  font-family: 'Cairo', sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  overflow-x: hidden;
  direction: rtl;
}
[lang="en"] body, body.ltr {
  direction: ltr;
  font-family: 'Inter', 'Cairo', sans-serif;
}

::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: var(--scroll-track); }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 2px; }

img { max-width: 100%; display: block; transition: none; }
a   { text-decoration: none; }


/* ============================================================
   4. NAVIGATION — شريط التنقل
   ============================================================ */
nav {
  position: fixed;
  inset-block-start: 0; inset-inline: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--page-pad);
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nav-border);
  transition: height 0.3s, border-color 0.3s, background 0.35s;
}
nav.scrolled { height: 60px; border-bottom-color: rgba(15,168,120,0.2); }

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; transition: none; }
.nav-brand     { font-size: 18px; font-weight: 900; color: var(--text-primary); letter-spacing: -0.5px; line-height: 1; }
.nav-brand span { color: var(--teal); }
.nav-brand-sub  { font-size: 11px; color: var(--text-muted); font-weight: 400; margin-top: 1px; }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  transition: color 0.2s; position: relative; white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; inset-inline: 0;
  height: 1.5px; background: var(--teal);
  transform: scaleX(0); transform-origin: inline-end; transition: transform 0.25s;
}
.nav-links a:hover          { color: var(--text-primary); }
.nav-links a:hover::after   { transform: scaleX(1); transform-origin: inline-start; }
.nav-links a.active         { color: var(--text-primary); }
.nav-links a.active::after  { transform: scaleX(1); }

.nav-cta {
  background: var(--teal) !important; color: #06090d !important;
  font-weight: 700 !important; padding: 9px 22px !important;
  border-radius: 50px !important; transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover  { background: var(--teal-light) !important; transform: translateY(-1px) !important; }
.nav-cta::after { display: none !important; }

.nav-right { display: flex; align-items: center; gap: 14px; }


/* ============================================================
   5. HAMBURGER MENU — قائمة الموبايل
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px; z-index: 201;
}
.hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--text-secondary); border-radius: 2px; transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); inset-inline: 0;
  background: var(--mobile-menu-bg); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 28px var(--page-pad) 36px;
  border-bottom: 1px solid var(--border); z-index: 199;
  transform: translateY(-10px); opacity: 0; transition: transform 0.3s, opacity 0.3s;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; }
.mobile-menu a {
  display: block; padding: 16px 0; font-size: 17px; font-weight: 600;
  color: var(--text-secondary); border-bottom: 1px solid var(--border); transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--teal); }
.mobile-menu .mobile-cta {
  display: inline-block; margin-top: 20px;
  background: var(--teal); color: #06090d;
  font-weight: 700; font-size: 15px; padding: 14px 32px; border-radius: 50px;
}


/* ============================================================
   6. LANGUAGE TOGGLE — تبديل اللغة
   ============================================================ */
.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 50px; padding: 6px 14px;
  font-size: 13px; font-weight: 700; color: var(--text-secondary);
  cursor: pointer; transition: all 0.2s; text-decoration: none; white-space: nowrap;
}
.lang-toggle:hover { border-color: var(--teal); color: var(--teal); }
.lang-toggle .flag { font-size: 15px; }


/* ============================================================
   7. THEME TOGGLE — زر تبديل الوضع الليلي / النهاري
   زر دائري يحتوي رمز شمس أو قمر
   يضيف/يزيل class "dark"/"light" على <html> عبر main.js
   ============================================================ */
.theme-toggle {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 50%; cursor: pointer;
  font-size: 16px; transition: all 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--teal);
  background: var(--teal-glow);
  transform: rotate(20deg);
}

/* الأيقونات داخل الزر — تُظهر إحداها حسب الوضع */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
html.light .theme-toggle .icon-sun  { display: block; }
html.light .theme-toggle .icon-moon { display: none; }


/* ============================================================
   8. SHARED SECTION STYLES
   ============================================================ */
section { padding: var(--section-pad) var(--page-pad); }

.section-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.section-title {
  font-size: clamp(32px, 4vw, 48px); font-weight: 900;
  letter-spacing: -1.5px; line-height: 1.1;
  color: var(--text-primary); margin-bottom: 16px;
}
.section-title em {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-weight: 400; color: var(--teal);
}
.section-sub { font-size: 16px; color: var(--text-secondary); line-height: 1.8; max-width: 560px; }


/* ============================================================
   9. BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #06090d;
  font-family: 'Cairo', sans-serif; font-size: 15px; font-weight: 700;
  padding: 14px 32px; border-radius: 50px; border: none;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn-primary:hover { background: var(--teal-light); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(15,168,120,0.35); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-secondary);
  font-family: 'Cairo', sans-serif; font-size: 15px; font-weight: 600;
  padding: 14px 28px; border-radius: 50px; border: 1px solid var(--border);
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }

.btn-large {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #06090d;
  font-family: 'Cairo', sans-serif; font-size: 16px; font-weight: 700;
  padding: 16px 40px; border-radius: 50px; border: none;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn-large:hover { background: var(--teal-light); transform: translateY(-2px); box-shadow: 0 16px 48px rgba(15,168,120,0.4); }


/* ============================================================
   10. HERO SECTION
   ── صورة الخلفية: جبال وبحر ──
   ── البطاقات التفاعلية: الضغط يُظهر الكرت في المقدمة ──
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 160px;
  padding-inline: var(--page-pad);
  position: relative; overflow: hidden;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 40px; align-items: center;
}

/* ── صورة الخلفية الثابتة: جبال + بحر ──
   تُغطّى بطبقات التدرج فوقها لضمان قراءة النصوص */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    url('../../assets/hero-bg.jpg') center/cover no-repeat;
  /* في الوضع الفاتح: نزيد السطوع قليلاً ونخفف التشبع */
  transition: filter 0.35s ease;
}
html.light .hero::before {
  filter: brightness(1.15) saturate(0.85) hue-rotate(5deg);
}
html.dark .hero::before {
  filter: brightness(0.85) saturate(1.1);
}

/* خلفيات الهيرو — طبقات فوق الصورة تتكيف مع الوضعين */
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    /* في الداكن: overlay خفيف يُظهر الصورة مع الحفاظ على قراءة النصوص */
    linear-gradient(to bottom, rgba(6,9,13,0.35) 0%, rgba(6,9,13,0.20) 45%, rgba(6,9,13,0.60) 100%),
    radial-gradient(ellipse 700px 500px at 75% 40%, var(--teal-glow) 0%, transparent 65%);
  transition: background 0.35s ease;
}
html.light .hero-bg {
  background:
    /* في الفاتح: overlay أبيض شفاف جداً */
    linear-gradient(to bottom, rgba(244,247,251,0.30) 0%, rgba(244,247,251,0.10) 45%, rgba(244,247,251,0.55) 100%),
    radial-gradient(ellipse 700px 500px at 75% 40%, var(--teal-glow) 0%, transparent 65%);
}

.hero-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 60% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 50%, black 20%, transparent 70%);
}
html.light .hero-grid {
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
}

.orb {
  position: absolute; border-radius: 50%; filter: blur(70px);
  animation: float 9s ease-in-out infinite; pointer-events: none; z-index: 1;
}
.orb-1 { width: 500px; height: 500px; background: var(--teal-glow); top: -150px; right: -100px; }
.orb-2 { width: 280px; height: 280px; background: var(--teal-glow2); bottom: 60px; right: 40%; animation-delay: 4s; }
@keyframes float { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-28px) scale(1.04); } }

.hero-content { position: relative; z-index: 2; }

/* في الوضع الفاتح نضيف ظل خفيف خلف العنوان لتعزيز القراءة */
html.light .hero-title {
  text-shadow: 0 2px 16px rgba(13,26,42,0.18);
}
html.light .hero-subtitle {
  text-shadow: 0 1px 8px rgba(13,26,42,0.12);
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-glow); border: 1px solid rgba(15,168,120,0.3);
  border-radius: 50px; padding: 6px 16px;
  font-size: 11px; font-weight: 700; color: var(--teal-light);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 24px; animation: fadeUp 0.8s ease both;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  animation: pulse 2s ease-in-out infinite; flex-shrink: 0;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-title {
  font-size: clamp(40px, 5.5vw, 72px); font-weight: 900;
  line-height: 1.0; letter-spacing: -2.5px; color: var(--text-primary);
  margin-bottom: 16px; animation: fadeUp 0.8s 0.1s ease both;
}
.hero-title em { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; color: var(--teal); }

.hero-subtitle {
  font-size: clamp(15px, 1.6vw, 19px); font-weight: 300;
  color: var(--text-secondary); line-height: 1.75; max-width: 520px;
  margin-bottom: 36px; animation: fadeUp 0.8s 0.2s ease both;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  animation: fadeUp 0.8s 0.3s ease both;
}

/* ─── حاوية البطاقات ─── */
.hero-visual {
  position: relative; z-index: 2;
  display: flex; justify-content: center; align-items: center;
  animation: fadeUp 0.8s 0.2s ease both;
}
.hero-card-stack {
  position: relative;
  width: 310px; height: 380px;
  flex-shrink: 0;
  /* cursor يوضح للمستخدم أن البطاقات قابلة للضغط */
  cursor: pointer;
}

/* ─── بطاقة واحدة ───
   كل بطاقة لها حالتان:
     - افتراضية: position وzindex ورتيبة
     - "active" (يضيفها JS): تصبح في المقدمة مع border أخضر وglow
   ============================================================ */
.hcard {
  position: absolute;
  background: var(--hcard-bg);
  border: 1.5px solid var(--border);
  border-radius: 20px; padding: 24px; width: 260px;
  /* الانتقال الرئيسي — سريع كفاية ليبدو responsive */
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    z-index 0s 0s,
    border-color 0.3s,
    box-shadow 0.3s;
  user-select: none;
}

/* مواضع البطاقات الافتراضية */
.hcard-1 { top: 0;    right: 0;    transform: rotate(7deg);   z-index: 1; }
.hcard-2 { top: 50px; right: 30px; transform: rotate(-3deg);  z-index: 2; }
.hcard-3 { top: 25px; right: 58px; transform: rotate(1deg);   z-index: 3; }

/* البطاقة النشطة (الأمامية) — تُضاف بواسطة JS */
.hcard.active {
  z-index: 10 !important;
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 1px var(--teal), 0 8px 40px var(--hcard-glow);
}

/* hover خفيف على البطاقات غير النشطة — يلمّح للتفاعل */
.hero-card-stack:hover .hcard:not(.active) {
  filter: brightness(0.9);
}

/* Cards-hint: تحت الأزرار في العمود النصي على الموبايل، وتحت البطاقات على الديسكتوب */
.cards-hint {
  position: absolute;
  bottom: -34px; inset-inline: 0;
  text-align: center;
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  animation: fadeUp 1s 0.8s ease both;
}
html.light .cards-hint { color: rgba(61,90,120,0.7); }
.cards-hint::before { content: '☝️'; font-size: 13px; }

/* محتوى البطاقة */
.hcard-icon  { font-size: 28px; margin-bottom: 10px; }
.hcard-label {
  font-size: 10px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px;
}
.hcard-value { font-size: 20px; font-weight: 900; color: var(--text-primary); margin-bottom: 3px; }
.hcard-sub   { font-size: 12px; color: var(--teal); font-weight: 600; }
.hcard-bar      { height: 3px; background: var(--border); border-radius: 2px; margin-top: 14px; }
.hcard-bar-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(to left, var(--teal), var(--teal-light));
  animation: grow 2s 1s ease both;
}
@keyframes grow { from { width: 0; } to { width: 78%; } }

/* شريط الإحصائيات */
.stats-strip {
  position: absolute; bottom: 0; inset-inline: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  animation: fadeUp 0.8s 0.45s ease both;
}
.stat-item {
  padding: 24px var(--page-pad);
  border-inline-end: 1px solid var(--border);
  background: var(--bg-alt);
}
.stat-item:last-child { border-inline-end: none; }
.stat-num { font-size: clamp(22px, 3vw, 32px); font-weight: 900; color: var(--teal); line-height: 1; }
.stat-lbl { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }


/* ============================================================
   11. HOW IT WORKS
   ============================================================ */
.how-section { background: var(--bg-alt); }

.how-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start; margin-top: 56px;
}
.step {
  display: flex; gap: 20px; padding: 24px 0;
  border-bottom: 1px solid var(--border); cursor: pointer; transition: all 0.2s;
}
.step:last-child { border-bottom: none; }
.step:hover .step-num   { background: var(--teal); color: #06090d; }
.step:hover .step-title { color: var(--teal-light); }

.step-num {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900; color: var(--teal);
  flex-shrink: 0; transition: all 0.2s;
}
.step-title { font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 5px; transition: color 0.2s; }
.step-desc  { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

.how-visual {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 22px; padding: 32px; position: relative; overflow: hidden;
}
.how-visual::before {
  content: ''; position: absolute; top: -50px; inset-inline-end: -50px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--teal-glow), transparent 70%);
  pointer-events: none;
}
.compare-title  { font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; }
.compare-row    { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.compare-row:last-of-type { border-bottom: none; }
.compare-feature { color: var(--text-secondary); }
.compare-vals   { display: flex; gap: 20px; }
.val            { width: 64px; text-align: center; }
.val.yes        { color: var(--teal); font-weight: 700; }
.val.no         { color: var(--text-faint); }
.col-head       { font-size: 12px; font-weight: 700; }
.col-head.trusyt{ color: var(--teal); }
.col-head.other { color: var(--text-muted); }


/* ============================================================
   12. SERVICES
   ============================================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 56px;
}
.service-card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px;
  position: relative; overflow: hidden; cursor: pointer; transition: all 0.3s;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--teal-glow), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.service-card:hover                { border-color: rgba(15,168,120,0.4); transform: translateY(-4px); }
.service-card:hover::before        { opacity: 1; }
.service-card:hover .service-icon { background: var(--teal); color: #06090d; transform: scale(1.08); }

.service-icon {
  width: 48px; height: 48px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 13px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 18px; transition: all 0.3s; position: relative; z-index: 1;
}
.service-name  { font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; position: relative; z-index: 1; }
.service-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.7; position: relative; z-index: 1; }
.service-arrow {
  position: absolute; bottom: 24px; inset-inline-start: 24px;
  font-size: 16px; color: var(--teal);
  opacity: 0; transform: translateX(-8px); transition: all 0.3s;
}
[dir="rtl"] .service-arrow { transform: translateX(8px); }
.service-card:hover .service-arrow { opacity: 1; transform: translateX(0); }


/* ============================================================
   13. TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--bg-alt); }

.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 56px;
}
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; padding: 26px; transition: all 0.2s;
}
.testimonial-card:hover { border-color: rgba(15,168,120,0.3); }
.testimonial-card.featured {
  border-color: rgba(15,168,120,0.4);
  background: linear-gradient(135deg, var(--bg-card), var(--teal-glow2));
}
.stars              { color: var(--teal); font-size: 13px; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-text   { font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 18px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 11px; }
.author-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #06090d; flex-shrink: 0;
}
.author-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.author-role { font-size: 12px; color: var(--text-muted); margin-top: 2px; }


/* ============================================================
   14. CTA SECTION
   ============================================================ */
.cta-section { padding-inline: var(--page-pad); padding-bottom: var(--section-pad); padding-top: 0; }
.cta-inner {
  background: var(--bg-card); border: 1px solid rgba(15,168,120,0.22);
  border-radius: 24px; padding: 64px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; position: relative; overflow: hidden;
}
.cta-inner::before {
  content: ''; position: absolute; inset-inline-start: -80px; top: -80px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, var(--teal-glow), transparent 65%); pointer-events: none;
}
.cta-inner::after {
  content: ''; position: absolute; inset-inline-end: -60px; bottom: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, var(--teal-glow2), transparent 65%); pointer-events: none;
}
.cta-text  { position: relative; z-index: 1; }
.cta-title { font-size: clamp(28px, 3.5vw, 42px); font-weight: 900; letter-spacing: -1.5px; color: var(--text-primary); margin-bottom: 10px; }
.cta-title em { font-family: 'Playfair Display', serif; font-style: italic; color: var(--teal); }
.cta-sub   { font-size: 15px; color: var(--text-secondary); }
.cta-actions {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start; flex-shrink: 0;
}
.trust-note { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }


/* ============================================================
   15. FOOTER
   ============================================================ */
footer {
  background: var(--bg-alt); border-top: 1px solid var(--border);
  padding: 56px var(--page-pad) 32px;
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand img        { width: 54px; margin-bottom: 10px; transition: none; }
.footer-brand-name       { font-size: 18px; font-weight: 900; color: var(--text-primary); margin-bottom: 8px; }
.footer-brand-desc       { font-size: 13px; color: var(--text-muted); line-height: 1.7; max-width: 260px; }
.footer-col-title        { font-size: 12px; font-weight: 700; color: var(--text-primary); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 14px; }
.footer-links            { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a          { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover    { color: var(--teal); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 12px;
}
.footer-copy    { font-size: 12px; color: var(--text-faint); }
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer; transition: all 0.2s;
  color: var(--text-muted); text-decoration: none;
}
.social-btn:hover { background: var(--teal); border-color: var(--teal); color: #06090d; }


/* ============================================================
   16. FLOATING WIDGET
   ============================================================ */
.calc-widget {
  position: fixed; bottom: 28px; inset-inline-start: 28px; z-index: 99;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.calc-widget.show { opacity: 1; transform: translateY(0); }
.calc-widget.hide {
  opacity: 0; transform: translateY(16px) scale(0.95); pointer-events: none;
}
.calc-btn {
  background: var(--teal); color: #06090d;
  font-family: 'Cairo', sans-serif; font-size: 14px; font-weight: 700;
  padding: 13px 22px; border-radius: 50px; border: none;
  cursor: pointer; display: flex; align-items: center; gap: 7px;
  box-shadow: 0 8px 28px rgba(15,168,120,0.4); transition: all 0.2s; white-space: nowrap;
}
.calc-btn:hover { background: var(--teal-light); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(15,168,120,0.5); }


/* ============================================================
   17. SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }


/* ============================================================
   18. RESPONSIVE
   ============================================================ */

/* ── 18a. TABLET ≤ 1024px ── */
@media (max-width: 1024px) {
  :root { --page-pad: 32px; --section-pad: 76px; --nav-h: 64px; }
  .nav-links-wrap { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .nav-logo img { width: 38px; height: 38px; }
  .nav-brand { font-size: 16px; }
  .nav-brand-sub { font-size: 10px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-bottom: var(--section-pad); gap: 36px; }
  .hero-visual { display: none; }
  .hero-subtitle { max-width: 100%; }
  .stats-strip { position: static; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
  .stat-item:nth-child(2) { border-inline-end: none; }
  .how-grid { grid-template-columns: 1fr; gap: 44px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ── 18b. MOBILE ≤ 640px ── */
@media (max-width: 640px) {
  :root { --page-pad: 20px; --section-pad: 60px; --nav-h: 60px; }
  .nav-brand-sub { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 32px); text-align: center; }
  .hero-eyebrow { justify-content: center; }
  .hero-subtitle { margin-inline: auto; }
  .hero-actions { justify-content: center; flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; justify-content: center; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 18px 16px; }
  .stat-item:nth-child(odd) { border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(2)   { border-inline-end: none; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 36px 28px; gap: 24px; }
  .cta-actions { width: 100%; }
  .btn-large { width: 100%; justify-content: center; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { justify-content: center; text-align: center; }
  .lang-toggle .lang-label { display: none; }
  .lang-toggle { padding: 7px 10px; }
}

/* ── 18c. SMALL ≤ 380px ── */
@media (max-width: 380px) {
  :root { --page-pad: 16px; --section-pad: 48px; }
  .hero-title { letter-spacing: -1.5px; }
  .section-title { letter-spacing: -1px; }
  .step { gap: 14px; }
  .step-num { width: 38px; height: 38px; font-size: 14px; }
  .service-card { padding: 22px; }
  .stats-strip { grid-template-columns: 1fr; }
  .stat-item:nth-child(odd) { border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(2)   { border-inline-end: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child      { border-bottom: none; }
}
