/* ============================================
   AQUAPURE — Apple Minimalist Design System
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --bg-primary: #FBFBFD;
  --text-primary: #1D1D1F;
  --text-secondary: #86868B;
  --border-color: #D2D2D7;
  --surface: #F5F5F7;
  --pool-blue: #00A1D6;
  --interactive-blue: #0071E3;
  --star-gold: #FF9500;

  /* Typography */
  --font-main: "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  /* Spacing */
  --section-padding: 120px;
  --section-padding-mobile: 80px;
  --content-max-width: 1024px;
  --nav-height: 52px;
  --card-gap: 16px;

  /* Borders */
  --border-thin: 0.5px solid var(--border-color);

  /* Radius */
  --radius-card-lg: 20px;
  --radius-card-md: 16px;
  --radius-input: 12px;
  --radius-pill: 980px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Utility --- */
.container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pool-blue);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.5;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--interactive-blue);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all 0.4s ease;
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: transparent;
  color: var(--interactive-blue);
  font-size: 17px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all 0.4s ease;
  gap: 4px;
}

.btn-ghost:hover {
  background: rgba(0, 113, 227, 0.06);
  gap: 8px;
}

.btn-ghost .arrow {
  transition: transform 0.4s ease;
  font-size: 18px;
}

.btn-ghost:hover .arrow {
  transform: translateX(3px);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.6s; }
.reveal[data-delay="7"] { transition-delay: 0.7s; }
.reveal[data-delay="8"] { transition-delay: 0.8s; }
.reveal[data-delay="9"] { transition-delay: 0.9s; }
.reveal[data-delay="10"] { transition-delay: 1.0s; }
.reveal[data-delay="12"] { transition-delay: 1.2s; }

/* ============================================
   1. NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  padding: 8px 20px;
  background: var(--text-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: background 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-cta:hover {
  background: #333;
}

.nav-phone {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.nav-phone:hover {
  color: var(--text-primary);
}

.nav-cta-mobile {
  display: none;
}

/* ============================================
   2. HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(251, 251, 253, 0.6) 0%,
    rgba(251, 251, 253, 0.3) 40%,
    rgba(251, 251, 253, 0.5) 70%,
    rgba(251, 251, 253, 0.95) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--pool-blue), var(--interactive-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 21px;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  z-index: 1;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--text-secondary);
  border-radius: 4px;
  animation: scrollDot 1.5s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0.3; }
}

/* ============================================
   HERO IMAGE SHOWCASE
   ============================================ */
.hero-image-section {
  padding: 0 24px 80px;
}

.hero-carousel-wrapper {
  position: relative;
  max-width: var(--content-max-width);
  margin: 0 auto;
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.12);
}

.hero-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hero-carousel::-webkit-scrollbar {
  display: none;
}

.hero-carousel img {
  flex: 0 0 100%;
  width: 100%;
  height: 560px;
  object-fit: cover;
  scroll-snap-align: start;
}

.hero-carousel-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .hero-carousel img {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .hero-carousel img {
    height: 320px;
  }
}

/* ============================================
   3. STATS RIBBON
   ============================================ */
.stats-ribbon {
  border-top: var(--border-thin);
  border-bottom: var(--border-thin);
  padding: 60px 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap);
  max-width: var(--content-max-width);
  margin: 0 auto;
  text-align: center;
}

.stat-item .stat-number {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-item .stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ============================================
   4. SERVICES
   ============================================ */
.services {
  padding: var(--section-padding) 24px;
}

.services-header {
  max-width: var(--content-max-width);
  margin: 0 auto 64px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap);
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius-card-lg);
  padding: 44px 36px;
  transition: all 0.4s ease;
}

.service-card:hover {
  transform: scale(1.01);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.service-card.featured {
  grid-column: span 2;
}

.service-icon {
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--interactive-blue);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 480px;
  flex: 1;
}

/* --- Inline Expandable Service Drawers --- */
.service-expanded-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.4s ease;
  width: 100%;
}

/* When the card receives the 'expanded' class via JS */
.service-card.expanded .service-expanded-content {
  opacity: 1;
  margin-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 24px;
  /* max-height is set dynamically via JS */
  transition: max-height 0.5s ease-in-out, opacity 0.4s ease-in-out 0.1s, margin-top 0.3s ease;
}

.service-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.service-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #1D1D1F;
  line-height: 1.5;
}

.service-checklist .check-icon {
  width: 18px;
  height: 18px;
  color: var(--interactive-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-expanded-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.service-expanded-footer .price-val {
  font-size: 16px;
  font-weight: 600;
  color: #1D1D1F;
}

.service-expanded-footer .btn-primary {
  padding: 12px 20px;
  font-size: 14px;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  color: var(--interactive-blue);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.learn-more .arrow {
  margin-left: 6px;
  transition: transform 0.2s ease;
}

.service-card:hover .learn-more .arrow {
  transform: translateY(2px);
}

.service-card.expanded:hover .learn-more .arrow {
  transform: translateY(-2px);
}

/* Featured service card — side-by-side with image */
.service-card.has-image {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0;
  overflow: hidden;
}

.service-card.has-image .service-card-text {
  flex: 1;
  padding: 44px 0 44px 36px;
}

.service-card.has-image .service-card-image {
  flex: 0 0 40%;
  align-self: stretch;
}

.service-card.has-image .service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Service card with top image */
.service-card.has-card-image {
  padding: 0;
  overflow: hidden;
}

.service-card-img-top {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service-card-img-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.service-card.has-card-image:hover .service-card-img-top img {
  transform: scale(1.03);
}

.service-card.has-card-image h3,
.service-card.has-card-image p,
.service-card.has-card-image .learn-more,
.service-card.has-card-image .service-expanded-content {
  padding: 0 36px;
}

.service-card.has-card-image h3 {
  padding-top: 28px;
}

.service-card.has-card-image .learn-more {
  padding-bottom: 36px;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--interactive-blue);
  transition: gap 0.4s ease;
}

.learn-more:hover {
  gap: 8px;
}

.learn-more .arrow {
  transition: transform 0.4s ease;
  font-size: 18px;
}

.learn-more:hover .arrow {
  transform: translateX(3px);
}

/* ============================================
   3.5 RESULTS (Before/After)
   ============================================ */
.results {
  padding: 160px 24px;
  background: var(--surface);
}

.results-header {
  text-align: center;
  margin-bottom: 64px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px; /* tight Apple-style gallery gap */
  max-width: var(--content-max-width);
  margin: 0 auto 48px;
}

.result-img-wrapper {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #E5E5EA; /* placeholder bg */
}

.result-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.result-img-wrapper:hover img {
  transform: scale(1.02);
}

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

.btn-link {
  font-size: 17px;
  font-weight: 600;
  color: var(--interactive-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s ease;
}

.btn-link:hover {
  gap: 8px;
}

.btn-link .arrow {
  transition: transform 0.3s ease;
}

.btn-link:hover .arrow {
  transform: translateX(3px);
}


/* ============================================
   5. PROCESS
   ============================================ */
.process {
  background: var(--text-primary);
  padding: var(--section-padding) 24px;
}

.process .eyebrow {
  color: var(--pool-blue);
}

.process .section-title {
  color: #fff;
}

.process .section-subtitle {
  color: rgba(255, 255, 255, 0.56);
}

.process-header {
  max-width: var(--content-max-width);
  margin: 0 auto 64px;
}

.process-steps {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding: 40px 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
}

.process-step:last-child {
  border-bottom: none;
}

.step-number {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--pool-blue), var(--interactive-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 80px;
}

.step-content h3 {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.step-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.56);
  line-height: 1.6;
  max-width: 480px;
}

/* ============================================
   6. PRICING
   ============================================ */
.pricing {
  padding: var(--section-padding) 24px;
}

.pricing-header {
  max-width: var(--content-max-width);
  margin: 0 auto 64px;
  text-align: center;
}

.pricing-header .section-subtitle {
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border-radius: var(--radius-card-lg);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
}

.pricing-card:hover {
  transform: scale(1.01);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.pricing-card.featured {
  background: var(--text-primary);
  border: 2px solid var(--pool-blue);
}

.pricing-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 161, 214, 0.12);
  color: var(--pool-blue);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  width: fit-content;
}

.pricing-card .plan-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pricing-card.featured .plan-name {
  color: #fff;
}

.pricing-card .plan-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.pricing-card.featured .plan-desc {
  color: rgba(255, 255, 255, 0.56);
}

.pricing-card .price {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pricing-card.featured .price {
  color: #fff;
}

.price-period {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-card.featured .price-period {
  color: rgba(255, 255, 255, 0.56);
}

.price-billing {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.pricing-card.featured .price-billing {
  color: rgba(255, 255, 255, 0.36);
}

.feature-list {
  flex: 1;
  margin-bottom: 32px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
}

.pricing-card.featured .feature-list li {
  color: rgba(255, 255, 255, 0.7);
}

.feature-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 161, 214, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-check svg {
  width: 12px;
  height: 12px;
  stroke: var(--pool-blue);
  fill: none;
  stroke-width: 2;
}

.pricing-card .btn-pricing {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 17px;
  font-weight: 600;
  transition: all 0.4s ease;
}

.pricing-card .btn-pricing.btn-outline {
  border: 1.5px solid var(--border-color);
  color: var(--interactive-blue);
  background: transparent;
}

.pricing-card .btn-pricing.btn-outline:hover {
  background: rgba(0, 113, 227, 0.06);
}

.pricing-card.featured .btn-pricing {
  background: #fff;
  color: var(--text-primary);
}

.pricing-card.featured .btn-pricing:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  max-width: var(--content-max-width);
  margin: 32px auto 0;
}

/* ============================================
   7. REVIEWS
   ============================================ */
.reviews {
  padding: 160px 24px;
  background: var(--surface); /* match results background */
}

.reviews-header {
  text-align: center;
  margin-bottom: 64px;
}

.reviews-header .section-subtitle {
  margin: 0 auto;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.review-card {
  background: #fff;
  border-radius: var(--radius-card-md);
  padding: 32px;
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.review-stars svg {
  width: 14px;
  height: 14px;
  fill: var(--star-gold);
}

.review-card blockquote {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.review-author {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.google-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 12px;
  padding: 6px 12px;
  background: #fff;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.google-rating:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.google-rating .star {
  color: var(--star-gold);
  font-size: 16px;
}

.google-rating .rating-text {
  color: var(--text-secondary);
}

/* ============================================
   8. FINAL CTA
   ============================================ */
.final-cta {
  padding: 160px 24px;
  text-align: center;
}

.cta-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1; /* 100% user requested */
  z-index: 1;
}

/* Add a dark overlay so white text remains readable over the bright video */
.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.final-cta h2 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.08;
}

.final-cta p {
  font-size: 19px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.final-cta.has-video-bg h2 {
  color: #fff;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.final-cta.has-video-bg p {
  color: #f2f2f7;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ============================================
   9. FOOTER
   ============================================ */
.footer {
  border-top: var(--border-thin);
  padding: 48px 24px 32px;
  text-align: center;
}

.footer-row {
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-row a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-row a:hover {
  color: var(--text-primary);
}

.footer-contact {
  font-weight: 500;
}

.footer-areas {
  font-weight: 400;
}

.footer-nav {
  font-weight: 500;
  margin-top: 24px; /* Give some breathing room */
}

.footer-nav a:hover {
  color: #1D1D1F;
}

.footer-emergency {
  font-weight: 500;
  color: #1D1D1F;
  margin-top: 24px;
}

.footer-emergency a {
  color: #1D1D1F;
}

.footer-legal {
  margin-top: 24px;
}

.footer-sep {
  color: var(--border-color);
}

/* ============================================
   MODAL — Lead Agent / Tech Agent
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #fff;
  border-radius: var(--radius-card-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
  position: relative;
  transform: scale(0.96) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px 0;
  margin-bottom: 24px;
}

.modal-back {
  background: none;
  border: none;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
  margin-left: -8px;
  visibility: hidden;
  transition: color 0.2s ease;
}

.modal-back:hover {
  color: var(--text-primary);
}

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

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--border-color);
}

.modal-close svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 2;
}

/* Modal Step */
.modal-step {
  display: none;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  padding: 0 40px 48px;
}

.modal-step.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.modal-step h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-step p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Modal options */
.modal-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-option {
  display: block;
  width: 100%;
  padding: 16px 20px;
  text-align: left;
  background: var(--surface);
  border-radius: var(--radius-input);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  border: 1.5px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.modal-option:hover {
  border-color: var(--interactive-blue);
  background: rgba(0, 113, 227, 0.04);
}

/* Modal input */
.modal-input-group {
  margin-bottom: 24px;
}

.modal-input {
  width: 100%;
  padding: 16px 20px;
  background: var(--surface);
  border: 1.5px solid transparent;
  border-radius: var(--radius-input);
  font-family: var(--font-main);
  font-size: 17px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s ease;
}

.modal-input:focus {
  border-color: var(--interactive-blue);
}

.modal-input::placeholder {
  color: var(--text-secondary);
}

.modal-btn-next {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--interactive-blue);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all 0.4s ease;
}

.modal-btn-next:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
}

/* Modal dots */
.modal-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  transition: background 0.3s ease;
}

.modal-dot.active {
  background: var(--text-primary);
}

/* Modal result */
.modal-result {
  text-align: center;
}

.modal-result .price-estimate {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-result .price-note {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* --- Tech Modal specifics --- */
.tech-conversation {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.tech-message {
  max-width: 85%;
}

.tech-message.agent {
  align-self: flex-start;
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.5;
}



/* Modal Error & Fallback */
.modal-error {
  color: #FF3B30;
  font-size: 13px;
  margin-top: 8px;
  text-align: left;
}

.modal-out-of-area {
  margin-top: 24px;
  padding-top: 24px;
  border-top: var(--border-thin);
}

.modal-out-of-area p {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 16px;
}

/* Modal Contact Form */
.modal-form {
  margin-top: 24px;
}

.modal-btn-submit {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--interactive-blue);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all 0.4s ease;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
}

.modal-btn-submit:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
}

/* Modal Confirmation */
.modal-confirmation {
  text-align: center;
  padding-top: 16px;
}

.checkmark-circle {
  width: 52px;
  height: 52px;
  margin: 0 auto 24px;
}

.checkmark-ring {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

.confirm-summary {
  background: var(--surface);
  border-radius: var(--radius-card-md);
  padding: 20px;
  margin-bottom: 32px;
  text-align: left;
}

.confirm-item {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.confirm-item:last-child {
  margin-bottom: 0;
}

.confirm-item strong {
  font-weight: 500;
  color: var(--text-primary);
  display: inline-block;
  width: 70px;
}

/* ============================================
   10. MOBILE STICKY BAR
   ============================================ */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #1D1D1F;
  border-top: 0.5px solid rgba(255,255,255,0.1);
  display: none; /* hidden on desktop */
  z-index: 99;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-sticky-bar.visible {
  opacity: 1;
  transform: translateY(0);
}

.sticky-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.sticky-btn.sticky-call {
  border-right: 0.5px solid rgba(255,255,255,0.1);
}

.sticky-btn.sticky-quote {
  color: var(--interactive-blue);
}


/* ============================================
   RESPONSIVE — Tablet
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
  }

  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: clamp(36px, 8vw, 56px);
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 12px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card.featured {
    grid-column: span 1;
  }

  .service-card.has-image {
    flex-direction: column;
    gap: 0;
  }

  .service-card.has-image .service-card-text {
    padding: 32px 24px;
  }

  .service-card.has-image .service-card-image {
    flex: none;
    height: 220px;
    order: -1;
  }

  .service-card-img-top {
    height: 160px;
  }

  .hero-image-container img {
    max-height: 320px;
  }

  .process-step {
    gap: 24px;
  }

  .step-number {
    font-size: 48px;
    min-width: 56px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    order: -1;
  }

  .results-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .results-grid {
    gap: 16px;
    padding: 0 16px;
  }

  .final-cta {
    padding: 100px 24px;
  }

  /* Modal fullscreen on mobile */
  .modal {
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    padding: 40px 24px;
  }
}

/* ============================================
   RESPONSIVE — Small Mobile
   ============================================ */
@media (max-width: 480px) {
  .hero {
    padding: 100px 20px 60px;
  }

  .service-card {
    padding: 32px 24px;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .process-step {
    flex-direction: column;
    gap: 16px;
  }
}

/* ============================================
   14. FLOATING AI AGENT BUTTON
   ============================================ */
.floating-agent-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background-color: #fff;
  border: 1px solid #E5E5EA;
  padding: 8px 20px 8px 8px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  z-index: 9999;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  text-decoration: none;
}

.floating-agent-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,0.16);
}

.agent-avatar-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
  background-color: #F2F2F7;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
}

.online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background-color: #34C759;
  border: 2px solid #fff;
  border-radius: 50%;
}

.agent-text {
  display: flex;
  flex-direction: column;
}

.agent-title {
  font-size: 15px;
  font-weight: 700;
  color: #1D1D1F;
}

.agent-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: #86868B;
}

@media (max-width: 768px) {
  .floating-agent-btn {
    bottom: 24px;
    right: 24px;
  }
}

@media (max-width: 480px) {
  .floating-agent-btn {
    bottom: 80px; /* Above the sticky call bar */
    right: 16px;
    padding: 6px 16px 6px 6px;
  }
  .agent-title {
    font-size: 14px;
  }
  .agent-avatar-wrapper {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}
