/* ============================================================
   A2Clean — Bangalore's Premier Deep Cleaning Service
   Custom CSS (works alongside Tailwind CDN)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ── CSS Variables ── */
:root {
  --green: #22c55e;
  --green-dark: #15803d;
  --green-deeper: #14532d;
  --green-light: #dcfce7;
  --green-mid: #86efac;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --surface: #f8fafc;
  --white: #ffffff;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-green: 0 8px 32px rgba(34, 197, 94, 0.25);
}

/* ── Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ── Selection ── */
::selection {
  background: var(--green-light);
  color: var(--green-deeper);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: var(--surface);
}

::-webkit-scrollbar-thumb {
  background: var(--green-mid);
  border-radius: 99px;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(34, 197, 94, 0.10);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.nav-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-dark);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--text);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 99px;
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--green-dark);
  background: var(--green-light);
}

.nav-link.active {
  color: var(--green-dark);
  background: var(--green-light);
  font-weight: 600;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: var(--shadow-green);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(34, 197, 94, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--green-dark);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 99px;
  border: 2px solid var(--green);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
}

.btn-outline:hover {
  background: var(--green-light);
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: #fff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
  padding: 24px;
  overflow-y: auto;
}

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

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 40%, #bbf7d0 100%);
  position: relative;
  overflow: hidden;
  animation: hero-fade-in 1s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

/* ============================================================
   SLIDER
   ============================================================ */
.slider-wrap {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.slider-track>* {
  flex-shrink: 0;
}

.slider-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 16px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--green-mid);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.slider-dot.active {
  background: var(--green);
  width: 24px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 10;
  transition: all 0.2s;
}

.slider-btn:hover {
  background: var(--green);
  border-color: var(--green);
}

.slider-btn:hover svg {
  stroke: #fff;
}

.slider-btn.prev {
  left: 12px;
}

.slider-btn.next {
  right: 12px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

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

.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  text-decoration: none;
  color: var(--text);
  display: block;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-light) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-mid);
}

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.stars {
  color: #f59e0b;
  letter-spacing: 2px;
}

/* ============================================================
   ACCORDION (FAQ)
   ============================================================ */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question:hover {
  color: var(--green-dark);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background 0.3s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--green);
}

.faq-item.open .faq-icon svg {
  stroke: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}

.faq-answer.open {
  max-height: 400px;
}

.faq-answer-inner {
  padding-bottom: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.step-connector {
  position: absolute;
  top: 28px;
  left: calc(50% + 28px);
  right: calc(-50% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--green-mid), transparent);
}

/* ============================================================
   OFFER BANNER
   ============================================================ */
.offer-strip {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.offer-strip::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

/* ============================================================
   BOOKING FORM
   ============================================================ */
.form-field {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.time-pill {
  padding: 10px 16px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}

.time-pill:hover,
.time-pill.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.addon-toggle {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.addon-toggle:hover {
  border-color: var(--green-mid);
  background: var(--green-light);
}

.addon-toggle.selected {
  border-color: var(--green);
  background: var(--green-light);
}

/* ============================================================
   AREA CHIPS
   ============================================================ */
.area-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--green-light);
  color: var(--green-deep);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--green-mid);
  transition: all 0.2s;
  white-space: nowrap;
}

.area-chip:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

/* ============================================================
   CHECKLIST
   ============================================================ */
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--surface);
  font-size: 0.875rem;
}

.check-item:last-child {
  border-bottom: none;
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   PRICING TABLE
   ============================================================ */
.pricing-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  padding: 28px 24px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border-color: var(--green);
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 60%);
  box-shadow: var(--shadow-green);
}

.pricing-badge {
  position: absolute;
  top: 16px;
  right: -24px;
  background: var(--green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 32px;
  transform: rotate(45deg);
  letter-spacing: 1px;
}

.price-amount {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green-dark);
}

/* ============================================================
   FLOATING WA BUTTON
   ============================================================ */
.wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 800;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

.wa-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: wa-ring 2.5s ease infinite;
}

@keyframes wa-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 96px;
  right: 24px;
  background: var(--green-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 260px;
}

.toast.show {
  transform: translateX(0);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-link {
  font-size: 0.875rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  margin-bottom: 8px;
}

.footer-link:hover {
  color: var(--green-mid);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ============================================================
   MARQUEE / TICKER
   ============================================================ */
.marquee-wrap {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 25s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 768px) {
  .stat-number {
    font-size: 1.75rem;
  }

  .price-amount {
    font-size: 2rem;
  }

  .hero-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

@media (max-width: 480px) {
  .wa-fab {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }

  .toast {
    right: 16px;
  }
}

/* ============================================================
   PAGE TRANSITIONS
   ============================================================ */
.page-enter {
  animation: pageIn 0.4s ease forwards;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* ============================================================
   POPUP / MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.25);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}

/* ============================================================
   TAB COMPONENT
   ============================================================ */
.tab-bar {
  display: flex;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 4px;
  gap: 4px;
}

.tab-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}

.tab-btn.active {
  background: #fff;
  color: var(--green-dark);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   BADGE COMPONENT
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 0.3px;
}

.badge-green {
  background: var(--green-light);
  color: var(--green-dark);
}

.badge-amber {
  background: var(--accent-light);
  color: #92400e;
}

.badge-blue {
  background: #dbeafe;
  color: #1e40af;
}

/* ============================================================
   BEFORE/AFTER COMPARE
   ============================================================ */
.compare-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
}

.compare-before,
.compare-after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.compare-after {
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0s;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  z-index: 2;
}

.compare-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  border: 2px solid var(--green-mid);
}

/* ============================================================
   ACTIVE NAV STATE
   ============================================================ */
[data-page="home"] .nav-home,
[data-page="kitchen"] .nav-kitchen,
[data-page="bathroom"] .nav-bathroom {
  color: var(--green-dark);
  background: var(--green-light);
  font-weight: 600;
}