/* ==========================================================================
   CleanIn Tanger — Official Brand Design System
   Brand Identity: Cairo Typography, Deep Navy & Royal Blue, Cyan Accent
   Tokens & Components defined strictly according to the Brand Brief
   ========================================================================== */

/* ---------- 1. Design Tokens (Brand CSS Variables) ---------- */
:root {
  /* Brand Core Colors */
  --brand-blue: #1E3FAE;        /* Primary: buttons, links, accents on light */
  --brand-cyan: #00B4E6;        /* Accent: logo "In", icons, dark section CTAs */
  --brand-navy: #0B1E4D;        /* Dark backgrounds, headings alternative */
  --brand-white: #FFFFFF;       /* Pure white */

  /* Neutrals */
  --neutral-50: #F5F7FB;        /* Section background, card fills */
  --neutral-200: #E2E8F2;       /* Borders, dividers */
  --neutral-600: #5B6577;       /* Secondary text */
  --neutral-900: #222222;       /* Body text on light */

  /* States & Accents */
  --accent-yellow: #FFD600;     /* Attention only: badges with black text */
  --state-before: #DC2828;      /* "AVANT" labels only */
  --state-after: #14AA5A;       /* "APRÈS" labels, success states */

  /* Hover States */
  --brand-blue-hover: #16328c;
  --brand-cyan-hover: #009ec9;

  /* Typography */
  --font-primary: 'Cairo', 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  /* Border Radii */
  --radius-card: 12px;
  --radius-pill: 999px;

  /* Shadows (Subtle only) */
  --shadow-card: 0 8px 24px rgba(11, 30, 77, 0.08);
  --shadow-hover: 0 12px 32px rgba(11, 30, 77, 0.12);
  --shadow-float: 0 16px 40px rgba(11, 30, 77, 0.18);

  /* Spacing Grid (8px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Layout */
  --container-max: 1200px;
  --header-height: 76px;
}

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

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

body {
  font-family: var(--font-primary);
  color: var(--neutral-900);
  background-color: var(--brand-white);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

/* RTL (Moroccan Arabic / Darija) Support */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .section-badge,
[dir="rtl"] .eyebrow {
  letter-spacing: 0 !important; /* Never letter-space Arabic */
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

/* ---------- 3. Typography & Badges ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-primary);
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.15;
}

h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}

h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: var(--space-2);
}

h4 {
  font-size: 20px;
  font-weight: 700;
}

p.lead {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--neutral-600);
  line-height: 1.6;
}

.text-cyan {
  color: var(--brand-cyan) !important;
}

.text-blue {
  color: var(--brand-blue) !important;
}

.text-white {
  color: var(--brand-white) !important;
}

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

/* Badges & Labels (Pill Shape) */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.badge-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-cyan);
  background: rgba(0, 180, 230, 0.12);
  border: 1px solid rgba(0, 180, 230, 0.3);
  margin-bottom: var(--space-3);
}

.badge-eyebrow-light {
  color: var(--brand-blue);
  background: rgba(30, 63, 174, 0.08);
  border: 1px solid rgba(30, 63, 174, 0.2);
  margin-bottom: var(--space-3);
}

.badge-yellow {
  background: var(--accent-yellow);
  color: #000000;
  font-weight: 800;
}

.badge-before {
  background: var(--state-before);
  color: var(--brand-white);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
}

.badge-after {
  background: var(--state-after);
  color: var(--brand-white);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
}

/* Sections */
.section {
  padding: var(--space-16) 0;
}

@media (min-width: 992px) {
  .section {
    padding: var(--space-20) 0;
  }
}

.section-neutral {
  background-color: var(--neutral-50);
}

.section-navy {
  background-color: var(--brand-navy);
  color: var(--brand-white);
}

.section-navy h2, .section-navy h3, .section-navy h4 {
  color: var(--brand-white);
}

.section-navy p {
  color: rgba(255, 255, 255, 0.85);
}

.section-header {
  max-width: 720px;
  margin: 0 auto var(--space-12) auto;
  text-align: center;
}

/* ---------- 4. Buttons (Pill Shape) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

/* Primary Button (on light bg: bg --brand-blue, white text) */
.btn-primary {
  background-color: var(--brand-blue);
  color: var(--brand-white);
  box-shadow: 0 4px 14px rgba(30, 63, 174, 0.3);
}

.btn-primary:hover {
  background-color: var(--brand-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 63, 174, 0.4);
}

/* Primary Button on Dark Section (bg --brand-cyan, white text) */
.btn-cyan {
  background-color: var(--brand-cyan);
  color: var(--brand-white);
  box-shadow: 0 4px 14px rgba(0, 180, 230, 0.35);
}

.btn-cyan:hover {
  background-color: var(--brand-cyan-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 180, 230, 0.45);
}

/* Secondary Button (transparent, 2px --brand-blue border) */
.btn-secondary {
  background: transparent;
  color: var(--brand-blue);
  border: 2px solid var(--brand-blue);
}

.btn-secondary:hover {
  background: rgba(30, 63, 174, 0.06);
  transform: translateY(-2px);
}

/* Secondary Button on Dark */
.btn-secondary-white {
  background: transparent;
  color: var(--brand-white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--brand-white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: var(--brand-white);
}

.btn-whatsapp:hover {
  background-color: #1ebc59;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
}

/* ---------- 5. Header & Navigation ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--neutral-200);
  z-index: 1000;
  transform: translateY(0);
  transition: transform 0.28s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.header--scrolled {
  box-shadow: 0 4px 18px rgba(11, 30, 77, 0.08);
}

.header--hidden {
  transform: translateY(-100%);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Brand Wordmark */
.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}

.header-logo {
  height: 36px;
  width: auto;
  display: block;
}

.drawer-logo {
  height: 30px;
  width: auto;
  display: block;
}

.footer-logo {
  height: 34px;
  width: auto;
  display: block;
}

.cleanin-wordmark {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

/* On Light Backgrounds: "Clean" in brand-blue, "In" in brand-cyan */
.cleanin-wordmark .logo-clean {
  color: var(--brand-blue);
}

.cleanin-wordmark .logo-in {
  color: var(--brand-cyan);
}

/* On Dark Backgrounds: "Clean" in white, "In" in brand-cyan */
.section-navy .cleanin-wordmark .logo-clean,
.footer .cleanin-wordmark .logo-clean,
.hero .cleanin-wordmark .logo-clean {
  color: var(--brand-white);
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 18px;
  margin: 0 16px;
}

@media (min-width: 1100px) {
  .nav-menu {
    display: flex;
  }
}

@media (min-width: 1360px) {
  .nav-menu {
    gap: var(--space-6);
  }
}

.nav-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-navy);
  white-space: nowrap;
  transition: color 0.15s ease;
}

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

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

/* Language Toggle Button (Compact AR / FR Pill) */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 32px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--brand-navy);
  background: var(--neutral-50);
  border: 1.5px solid var(--neutral-200);
  transition: all 0.15s ease;
  flex-shrink: 0;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lang-toggle-btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: rgba(30, 63, 174, 0.06);
}

/* Mobile header: logo | Diagnostic + menu (AR lives in the drawer) */
@media (max-width: 640px) {
  :root {
    --header-height: 60px;
  }
  .header-container {
    padding: 0 16px;
    gap: 10px;
  }
  .header-logo {
    height: 30px;
  }
  .header .lang-toggle-btn {
    display: none;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions .btn-sm {
    padding: 8px 14px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .mobile-menu-toggle {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
}

@media (max-width: 360px) {
  .header-logo {
    height: 26px;
  }
  .header-actions .btn-sm {
    padding: 7px 10px;
    font-size: 12px;
  }
}

.drawer-lang-btn {
  height: 36px;
  min-width: 44px;
}

@media (prefers-reduced-motion: reduce) {
  .header,
  .mobile-action-bar {
    transition: none;
  }
}

.phone-quick-link {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-navy);
  padding: 8px 14px;
  background: var(--neutral-50);
  border-radius: var(--radius-pill);
  border: 1px solid var(--neutral-200);
}

@media (min-width: 768px) {
  .phone-quick-link {
    display: inline-flex;
    white-space: nowrap;
  }
}

/* Laptop: the nav needs the room, the phone number moves to the menu/footer */
@media (min-width: 1100px) and (max-width: 1359px) {
  .phone-quick-link {
    display: none;
  }
}

.header-actions .btn-sm {
  white-space: nowrap;
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 20px;
  color: var(--brand-navy);
  background: var(--neutral-50);
  border-radius: var(--radius-card);
  border: 1px solid var(--neutral-200);
}

@media (min-width: 1100px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--brand-white);
  box-shadow: -10px 0 30px rgba(11, 30, 77, 0.15);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  transition: right 0.25s ease;
}

[dir="rtl"] .mobile-nav-drawer {
  right: auto;
  left: -320px;
  transition: left 0.25s ease;
}

.mobile-nav-drawer.open {
  right: 0;
}

[dir="rtl"] .mobile-nav-drawer.open {
  left: 0;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 30, 77, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-6) 0;
}

.mobile-nav-links a {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-navy);
  padding: 8px 0;
  border-bottom: 1px solid var(--neutral-200);
}

/* ---------- 6. Hero Section (Navy Gradient + Job Image Overlay) ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 32px);
  padding-bottom: var(--space-16);
  background: linear-gradient(135deg, var(--brand-navy) 0%, #122B68 100%);
  color: var(--brand-white);
  overflow: hidden;
}

@media (min-width: 992px) {
  .hero {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: var(--space-20);
  }
}

/* Dark Navy Overlay ≈80% on Job Background */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: url('hero/hero-nettoyage-vapeur-1024.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.18; /* 82% dark navy dominance */
  mix-blend-mode: luminosity;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-12);
  }
}

.hero-content h1 {
  color: var(--brand-white);
  margin-bottom: var(--space-4);
}

.hero-content p.hero-desc {
  font-size: clamp(16px, 1.8vw, 19px);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--space-6);
  max-width: 560px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.hero-trust-item svg {
  color: var(--brand-cyan);
  flex-shrink: 0;
}

/* Quick Diagnostic Card in Hero (White Card) */
.hero-form-card {
  background: var(--brand-white);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  box-shadow: 0 16px 48px rgba(11, 30, 77, 0.25);
  border: 1px solid var(--neutral-200);
  color: var(--neutral-900);
}

.hero-form-card h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 4px;
}

.hero-form-card p.form-sub {
  font-size: 13px;
  color: var(--neutral-600);
  margin-bottom: var(--space-4);
}

/* Form Fields */
.form-field {
  margin-bottom: 12px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 4px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-family: var(--font-primary);
  color: var(--neutral-900);
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-card);
  outline: none;
  transition: all 0.15s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand-blue);
  background: var(--brand-white);
  box-shadow: 0 0 0 3px rgba(30, 63, 174, 0.12);
}

.form-field.has-error .form-input,
.form-field.has-error .form-select {
  border-color: var(--state-before);
  background: #fef2f2;
}

.form-field-msg {
  display: none;
  font-size: 12px;
  color: var(--state-before);
  font-weight: 700;
  margin-top: 3px;
}

.form-field.has-error .form-field-msg {
  display: block;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 480px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 800;
  border-radius: var(--radius-pill);
  margin-top: 6px;
}

.form-secure-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--neutral-600);
  margin-top: 8px;
  text-align: center;
}

/* Success Card */
.form-success-card {
  text-align: center;
  padding: 24px 10px;
}

.success-icon-wrap {
  width: 52px;
  height: 52px;
  background: rgba(20, 170, 90, 0.15);
  color: var(--state-after);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  border: 2px solid var(--state-after);
}

/* ---------- 7. Problem Section ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .problem-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.problem-card {
  background: var(--brand-white);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-blue);
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.problem-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(30, 63, 174, 0.08);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.problem-card h3 {
  font-size: 19px;
  margin-bottom: var(--space-2);
}

.problem-card p {
  font-size: 15px;
  color: var(--neutral-600);
  line-height: 1.55;
}

/* ---------- 8. Services Grid (8 B2B Services) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--brand-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-blue);
}

.service-img-wrap {
  height: 160px;
  position: relative;
  background: var(--neutral-200);
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-img {
  transform: scale(1.05);
}

.service-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-icon-pill {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--neutral-50);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  border: 1px solid var(--neutral-200);
}

.service-body h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--brand-navy);
}

.service-body p {
  font-size: 14px;
  color: var(--neutral-600);
  line-height: 1.5;
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.service-card-btn {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-card-btn:hover {
  color: var(--brand-blue-hover);
  text-decoration: underline;
}

/* ---------- 9. Method Section (5 Steps) ---------- */
.method-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .method-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .method-timeline {
    grid-template-columns: repeat(5, 1fr);
  }
}

.method-step {
  background: var(--brand-white);
  border-radius: var(--radius-card);
  padding: 22px 18px;
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-card);
}

.step-num-pill {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--brand-blue);
  color: var(--brand-white);
  font-weight: 900;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.method-step h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.method-step p {
  font-size: 13px;
  color: var(--neutral-600);
  line-height: 1.5;
}

/* ---------- 10. Interactive Before / After Slider ---------- */
.ba-section {
  background-color: var(--brand-navy);
  color: var(--brand-white);
}

.ba-slider-container {
  max-width: 900px;
  margin: 0 auto;
}

.ba-slider-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-float);
  border: 2px solid rgba(255, 255, 255, 0.2);
  user-select: none;
  -webkit-user-select: none;
}

/* Images in Before/After */
.ba-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-img-before-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}

.ba-img-before-wrap .ba-img {
  width: 100%;
  min-width: 900px;
  height: 100%;
}

@media (max-width: 900px) {
  .ba-img-before-wrap .ba-img {
    min-width: 100vw;
  }
}

/* Split Handle Divider */
.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--brand-white);
  z-index: 10;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.ba-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-cyan);
  border: 3px solid var(--brand-white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-white);
  font-size: 16px;
  font-weight: 900;
}

/* Badges "AVANT" (Red) & "APRÈS" (Green) */
.ba-tag-before {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 20;
}

.ba-tag-after {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
}

[dir="rtl"] .ba-tag-before {
  left: auto;
  right: 16px;
}

[dir="rtl"] .ba-tag-after {
  right: auto;
  left: 16px;
}

.ba-caption-text {
  text-align: center;
  margin-top: var(--space-4);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- 10b. Authentic CleanIn Proof Cards (Social Proof Gallery) ---------- */
.ba-real-showcase {
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ba-real-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.ba-real-heading {
  color: var(--brand-white);
  font-size: 28px;
  font-weight: 800;
  margin-top: 10px;
  margin-bottom: 8px;
}

.ba-real-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.6;
}

.ba-real-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

@media (min-width: 640px) {
  .ba-real-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ba-real-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ba-real-card {
  background: var(--brand-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--neutral-200);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.ba-real-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.ba-real-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: zoom-in;
  background-color: var(--brand-navy);
}

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

.ba-real-img-wrap:hover .ba-real-img {
  transform: scale(1.04);
}

.ba-zoom-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(11, 30, 77, 0.88);
  color: var(--brand-white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
  backdrop-filter: blur(4px);
  transition: background var(--transition-fast);
}

.ba-real-img-wrap:hover .ba-zoom-badge {
  background: var(--brand-blue);
}

.ba-card-badge-proof {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--state-after);
  color: var(--brand-white);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(20, 170, 90, 0.4);
  pointer-events: none;
  letter-spacing: 0.04em;
}

[dir="rtl"] .ba-zoom-badge {
  right: auto;
  left: 12px;
}

[dir="rtl"] .ba-card-badge-proof {
  left: auto;
  right: 12px;
}

.ba-real-body {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: var(--brand-white);
  color: var(--neutral-900);
}

.ba-real-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.ba-real-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.ba-real-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--neutral-600);
  margin-bottom: 16px;
  flex-grow: 1;
}

.ba-real-btn {
  width: 100%;
  justify-content: center;
  font-size: 13.5px;
  padding: 10px 16px;
}

/* ---------- 10c. Lightbox Modal Component ---------- */
.cleanin-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cleanin-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.cleanin-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 30, 77, 0.92);
  backdrop-filter: blur(6px);
}

.cleanin-modal-container {
  position: relative;
  background: var(--brand-white);
  border-radius: var(--radius-card);
  max-width: 680px;
  width: 100%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  z-index: 2;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cleanin-modal.open .cleanin-modal-container {
  transform: scale(1);
}

.cleanin-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(11, 30, 77, 0.7);
  color: var(--brand-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  transition: background var(--transition-fast);
}

.cleanin-modal-close:hover {
  background: var(--brand-navy);
}

[dir="rtl"] .cleanin-modal-close {
  right: auto;
  left: 12px;
}

.cleanin-modal-body {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.cleanin-modal-img {
  width: 100%;
  max-height: 64vh;
  object-fit: contain;
  background: #000;
  display: block;
}

.cleanin-modal-footer {
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--brand-white);
  border-top: 1px solid var(--neutral-200);
}

.cleanin-modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .cleanin-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .cleanin-modal-actions {
    flex-direction: column;
  }
}

/* ---------- 11. Why CleanIn Section ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.why-card {
  background: var(--brand-white);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-card);
}

.why-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  background: rgba(0, 180, 230, 0.12);
  color: var(--brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.why-card h4 {
  font-size: 17px;
  margin-bottom: 6px;
}

.why-card p {
  font-size: 14px;
  color: var(--neutral-600);
  line-height: 1.5;
}

/* ---------- 12. Maintenance Contracts (Contrats) ---------- */
.contracts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contracts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contract-card {
  background: var(--brand-white);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
}

.contract-card.featured {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-hover);
}

.contract-card.featured::before {
  content: 'Populaire';
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent-yellow);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

[dir="rtl"] .contract-card.featured::before {
  right: auto;
  left: 20px;
  content: 'الأكثر طلباً';
}

.contract-num {
  font-size: 38px;
  font-weight: 900;
  color: var(--brand-blue);
  line-height: 1;
  margin-bottom: 4px;
}

.contract-unit {
  font-size: 13px;
  font-weight: 700;
  color: var(--neutral-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.contract-card h4 {
  font-size: 19px;
  margin-bottom: 8px;
}

.contract-card p {
  font-size: 14px;
  color: var(--neutral-600);
  line-height: 1.5;
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

/* ---------- 13. CTA Band & Dedicated Form (Navy Section) ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-navy) 0%, #15337C 100%);
  color: var(--brand-white);
  padding: var(--space-16) 0;
}

.cta-band-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 992px) {
  .cta-band-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.cta-band-info h2 {
  color: var(--brand-white);
}

.cta-band-info p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  margin-bottom: var(--space-6);
}

.cta-band-form-card {
  background: var(--brand-white);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  color: var(--neutral-900);
  box-shadow: var(--shadow-float);
}

.cta-band-form-card h3 {
  color: var(--brand-navy);
}

/* ---------- 14. Footer (Navy) ---------- */
.footer {
  background: var(--brand-navy);
  color: var(--brand-white);
  padding: var(--space-16) 0 var(--space-6) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(2, 1fr);
  }
}

.footer p.footer-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: var(--space-3);
  margin-bottom: var(--space-4);
  max-width: 380px;
}

.footer-heading {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-white);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
  color: var(--brand-cyan);
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* ---------- 15. Floating Widgets & Mobile Bar ---------- */
.whatsapp-floating {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 990;
  display: none;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: var(--brand-white);
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  font-size: 14px;
  font-weight: 800;
  transition: all 0.2s ease;
}

[dir="rtl"] .whatsapp-floating {
  right: auto;
  left: 20px;
}

@media (min-width: 992px) {
  .whatsapp-floating {
    display: flex;
    bottom: 24px;
    right: 24px;
  }
  [dir="rtl"] .whatsapp-floating {
    right: auto;
    left: 24px;
  }
}

.whatsapp-floating:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--neutral-200);
  box-shadow: 0 -6px 20px rgba(11, 30, 77, 0.1);
  z-index: 980;
  transform: translateY(110%);
  transition: transform 0.3s ease;
}

.mobile-action-bar.is-visible {
  transform: translateY(0);
}

@media (min-width: 992px) {
  .mobile-action-bar {
    display: none;
  }
}

.mab-call {
  flex: 0 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  border-radius: 14px;
  border: 1.5px solid var(--neutral-200);
  background: var(--neutral-50);
  color: var(--brand-navy);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.mab-call:active {
  background: var(--neutral-200);
}

.mab-wa {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 14px;
  border-radius: 14px;
  background: #25D366;
  color: var(--brand-white);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
  text-align: start;
}

.mab-wa:active {
  background: #1ebc59;
}

.mab-wa-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.mab-wa-text strong {
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.mab-wa-text small {
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0.92;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .mab-wa-text strong {
    font-size: 13.5px;
  }
  .mab-wa-text small {
    display: none;
  }
}
