/* =============================================================
   Johanna House Cleaning — styles.css
   1. Tokens  2. Reset  3. Utilities  4. Typography  5. Components
   6. Sections  7. Effects  8. Responsive  9. Reduced-motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --white:      #FFFFFF;
  --sky:        #1C9DD9;
  --sky-soft:   #4DB6E8;
  --deep:       #166180;
  --deep-dark:  #104A61;
  --navy:       #0F3446;
  --paper:      #E8F3FA;

  --bg:         var(--white);
  --ink:        var(--navy);
  --ink-mute:   #4F6B7A;
  --line:       rgba(15,52,70,0.12);

  --accent:     var(--sky);
  --accent-2:   var(--deep);

  --radius-sm:  10px;
  --radius-md:  18px;
  --radius-lg:  28px;
  --radius-full: 999px;

  --container:  1200px;
  --gutter:     1.25rem;

  --shadow-sm:  0 2px 10px rgba(15,52,70,0.08);
  --shadow-md:  0 12px 30px rgba(15,52,70,0.12);
  --shadow-lg:  0 24px 60px rgba(15,52,70,0.16);

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --display: "Fredoka", "Segoe UI", system-ui, sans-serif;
  --sans: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --script: "Caveat", "Segoe Script", cursive;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; text-wrap: balance; line-height: 1.08; letter-spacing: -0.01em; color: var(--navy); }
ul, ol { list-style: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sky); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.2rem; background: var(--navy); color: var(--white);
  border-radius: var(--radius-sm); font-weight: 700; transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-block; font-family: var(--sans); font-weight: 800;
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--deep); margin-bottom: .6rem;
}
.eyebrow.center { display: block; text-align: center; }
.section-title { font-size: clamp(1.9rem, 4.2vw, 2.8rem); margin-bottom: 1rem; }
.section-title.reveal { text-align: inherit; }
section > .container > .section-title,
section > .container > .eyebrow.center + .section-title { text-align: center; margin-inline: auto; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; } /* defensive: never hide split-text parents */

/* =============================================================
   4. Typography
   ============================================================= */
.story-quote, blockquote {
  font-family: var(--display); font-style: normal; font-weight: 500;
  font-size: 1.2rem; line-height: 1.5; color: var(--deep-dark);
  border-left: 4px solid var(--sky); padding-left: 1.2rem; margin-block: 1.5rem;
}
.story-quote cite { display: block; margin-top: .6rem; font-family: var(--sans); font-style: normal; font-weight: 700; font-size: .9rem; color: var(--ink-mute); }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: var(--radius-full); font-weight: 700;
  font-size: .95rem; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s var(--ease-out);
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--deep); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--deep-dark); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; translate: -120% 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
}
.btn-primary:hover::after { translate: 120% 0; transition: translate .7s var(--ease-out); }
.btn-ghost { background: transparent; color: var(--deep); border: 2px solid var(--deep); }
.btn-ghost:hover { background: var(--deep); color: var(--white); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--deep); box-shadow: var(--shadow-sm); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.7); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }

.chip-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip-list li {
  background: var(--paper); color: var(--deep-dark); font-weight: 700; font-size: .85rem;
  padding: .5rem 1rem; border-radius: var(--radius-full);
}

/* =============================================================
   6. Sections
   ============================================================= */

/* Topbar */
.topbar {
  background: var(--deep); color: var(--white); font-size: .85rem; font-weight: 600;
  text-align: center; padding: .6rem 2.5rem .6rem 1rem; position: relative;
}
.topbar a { text-decoration: underline; text-underline-offset: 2px; }
.topbar-close {
  position: absolute; right: .5rem; top: 50%; translate: 0 -50%;
  width: 28px; height: 28px; border-radius: var(--radius-full); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: .8rem;
}
.topbar-close:hover { background: rgba(255,255,255,.15); }
.topbar.is-hidden { display: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 500; background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  background: rgba(255,255,255,.96);
}
@supports (backdrop-filter: blur(10px)) { .site-header { background: rgba(255,255,255,.88); } }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .6rem; border-bottom: 1px solid var(--line); }
.brand-mark img { height: 96px; width: auto; }
@media (max-width: 720px) { .brand-mark img { height: 80px; } }
.main-nav { display: none; gap: 1.6rem; }
.main-nav a { font-weight: 700; font-size: .92rem; color: var(--navy); position: relative; padding-block: .3rem; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--sky); transition: right .3s var(--ease-out); }
.main-nav a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: .9rem; }
.header-phone { display: none; align-items: center; gap: .4rem; font-weight: 800; color: var(--deep); font-size: .95rem; }

.nav-toggle { display: flex; flex-direction: column; gap: 5px; width: 32px; height: 32px; align-items: center; justify-content: center; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: flex; flex-direction: column; gap: 0; max-height: 0; overflow: hidden;
  background: var(--white); border-bottom: 1px solid var(--line);
  transition: max-height .35s var(--ease-out);
}
.mobile-nav.is-open { max-height: 480px; }
.mobile-nav a { padding: .9rem var(--gutter); font-weight: 700; border-top: 1px solid var(--line); }
.mobile-nav .btn { margin: .8rem var(--gutter); }

/* Hero */
.hero { position: relative; padding-block: 3.5rem 4rem; overflow: hidden; background: linear-gradient(180deg, var(--paper), var(--white) 70%); }
.hero-grid { display: block; position: relative; z-index: 2; }
.hero-copy { max-width: 36rem; }
.eyebrow { }
.hero-title { font-size: clamp(2.2rem, 6.5vw, 3.6rem); max-width: 14ch; }
.hero-title em { font-style: normal; color: var(--sky); }
.hero-sub { font-size: 1.1rem; color: var(--ink-mute); max-width: 42ch; margin-block: 1.1rem 1.6rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.6rem; }
.trust-chips { display: flex; flex-wrap: wrap; gap: .5rem .7rem; font-size: .82rem; font-weight: 700; color: var(--deep-dark); }
.trust-chips li { background: var(--white); border: 1px solid var(--line); padding: .4rem .85rem; border-radius: var(--radius-full); box-shadow: var(--shadow-sm); }

.hero-figure { position: relative; }
.hero-photo-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; }
.photo-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(135deg, var(--paper), #D9ECF6 60%, var(--paper));
  color: var(--deep); font-weight: 700; font-size: .95rem; padding: 2rem;
  border: 2px dashed rgba(22,97,128,.35);
}

/* Hero background video/poster + gradient overlay */
.hero.has-bg-media { min-height: 86svh; display: flex; align-items: center; padding-block: 7.5rem 4rem; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg-poster, .hero-bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero-bg-video { display: none; }
.hero-bg-video.is-active { display: block; }
.hero-bg-video.is-active + .hero-bg-poster,
.hero-bg-poster.is-hidden { opacity: 0; }
.hero-bg-gradient {
  position: absolute; inset: 0;
  /* mobile default: bottom-to-top — dark behind the text, clear only near the top of the video */
  background: linear-gradient(0deg, rgba(15,52,70,.82) 0%, rgba(15,52,70,.8) 55%, rgba(15,52,70,.4) 78%, rgba(15,52,70,0) 100%);
}
@media (min-width: 720px) {
  .hero-bg-gradient {
    /* desktop: left-to-right — dark behind the text on the left, transparent by mid-screen */
    background: linear-gradient(90deg, rgba(15,52,70,.78) 0%, rgba(15,52,70,.55) 32%, rgba(15,52,70,0) 52%);
  }
}

.has-bg-media .eyebrow { color: var(--sky-soft); }
.has-bg-media .hero-title { color: var(--white); text-shadow: 0 2px 16px rgba(15,52,70,.35); }
.has-bg-media .hero-title em { color: var(--sky-soft); }
.has-bg-media .hero-sub { color: rgba(255,255,255,.92); text-shadow: 0 1px 10px rgba(15,52,70,.3); }
.has-bg-media .trust-chips li { background: rgba(255,255,255,.95); }

.hero-sparkles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sparkle {
  position: absolute; left: var(--x); top: var(--y); width: 14px; height: 14px;
  background: var(--sky); clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  opacity: 0; animation: sparkleTwinkle 3.4s var(--d, 0s) infinite ease-in-out;
}
@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); }
  50% { opacity: .85; transform: scale(1) rotate(25deg); }
}

/* Squeegee wipe — signature hero reveal */
.squeegee-wipe {
  position: absolute; inset: 0; z-index: 5; background: var(--sky);
  transform-origin: left center;
  animation: squeegeeWipe 1.3s .15s var(--ease-soft) forwards;
  pointer-events: none;
}
.squeegee-wipe::after {
  content: ""; position: absolute; top: 0; right: -6px; bottom: 0; width: 10px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.55));
}
@keyframes squeegeeWipe {
  0% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 100%); }
}

/* Trust bar */
.trust-bar { background: var(--deep); padding-block: 1.3rem; }
.trust-bar-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem 2rem; }
.trust-item { display: flex; align-items: center; gap: .5rem; color: var(--white); font-weight: 700; font-size: .88rem; }
.trust-icon { font-size: 1.1rem; }

/* Estimate */
.estimate { padding-block: 4.5rem; background: var(--white); }
.estimate-grid { display: grid; gap: 2.5rem; }
.estimate-intro h2 { margin-bottom: .9rem; }
.estimate-intro p { color: var(--ink-mute); margin-bottom: 1rem; }
.estimate-points { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.2rem; }
.estimate-points li { position: relative; padding-left: 1.6rem; font-weight: 700; color: var(--deep-dark); font-size: .95rem; }
.estimate-points li::before { content: "✓"; position: absolute; left: 0; color: var(--sky); font-weight: 800; }
.estimate-alt a { color: var(--deep); font-weight: 800; text-decoration: underline; }

.estimate-card {
  background: var(--paper); border-radius: var(--radius-lg); padding: 1.8rem;
  box-shadow: var(--shadow-md); border: 1px solid rgba(22,97,128,.1);
}
.form-toggle { display: flex; gap: .4rem; background: var(--white); border-radius: var(--radius-full); padding: .3rem; margin-bottom: 1.4rem; }
.form-toggle-btn { flex: 1; padding: .6rem 1rem; border-radius: var(--radius-full); font-weight: 800; font-size: .88rem; color: var(--ink-mute); transition: background .25s var(--ease-out), color .25s var(--ease-out); }
.form-toggle-btn.is-active { background: var(--deep); color: var(--white); }

.form-progress { display: flex; gap: 1rem; margin-bottom: 1.2rem; font-size: .8rem; font-weight: 800; color: var(--ink-mute); }
.form-progress-step.is-active { color: var(--deep); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-step { display: none; border: 0; padding: 0; }
.form-step.is-active { display: block; }
.form-row { margin-bottom: 1rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form-row-2 > div { margin-bottom: 0; }
.form-label, label { display: block; font-weight: 800; font-size: .85rem; margin-bottom: .35rem; color: var(--navy); }
.form-row input[type="text"], .form-row input[type="email"], .form-row input[type="tel"],
.form-row input[type="date"], .form-row input[type="file"], .form-row select, .form-row textarea {
  width: 100%; padding: .75rem .9rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--white); font-size: .95rem; min-height: 48px; transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.form-row textarea { min-height: 80px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--sky); box-shadow: 0 0 0 4px rgba(28,157,217,.18); outline: none;
}
.form-row.has-error input, .form-row.has-error select { border-color: #D14343; }
.field-error { display: block; color: #D14343; font-size: .78rem; font-weight: 700; margin-top: .3rem; min-height: 1em; }
.field-hint { display: block; color: var(--ink-mute); font-size: .78rem; margin-top: .3rem; }

.radio-pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.radio-pills label { display: flex; align-items: center; gap: .4rem; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-full); padding: .5rem 1rem; font-weight: 700; font-size: .85rem; cursor: pointer; }
.radio-pills input { accent-color: var(--deep); }

.form-row-buttons { display: flex; gap: .8rem; align-items: center; }
.form-row-buttons .btn-ghost { flex: 0 0 auto; }
.form-row-buttons .btn-block { flex: 1; }

.form-success, .form-fallback { text-align: center; padding: 1.4rem; border-radius: var(--radius-md); font-weight: 700; }
.form-success { background: #E4F6EA; color: #1F7A41; }
.form-fallback { background: #FBEAEA; color: #B23030; }
.form-fallback a { text-decoration: underline; }

/* Services */
.services { padding-block: 4.5rem; background: linear-gradient(180deg, var(--white), var(--paper) 100%); }
.services-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 2.2rem; }
.service-card {
  background: var(--white); border-radius: var(--radius-md); padding: 1.6rem; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card-featured { background: linear-gradient(160deg, var(--deep), var(--deep-dark)); color: var(--white); position: relative; }
.service-card-featured h3, .service-card-featured p { color: var(--white); }
.service-badge { position: absolute; top: -12px; right: 1.2rem; background: var(--sky); color: var(--white); font-size: .72rem; font-weight: 800; padding: .3rem .8rem; border-radius: var(--radius-full); box-shadow: var(--shadow-sm); }
.service-icon { font-size: 1.8rem; display: block; margin-bottom: .7rem; }
.service-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.service-card p { font-size: .92rem; color: var(--ink-mute); }
.service-card-featured p { color: rgba(255,255,255,.85); }

.addons { margin-top: 2.6rem; text-align: center; }
.addons h3 { font-size: 1.1rem; margin-bottom: .9rem; }
.addons .chip-list { justify-content: center; }
.not-offered { text-align: center; margin-top: 1.6rem; color: var(--ink-mute); font-style: italic; }
.pricing-note { text-align: center; margin-top: 1rem; max-width: 60ch; margin-inline: auto; color: var(--ink-mute); }
.pricing-note a { color: var(--deep); font-weight: 800; text-decoration: underline; }

/* Checklist */
.checklist { padding-block: 4.5rem; background: var(--white); }
.checklist-note { text-align: center; max-width: 60ch; margin: 0 auto 2rem; color: var(--ink-mute); font-size: .85rem; font-style: italic; }
.checklist-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.checklist-card { background: var(--paper); border-radius: var(--radius-md); padding: 1.5rem; }
.checklist-card h3 { font-size: 1.05rem; margin-bottom: .8rem; color: var(--deep-dark); }
.checklist-card li { position: relative; padding-left: 1.4rem; margin-bottom: .5rem; font-size: .9rem; color: var(--ink-mute); }
.checklist-card li::before { content: "✓"; position: absolute; left: 0; color: var(--sky); font-weight: 800; }

/* How it works */
.how-it-works { padding-block: 4.5rem; background: linear-gradient(180deg, var(--paper), var(--white)); }
.steps { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 2.4rem; counter-reset: step; position: relative; }
.step { position: relative; text-align: center; padding-inline: 1rem; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: var(--radius-full); background: var(--deep); color: var(--white); font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem; }
.step h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.step p { font-size: .9rem; color: var(--ink-mute); }
.steps::before {
  content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--sky) 0 8px, transparent 8px 16px);
  z-index: -1; display: none;
}

/* Story */
.story { padding-block: 4.5rem; background: var(--white); }
.story-grid { display: grid; gap: 2.5rem; align-items: start; }
.story-figure { position: sticky; top: 110px; }
.story-figure .photo-placeholder { border-radius: var(--radius-lg); aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.story-photo {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 14%;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 4px solid var(--white);
  outline: 1px solid rgba(22,97,128,.1);
}
.story-figure figcaption {
  text-align: center; margin-top: .9rem; font-weight: 800; font-size: .9rem; color: var(--deep-dark);
}
.story-copy h2 { margin-bottom: 1.3rem; }
.story-copy p { margin-bottom: 1.15rem; color: var(--ink-mute); max-width: 62ch; line-height: 1.75; }
.story-intro {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  line-height: 1.45; color: var(--navy); max-width: 32ch; margin-bottom: 1.6rem;
}
.story-quote {
  font-family: var(--display); font-weight: 500; font-style: normal;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.5; color: var(--white);
  background: linear-gradient(135deg, var(--deep), var(--deep-dark));
  border-left: none; padding: 1.6rem 1.8rem; border-radius: var(--radius-md);
  margin-block: 2rem; box-shadow: var(--shadow-md);
}
.story-signature {
  font-family: var(--script); font-weight: 700; font-size: 2rem; color: var(--sky);
  margin-top: 1.4rem; line-height: 1;
}

/* Before/after */
.before-after { padding-block: 4.5rem; background: var(--paper); }
.ba-group { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 2.4rem; }
.ba-slider { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); touch-action: pan-y; }
.ba-before, .ba-after { position: absolute; inset: 0; overflow: hidden; background: var(--paper); }
.ba-before img, .ba-after img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-after { clip-path: inset(0 0 0 50%); }
.ba-tag {
  position: absolute; top: .7rem; left: .7rem; z-index: 2; background: rgba(15,52,70,.75); color: var(--white);
  font-weight: 800; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: var(--radius-full);
}
.ba-tag-after { left: auto; right: .7rem; background: rgba(28,157,217,.85); }
.ba-caption { text-align: center; margin-top: 1.4rem; font-size: .85rem; font-style: italic; color: var(--ink-mute); }
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3;
  -webkit-appearance: none; appearance: none;
}
.ba-handle {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 42px; height: 42px;
  background: var(--white); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); font-weight: 800; color: var(--deep); z-index: 2; pointer-events: none;
}
.ba-label { text-align: center; margin-top: .7rem; font-weight: 800; color: var(--deep-dark); }

/* Reviews */
.reviews { padding-block: 4.5rem; background: var(--white); }
.reviews-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 2.2rem auto 0; max-width: 860px; }
.review-stars { color: var(--sky, #1C9DD9); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6rem; }
.reviews-more { text-align: center; margin-top: 2rem; }
.review-card { background: var(--paper); border-radius: var(--radius-md); padding: 1.6rem; }
.review-quote { font-style: italic; color: var(--deep-dark); margin-bottom: 1rem; }
.review-meta { font-size: .85rem; font-weight: 700; color: var(--ink-mute); }

/* FAQ */
.faq { padding-block: 4.5rem; background: var(--paper); }
.faq-container { max-width: 820px; }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%; text-align: left; padding: 1.1rem 2rem 1.1rem 0; font-weight: 800; font-size: 1rem;
  position: relative; color: var(--navy);
}
.accordion-trigger::after {
  content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; font-size: 1.3rem;
  color: var(--sky); transition: transform .3s var(--ease-out);
}
.accordion-trigger[aria-expanded="true"]::after { transform: translateY(-50%) rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease-out); }
.accordion-panel p { padding-bottom: 1.1rem; color: var(--ink-mute); max-width: 65ch; }

/* Service Areas */
.areas { padding-block: 4.5rem 2.5rem; background: var(--white); overflow: hidden; }
.areas-line { text-align: center; color: var(--ink-mute); max-width: 60ch; margin: 0 auto; }
.marquee { margin-top: 2.4rem; display: flex; }
.marquee-track { display: flex; gap: .8rem; padding-inline: .4rem; animation: marqueeScroll 42s linear infinite; flex-shrink: 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.area-chip { white-space: nowrap; background: var(--paper); color: var(--deep-dark); font-weight: 700; font-size: .85rem; padding: .55rem 1.1rem; border-radius: var(--radius-full); border: 1px solid var(--line); }

/* Final CTA */
.final-cta { padding-block: 4.5rem; background: linear-gradient(135deg, var(--deep), var(--navy)); text-align: center; }
.final-cta h2 { color: var(--white); margin-bottom: .6rem; }
.final-cta p { color: rgba(255,255,255,.85); margin-bottom: 1.8rem; }
.final-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.85); padding-block: 3.5rem 1.5rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.footer-logo { font-family: var(--display); font-size: 1.4rem; font-weight: 700; color: var(--white); }
.footer-logo small { display: block; font-size: .7rem; letter-spacing: .12em; font-weight: 600; color: var(--sky-soft); }
.footer-brand p { margin-top: .5rem; color: rgba(255,255,255,.6); font-style: italic; }
.footer-col h3 { color: var(--white); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-col p { margin-bottom: .55rem; font-size: .92rem; }
.footer-col a:hover { color: var(--sky-soft); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; color: rgba(255,255,255,.55); }

/* Mobile sticky bar */
.mobile-sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 600; display: grid; grid-template-columns: 1fr 1fr 1.4fr;
  background: var(--white); box-shadow: 0 -6px 20px rgba(15,52,70,.12); border-top: 1px solid var(--line);
}
.mobile-sticky-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; padding: .7rem 0; font-size: .72rem; font-weight: 800; color: var(--deep-dark); }
.mobile-sticky-bar a span { font-size: 1.1rem; }
.mobile-sticky-bar .is-primary { background: var(--deep); color: var(--white); }

/* =============================================================
   7. Effects
   ============================================================= */
.photo-placeholder[data-photo-placeholder] { animation: none; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .hero-ctas { flex-wrap: nowrap; }
  .mobile-sticky-bar { display: none; }
}

@media (min-width: 720px) {
  .estimate-grid { grid-template-columns: .9fr 1.1fr; align-items: start; }
  .story-grid { grid-template-columns: .85fr 1.15fr; }
  .steps::before { display: block; }
}

@media (max-width: 719px) {
  .story-figure { position: static; max-width: 320px; margin-inline: auto; }
}

.story-figure { display: flex; flex-direction: column; gap: 1.5rem; }
.story-team-frame { aspect-ratio: 4/3; }
.story-team-photo { aspect-ratio: 4/3; object-position: 50% 48%; }
@media (max-width: 719px) { .story-figure { max-width: 420px; } }
.story-team-frame .photo-placeholder { font-size: .85rem; }

@media (min-width: 960px) {
  .main-nav { display: flex; }
  .header-phone { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
  html { scroll-padding-top: 88px; }
}

@media (min-width: 1280px) {
  .hero-title { font-size: clamp(2.6rem, 4.6vw, 4.2rem); }
}

/* =============================================================
   9. Reduced-motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .squeegee-wipe { animation-duration: .5s; }
  .sparkle { animation: none; opacity: .5; }
  .marquee-track { animation-duration: 90s; }
  .hero-bg-video { display: none !important; }
  .hero-bg-poster.is-hidden { opacity: 1; }
}
