/* ==========================================================================
   Ideal Cleaning Dubai — Premium "Apple-Style" Landing Page
   Aesthetic: Clean, Elegant, High-Performance, Mobile-First
   ========================================================================== */

/* ─── Variables ─── */
:root {
  --primary: #00a5d2;
  --primary-dark: #0089af;
  --primary-glow: rgba(0, 165, 210, 0.35);
  --accent: #25d366;
  --accent-dark: #1ebe57;
  --red: #ff453a;
  --gold: #fbbf24;
  --bg: #ffffff;
  --bg-alt: #f5f5f7; /* Apple's off-white ground */
  --surface: #ffffff;
  --text: #1d1d1f; /* Apple's text charcoal */
  --text-light: #86868b;
  --border: rgba(0, 0, 0, 0.08);
  --glass: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1200px;
}

/* ─── Reset & Fixes ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { 
  width: 100%; 
  overflow-x: hidden; /* Prevent horizontal slide */ 
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }

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

/* ─── Typography ─── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.gradient-text {
  background: linear-gradient(135deg, var(--primary), #5ac8fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons (Apple Style) ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}
.btn--sm { padding: 10px 24px; font-size: 0.9rem; }
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }
.btn--xl { padding: 20px 42px; font-size: 1.15rem; }

.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px var(--primary-glow); }
.btn--primary:hover { background: var(--primary-dark); transform: scale(1.02); }

.btn--wa { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25); }
.btn--wa:hover { background: var(--accent-dark); transform: scale(1.02); }

.btn--white { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn--ghost:hover { border-color: var(--text-light); background: rgba(0,0,0,0.02); }

.btn--pulse { animation: pulse-simple 2s infinite; }
@keyframes pulse-simple {
  0% { transform: scale(1); box-shadow: 0 0 0 0 var(--primary-glow); }
  50% { transform: scale(1.03); box-shadow: 0 0 0 15px transparent; }
  100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
}

/* ─── Urgency Topbar ─── */
.topbar {
  background: #1d1d1f;
  color: #fff;
  font-size: 0.82rem;
  padding: 10px 0;
  z-index: 1000;
  position: relative;
  font-weight: 500;
}
.topbar__in { display: flex; align-items: center; justify-content: center; gap: 12px; }
.topbar__dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; animation: flash 1s infinite alternate; }
@keyframes flash { from { opacity: 1; } to { opacity: 0.4; } }
.topbar__cta { color: var(--gold); font-weight: 700; border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* ─── Sticky Nav ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  height: 72px;
  display: flex;
  align-items: center;
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; transition: var(--transition); }
.nav__logo img { height: 40px; }
.nav__links { display: none; gap: 32px; font-weight: 500; font-size: 0.95rem; }
.nav__links a:hover { color: var(--primary); }
.nav__actions { display: none; gap: 12px; }

@media(min-width: 992px) {
  .nav__links, .nav__actions { display: flex; }
}

/* ─── Hero Section ─── */
.hero {
  position: relative;
  padding: 120px 0;
  background: #0b1a2b; /* Dark Navy Base */
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.hero-image-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-spotless-living-room.jpg.webp') no-repeat center center / cover;
  opacity: 0.3;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(11, 26, 43, 0.5) 20%, rgba(11, 26, 43, 0.98) 95%);
  z-index: 2;
}
.hero__in { position: relative; z-index: 10; max-width: 900px; margin: 0 auto; }

.fomo-pill--red {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.2);
  padding: 10px 20px;
  border-radius: 100px;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  animation: fomo-pulse 2s infinite;
}
.fomo-pill--red .fomo-dot { width: 8px; height: 8px; background: #ff3b30; border-radius: 50%; box-shadow: 0 0 10px rgba(255, 59, 48, 0.5); }
.fomo-pill--red span { color: #ff3b30; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }

@keyframes fomo-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.hero__h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
  line-height:1;
}
.hero__sub {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 48px;
  line-height: 1.6;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.hero__actions { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
@media(min-width: 576px) { .hero__actions { flex-direction: row; justify-content: center; } }

.hero__trust-signals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  opacity: 0.8;
}
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 500; }

/* ─── Trust Bar community marquee ─── */
.trust-bar { 
  background: var(--bg-alt); 
  padding: 32px 0; 
  border-bottom: 1px solid var(--border); 
  overflow: hidden; 
  position: relative;
}
.trust-bar__label { 
  text-align: center; 
  font-size: 0.75rem; 
  font-weight: 700; 
  color: var(--text-light); 
  text-transform: uppercase; 
  letter-spacing: 0.12em; 
  margin-bottom: 20px; 
}
.trust-bar__scroll { 
  overflow: hidden; 
  position: relative; 
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.trust-bar__track { 
  display: flex; 
  gap: 60px; 
  animation: scrollTrack 35s linear infinite; 
  white-space: nowrap; 
  will-change: transform;
}
.trust-bar__track:hover { animation-play-state: paused; }
.trust-bar__track span { 
  font-weight: 700; 
  color: var(--text); 
  opacity: 0.45; 
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: opacity 0.3s ease;
}
.trust-bar__track span:hover { opacity: 0.9; }

/* ─── Trust Signals Grid (Icons) ─── */
.trust-signals-grid { padding: 40px 0; background: #fff; }
.ts-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.ts-item { 
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px; 
  font-weight: 700; 
  font-size: 1rem; 
  color: var(--text); 
  background: var(--bg-alt);
  border-radius: var(--radius-full);
}
.ts-icon { font-size: 1.25rem; }

/* ─── 20% Offer Section (Prominent Banner) ─── */
.section--offers { background: #fff; padding: 100px 0; overflow: hidden; }
.offer-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #5ac8fa 100%);
  border-radius: 24px;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 50px rgba(0, 165, 210, 0.25);
  max-width: 1000px;
  margin: 0 auto;
}
@media(max-width: 768px) {
  .offer-banner { 
    padding: 60px 20px; 
    border-radius: 16px; 
    margin: 0 auto; 
    width: calc(100% - 32px);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .offer-banner .btn--pulse { 
    width: 100%; 
    max-width: 320px; 
    box-sizing: border-box; 
    margin: 0 auto;
    display: inline-flex;
    justify-content: center;
  }
}
.offer-banner h2 { font-size: clamp(2rem, 5vw, 3.5rem); color: #fff; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.offer-banner p { font-size: 1.25rem; color: rgba(255, 255, 255, 0.95); margin-bottom: 40px; }
.offer-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

/* ─── Sections General ─── */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; margin-bottom: 64px; }
.chip { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); background: rgba(0, 165, 210, 0.08); padding: 8px 20px; border-radius: var(--radius-full); margin-bottom: 20px; }
.section__title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 20px; color: var(--text); }
.section__desc { color: var(--text-light); font-size: 1.15rem; max-width: 640px; margin: 0 auto; line-height: 1.6; }

/* ─── Stats Grid ─── */
.stats-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 1px; 
  background: var(--border); 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  overflow: hidden; 
  margin-top: 60px; 
  width: 100%; 
}

@media(max-width: 992px) { 
  .stats-grid { grid-template-columns: repeat(2, 1fr); } 
}

/* ─── Stats Marquee (Mobile Only) ─── */
.stats-marquee-wrap {
  display: none; /* hidden on desktop */
}

@media(max-width: 768px) {
  /* Hide the regular grid on mobile */
  .stats-grid { display: none; }

  /* Show the auto-scroll marquee */
  .stats-marquee-wrap {
    display: block;
    overflow: hidden;
    margin-top: 40px;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  }

  .stats-marquee-track {
    display: flex;
    gap: 20px;
    animation: statsScroll 18s linear infinite;
    will-change: transform;
    width: max-content;
  }

  @keyframes statsScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  .stat-card-m,
  .stat-card-m .stat-value,
  .stat-card-m .stat-label { display: none; } /* Remove old boxed card styles */

  /* Plain text items — matches trust-bar style */
  .stat-m-item {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    letter-spacing: 0.02em;
  }
  .stat-m-item strong {
    color: var(--primary);
    font-weight: 800;
  }
  .stat-m-dot {
    font-size: 1.2rem;
    color: var(--text-light);
    opacity: 0.4;
    flex-shrink: 0;
  }
}

/* Desktop stat cards (unchanged) */
.stat-card { background: #fff; padding: 40px 20px; text-align: center; width: 100%; box-sizing: border-box; }
.stat-value { font-size: 2.8rem; font-weight: 800; color: var(--text); margin-bottom: 8px; display: block; }
.stat-label { font-size: 0.85rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; }

/* ─── Service Grid ─── */
.grid--3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.card { background: #fff; border-radius: var(--radius); padding: 40px; transition: var(--transition); border: 1px solid var(--border); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__img-box { margin: -40px -40px 30px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; height: 220px; }
.card__img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card__img-box img { transform: scale(1.08); }
.card h3 { font-size: 1.5rem; margin-bottom: 16px; color: var(--text); }
.card p { color: var(--text-light); font-size: 1.05rem; line-height: 1.6; margin-bottom: 28px; }
.card__cta { font-weight: 700; color: var(--primary); font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }

/* ─── Before/After Sliders ─── */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; margin-top: 60px; }
@media(max-width: 480px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-container { position: relative; width: 100%; height: 320px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); cursor: ew-resize; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-after { z-index: 2; width: 50%; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: #fff; z-index: 3; transform: translateX(-50%); box-shadow: 0 0 10px rgba(0,0,0,0.3); }
.ba-handle__circle { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; background: #fff; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 4px 12px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--primary); font-weight: 800; }
.ba-label { position: absolute; bottom: 20px; z-index: 4; background: rgba(0,0,0,0.6); color: #fff; padding: 4px 12px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; pointer-events: none; }
.ba-label--before { left: 20px; }
.ba-label--after { right: 20px; }

/* ─── FAQ Accordion ─── */
.faq-list { max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; pointer-events: auto; }
.faq-item__q { width: 100%; padding: 24px 32px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 1.1rem; text-align: left; background: #fff; cursor: pointer; }
.faq-item__q span { font-size: 1.25rem; font-weight: 300; color: var(--primary); transition: transform 0.3s ease; pointer-events: none; }
.faq-item.active .faq-item__q span { transform: rotate(45deg); }
.faq-item__a { 
  max-height: 0; 
  overflow: hidden; 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  padding: 0 32px; 
  color: var(--text-light); 
  font-size: 1.05rem; 
  line-height: 1.7; 
}
.faq-item.active .faq-item__a { max-height: 500px; padding-bottom: 24px; }

/* ─── Sticky Mobile Bar (Split 50/50) ─── */
.mob-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 60px;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
@media(min-width: 768px) { .mob-bar { display: none; } }
.mob-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}
.mob-bar__btn--call { background: var(--primary); }
.mob-bar__btn--wa { background: var(--accent); }

/* ─── Final CTA ─── */
.cta-final { background: #0b1a2b; color: #fff; padding: 120px 0; text-align: center; }
.cta-final__in { max-width: 800px; margin: 0 auto; }
.cta-final h2 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 24px; }
.cta-final p { font-size: 1.25rem; color: rgba(255,255,255,0.7); margin-bottom: 48px; }
.cta-final__btns { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
@media(min-width: 576px) { .cta-final__btns { flex-direction: row; } }

/* ─── Desktop Floating CTAs ─── */
.floating-ctas {
  position: fixed;
  right: 30px;
  bottom: 30px;
  display: none;
  flex-direction: column;
  gap: 15px;
  z-index: 1200;
}
@media(min-width: 769px) { .floating-ctas { display: flex; } }

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: var(--transition);
  color: #fff;
}
.float-btn:hover { transform: scale(1.1); }
.float-btn--wa { background: var(--accent); }
.float-btn--call { background: var(--primary); }

/* ─── Urgency Bar Above Footer (DELETED) ─── */

/* ─── FOMO Toast Notification ─── */
.fomo-toast {
  position: fixed;
  left: 20px;
  bottom: 80px; /* Offset for mobile bar */
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1300;
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: 300px;
}
@media(min-width: 769px) { .fomo-toast { bottom: 20px; } }
.fomo-toast.show { transform: translateY(0); }
.fomo-toast__img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.fomo-toast__text { font-size: 0.85rem; line-height: 1.4; color: var(--text); }
.fomo-toast__time { font-size: 0.75rem; color: var(--text-light); display: block; margin-top: 2px; }

/* ─── Animations ─── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Fix mobile section padding */
@media(max-width: 768px) {
  .section { padding: 60px 0; }
  .container { padding: 0 20px; }
  .grid--3 { gap: 20px; }
}

@keyframes scrollTrack { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Mobile Polish */
@media(max-width: 480px) {
  .hero { padding: 60px 0 80px; }
  .hero__h1 { font-size: 2.1rem; }
  .card { padding: 30px 20px; }
  .offer-banner { padding: 60px 20px; border-radius: 0; } /* Edge to edge for better mobile fit */
  .offer-banner h2 { font-size: 1.7rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .fomo-pill { display: none; } /* Hide complicated pills on tiny screens to save space */
}
