/* BrightView Window Cleaning - mobile first. Only token variables from tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--space)); }
body { margin: 0; font-family: var(--font-body); font-weight: 500; font-size: var(--fs-body); line-height: 1.6; color: var(--color-body); background: var(--color-white); }
img, video, canvas { display: block; max-width: 100%; }
a { color: var(--color-primary); }
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-text); line-height: 1.12; margin: 0 0 calc(var(--space) * 2); }
h1 { font-weight: 800; font-size: var(--fs-hero); letter-spacing: -0.01em; }
h2 { font-weight: 800; font-size: var(--fs-h2); text-transform: uppercase; color: var(--color-primary); }
h3 { font-weight: 700; font-size: var(--fs-h3); }
p { margin: 0 0 calc(var(--space) * 2); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-pad-mobile) 0; }
.section--tint { background: var(--color-secondary); }
.eyebrow { display: inline-block; font-size: var(--fs-small); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent-dark); margin-bottom: var(--space); }
.lead { font-size: 1.125rem; max-width: 46rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--color-white); padding: var(--space); z-index: 100; }
.skip:focus { left: var(--space); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space); min-height: 48px; padding: 0 calc(var(--space) * 3); border-radius: var(--radius-sm); font-family: var(--font-heading); font-weight: 800; font-size: 0.9375rem; letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color var(--ease-hover), color var(--ease-hover), border-color var(--ease-hover); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--accent { background: var(--color-accent); color: var(--color-text); }
.btn--accent:hover { background: var(--color-accent-dark); color: var(--color-white); }
.btn--primary { background: var(--color-primary); color: var(--color-white); }
.btn--primary:hover { background: var(--color-primary-dark); }
.btn--ghost { background: transparent; color: var(--color-white); border-color: var(--color-glass-line); }
.btn--ghost:hover { background: var(--color-glass); }
.btn--line { background: var(--color-white); color: var(--color-primary); border-color: var(--color-line); }
.btn--line:hover { border-color: var(--color-primary); }
.btn-row { display: flex; flex-wrap: wrap; gap: calc(var(--space) * 1.5); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-white); box-shadow: var(--shadow-header); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: calc(var(--space) * 2); }
.brand img { height: 54px; width: auto; }
.nav { display: none; }
.nav a { color: var(--color-primary); text-decoration: none; font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; }
.nav a:hover { color: var(--color-accent-dark); }
.header-cta { display: flex; align-items: center; gap: var(--space); }
.header-cta .btn { min-height: 42px; padding: 0 calc(var(--space) * 1.75); font-size: 0.8125rem; }
.header-cta .btn--quote { display: none; }
.menu-btn { width: 44px; height: 44px; border: 1px solid var(--color-line); border-radius: var(--radius-sm); background: var(--color-white); display: grid; place-items: center; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; color: var(--color-primary); }
.mobile-nav { border-top: 1px solid var(--color-line); background: var(--color-white); }
.mobile-nav a { display: block; padding: calc(var(--space) * 1.75) var(--gutter); color: var(--color-primary); font-weight: 700; text-decoration: none; text-transform: uppercase; font-size: 0.9375rem; letter-spacing: 0.04em; border-bottom: 1px solid var(--color-line); }

/* Hero */
.hero { position: relative; isolation: isolate; color: var(--color-white); background: var(--color-text); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--color-shade-soft) 0%, var(--color-shade) 70%); }
.hero__glass { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.hero__fx { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.hero__squeegee { position: absolute; z-index: 1; top: 0; left: 0; width: auto; pointer-events: none; opacity: 0; will-change: transform; transform-origin: 13% 50%; filter: drop-shadow(0 6px 14px var(--color-shade)); }
.hero__inner { position: relative; z-index: 2; padding: calc(var(--space) * 12) 0 calc(var(--space) * 6); pointer-events: none; }
.hero__inner a, .hero__inner button, .hero__inner input, .hero__inner textarea, .hero__inner select, .hero__inner form { pointer-events: auto; }
.hero h1 { color: var(--color-white); text-shadow: 0 2px 18px var(--color-shade); max-width: 15ch; }
.hero__sub { font-size: 1.0625rem; max-width: 34rem; text-shadow: 0 1px 10px var(--color-shade); }
.hero .eyebrow { color: var(--color-white); background: var(--color-primary); padding: 6px 12px; border-radius: var(--radius-pill); letter-spacing: 0.12em; font-size: 0.75rem; }
.rating-chip { display: inline-flex; align-items: center; gap: var(--space); margin-top: calc(var(--space) * 2.5); padding: 8px 14px; border-radius: var(--radius-pill); background: var(--color-shade); font-size: 0.875rem; font-weight: 700; }
.stars { color: var(--color-star); letter-spacing: 2px; }
.wipe-hint { display: inline-flex; align-items: center; gap: 6px; margin-top: calc(var(--space) * 2); font-size: 0.8125rem; font-weight: 700; opacity: 0; transition: opacity 400ms; text-shadow: 0 1px 8px var(--color-shade); }
.wipe-hint.is-on { opacity: 0.95; }
.wipe-hint { pointer-events: none; }
.hero__grid { display: grid; gap: calc(var(--space) * 4); align-items: center; }

/* Quote form (glass) */
.quote { background: var(--color-glass); border: 1px solid var(--color-glass-line); border-radius: var(--radius-lg); padding: calc(var(--space) * 3); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); color: var(--color-white); }
.quote h2 { color: var(--color-white); font-size: 1.375rem; margin-bottom: 4px; }
.quote > p { font-size: 0.9375rem; margin-bottom: calc(var(--space) * 2); }
.field { margin-bottom: calc(var(--space) * 1.75); }
.field label { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--color-glass-line); background: var(--color-glass-field); color: var(--color-white); font: inherit; font-size: 16px; }
.field textarea { min-height: 92px; resize: vertical; }
.field select option { color: var(--color-text); }
.field ::placeholder { color: var(--color-white); opacity: 0.75; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.quote .btn { width: 100%; }
.quote__alt { text-align: center; font-size: 0.875rem; margin: calc(var(--space) * 1.5) 0 0; }
.quote__alt a { color: var(--color-white); font-weight: 700; }
.hp { position: absolute; left: -9999px; }
/* Light version of the form, on white sections */
.quote--light { background: var(--color-white); border-color: var(--color-line); color: var(--color-body); box-shadow: var(--shadow-card); -webkit-backdrop-filter: none; backdrop-filter: none; }
.quote--light h2 { color: var(--color-primary); }
.quote--light .field input, .quote--light .field select, .quote--light .field textarea { background: var(--color-white); color: var(--color-text); border-color: var(--color-line); }
.quote--light .field ::placeholder { color: var(--color-muted); }
.quote--light .quote__alt a { color: var(--color-primary); }

/* Cards and grids */
.grid { display: grid; gap: calc(var(--space) * 2.5); }
.card { background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-secondary); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: calc(var(--space) * 3); display: flex; flex-direction: column; flex: 1; }
.card__body ul { margin: 0 0 calc(var(--space) * 2); padding-left: 1.1em; }
.card__body li { margin-bottom: 4px; }
.card__body .btn { margin-top: auto; align-self: flex-start; }
.link-arrow { font-weight: 800; text-decoration: none; text-transform: uppercase; font-size: 0.875rem; letter-spacing: 0.04em; margin-top: auto; }

/* Gallery */
.gallery-group { margin-top: calc(var(--space) * 5); }
.gallery-group__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space); border-bottom: 2px solid var(--color-line); padding-bottom: var(--space); margin-bottom: calc(var(--space) * 2.5); }
.gallery-group__head h3 { color: var(--color-primary); text-transform: uppercase; margin: 0; }
.gallery-group__head span { color: var(--color-muted); font-size: var(--fs-small); }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: calc(var(--space) * 1.5); }
.shot { margin: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--color-secondary); aspect-ratio: 3 / 4; }
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* Before / after slider */
.ba { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 3 / 4; background: var(--color-secondary); user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: var(--color-white); box-shadow: 0 0 10px var(--color-shade); }
.ba__knob { position: absolute; top: 50%; left: var(--pos, 50%); width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--color-white); color: var(--color-primary); display: grid; place-items: center; box-shadow: var(--shadow-card); font-weight: 800; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba__tag { position: absolute; bottom: 12px; padding: 4px 10px; border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: var(--color-primary); color: var(--color-white); }
.ba__tag--before { left: 12px; }
.ba__tag--after { right: 12px; background: var(--color-accent); color: var(--color-text); }
.ba-pair { display: grid; gap: calc(var(--space) * 2); }

/* Why / checklist */
.checks { list-style: none; padding: 0; margin: calc(var(--space) * 3) 0; display: grid; gap: calc(var(--space) * 1.5); }
.checks li { display: flex; gap: calc(var(--space) * 1.5); align-items: flex-start; font-weight: 700; color: var(--color-primary); }
.checks svg { flex: none; width: 24px; height: 24px; color: var(--color-accent-dark); margin-top: 1px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: calc(var(--space) * 2); }
.steps li { position: relative; background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: calc(var(--space) * 2.5) calc(var(--space) * 2.5) calc(var(--space) * 2.5) calc(var(--space) * 8); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: calc(var(--space) * 2.5); top: calc(var(--space) * 2.25); width: 34px; height: 34px; border-radius: 50%; background: var(--color-primary); color: var(--color-white); display: grid; place-items: center; font-weight: 800; }
.steps strong { display: block; color: var(--color-text); }

/* Reviews */
.reviews { background: var(--color-primary); color: var(--color-white); }
.reviews h2, .reviews .eyebrow { color: var(--color-white); }
.reviews .eyebrow { color: var(--color-accent); }
.review-summary { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 auto calc(var(--space) * 3); font-weight: 700; text-align: center; }
.review-summary .stars { font-size: 1.25rem; }
.g-logo { width: 44px; height: 44px; background: var(--color-white); border-radius: 50%; padding: 6px; }
.carousel { position: relative; max-width: 60rem; margin: 0 auto; }
.review-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.review-track::-webkit-scrollbar { display: none; }
.review { flex: 0 0 100%; scroll-snap-align: center; background: var(--color-glass-field); border: 1px solid var(--color-glass-line); border-radius: var(--radius-md); padding: calc(var(--space) * 3); margin: 0; display: flex; flex-direction: column; }
.car-btn { display: none; position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -40px; border-radius: 50%; border: 1px solid var(--color-glass-line); background: transparent; color: var(--color-white); font-size: 1.75rem; line-height: 1; cursor: pointer; transition: background-color var(--ease-hover); }
.car-btn:hover { background: var(--color-glass); }
.car-btn--prev { left: 0; }
.car-btn--next { right: 0; }
.car-dots { display: flex; justify-content: center; gap: var(--space); margin-top: calc(var(--space) * 2); }
.car-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: var(--radius-pill); background: var(--color-glass-line); cursor: pointer; transition: width var(--ease-hover), background-color var(--ease-hover); }
.car-dot.is-active { width: 26px; background: var(--color-accent); }
.btn-row--center { justify-content: center; }
.review p { margin-bottom: calc(var(--space) * 2); }
.review footer { margin-top: auto; font-weight: 800; }
.reviews .btn-row { margin-top: calc(var(--space) * 3); }

/* Areas */
.chips { display: flex; flex-wrap: wrap; gap: var(--space); list-style: none; padding: 0; margin: calc(var(--space) * 3) 0; }
.chips li a, .chips li span { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 1px solid var(--color-line); border-radius: var(--radius-pill); background: var(--color-white); text-decoration: none; font-weight: 700; color: var(--color-primary); font-size: 0.9375rem; }
.chips li a:hover { border-color: var(--color-primary); }

/* FAQ */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--color-line); padding: calc(var(--space) * 2) 0; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--color-text); list-style: none; display: flex; justify-content: space-between; gap: var(--space); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--color-primary); font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: calc(var(--space) * 1.5) 0 0; }

/* CTA band */
.cta-band { background: var(--color-primary); color: var(--color-white); text-align: center; }
.cta-band h2 { color: var(--color-white); }
.cta-band .eyebrow { color: var(--color-accent); }
.cta-band .btn-row { justify-content: center; margin-top: calc(var(--space) * 3); }

/* Page header (inner pages) */
.page-head { background: var(--color-secondary); padding: calc(var(--space) * 6) 0 calc(var(--space) * 5); }
.page-head h1 { color: var(--color-primary); font-size: clamp(2rem, 5vw, 3rem); }
.crumbs { font-size: var(--fs-small); margin-bottom: calc(var(--space) * 2); color: var(--color-muted); }
.crumbs a { color: var(--color-muted); }
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); text-transform: none; margin-top: calc(var(--space) * 5); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: var(--space); }
.answer { font-size: 1.125rem; color: var(--color-text); border-left: 4px solid var(--color-accent); padding-left: calc(var(--space) * 2); }
.split { display: grid; gap: calc(var(--space) * 5); }
.aside-photo { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 3 / 4; }
.aside-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Footer */
.site-footer { background: var(--color-white); border-top: 1px solid var(--color-line); padding: calc(var(--space) * 7) 0 calc(var(--space) * 4); font-size: 0.9375rem; }
.footer-grid { display: grid; gap: calc(var(--space) * 4); }
.site-footer h3 { font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-primary); margin-bottom: calc(var(--space) * 1.5); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--color-body); text-decoration: none; }
.site-footer a:hover { color: var(--color-primary); }
.footer-brand img { height: 56px; width: auto; margin-bottom: calc(var(--space) * 2); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space); border-top: 1px solid var(--color-line); margin-top: calc(var(--space) * 5); padding-top: calc(var(--space) * 2.5); color: var(--color-muted); font-size: var(--fs-small); }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 3px 0; vertical-align: top; }
.hours td + td { text-align: right; font-weight: 700; color: var(--color-text); }

/* Fade-up for section headers only */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms, transform 600ms; }
.reveal.is-in { opacity: 1; transform: none; }

/* Tablet */
@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .shots { grid-template-columns: repeat(4, 1fr); }
  .ba-pair { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .checks { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-cta .btn--quote { display: inline-flex; }
}

/* Desktop */
@media (min-width: 1024px) {
  .section { padding: var(--section-pad) 0; }
  .nav { display: flex; gap: calc(var(--space) * 3); }
  .menu-btn, .mobile-nav { display: none !important; }
  .brand img { height: 62px; }
  .hero { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; }
  .hero__inner { width: 100%; padding: calc(var(--space) * 10) 0; }
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; }
  .hero__shade { background: linear-gradient(90deg, var(--color-shade) 0%, var(--color-shade-soft) 55%, transparent 100%); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .car-btn { display: grid; place-items: center; }
  .carousel { max-width: 68rem; padding: 0 64px; }
  .review { padding: calc(var(--space) * 4) calc(var(--space) * 5); }
  .review__text.is-long { -webkit-line-clamp: 3; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr 1.2fr; }
  .split { grid-template-columns: 1.5fr 1fr; align-items: start; }
  .split--form { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__glass, .hero__squeegee, .wipe-hint { display: none; }
}

/* Small helpers used by build.py */
.small-note { font-size: var(--fs-small); color: var(--color-muted); margin-top: var(--space); }
.space-top { margin-top: calc(var(--space) * 4); }
.card-title { font-size: 1.25rem; text-transform: none; color: var(--color-text); }
.cta-band .lead { margin-left: auto; margin-right: auto; }
.shot--tagged { position: relative; }
.review__text.is-long { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.review__text.is-open { display: block; }
.review__more { align-self: flex-start; background: none; border: 0; padding: 0; margin: 0 0 calc(var(--space) * 2); color: var(--color-accent); font: inherit; font-weight: 800; cursor: pointer; text-decoration: underline; }
.hero__kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 calc(var(--space) * 2); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-white); text-shadow: 0 1px 8px var(--color-shade); }
.hero__kicker-line { width: 28px; height: 3px; border-radius: var(--radius-pill); background: var(--color-accent); flex: none; }
.only-desktop { display: none !important; }
@media (min-width: 1024px) {
  .only-mobile { display: none !important; }
  .only-desktop { display: inline-flex !important; }
}
.hero .btn-row { flex-wrap: nowrap; }
.hero .btn-row .btn { padding: 0 calc(var(--space) * 2); }
.hero .btn-row .only-mobile.btn--accent { flex: 1 1 auto; }
@media (max-width: 400px) { .hero__kicker { letter-spacing: 0.1em; font-size: 0.6875rem; } }
/* Wide screens: the cleaner owns the left third of the photo, so the copy and form sit to his right */
@media (min-width: 1280px) {
  .hero__inner .wrap.hero__grid { max-width: none; padding-left: 38vw; padding-right: 4vw; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: calc(var(--space) * 4); }
  .hero h1 { font-size: clamp(2.5rem, 3.6vw, 3.75rem); }
  .hero__shade { background: linear-gradient(90deg, transparent 0%, transparent 30%, var(--color-shade-soft) 40%, var(--color-shade) 62%, var(--color-shade-soft) 100%); }
}

/* Paver gallery: a 4:3 slider beside a 3:4 slider (16:9 columns keep the heights equal), then five photos */
.ba--wide { aspect-ratio: 4 / 3; }
.shot img { object-position: var(--op, 50% 50%); }
.shots--5 .shot:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
.shots--5 { margin-top: calc(var(--space) * 2); }
@media (min-width: 720px) {
  .ba-pair--mixed { grid-template-columns: 16fr 9fr; }
  .shots--5 { grid-template-columns: repeat(5, 1fr); }
  .shots--5 .shot:first-child { grid-column: auto; aspect-ratio: 3 / 4; }
}
