/* Shared design system: virginiasepticinspection.com + septicsysteminspections.com
   v0.1.0 — 2026-11-21 — first build. One family (Instrument Sans), white/slate, one cobalt accent.
   The live price is the one bold element; everything else stays quiet. */

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --mist: #f1f4f7;
  --line: #d9dfe7;
  --slate: #4b5768;
  --ink: #17202c;
  --cobalt: #1f4fd1;
  --cobalt-deep: #163b9e;
  --ok: #1b7a4b;
  --warn-bg: #fff6e0;
  --warn-ink: #6b4a00;
  --radius-s: 6px;
  --radius-l: 16px;
  --wrap: 1160px;
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.55; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-deep); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: 1.2rem; color: var(--slate); max-width: 46ch; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.15; }
.brand strong { font-size: 1.05rem; letter-spacing: -0.01em; }
.brand span { font-size: .78rem; color: var(--slate); }
.nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--cobalt); }
.nav .tel { font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .nav a:not(.tel) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 1rem;
  padding: 14px 22px; border-radius: var(--radius-s); border: 1px solid transparent; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-deep); color: #fff; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }

/* Sections */
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 40px; }
.section-head p { color: var(--slate); }
.band { background: var(--mist); }

/* Hero + price builder */
.hero { padding: 56px 0 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 56px; align-items: start; }
.hero-copy { padding-top: 24px; }
.hero-copy .facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; color: var(--slate); }
.hero-copy .facts li { padding-left: 26px; position: relative; }
.hero-copy .facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 2px; background: var(--cobalt); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero-copy { padding-top: 0; } }

.builder { border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--paper); overflow: hidden; }
.builder-body { padding: 24px; display: grid; gap: 22px; }
.field-label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.choices { display: grid; gap: 8px; }
.choice { position: relative; display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: start; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-s); cursor: pointer; }
.choice:hover { border-color: var(--slate); }
.choice input { margin: 3px 0 0; accent-color: var(--cobalt); width: 18px; height: 18px; }
.choice .c-title { font-weight: 600; display: block; }
.choice .c-sub { font-size: .88rem; color: var(--slate); display: block; }
.choice .c-price { font-size: .9rem; color: var(--slate); font-variant-numeric: tabular-nums; text-align: right; max-width: 7.5em; }
fieldset { min-width: 0; }
@media (max-width: 900px) { .hero-copy .facts { display: none; } }
.choice:has(input:checked) { border-color: var(--cobalt); background: #f4f7ff; box-shadow: inset 0 0 0 1px var(--cobalt); }

select, input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 12px; }
select:hover, input:hover, textarea:hover { border-color: var(--slate); }
textarea { min-height: 110px; resize: vertical; }
.hint { font-size: .86rem; color: var(--slate); margin: 6px 0 0; }
.notice { background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--radius-s); padding: 12px 14px; font-size: .92rem; margin: 10px 0 0; }

.price { background: var(--ink); color: #fff; padding: 22px 24px 24px; }
.price-label { font-size: .9rem; color: #c3cbd6; margin: 0 0 4px; }
.price-figure { font-size: clamp(2.6rem, 7vw, 3.6rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; margin: 0; }
.price-figure .cents { font-size: .45em; letter-spacing: 0; vertical-align: .9em; margin-left: 2px; color: #c3cbd6; }
.price-figure.is-empty { color: #8994a4; font-size: 1.4rem; letter-spacing: 0; font-weight: 500; line-height: 1.3; }
.price-note { font-size: .88rem; color: #c3cbd6; margin: 12px 0 18px; }
.price .btn-primary { background: #fff; color: var(--ink); }
.price .btn-primary:hover { background: #e7ecf3; color: var(--ink); }
.price-figure.bump { animation: bump .28s ease-out; }
@keyframes bump { from { transform: translateY(4px); opacity: .4; } to { transform: none; opacity: 1; } }

/* Steps (a real sequence) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(s); display: block; font-weight: 600; font-size: .9rem; color: var(--cobalt); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { font-size: .94rem; color: var(--slate); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Service detail columns */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.services article h3 { font-size: 1.35rem; }
.services .from { font-variant-numeric: tabular-nums; font-weight: 600; margin: 0 0 12px; }
.services ul { padding-left: 18px; color: var(--slate); margin: 0; }
.services li { margin-bottom: 6px; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; gap: 32px; } }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 32px 20px 0; font-weight: 600; font-size: 1.08rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; font-weight: 400; color: var(--slate); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--slate); padding-bottom: 8px; }

/* Request form */
.request-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .request-grid { grid-template-columns: 1fr; gap: 28px; } }
.summary { position: sticky; top: 88px; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 22px; background: var(--paper); }
.summary dl { margin: 16px 0 0; display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.sum-field { margin-bottom: 14px; }
.summary .choice { padding: 10px 12px; }
.summary dt { font-size: .82rem; color: var(--slate); }
.summary dd { margin: 0; font-weight: 600; }
.summary .sum-price { font-size: 1.6rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
@media (max-width: 900px) { .summary { position: static; } }
form fieldset { border: 0; padding: 0; margin: 0 0 28px; }
form legend { font-weight: 600; font-size: 1.1rem; margin-bottom: 14px; padding: 0; }
.row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.row.three { grid-template-columns: 2fr 1fr 1fr; }
.row.one { grid-template-columns: 1fr; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } .row.three { grid-template-columns: 1fr 1fr; } .row.three > :first-child { grid-column: 1 / -1; } }
.row label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.row label .opt { font-weight: 400; color: var(--slate); }
.err { color: #a3221b; font-size: .86rem; margin: 6px 0 0; }
[aria-invalid="true"] { border-color: #a3221b !important; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.done { border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; }
.done h3 { color: var(--ok); }
.done .tag { display: inline-block; background: var(--warn-bg); color: var(--warn-ink); border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 600; margin-bottom: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--slate); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; }
.site-footer p { margin: 0; }
/* v0.2.0 — 2026-11-21 — pickers in the request section */
.summary fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.summary .c-sub { display: none; }

/* field photos */
.photos-head { margin: 48px 0 16px; font-size: 1.1rem; }
.field-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.field-photos figure { margin: 0; min-width: 0; }
.field-photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: var(--radius-s); }
.field-photos figcaption { font-size: .88rem; color: var(--slate); margin-top: 8px; line-height: 1.4; }

/* v0.5.0 confirmation page */
.confirm { padding: 72px 0 96px; min-height: 50vh; }
.confirm section { max-width: 60ch; }
.confirm h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }

/* v0.6.0 mobile: photo rows become a swipeable strip with the next photo peeking in */
@media (max-width: 700px) {
  .field-photos { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-left: -24px; margin-right: -24px; padding: 0 24px 6px; scroll-padding-inline: 24px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .field-photos::-webkit-scrollbar { display: none; }
  .field-photos figure { flex: 0 0 84%; scroll-snap-align: start; }
  .swipe-hint { display: block; }
}
.swipe-hint { display: none; font-size: .85rem; color: var(--slate); margin: 4px 0 0; }
@media (max-width: 760px) {
  .site-header .wrap { min-height: 56px; gap: 12px; }
  .brand span { display: none; }
  .brand { min-width: 0; } .brand strong { font-size: 1rem; line-height: 1.15; }
  .nav { gap: 0; flex: none; }
  .nav .tel { white-space: nowrap; font-size: .88rem; padding: 7px 12px; border: 1px solid var(--ink); border-radius: 999px; }
  section { padding-top: 56px; padding-bottom: 56px; }
}
@media (max-width: 480px) {
  .choice { grid-template-columns: 20px minmax(0, 1fr); row-gap: 2px; }
  .choice .c-price { grid-column: 2; text-align: left; max-width: none; font-weight: 600; color: var(--ink); }
  .choice .c-price:empty { display: none; }
}
.closed-note { border: 1px solid var(--line); border-radius: var(--radius-l); padding: 22px 24px; background: var(--paper); }
.closed-note p { margin: 0; }

/* v0.8.0 Turnstile */
.ts-box { margin: 18px 0 14px; min-height: 65px; }

/* v0.8.1 — the hidden attribute always wins (a display rule was showing the "Preview" tag on live sites) */
[hidden] { display: none !important; }
.done { scroll-margin-top: 88px; }

/* v0.8.3 — clearer "sent" state, no flash */
.done { border-left: 4px solid var(--ok); background: #fff; animation: done-in .45s ease-out both; }
.done-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.done-head h3 { margin: 0; font-size: 1.5rem; color: var(--ink); }
.done-mark { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ok); color: #fff; }
.done-num { font-size: 1.1rem; margin: 0 0 10px; color: var(--slate); }
.done-num strong { color: var(--ink); font-size: 1.25rem; letter-spacing: .03em; }
@keyframes done-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .done { animation: none; } }

/* v0.10.0 (proposal) — quiet provider notes (used on septicsysteminspections.com only) */
.provider { margin: 32px 0 0; padding: 2px 0 2px 16px; border-left: 2px solid var(--line); font-size: .95rem; line-height: 1.55; color: var(--slate); max-width: 62ch; }
.provider p { margin: 0; }
.provider-label { font-size: .8rem; font-weight: 600; color: var(--ink); margin-bottom: 2px !important; }
.provider a, .providers a { color: var(--cobalt); text-underline-offset: 3px; }
.providers { font-size: .9rem; color: var(--slate); flex-basis: 100%; }
.providers ul { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 6px; }
.providers li { display: grid; grid-template-columns: minmax(0, 15em) 1fr; gap: 12px; }
.providers .disclose { font-size: .8rem; margin: 0; }
@media (max-width: 560px) { .providers li { grid-template-columns: 1fr; gap: 0; } .providers li + li { margin-top: 6px; } }
/* v0.10.0 (proposal) — About page */
.about { max-width: 68ch; margin: 0 auto; padding: 56px 24px 96px; }
.about h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin: 0 0 28px; }
.about h2 { font-size: 1.2rem; margin: 32px 0 8px; }
.about h3 { font-size: 1rem; margin: 20px 0 6px; }
.about-back { font-size: .9rem; margin: 0 0 28px; }
.about a { color: var(--cobalt); }
.about section { padding: 6px 0; }
.about ul { padding-left: 1.2em; }
.legal-updated { font-size: .85rem; color: var(--slate); margin: -16px 0 24px; }
.site-footer .terms-link { color: var(--slate); font-size: .85rem; }

/* v0.11.0 — section pages */
.subpage .crumbs { font-size: .88rem; color: var(--slate); padding: 20px 0 0; }
.subpage .crumbs a { color: var(--slate); }
.subpage section:first-of-type { padding-top: 32px; }
.subpage .section-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.1; margin: 0; }
.sec-summary { max-width: 62ch; color: var(--slate); font-size: 1.05rem; margin: -16px 0 20px; }
.next-page { margin: 40px 0; font-weight: 600; }
