@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo.woff2') format('woff2-variations'), url('/fonts/archivo.woff2') format('woff2');
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
}

:root {
  --snow: #f6f9fa;
  --ink: #0c2a3a;
  --lake: #0f5e86;
  --lake-deep: #0a4a6b;
  --shallows: #6cc3cf;
  --shallows-tint: #e4f2f4;
  --granite: #56646c;
  --line: #d5e1e6;
  --warn-bg: #fff6e0;
  --warn: #7a4f00;
  --danger: #b3261e;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 9vw, 6.5rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
a { color: var(--lake); }
:focus-visible { outline: 3px solid var(--shallows); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.narrow > * { max-width: 46rem; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.top { padding-block: 1rem; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--ink); text-decoration: none;
  font-weight: 700; font-stretch: 112%; font-size: 1rem; letter-spacing: -.005em;
}
.mark { width: 1.75rem; height: 1.75rem; flex: none; color: var(--ink); }
.top-phone {
  color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap;
  font-variant-numeric: tabular-nums; padding: .5rem 0;
}
.top-phone:hover { color: var(--lake); }
@media (max-width: 420px) { .brand span { font-size: .9375rem; } }

/* ── Hero: the tagline sits on the waterline ────────────────────────────── */
.tagline {
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(3rem, .8rem + 10.4vw, 10rem);
  line-height: .9;
  letter-spacing: -.035em;
}
.sky { padding-top: clamp(1.5rem, 6vw, 4.5rem); }
.sky .tagline { color: var(--ink); margin-bottom: .66em; } /* room for "Clean." to rise above the waterline */

.water {
  --cut: .58em; /* how far "Clean." rises above the waterline */
  background: var(--lake);
  color: #fff;
  border-top: 3px solid var(--shallows);
  padding-bottom: clamp(2.5rem, 7vw, 5rem);
}
.tagline--waterline {
  position: relative;
  display: inline-block;
  color: transparent; /* the visible text is drawn by the two layers below */
  margin-top: calc(-1 * var(--cut) - 3px);
}
.tagline--waterline::before,
.tagline--waterline::after {
  content: attr(data-text);
  content: attr(data-text) / ''; /* decorative copy: hidden from screen readers */
  position: absolute; inset: 0;
}
.tagline--waterline::before { color: var(--ink); clip-path: inset(0 0 calc(100% - var(--cut)) 0); }
/* below the surface: white, nudged sideways like light bending in water */
.tagline--waterline::after { color: #fff; clip-path: inset(calc(var(--cut) + 3px) 0 0 0); transform: translateX(.035em); }

.hero h1 {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  max-width: 28ch;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  line-height: 1.3;
  font-weight: 500;
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.75rem; }
.call { color: #fff; font-weight: 600; text-underline-offset: .2em; font-variant-numeric: tabular-nums; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: .75rem 1.6rem;
  border: 0; border-radius: 6px;
  background: var(--lake); color: #fff;
  font: inherit; font-weight: 700; font-stretch: 112%; font-size: 1.0625rem;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s;
}
.btn:hover { background: var(--lake-deep); }
.btn--light { background: #fff; color: var(--lake); }
.btn--light:hover { background: var(--shallows-tint); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding-block: var(--section); }
/* consecutive sections share one gap */
.section + .section { padding-top: 0; }
h2 {
  font-size: clamp(1.75rem, 1.15rem + 2.6vw, 2.75rem);
  line-height: 1.08;
  font-weight: 750;
  font-stretch: 118%;
  letter-spacing: -.02em;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.lede { font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); line-height: 1.45; max-width: 38ch; }

/* What's included: a rate card, not a grid of boxes */
.rates { display: grid; border-top: 2px solid var(--ink); }
.rate { padding-block: 1.5rem; display: grid; gap: .35rem; }
.rate + .rate { border-top: 1px solid var(--line); }
.rate h3 { font-size: 1.25rem; font-weight: 700; font-stretch: 112%; }
.rate-price { order: -1; display: flex; align-items: baseline; gap: .2rem; }
.amount {
  font-weight: 800; font-stretch: 125%; letter-spacing: -.03em;
  font-size: clamp(2.75rem, 2rem + 3vw, 4rem); line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.per { color: var(--granite); font-weight: 600; }
.rate-incl { color: var(--granite); max-width: 36ch; }
@media (min-width: 760px) {
  .rates { grid-template-columns: 1fr 1fr; }
  .rate { padding: 2rem 2.5rem 0 0; }
  .rate + .rate { border-top: 0; border-left: 1px solid var(--line); padding-left: 2.5rem; }
}

.services-lede { margin-bottom: 1.75rem; max-width: 46ch; }
.services-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  margin-top: 2rem; padding: 1.25rem 1.5rem; border-radius: 8px; background: var(--shallows-tint);
}
.services-cta p { font-weight: 600; font-size: 1.125rem; max-width: 40ch; }

/* Reviews */
.review-grid { display: grid; gap: 2rem; }
.review { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.review blockquote p { max-width: 60ch; }
.review figcaption { margin-top: .9rem; font-weight: 700; font-stretch: 112%; }
@media (min-width: 900px) { .review-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

/* FAQ */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0;
  font-weight: 700; font-stretch: 108%; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: .85rem; height: .85rem;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
              linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.25rem; max-width: 62ch; color: var(--ink); }

/* Footer */
.footer { background: var(--ink); color: #fff; padding-block: 3rem 1.5rem; }
.footer-inner { display: grid; gap: 2rem; margin-bottom: 2rem; }
.footer-name { font-weight: 800; font-stretch: 118%; font-size: 1.375rem; margin-bottom: .25rem; }
.footer .muted { color: #a9bcc6; }
.footer .small { font-size: .875rem; }
.footer-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.footer-phone {
  color: #fff; text-decoration: none; font-weight: 800; font-stretch: 125%;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
}

/* ── Quote sheet ────────────────────────────────────────────────────────── */
.sheet {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  margin: 0; padding: 0 var(--gutter) 2rem;
  border: 0; background: #fff; color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
}
.sheet::backdrop { background: rgb(12 42 58 / .55); }
@media (min-width: 640px) {
  .sheet {
    width: min(36rem, calc(100% - 2rem)); height: auto; max-height: calc(100% - 3rem);
    margin: auto; border-radius: 12px; padding-inline: 2rem;
  }
}
.sheet-head {
  position: sticky; top: 0; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  padding-block: .75rem; background: #fff; border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}
.step-count { color: var(--granite); font-weight: 600; font-size: .9375rem; }
.sheet-close {
  width: 2.75rem; height: 2.75rem; margin-right: -.6rem;
  display: grid; place-items: center;
  border: 0; border-radius: 6px; background: none; color: var(--ink); cursor: pointer;
}
.sheet-close:hover { background: var(--snow); }
.sheet-close svg { width: 1.4rem; height: 1.4rem; }
.step h2 { font-size: clamp(1.625rem, 1.3rem + 1.5vw, 2rem); margin-bottom: 1.25rem; }
.step h2:focus { outline: none; }

.field { margin: 0 0 1.1rem; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
label, legend { display: block; font-weight: 600; margin-bottom: .35rem; padding: 0; }
.opt { color: var(--granite); font-weight: 400; }
input:not([type='radio']), textarea {
  width: 100%; min-height: 3rem; padding: .7rem .8rem;
  border: 1.5px solid #b8c9d1; border-radius: 6px; background: #fff;
  font: inherit; font-size: 1.0625rem; color: var(--ink);
}
textarea { resize: vertical; min-height: 4.5rem; }
input::placeholder, textarea::placeholder { color: #82939b; }
input:focus, textarea:focus { outline: none; border-color: var(--lake); box-shadow: 0 0 0 3px rgb(108 195 207 / .45); }
[aria-invalid='true'] { border-color: var(--danger) !important; }
.err { color: var(--danger); font-size: .9375rem; margin-top: .3rem; }
.err:empty { display: none; }

.choices { display: grid; gap: .5rem; }
.choices--inline { grid-template-columns: repeat(3, 1fr); }
.choice { position: relative; margin: 0; font-weight: 500; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; min-height: 3rem; padding: .6rem .9rem;
  border: 1.5px solid #b8c9d1; border-radius: 6px; background: #fff;
}
.choices--inline .choice span { justify-content: center; text-align: center; }
.choice input:checked + span { border-color: var(--lake); background: var(--shallows-tint); box-shadow: inset 0 0 0 1px var(--lake); font-weight: 650; }
.choice input:focus-visible + span { outline: 3px solid var(--shallows); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.zip-status { margin-bottom: 1.25rem; padding: .75rem .9rem; border-radius: 6px; background: var(--shallows-tint); font-weight: 600; }
.zip-status.is-out { background: var(--warn-bg); color: var(--warn); }
.zip-status:empty { display: none; }
.form-error { color: var(--danger); font-weight: 600; margin-bottom: 1rem; }
.form-error:empty { display: none; }
.link-btn {
  display: block; margin: .75rem auto 0; padding: .6rem 1rem;
  border: 0; background: none; color: var(--lake); font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: .2em;
}
.emailed { margin: 1.25rem 0 1rem; color: var(--granite); }
.emailed:empty { display: none; }

/* Rendered quote (same markup as the customer email, styled by class) */
.q-addr { font-size: 1.1875rem; font-weight: 700; }
.q-service { margin-top: 1.1rem; padding: .9rem 1rem; border-radius: 8px; background: var(--lake); color: #fff; font-weight: 700; line-height: 1.4; }
.q-note { margin-top: .75rem; padding: .7rem .85rem; border-left: 4px solid #e0a526; background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.q-h { margin: 1.5rem 0 .5rem; font-weight: 750; font-stretch: 112%; font-size: 1.0625rem; }
.q-rates { width: 100%; border-collapse: collapse; }
.q-rateName, .q-ratePrice { padding: .7rem 0; border-top: 1px solid var(--line); vertical-align: top; }
.q-rateName { font-weight: 600; }
.q-rateIncl { display: block; font-weight: 400; font-size: .9375rem; color: var(--granite); }
.q-ratePrice { text-align: right; white-space: nowrap; font-weight: 700; padding-left: 1rem; font-variant-numeric: tabular-nums; }
.q-terms { margin: 0; padding-left: 1.15rem; }
.q-terms li + li { margin-top: .35rem; }
.q-start { margin-top: 1.25rem; }
.q-next { margin-top: 1.25rem; padding: .9rem 1rem; border-radius: 8px; background: var(--shallows-tint); font-weight: 700; }
