/* ==========================================================================
   HomeCure — master stylesheet
   Brand: navy + teal/cyan gradient derived from logo
   Supports LTR (English) and RTL (Arabic) via [dir] attribute on <html>
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand palette — derived from logo */
  --navy-950: #081146;
  --navy-900: #0B1A5E;
  --navy-800: #13237A;
  --navy-700: #1E3087;
  --navy-600: #2B3F9B;

  --teal-300: #6FE5D7;
  --teal-400: #3DD9C9;
  --teal-500: #2DC4B8;

  --cyan-400: #4DB9E8;
  --cyan-500: #26A9E0;
  --cyan-600: #1E8FC4;

  /* Neutrals */
  --ink-900: #0F1629;
  --ink-800: #1C243C;
  --ink-700: #3D4861;
  --ink-500: #6B7487;
  --ink-400: #8B93A7;
  --ink-300: #C9CFDB;
  --ink-200: #DEE3ED;
  --ink-100: #EEF2F8;

  --surface: #FFFFFF;
  --surface-alt: #F5F8FC;
  --surface-cool: #EDF3FA;
  --border: #E2E8F0;
  --border-strong: #CBD5E0;

  /* Signature gradient — the mark on the logo */
  --grad-brand: linear-gradient(135deg, #3DD9C9 0%, #26A9E0 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(61, 217, 201, 0.12) 0%, rgba(38, 169, 224, 0.12) 100%);
  --grad-navy: linear-gradient(160deg, #0B1A5E 0%, #13237A 50%, #1E3087 100%);
  --grad-navy-deep: linear-gradient(180deg, #081146 0%, #0B1A5E 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(11, 26, 94, 0.06);
  --shadow: 0 4px 16px rgba(11, 26, 94, 0.08);
  --shadow-md: 0 8px 28px rgba(11, 26, 94, 0.10);
  --shadow-lg: 0 20px 48px rgba(11, 26, 94, 0.14);
  --shadow-teal: 0 10px 30px rgba(45, 196, 184, 0.30);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Typography */
  --font-en: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --font-ar: 'Cairo', 'Tajawal', 'Segoe UI', system-ui, sans-serif;
  --font-body: var(--font-en);
  --font-display: var(--font-en);

  /* Layout */
  --container: 1200px;
  --container-lg: 1320px;
  --container-narrow: 880px;
  --header-h: 80px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html[lang="ar"] {
  --font-body: var(--font-ar);
  --font-display: var(--font-ar);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-800);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--teal-400); color: var(--navy-900); }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 700; }

/* Arabic tweaks — Cairo has slightly different optical sizing */
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 {
  letter-spacing: 0;
  line-height: 1.3;
}
html[lang="ar"] body { line-height: 1.75; }

p { color: var(--ink-700); }
.lead { font-size: 1.125rem; color: var(--ink-700); line-height: 1.7; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-600);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
}

html[lang="ar"] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.9375rem;
}

/* ---------- 4. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container-lg { max-width: var(--container-lg); margin-inline: auto; padding-inline: 24px; }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: 24px; }

section { padding-block: clamp(60px, 9vw, 120px); }
.section-sm { padding-block: clamp(48px, 6vw, 80px); }

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--r-pill);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--grad-brand);
  color: white;
  box-shadow: var(--shadow-teal);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(45, 196, 184, 0.38);
}

.btn-navy {
  background: var(--navy-800);
  color: white;
}
.btn-navy:hover { background: var(--navy-900); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  border: 1.5px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--navy-800); background: var(--surface-alt); }

.btn-light {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}
.btn-light:hover { background: rgba(255, 255, 255, 0.22); }

.btn-whatsapp {
  background: #25D366;
  color: white;
}
.btn-whatsapp:hover { background: #1EBE5A; transform: translateY(-2px); }

.btn-lg { padding: 1.1rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.65rem 1.1rem; font-size: 0.85rem; }

/* ---------- 6. Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 12px rgba(11, 26, 94, 0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  max-width: var(--container-lg);
  margin-inline: auto;
  padding-inline: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}
.nav-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}
.nav-brand-text { line-height: 1; display: flex; flex-direction: column; gap: 3px; }
.nav-brand-text small {
  font-weight: 500;
  font-size: 0.6875rem;
  color: var(--ink-500);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.55rem 0.95rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--navy-900);
  background: var(--surface-alt);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-700);
  transition: border-color 0.15s, background 0.15s;
}
.lang-toggle:hover { border-color: var(--navy-700); background: var(--surface-alt); }
.lang-toggle svg { width: 14px; height: 14px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
  border: 1px solid var(--border);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(15, 22, 41, 0.5);
  backdrop-filter: blur(6px);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu-panel {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: min(340px, 88%);
  height: 100%;
  background: var(--surface);
  padding: 1.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-out);
}
html[dir="rtl"] .mobile-menu-panel { transform: translateX(-100%); }
.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}
.mobile-menu a {
  padding: 0.9rem 0.75rem;
  border-radius: var(--r-sm);
  font-weight: 500;
  color: var(--ink-800);
  font-size: 1.0625rem;
}
.mobile-menu a:hover { background: var(--surface-alt); color: var(--navy-900); }
.mobile-menu .btn { margin-top: 0.5rem; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 8vw, 110px) 0 clamp(80px, 10vw, 140px);
  background: var(--grad-navy);
  color: white;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(61, 217, 201, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 80%, rgba(38, 169, 224, 0.22) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  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: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.hero h1 { color: white; }
.hero h1 .highlight {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { color: rgba(255, 255, 255, 0.78); font-size: 1.1875rem; margin-top: 1.25rem; max-width: 560px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2rem; }

.hero-badges {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 500;
}
.hero-badges > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-badges svg { width: 18px; height: 18px; color: var(--teal-400); }

/* Hero visual — decorative device mockup */
.hero-visual {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 460px;
  margin-inline: auto;
}
.hero-visual-card {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-xl);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.hero-visual-card::before {
  content: "";
  position: absolute;
  top: -30%;
  inset-inline-end: -30%;
  width: 340px;
  height: 340px;
  background: var(--grad-brand);
  filter: blur(60px);
  opacity: 0.35;
  border-radius: 50%;
}
.hero-visual-heart {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(38, 169, 224, 0.4);
  position: relative;
  z-index: 1;
}
.hero-visual-heart svg { color: white; width: 40px; height: 40px; }

.hero-visual-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: auto;
}
.hero-stat-item {
  padding: 1rem;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-stat-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  line-height: 1.1;
}
.hero-stat-item span {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
}

/* Decorative shield arc — echo of logo mark */
.hero-arc {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  pointer-events: none;
}
.hero-arc svg { width: 100%; height: 100%; }

/* ---------- 8. Trust bar ---------- */
.trust-bar {
  padding-block: clamp(32px, 4vw, 48px);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 720px) {
  .trust-bar-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad-brand-soft);
  color: var(--cyan-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-icon svg { width: 22px; height: 22px; }
.trust-item strong { display: block; font-size: 0.9375rem; color: var(--ink-900); font-weight: 700; }
.trust-item span { display: block; font-size: 0.8125rem; color: var(--ink-500); }

/* ---------- 9. Service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
html[dir="rtl"] .service-card::after { transform-origin: right; }
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::after { transform: scaleX(1); }

.service-card.featured {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: white;
  border-color: transparent;
}
.service-card.featured::before {
  content: "";
  position: absolute;
  top: -50%;
  inset-inline-end: -40%;
  width: 260px;
  height: 260px;
  background: var(--grad-brand);
  filter: blur(70px);
  opacity: 0.4;
  border-radius: 50%;
}
.service-card.featured h3 { color: white; position: relative; }
.service-card.featured p { color: rgba(255, 255, 255, 0.8); position: relative; }
.service-card.featured .service-link { color: var(--teal-400); position: relative; }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--grad-brand-soft);
  color: var(--cyan-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card.featured .service-icon {
  background: var(--grad-brand);
  color: white;
}

.service-card h3 { margin-bottom: 0; }
.service-card p { font-size: 0.9375rem; flex-grow: 1; }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cyan-600);
  margin-top: auto;
  transition: gap 0.2s;
}
.service-link:hover { gap: 0.55rem; }
.service-link svg { width: 16px; height: 16px; }
html[dir="rtl"] .service-link svg { transform: scaleX(-1); }

/* ---------- 10. How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.step-num {
  position: absolute;
  top: -22px;
  inset-inline-start: 1.75rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad-brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
  box-shadow: var(--shadow-teal);
}
.step h3 { font-size: 1.125rem; margin-top: 0.75rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.9375rem; }

/* ---------- 11. Feature grid (Why Choose Us) ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

.feature {
  padding: 1.75rem;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover { border-color: var(--teal-400); transform: translateY(-2px); }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--grad-brand-soft);
  color: var(--cyan-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.0625rem; }
.feature p { font-size: 0.9375rem; }

/* ---------- 12. Testimonials ---------- */
.testimonials-wrap { background: var(--surface-alt); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; } }

.testimonial {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 220px;
}
.testimonial-quote-mark {
  color: var(--teal-400);
  width: 32px;
  height: 32px;
}
.testimonial-text {
  font-size: 0.9375rem;
  color: var(--ink-700);
  line-height: 1.7;
  flex-grow: 1;
  font-style: italic;
}
.testimonial-meta { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-brand-soft);
  color: var(--cyan-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
}
.testimonial-name { font-weight: 600; color: var(--ink-900); font-size: 0.9375rem; }
.testimonial-role { font-size: 0.8125rem; color: var(--ink-500); }

.placeholder-note {
  background: #FFF9E5;
  border: 1px dashed #F0C97B;
  color: #8A6100;
  padding: 0.65rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.8125rem;
  margin-top: 1rem;
}

/* ---------- 13. CTA banner ---------- */
.cta-banner {
  position: relative;
  padding: clamp(48px, 6vw, 80px);
  border-radius: var(--r-xl);
  background: var(--grad-navy);
  color: white;
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(61, 217, 201, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(38, 169, 224, 0.25) 0%, transparent 50%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: white; margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255, 255, 255, 0.8); font-size: 1.0625rem; margin-inline: auto; max-width: 560px; }
.cta-banner-actions { display: flex; gap: 0.875rem; justify-content: center; margin-top: 1.75rem; flex-wrap: wrap; }

/* ---------- 14. Site footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.75);
  padding-block: 4rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: white;
  margin-bottom: 1rem;
}
.footer-brand img { width: 42px; height: 42px; border-radius: 10px; }

.footer-col h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
html[lang="ar"] .footer-col h4 { letter-spacing: 0; text-transform: none; font-size: 1rem; }

.footer-col p, .footer-col li { font-size: 0.9375rem; margin-bottom: 0.65rem; line-height: 1.6; }
.footer-col a { color: rgba(255, 255, 255, 0.75); transition: color 0.15s; }
.footer-col a:hover { color: var(--teal-400); }

.footer-social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.15s, border-color 0.15s;
}
.footer-social a:hover { background: var(--grad-brand); border-color: transparent; color: white; }
.footer-social svg { width: 18px; height: 18px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  font-size: 0.9375rem;
}
.footer-contact-item svg { width: 16px; height: 16px; color: var(--teal-400); margin-top: 4px; flex-shrink: 0; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.65); }
.footer-bottom a:hover { color: var(--teal-400); }

/* ---------- 15. Floating WhatsApp button ---------- */
.float-whatsapp {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: pulse-wa 2.4s ease-out infinite;
}
.float-whatsapp:hover { transform: scale(1.08); }
.float-whatsapp svg { width: 28px; height: 28px; }

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ---------- 16. Page header (internal pages) ---------- */
.page-header {
  padding: 3rem 0 2.5rem;
  background: var(--grad-navy);
  color: white;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(61, 217, 201, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(38, 169, 224, 0.18) 0%, transparent 50%);
}
.page-header > * { position: relative; z-index: 1; }
.page-header h1 { color: white; margin-bottom: 0.5rem; }
.page-header p { color: rgba(255, 255, 255, 0.78); font-size: 1.0625rem; max-width: 640px; }

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.75); }
.breadcrumb a:hover { color: var(--teal-400); }
.breadcrumb-sep { color: rgba(255, 255, 255, 0.35); }

/* ---------- 17. Forms ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-800);
}

.form-input, .form-select, .form-textarea {
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 0.9375rem;
  color: var(--ink-900);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.15);
}
.form-textarea { min-height: 120px; resize: vertical; font-family: inherit; }

.form-submit { width: 100%; margin-top: 0.5rem; }
.form-note {
  font-size: 0.8125rem;
  color: var(--ink-500);
  margin-top: 0.75rem;
  text-align: center;
}

/* ---------- 18. Service detail page ---------- */
.service-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}
@media (max-width: 900px) { .service-detail-grid { grid-template-columns: 1fr; } }

.service-detail-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.service-detail-content p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.service-detail-content ul {
  list-style: none;
  margin-bottom: 1.5rem;
}
.service-detail-content ul li {
  position: relative;
  padding-inline-start: 1.75rem;
  margin-bottom: 0.6rem;
  color: var(--ink-700);
  font-size: 0.9375rem;
}
.service-detail-content ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--grad-brand);
}

.service-detail-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
}
.service-detail-aside h3 { font-size: 1.125rem; margin-bottom: 1rem; }
.service-detail-aside .btn { width: 100%; margin-bottom: 0.5rem; }
.aside-info { font-size: 0.875rem; color: var(--ink-500); margin-top: 1rem; }

/* ---------- 19. Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy-800), var(--cyan-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8125rem;
}
.blog-card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex-grow: 1; }
.blog-card-meta { font-size: 0.8125rem; color: var(--ink-500); }
.blog-card h3 { font-size: 1.125rem; }

.blog-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--surface-alt);
  border-radius: var(--r-lg);
  border: 1px dashed var(--border-strong);
  max-width: 640px;
  margin: 2rem auto;
}
.blog-empty h3 { margin-bottom: 0.5rem; }

/* ---------- 20. Map embed ---------- */
.map-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
  box-shadow: var(--shadow-sm);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 21. Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.hidden { display: none !important; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- 22. RTL adjustments ---------- */
html[dir="rtl"] body { text-align: right; }

/* Flip arrow icons in RTL */
html[dir="rtl"] .service-link svg,
html[dir="rtl"] .btn svg.arrow-icon { transform: scaleX(-1); }

/* Numerics should remain LTR for clarity (phone numbers etc.) */
.num-ltr { direction: ltr; display: inline-block; unicode-bidi: embed; }

/* Grid reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
