/* Crestline Cleaners — custom styles */

:root {
  --navy: #004aad;
  --navy-light: #003580;
  --navy-dark: #002d66;
  --brand: #00b050;
  --brand-light: #33c96e;
  --white: #ffffff;
  --surface: #ffffff;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body:not(.touch-device) {
  cursor: none;
}

body.touch-device {
  cursor: auto;
}

body.touch-device .cursor-dot,
body.touch-device .cursor-ring {
  display: none;
}

/* Custom cursor */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--brand);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(0, 176, 80, 0.5);
  background: transparent;
}

.cursor-ring.hover {
  width: 56px;
  height: 56px;
  border-color: var(--brand);
  background: rgba(0, 176, 80, 0.08);
}

/* Grain overlay */
.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.85s var(--ease-out-expo),
    transform 0.85s var(--ease-out-expo);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(-36px);
}

.reveal-left.revealed {
  transform: translateX(0);
}

.reveal-right {
  transform: translateX(36px);
}

.reveal-right.revealed {
  transform: translateX(0);
}

.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; }

/* Brand underline accent */
.brand-line {
  position: relative;
  display: inline-block;
}

.brand-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-line:hover::after,
.brand-line.active::after {
  width: 100%;
}

/* Button hover lift */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 176, 80, 0.25);
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

/* Card hover */
.service-card,
.pricing-card,
.pricing-tier,
.testimonial-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.3s ease;
}

.service-card:hover,
.pricing-card:hover,
.pricing-tier:not(.pricing-tier--featured):hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10, 22, 40, 0.08);
}

.pricing-tier--featured:hover {
  transform: translateY(calc(-0.75rem - 4px));
}

/* Pricing checklists */
.pricing-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-checklist li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.45;
}

.pricing-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 2px rgba(0, 176, 80, 0.2);
}

.pricing-checklist--light li::before {
  background: var(--brand);
  box-shadow: 0 0 0 2px rgba(0, 176, 80, 0.35);
}

/* Hero — full viewport */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh;
}

.hero-glow {
  background:
    radial-gradient(ellipse 70% 55% at 75% 15%, rgba(0, 176, 80, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 10% 85%, rgba(0, 176, 80, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(0, 61, 128, 0.75) 0%, transparent 70%);
  animation: hero-glow-breathe 10s ease-in-out infinite;
}

@keyframes hero-glow-breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.04); }
}

.hero-section::after {
  content: "";
  position: absolute;
  width: min(42vw, 520px);
  height: min(42vw, 520px);
  right: -8%;
  top: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 176, 80, 0.12) 0%, transparent 68%);
  pointer-events: none;
  animation: orb-drift 22s ease-in-out infinite;
}

.hero-section::before {
  content: "";
  position: absolute;
  width: min(36vw, 400px);
  height: min(36vw, 400px);
  left: -6%;
  bottom: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 74, 173, 0.35) 0%, transparent 70%);
  pointer-events: none;
  animation: orb-drift-alt 26s ease-in-out infinite;
}

/* Hero load stagger — no blur (keeps text sharp) */
.hero-load-in {
  opacity: 0;
  transform: translateY(28px);
  filter: none;
  transition:
    opacity 0.9s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo);
}

#hero.hero-loaded .hero-load-in,
.no-js #hero .hero-load-in {
  opacity: 1;
  transform: translateY(0);
  filter: none;
}

.hero-stagger-0 { transition-delay: 0.1s; }
.hero-stagger-1 { transition-delay: 0.28s; }
.hero-stagger-2 { transition-delay: 0.46s; }
.hero-stagger-3 { transition-delay: 0.64s; }
.hero-stagger-4 { transition-delay: 0.82s; }

/* Outlined hero button */
.btn-outline {
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 176, 80, 0.12);
}

/* Floating bubbles */
.hero-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 176, 80, 0.25), rgba(0, 176, 80, 0.04));
  border: 1px solid rgba(0, 176, 80, 0.15);
  animation: hero-float linear infinite;
  will-change: transform;
}

.hero-bubble--soft {
  background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.08), transparent);
  border-color: rgba(255, 255, 255, 0.06);
}

/* Sparkle particles */
.hero-sparkle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 6px 1px rgba(0, 176, 80, 0.6);
  animation: hero-sparkle ease-in-out infinite;
}

.hero-sparkle--lg {
  width: 4px;
  height: 4px;
  box-shadow: 0 0 10px 2px rgba(0, 176, 80, 0.5);
}

@keyframes hero-float {
  0% {
    transform: translateY(100vh) translateX(0) scale(0.6);
    opacity: 0;
  }
  8% {
    opacity: 0.7;
  }
  92% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-15vh) translateX(var(--drift, 20px)) scale(1);
    opacity: 0;
  }
}

@keyframes hero-sparkle {
  0%, 100% {
    opacity: 0.15;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bubble,
  .hero-sparkle {
    animation: none;
    opacity: 0.2;
  }

  #hero .hero-load-in {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* Hero gradient mesh (inner pages) */
.hero-mesh {
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(0, 176, 80, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(0, 176, 80, 0.06) 0%, transparent 45%),
    var(--navy);
}

/* Step connector line */
.step-line {
  background: linear-gradient(90deg, var(--brand) 0%, rgba(0, 176, 80, 0.2) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.4s var(--ease-out-expo);
}

[data-reveal-stagger].is-visible .step-line {
  transform: scaleX(1);
}

/* Form focus */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 176, 80, 0.2);
}

/* Quote section */
.quote-section {
  overflow: hidden;
}

.quote-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.quote-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(10, 22, 40, 0.12);
  background: rgba(248, 246, 241, 0.6);
  color: var(--navy);
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.quote-input:hover {
  border-color: rgba(10, 22, 40, 0.2);
}

.quote-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 176, 80, 0.22);
  background: var(--white);
}

.quote-input.is-invalid {
  border-color: #c45c5c;
  box-shadow: 0 0 0 3px rgba(196, 92, 92, 0.15);
}

.quote-input.is-invalid:focus {
  border-color: #c45c5c;
  box-shadow: 0 0 0 3px rgba(196, 92, 92, 0.2);
}

.quote-field .form-error {
  display: block;
  min-height: 1.25rem;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: #b84a4a;
  line-height: 1.3;
}

.quote-field .form-error:empty {
  min-height: 0;
  margin-top: 0;
}

.quote-success {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
  padding: 1rem 0;
  animation: quote-success-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.quote-success.hidden {
  display: none;
}

.quote-form.is-hidden {
  display: none;
}

@keyframes quote-success-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Site header — transparent → solid on scroll */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition:
    background-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    backdrop-filter 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.header-scrolled,
body:not([data-page="home"]) .site-header {
  background: rgba(0, 74, 173, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}

.nav-logo__img {
  display: block;
  max-height: 2.75rem;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-logo:hover .nav-logo__img {
  transform: scale(1.02);
}

.footer-logo__img {
  display: block;
  max-height: 2.5rem;
  width: auto;
  background: var(--white);
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
}

.nav-link.is-active,
.mobile-nav-link.is-active {
  color: var(--brand) !important;
}

/* Mobile nav — full-screen slide-in */
.nav-open {
  overflow: hidden;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  visibility: hidden;
}

.mobile-menu.open-menu {
  pointer-events: auto;
  visibility: visible;
}

.mobile-menu__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  background: var(--navy);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.mobile-menu.open-menu .mobile-menu__panel {
  transform: translateX(0);
}

.mobile-menu__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.mobile-nav-link {
  font-size: 1.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease, transform 0.3s ease;
}

@media (min-width: 640px) {
  .mobile-nav-link {
    font-size: 2rem;
  }
}

.mobile-nav-link:hover {
  color: var(--brand);
  transform: translateY(-2px);
}

.mobile-menu.open-menu .mobile-nav-link {
  animation: mobile-link-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.mobile-menu__links li:nth-child(1) .mobile-nav-link { animation-delay: 0.12s; }
.mobile-menu__links li:nth-child(2) .mobile-nav-link { animation-delay: 0.18s; }
.mobile-menu__links li:nth-child(3) .mobile-nav-link { animation-delay: 0.24s; }
.mobile-menu__links li:nth-child(4) .mobile-nav-link { animation-delay: 0.3s; }
.mobile-menu__links li:nth-child(5) .mobile-nav-link { animation-delay: 0.36s; }

.mobile-menu.open-menu .mobile-menu__cta {
  animation: mobile-link-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.42s backwards;
}

.mobile-menu__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background: var(--brand);
  color: var(--navy);
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 9999px;
}

@keyframes mobile-link-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .mobile-menu__panel,
  .mobile-nav-link,
  .nav-logo__img {
    transition: none;
    animation: none;
  }

  .mobile-menu.open-menu .mobile-nav-link,
  .mobile-menu.open-menu .mobile-menu__cta {
    animation: none;
  }
}

/* Star rating */
.star-filled {
  color: var(--brand);
}

/* Page hero inner pages */
.page-hero-pattern {
  background-image:
    linear-gradient(135deg, rgba(0, 176, 80, 0.03) 25%, transparent 25%),
    linear-gradient(225deg, rgba(0, 176, 80, 0.03) 25%, transparent 25%);
  background-size: 40px 40px;
}

/* ——— Premium global ——— */
body {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-ready {
  opacity: 1;
}

/* Inner pages: navy hero extends under fixed header (no cream gap) */
.page-main {
  padding-top: 0;
}

.page-main > .page-hero.hero-mesh:first-child {
  padding-top: calc(4rem + 3.5rem);
  padding-bottom: 5rem;
}

@media (min-width: 640px) {
  .page-main > .page-hero.hero-mesh:first-child {
    padding-top: calc(4.5rem + 4.5rem);
    padding-bottom: 7rem;
  }
}

@media (min-width: 768px) {
  .page-main > .page-hero.hero-mesh:first-child {
    padding-top: calc(4.5rem + 5.5rem);
    padding-bottom: 8rem;
  }
}

.section-premium {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.section-premium::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  top: 10%;
  right: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 176, 80, 0.06) 0%, transparent 70%);
  pointer-events: none;
  animation: orb-drift 20s ease-in-out infinite;
}

.section-premium.bg-white {
  overflow: visible;
}

.section-premium.bg-white::before,
.section-premium.bg-white::after {
  opacity: 0.7;
}

.pricing-preview-grid {
  overflow: visible;
}

.section-premium::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  bottom: 5%;
  left: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 74, 173, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: orb-drift-alt 24s ease-in-out infinite;
}

.section-premium > * {
  position: relative;
  z-index: 1;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
  position: relative;
  padding-bottom: 0.65rem;
}

.section-eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), transparent);
  transition: width 0.9s var(--ease-out-expo);
}

.reveal.revealed .section-eyebrow::after,
.section-eyebrow.revealed::after,
.is-visible .section-eyebrow::after {
  width: 3.5rem;
}

.text-center .section-eyebrow::after {
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  color: var(--white);
}

.section-premium--light,
.bg-white .section-title,
.bg-surface .section-title {
  color: var(--navy);
}

.section-title--light {
  color: var(--white);
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 176, 80, 0.45), transparent);
}

/* Enhanced reveals */
.reveal-scale {
  opacity: 0;
  transform: translateY(32px) scale(0.97);
  transition:
    opacity 0.9s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-fade.revealed {
  opacity: 1;
}

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease-out-expo),
    transform 0.8s var(--ease-out-expo);
}

[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0.08s; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 0.16s; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 0.24s; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 0.32s; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 0.4s; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 0.48s; }

/* Premium cards */
.premium-card {
  position: relative;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease,
    border-color 0.35s ease;
}

.premium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 176, 80, 0.35), transparent 50%, rgba(0, 176, 80, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(10, 22, 40, 0.12);
}

.premium-card:hover::before {
  opacity: 1;
}

.service-card,
.testimonial-card,
.pricing-tier {
  will-change: transform;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(10, 22, 40, 0.1);
}

/* Step badges */
.step-badge {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}

.step-badge.revealed {
  animation: step-pulse 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

@keyframes step-pulse {
  0% { transform: scale(0.85); box-shadow: 0 0 0 0 rgba(0, 176, 80, 0.5); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(0, 176, 80, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 176, 80, 0); }
}

/* Page hero */
.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 176, 80, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(0, 176, 80, 0.06) 0%, transparent 50%);
  animation: hero-glow-breathe 12s ease-in-out infinite;
}

.page-hero__content {
  position: relative;
  z-index: 10;
  transition: transform 0.1s linear;
}

/* Mobile menu premium */
.mobile-menu__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  margin-top: 5.5rem;
  opacity: 0.6;
}

.mobile-menu__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0, 176, 80, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Site footer */
.site-footer {
  position: relative;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.55);
  padding: clamp(3.5rem, 8vw, 5rem) 0 clamp(2rem, 4vw, 2.5rem);
  overflow: hidden;
}

.site-footer__glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 176, 80, 0.5), transparent);
  box-shadow: 0 0 40px rgba(0, 176, 80, 0.25);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 2.5rem;
  }
}

.site-footer__tagline {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
  max-width: 20rem;
}

.site-footer__cta {
  margin-top: 1.5rem;
}

.footer-heading {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease, transform 0.3s ease, padding-left 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  color: var(--brand);
  transform: translateX(4px);
}

.footer-link.is-active {
  color: var(--brand);
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.38);
  text-align: center;
}

@media (min-width: 640px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Pricing preview (home) */
.pricing-preview-card {
  position: relative;
  display: block;
  background: var(--white);
  border: 1px solid rgba(0, 74, 173, 0.1);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  text-align: center;
  overflow: visible;
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s ease, border-color 0.3s ease;
}

.pricing-preview-card__label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.pricing-preview-card__price {
  font-family: "DM Sans", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0.25rem 0;
}

.pricing-preview-card__meta {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.pricing-preview-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 176, 80, 0.35);
  box-shadow: 0 16px 40px rgba(0, 74, 173, 0.1);
}

.pricing-preview-card--featured {
  background: linear-gradient(165deg, #0059c1 0%, var(--navy) 50%, var(--navy-light) 100%);
  border: 2px solid rgba(0, 176, 80, 0.45);
  box-shadow: 0 14px 36px rgba(0, 74, 173, 0.22);
  color: var(--white);
}

.pricing-preview-card--featured .pricing-preview-card__label {
  color: rgba(255, 255, 255, 0.9);
}

.pricing-preview-card--featured .pricing-preview-card__price {
  color: var(--white);
}

.pricing-preview-card--featured .pricing-preview-card__meta {
  color: rgba(255, 255, 255, 0.75);
}

.pricing-preview-card--featured:hover {
  border-color: var(--brand-light);
  box-shadow: 0 18px 44px rgba(0, 74, 173, 0.28);
}

/* Full pricing page tiers */
.pricing-tiers-section,
.pricing-tiers-grid {
  overflow: visible;
}

.pricing-tier--featured {
  background: linear-gradient(165deg, #0059c1 0%, var(--navy) 50%, var(--navy-light) 100%);
  box-shadow: 0 14px 36px rgba(0, 74, 173, 0.22);
  animation: none;
}

.pricing-tier__badge,
.pricing-preview-card__badge {
  display: inline-block;
  align-self: center;
  margin-bottom: 0.85rem;
  padding: 0.4rem 0.9rem;
  background: var(--brand);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 9999px;
  line-height: 1;
}

.pricing-tier__price {
  font-family: "DM Sans", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Trust strip animation */
.hero-trust li {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-trust li:hover {
  transform: translateY(-2px);
}

/* Nav CTA shimmer */
.nav-cta {
  box-shadow: 0 4px 20px rgba(0, 176, 80, 0.25);
}

.nav-cta:hover {
  box-shadow: 0 8px 28px rgba(0, 176, 80, 0.4);
}

/* Light panels on navy pages — readable default text */
.bg-white,
.quote-section__form-wrap,
.faq-item,
.service-detail-copy {
  color: var(--navy);
}

/* Services page — stacked on mobile, side-by-side on desktop */
.service-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: stretch;
}

.service-detail-card {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
}

.service-stat-card {
  padding: 2rem 1.75rem;
  text-align: center;
}

.service-stat-card__num {
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 10vw, 4.5rem);
  line-height: 1;
  color: rgba(0, 176, 80, 0.35);
  margin: 0;
}

.service-stat-card__title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  line-height: 1.2;
  color: var(--navy);
  margin: 1rem 0 0;
}

.service-stat-card__meta {
  font-size: 0.875rem;
  color: rgba(0, 74, 173, 0.55);
  margin: 0.5rem 0 0;
}

.service-stat-card--dark .service-stat-card__title {
  color: var(--white);
}

.service-stat-card--dark .service-stat-card__meta {
  color: rgba(255, 255, 255, 0.65);
}

.service-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.5;
}

.service-feature-list li span[aria-hidden="true"] {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.service-detail-copy .btn-primary {
  width: 100%;
  justify-content: center;
}

@media (min-width: 640px) {
  .service-detail-copy .btn-primary {
    width: auto;
  }
}

@media (min-width: 1024px) {
  .service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
  }

  .service-detail-grid--reverse .service-detail-card {
    order: 1;
  }

  .service-detail-grid--reverse .service-detail-copy {
    order: 2;
  }

  .service-detail-grid:not(.service-detail-grid--reverse) .service-detail-card {
    order: 2;
  }

  .service-detail-grid:not(.service-detail-grid--reverse) .service-detail-copy {
    order: 1;
  }

  .service-detail-card {
    max-width: none;
    margin: 0;
    justify-self: end;
    width: 100%;
  }

  .service-detail-grid--reverse .service-detail-card {
    justify-self: start;
  }
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid rgba(0, 74, 173, 0.1);
  border-radius: 0.875rem;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(0, 176, 80, 0.3);
}

.faq-item[open] {
  border-color: rgba(0, 176, 80, 0.45);
  box-shadow: 0 8px 28px rgba(0, 74, 173, 0.1);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question span:first-child {
  flex: 1;
  text-align: left;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(0, 176, 80, 0.12);
  position: relative;
  transition: transform 0.35s var(--ease-smooth), background 0.35s ease;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: var(--brand);
  border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease-smooth);
}

.faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-item__icon {
  background: var(--brand);
}

.faq-item[open] .faq-item__icon::before,
.faq-item[open] .faq-item__icon::after {
  background: var(--white);
}

.faq-item[open] .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}

.faq-item__answer {
  padding: 0 1.15rem 1.1rem;
}

.faq-item__answer p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(0, 74, 173, 0.72);
  margin: 0;
}

/* ——— Elegant motion & polish ——— */
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -18px) scale(1.05); }
  66% { transform: translate(-16px, 12px) scale(0.96); }
}

@keyframes orb-drift-alt {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, 24px); }
}

@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes featured-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 176, 80, 0.15), 0 24px 48px rgba(0, 0, 0, 0.2); }
  50% { box-shadow: 0 0 32px 4px rgba(0, 176, 80, 0.2), 0 28px 56px rgba(0, 0, 0, 0.22); }
}

@keyframes shimmer-text {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.italic.text-brand {
  background: linear-gradient(
    105deg,
    var(--brand) 0%,
    var(--brand-light) 35%,
    var(--brand) 70%,
    var(--brand-light) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-text 8s linear infinite;
}

.featured-card {
  animation: featured-glow 5s ease-in-out infinite;
}

.service-card:hover .w-14,
.premium-card:hover .w-14 {
  animation: icon-float 1.2s var(--ease-smooth) infinite;
}

.testimonial-card {
  transition:
    transform 0.55s var(--ease-smooth),
    box-shadow 0.55s ease,
    border-color 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px) rotate(-0.4deg);
  box-shadow: 0 28px 60px rgba(0, 74, 173, 0.12);
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--brand);
  opacity: 0.12;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s var(--ease-smooth);
}

.testimonial-card {
  position: relative;
}

.testimonial-card:hover::before {
  opacity: 0.22;
  transform: scale(1.05);
}

.pricing-preview-card:not(.pricing-preview-card--featured)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(0, 176, 80, 0.06) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-smooth);
  pointer-events: none;
  overflow: hidden;
}

.pricing-preview-card:not(.pricing-preview-card--featured):hover::after {
  transform: translateX(120%);
}

a[class*="inline-flex"]:hover svg,
a.hover-target:hover span[aria-hidden="true"] {
  animation: arrow-nudge 0.8s var(--ease-smooth) infinite;
}

.nav-logo__img {
  transition: transform 0.5s var(--ease-smooth), filter 0.5s ease;
}

.site-header.header-scrolled .nav-logo__img {
  transform: scale(0.96);
}

.nav-link {
  transition: color 0.35s ease, letter-spacing 0.35s var(--ease-smooth);
}

.nav-link:hover {
  letter-spacing: 0.04em;
}

.btn-outline {
  transition:
    border-color 0.4s ease,
    color 0.4s ease,
    transform 0.4s var(--ease-smooth),
    box-shadow 0.4s ease,
    background 0.4s ease;
}

.btn-outline:hover {
  background: rgba(0, 176, 80, 0.08);
  transform: translateY(-3px);
}

.hero-content .italic.text-brand {
  animation: none;
  background: none;
  -webkit-text-fill-color: var(--brand);
  color: var(--brand);
}

.step-badge:hover {
  transform: scale(1.08);
  box-shadow: 0 0 24px rgba(0, 176, 80, 0.45);
}

.site-footer__glow {
  animation: footer-line-pulse 4s ease-in-out infinite;
}

@keyframes footer-line-pulse {
  0%, 100% { opacity: 0.6; box-shadow: 0 0 40px rgba(0, 176, 80, 0.25); }
  50% { opacity: 1; box-shadow: 0 0 56px rgba(0, 176, 80, 0.4); }
}

.quote-input {
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s var(--ease-smooth);
}

.quote-input:focus {
  transform: translateY(-1px);
}

[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.45s var(--ease-smooth);
}

/* Thank you page */
.thankyou-main {
  min-height: calc(100vh - 4rem);
  min-height: calc(100dvh - 4rem);
}

@media (min-width: 640px) {
  .thankyou-main {
    min-height: calc(100vh - 4.5rem);
    min-height: calc(100dvh - 4.5rem);
  }
}

.thankyou-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  overflow: hidden;
  padding: 5rem 0 4rem;
}

.thankyou-section__content {
  padding-top: 1rem;
}

.thankyou-icon {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 2rem;
  border-radius: 50%;
  background: rgba(0, 176, 80, 0.15);
  border: 2px solid rgba(0, 176, 80, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 48px rgba(0, 176, 80, 0.25);
}

.thankyou-icon__svg {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--brand);
  stroke-width: 2.5;
}

@media (max-width: 639px) {
  .thankyou-section {
    padding: 4.5rem 0 3rem;
  }

  .thankyou-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 1.5rem;
  }

  .thankyou-icon__svg {
    width: 2.25rem;
    height: 2.25rem;
  }
}

/* Mobile & tablet refinements */
@media (max-width: 1023px) {
  body:not(.touch-device) {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

@media (max-width: 639px) {
  html {
    overflow-x: hidden;
  }

  body {
    overflow-x: hidden;
  }

  .site-header__bar {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-logo__img {
    max-height: 2.25rem;
  }

  .nav-cta {
    display: none;
  }

  .hero-section {
    min-height: auto;
    min-height: 100svh;
  }

  .hero-content {
    padding-top: 5.5rem;
    padding-bottom: 6rem;
  }

  .hero-content h1 {
    font-size: 2.15rem;
    line-height: 1.1;
  }

  .hero-content .hero-stagger-3 {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-content .hero-stagger-3 a {
    justify-content: center;
    width: 100%;
  }

  .hero-trust ul {
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
  }

  .section-premium {
    padding: 3rem 0;
  }

  .section-premium::before,
  .section-premium::after {
    display: none;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .pricing-tier--featured,
  .featured-card,
  .pricing-preview-card,
  .service-card.featured-card {
    transform: none !important;
    margin-top: 0;
  }

  .featured-card {
    animation: none;
  }

  .pricing-preview-card:hover,
  .premium-card:hover,
  .service-card:hover,
  .testimonial-card:hover {
    transform: translateY(-4px);
  }

  [data-tilt] {
    transform: none !important;
  }

  .pricing-preview-grid {
    gap: 0.85rem;
  }

  .pricing-preview-card {
    padding: 1.35rem 1.15rem;
  }

  .pricing-preview-card__price {
    font-size: 1.75rem;
  }

  .quote-section__form-wrap,
  .quote-section__info {
    padding: 2.5rem 1.15rem;
  }

  .quote-form .grid.sm\:grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    text-align: center;
  }

  .site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .site-footer__tagline {
    max-width: none;
  }

  .site-footer__cta {
    width: 100%;
    justify-content: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-link:hover {
    transform: none;
  }

  .faq-item__question {
    padding: 1rem;
    font-size: 0.875rem;
    min-height: 3.25rem;
  }

  .faq-item__icon {
    width: 2rem;
    height: 2rem;
  }

  .page-main > .page-hero.hero-mesh:first-child {
    padding-top: calc(4rem + 2.5rem);
    padding-bottom: 3.5rem;
  }

  .italic.text-brand {
    animation: none;
    -webkit-text-fill-color: var(--brand);
    background: none;
  }

  .service-detail-grid {
    gap: 1.5rem;
  }

  .service-detail-card {
    max-width: none;
  }

  .service-stat-card {
    padding: 1.5rem 1.25rem;
  }

  .btn-primary,
  .btn-outline,
  .nav-cta,
  .mobile-menu__cta {
    min-height: 2.75rem;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .quote-section__form-wrap,
  .quote-section__info {
    padding: 3rem 2rem;
  }

  .pricing-tier--featured {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    opacity: 1;
    transition: none;
  }

  .reveal,
  [data-reveal-stagger] > * {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .reveal-scale {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .step-badge.revealed,
  .featured-card,
  .pricing-preview-card--featured,
  .service-card:hover .w-14,
  .premium-card:hover .w-14,
  .hero-glow,
  .page-hero__glow,
  .hero-section::before,
  .hero-section::after,
  .section-premium::before,
  .section-premium::after,
  .italic.text-brand,
  .site-footer__glow {
    animation: none;
  }

  .step-line {
    transform: scaleX(1);
  }

  .page-hero__content {
    transform: none !important;
  }
}
