/* Dr. ScrubBins. Palette and type come from the shield logo and the bin-gray signage.
   Archivo (display + UI, width axis for the stamped-signage headline) / Source Serif 4 (reading text). */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-standard-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --navy: #0b3a5c;      /* wordmark */
  --ink: #12293a;       /* body text */
  --blue: #0082c8;      /* shield */
  --action: #006fae;    /* buttons and links (5.3:1 with white) */
  --action-dark: #005a8e;
  --rinse: #89d1ef;     /* droplet */
  --ice: #eaf6fc;
  --ice-line: #cfe4f0;
  --green: #18986a;     /* "Precision Cleaning" green */
  --green-ink: #0d7150;
  --gray: #787878;      /* bin-gray signage */
  --muted: #4a5961;
  --field: #6b8a9e;
  --error: #b3261e;
  --white: #fff;
  --focus: #0082c8;
  --display: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --radius: 12px;
  --gutter: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); margin: 0; line-height: 1.1; text-wrap: balance; }
h1 { font-weight: 800; font-stretch: 118%; letter-spacing: -0.01em; }
h2 { font-weight: 750; font-stretch: 108%; font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); letter-spacing: -0.005em; }
h3 { font-weight: 700; font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 64ch; }
a { color: var(--action); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--action-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.band-navy :focus-visible, .site-footer :focus-visible { outline-color: var(--rinse); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--navy); color: #fff; padding: 0.6rem 1rem; z-index: 50; border-radius: 0 0 8px 8px; }
.skip:focus { top: 0; }

[hidden] { display: none !important; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--ice-line); }
.bar { display: flex; align-items: center; gap: 1.25rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand img { width: 34px; height: auto; }
.wordmark { font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: 1.3rem; letter-spacing: -0.01em; color: var(--navy); }
.wordmark span { color: var(--blue); }
.brand, .wordmark { white-space: nowrap; }
.bar .btn { white-space: nowrap; }
@media (max-width: 30rem) {
  .bar { gap: 0.5rem; }
  .wordmark { font-size: 1.1rem; }
  .bar .btn { min-height: 44px; padding: 0.5rem 0.9rem; font-size: 0.92rem; }
  .brand img { width: 28px; }
}
@media (max-width: 22rem) {
  .wordmark { font-size: 1rem; }
  .brand { gap: 0.4rem; }
  .bar .btn { padding: 0.5rem 0.7rem; }
  .nav-narrow summary { padding: 0.7rem 0.2rem; }
}
.nav-wide { display: none; gap: 1.6rem; font-family: var(--display); font-weight: 560; font-size: 0.98rem; }
.nav-wide a, .nav-narrow nav a { color: var(--navy); text-decoration: none; }
.nav-wide a:hover { text-decoration: underline; }
.nav-wide a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 0.14em; }
.nav-narrow { position: relative; }
.nav-narrow summary { list-style: none; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--navy); padding: 0.7rem 0.4rem; min-height: 44px; display: flex; align-items: center; }
.nav-narrow summary::-webkit-details-marker { display: none; }
.nav-narrow nav { position: absolute; right: 0; top: 100%; z-index: 20; width: min(18rem, 86vw); background: #fff; border: 1px solid var(--ice-line); border-radius: var(--radius); padding: 0.4rem; display: grid; box-shadow: 0 10px 30px -12px rgba(11, 58, 92, 0.35); }
.nav-narrow nav a { padding: 0.8rem 0.9rem; font-family: var(--display); font-weight: 560; border-radius: 8px; }
.nav-narrow nav a:hover { background: var(--ice); }
@media (min-width: 52rem) { .nav-wide { display: flex; } .nav-narrow { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.4rem; border: 2px solid var(--action); border-radius: 10px;
  background: var(--action); color: #fff; text-decoration: none; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.005em; line-height: 1.1;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--action-dark); border-color: var(--action-dark); color: #fff; }
.btn-sm { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.95rem; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--ice); color: var(--navy); border-color: var(--ice); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: #b9c8d2; border-color: #b9c8d2; color: #37464f; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero-shield { position: absolute; left: -4rem; bottom: -5rem; width: clamp(18rem, 42vw, 34rem); opacity: 0.09; pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: 2.5rem; padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 62rem) { .hero .wrap { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 3.5rem; } }
.hero h1 { font-size: clamp(3.3rem, 2rem + 8vw, 6.4rem); line-height: 0.92; }
.lead { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.45rem); line-height: 1.5; margin-top: 1.4rem; max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; margin-top: 1.8rem; }
.cta-row .phone { font-family: var(--display); font-weight: 650; text-decoration: none; color: var(--navy); }
.cta-row .phone:hover { text-decoration: underline; }
.spark { transform-box: fill-box; transform-origin: center; animation: twinkle 1.2s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.35s 1 both; }
.spark-b { animation-delay: 0.6s; }
@keyframes twinkle { from { transform: scale(0) rotate(-35deg); opacity: 0; } 60% { transform: scale(1.25) rotate(0); opacity: 1; } to { transform: scale(1); opacity: 1; } }

/* ---------- Quote card (hero + services) ---------- */
.quote { background: #fff; border: 2px solid var(--navy); border-radius: 16px; overflow: hidden; box-shadow: 8px 8px 0 var(--navy); }
.quote-head { background: var(--navy); color: #fff; padding: 0.8rem 1.2rem; font-family: var(--display); font-weight: 700; font-stretch: 108%; font-size: 1.05rem; }
.quote-body { padding: 1.2rem; display: grid; gap: 1.2rem; }
.ctl-label { display: block; font-family: var(--display); font-weight: 650; font-size: 0.92rem; color: var(--navy); margin-bottom: 0.45rem; }
.seg { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.seg legend { padding: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0.45rem 0.95rem; border: 2px solid var(--field); border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--navy); background: #fff; }
.seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.seg input:disabled + span { opacity: 0.45; }
.stepper { display: inline-flex; align-items: stretch; border: 2px solid var(--field); border-radius: 10px; overflow: hidden; }
.stepper button { width: 48px; min-height: 48px; border: 0; background: var(--ice); color: var(--navy); font: 700 1.4rem/1 var(--display); cursor: pointer; }
.stepper button:hover:not(:disabled) { background: var(--ice-line); }
.stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.stepper output { min-width: 3.4rem; display: grid; place-items: center; font: 800 1.35rem var(--display); color: var(--navy); background: #fff; font-variant-numeric: tabular-nums; }
.opt { display: flex; align-items: center; gap: 0.8rem; min-height: 52px; padding: 0.55rem 0.8rem; border: 2px solid var(--ice-line); border-radius: 10px; cursor: pointer; background: #fff; }
.opt:has(input:checked) { border-color: var(--navy); background: var(--ice); }
.opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt input { width: 1.25rem; height: 1.25rem; accent-color: var(--navy); flex: none; margin: 0; }
.opt .t { font-family: var(--display); font-weight: 650; color: var(--navy); line-height: 1.2; }
.opt .d { display: block; font-family: var(--serif); font-weight: 400; font-size: 0.9rem; color: var(--muted); line-height: 1.3; }
.opt .p { margin-left: auto; font-family: var(--display); font-weight: 700; color: var(--green-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.2rem 0.6rem; padding-top: 1rem; border-top: 2px dashed var(--ice-line); }
.total .amt { font-family: var(--display); font-weight: 850; font-stretch: 118%; font-size: clamp(2.8rem, 2rem + 3vw, 4rem); line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.total .unit { font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--muted); }
.fineprint { font-size: 0.92rem; color: var(--muted); line-height: 1.45; margin: 0; }
.quote-body .fineprint a { font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.8rem, 6vw, 5rem); }
.band-ice { background: var(--ice); }
.band-navy { background: var(--navy); color: #e6f2f9; }
.band-navy h2, .band-navy h3 { color: #fff; }
.band-navy a:not(.btn) { color: var(--rinse); }
.band-navy a:not(.btn):hover { color: #fff; }
.split { display: grid; gap: 2rem 4rem; }
@media (min-width: 52rem) { .split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } .split-even { grid-template-columns: 1fr 1fr; } }
.section-intro { margin-top: 0.9rem; font-size: 1.15rem; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 1.5rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: 0.2rem 1rem; align-items: start; }
.steps li::before { content: counter(s); grid-row: 1 / span 2; font: 850 2.6rem/0.95 var(--display); font-stretch: 118%; color: var(--blue); }
.steps h3 { font-size: 1.2rem; }
.steps p { margin: 0.25rem 0 0; }
.defs { margin: 0; display: grid; gap: 1.4rem; }
.defs dt { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--navy); display: flex; gap: 0.7rem; align-items: baseline; flex-wrap: wrap; }
.defs dd { margin: 0.25rem 0 0; }
.defs .addon-price { font-size: 0.95rem; font-weight: 700; color: var(--green-ink); }
.areas { display: grid; gap: 0.2rem 2.4rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.areas li { font: 800 clamp(1.8rem, 1.1rem + 3.4vw, 3.4rem)/1.05 var(--display); font-stretch: 112%; color: #fff; }
.areas.on-light li { color: var(--navy); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin-top: 1.2rem; border: 1px solid var(--ice-line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-family: var(--display); font-size: 0.98rem; min-width: 32rem; }
caption { text-align: left; padding: 0.9rem 1rem; font-weight: 700; font-stretch: 108%; color: var(--navy); font-size: 1.1rem; }
th, td { padding: 0.7rem 1rem; text-align: right; border-top: 1px solid var(--ice-line); font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { text-align: left; }
thead th { background: var(--ice); color: var(--navy); font-weight: 700; border-top: 0; vertical-align: bottom; }
tbody th { font-weight: 650; color: var(--navy); }
td.na { color: #6c7a82; }
.loading-note { padding: 1.2rem; color: var(--muted); font-family: var(--display); }

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; margin-top: 1.8rem; border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--ice-line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.05rem 2.4rem 1.05rem 0; position: relative; font: 650 1.12rem/1.3 var(--display); color: var(--navy); min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.4rem; top: 0.8rem; font: 500 1.7rem/1 var(--display); color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { padding: 0 2.4rem 1.2rem 0; }
.faq .ans p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fgrid { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .fgrid.cols-2 { grid-template-columns: 1fr 1fr; } .fgrid .full { grid-column: 1 / -1; } }
.field label, .field .lbl { display: block; font: 650 0.92rem/1.3 var(--display); color: var(--navy); margin-bottom: 0.4rem; }
.field .opt-tag { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.6rem 0.8rem; border: 2px solid var(--field); border-radius: 10px; background: #fff; color: var(--ink);
  font: 400 1.05rem var(--display);
}
.field textarea { min-height: 7.5rem; resize: vertical; font-family: var(--serif); line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--navy); }
.field .help { font-size: 0.9rem; color: var(--muted); margin: 0.35rem 0 0; line-height: 1.4; }
.field .err { display: none; font: 600 0.92rem/1.35 var(--display); color: var(--error); margin: 0.35rem 0 0; }
.field.has-error .err { display: block; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.legend { font: 750 1.35rem/1.15 var(--display); font-stretch: 108%; color: var(--navy); padding: 0; margin-bottom: 1rem; }
.form-section + .form-section { margin-top: 2.2rem; padding-top: 2rem; border-top: 2px solid var(--ice-line); }
.consent { display: flex; gap: 0.8rem; align-items: flex-start; margin-top: 1.4rem; }
.err-text { font: 600 0.92rem/1.35 var(--display); color: var(--error); margin: 0.5rem 0 0; }
.consent input { width: 1.3rem; height: 1.3rem; margin-top: 0.2rem; accent-color: var(--navy); flex: none; }
.consent label { font-size: 0.95rem; line-height: 1.5; font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; }
.alert { padding: 0.9rem 1.1rem; border-radius: 10px; font-family: var(--display); font-weight: 560; line-height: 1.4; border: 2px solid; }
.alert[hidden] { display: none; }
.alert-error { background: #fdeceb; border-color: var(--error); color: #6e1510; }
.alert-info { background: var(--ice); border-color: var(--rinse); color: var(--navy); }
.alert-ok { background: #e7f6ef; border-color: var(--green); color: #0b4a35; }
.alert a { font-weight: 700; }
.hp { position: absolute; left: -9999px; }

/* ---------- Booking layout ---------- */
.book-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 62rem) { .book-grid { grid-template-columns: minmax(0, 1fr) 22.5rem; gap: 3rem; } .summary { position: sticky; top: 1.2rem; } }
.summary .quote-body { gap: 0.9rem; }
.lines { margin: 0; display: grid; gap: 0.45rem; font-family: var(--display); font-size: 0.98rem; }
.lines div { display: flex; justify-content: space-between; gap: 1rem; }
.lines dt { color: var(--muted); }
.lines dd { margin: 0; font-weight: 650; color: var(--navy); font-variant-numeric: tabular-nums; text-align: right; }
.page-head { padding-block: clamp(2rem, 5vw, 3.6rem) 0; }
.page-head h1 { font-size: clamp(2.4rem, 1.6rem + 4.2vw, 4.4rem); line-height: 0.98; }
.page-head .lead { max-width: 40ch; }

/* ---------- Thank you ---------- */
.done { text-align: left; }
.done .big-shield { width: clamp(7rem, 20vw, 10rem); margin-bottom: 1.4rem; }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.5rem; margin: 2.2rem 0 0.7rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cfe4f0; padding-top: clamp(2.4rem, 5vw, 3.6rem); font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--rinse); }
.brand-light .wordmark { color: #fff; }
.brand-light .wordmark span { color: var(--rinse); }
.foot-grid { display: grid; gap: 2rem 3rem; }
@media (min-width: 52rem) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-h { font: 700 1rem var(--display); color: #fff; margin: 0 0 0.7rem; }
.foot-brand p { margin-top: 0.9rem; max-width: 30ch; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 2.4rem; padding-block: 1.2rem 1.6rem; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.92rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spark { animation: none; }
  .btn { transition: none; }
}
@media print { .site-header, .site-footer, .hero-shield { display: none; } }

/* ---------- Page titles and checklists ---------- */
.page-title { font-size: clamp(2.4rem, 1.6rem + 4.2vw, 4.4rem); line-height: 0.98; }
.checklist { list-style: none; margin: 1.6rem 0; padding: 0; display: grid; gap: 0.7rem; max-width: 40rem; }
.checklist li { position: relative; padding-left: 2.1rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.28em; width: 1.2em; height: 1.2em; background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cpath d='M0-11Q1.5-1.5 11 0Q1.5 1.5 0 11Q-1.5 1.5-11 0Q-1.5-1.5 0-11Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cpath d='M0-11Q1.5-1.5 11 0Q1.5 1.5 0 11Q-1.5 1.5-11 0Q-1.5-1.5 0-11Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
