/* 503 Restoration — one typeface (Archivo, variable width + weight).
   Expanded widths = signage for headings; condensed = gauge readings for numbers. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2-variations"), url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  --ink: #14232a;      /* basalt */
  --ink-2: #2b3c44;
  --rain: #e9eff1;     /* page */
  --paper: #ffffff;
  --river: #0f5e6b;    /* water, links */
  --river-tint: #d3e6ea;
  --flare: #c8400d;    /* action, fire */
  --flare-dark: #a5340a;
  --flare-tint: #f9dccd;
  --flare-mid: #f0b597;
  --moss: #2f6b3f;
  --moss-tint: #eaf3ec;
  --line: #c6d2d6;
  --muted: #4a5a61;
  --radius: 6px;
  --wrap: 1180px;
  --gutter: 20px;
  --font: "Archivo", "Arial Narrow", Arial, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--rain);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
}
@media (min-width: 720px) { body { font-size: 1.125rem; } }

img, svg { max-width: 100%; display: block; }
a { color: var(--river); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--river); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.6vw, 4.1rem); font-stretch: 118%; font-weight: 780; line-height: 1.0; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); font-stretch: 112%; font-weight: 720; }
h3 { font-size: 1.2rem; font-stretch: 104%; font-weight: 680; line-height: 1.25; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1.2em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 680; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.num { font-stretch: 75%; font-weight: 740; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.01em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ── Buttons ───────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius); border: 2px solid transparent;
  font: inherit; font-weight: 720; font-stretch: 108%; font-size: 1.02rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-flare { background: var(--flare); color: #fff; }
.btn-flare:hover { background: var(--flare-dark); }
.btn-call { background: var(--ink); color: #fff; }
.btn-call:hover { background: var(--ink-2); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ── Header ────────────────────────────── */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: stretch; text-decoration: none; color: var(--ink); line-height: 1; }
.logo-num { background: var(--ink); color: #fff; font-stretch: 125%; font-weight: 800; padding: 6px 7px 5px; font-size: 1.1rem; border-radius: 3px 0 0 3px; }
.logo-word { border: 2px solid var(--ink); border-left: 0; padding: 4px 8px 3px; font-stretch: 82%; font-weight: 680; font-size: 1.1rem; border-radius: 0 3px 3px 0; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav li { margin: 0; }
.nav a { display: block; padding: 8px 10px; color: var(--ink); text-decoration: none; font-weight: 560; font-size: 0.98rem; border-radius: 4px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--rain); }
.nav .nav-extra { display: none; }
.nav-toggle { display: none; }
.header-cta { display: flex; gap: 8px; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; min-height: 40px; padding: 8px 12px; border: 2px solid var(--ink); border-radius: var(--radius); background: transparent; font: inherit; font-weight: 650; color: var(--ink); cursor: pointer; }
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--paper); flex-direction: column; padding: 8px var(--gutter) 16px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px -16px rgba(20, 35, 42, 0.4); }
  .nav ul.open { display: flex; }
  .nav a { padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--rain); }
  .nav .nav-extra { display: block; }
  .header-cta .btn-flare { display: none; }
}
@media (max-width: 520px) { .header-cta { display: none; } }

/* ── Hero ──────────────────────────────── */
.hero { padding: 40px 0 48px; }
.hero-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .hero { padding: 64px 0 72px; } .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 56px; } }
.hero-lede { font-size: 1.2rem; max-width: 36em; color: var(--ink-2); }
@media (min-width: 720px) { .hero-lede { font-size: 1.32rem; } }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; max-width: 34em; }
.hero-points li { padding-left: 30px; position: relative; margin: 0; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 16px; height: 9px; border-left: 3px solid var(--moss); border-bottom: 3px solid var(--moss); transform: rotate(-45deg); }
.hero-soft { margin-top: 28px; font-size: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (min-width: 960px) { .hero-actions.mobile-only { display: none; } }

/* ── Request panel ─────────────────────── */
.panel { background: var(--paper); border-radius: 10px; padding: 0 22px 22px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(20, 35, 42, 0.55); border: 1px solid var(--line); scroll-margin-top: 84px; }
.panel-title { margin: 0 -22px 18px; padding: 16px 22px 14px; background: var(--ink); color: #fff; font-size: 1.3rem; font-stretch: 112%; font-weight: 740; border-radius: 9px 9px 0 0; }
.chips { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-weight: 680; margin-bottom: 8px; padding: 0; font-size: 1rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); font-size: 0.95rem; font-weight: 560; line-height: 1.2; background: var(--paper); transition: background 0.15s, border-color 0.15s; }
.chip input:hover + span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--river); outline-offset: 2px; }

/* The damage clock: where you are in the 24–48 h drying window (EPA). */
.clock { margin: 4px 0 16px; }
.clock.is-hidden { display: none; }
.clock-track { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; height: 12px; border-radius: 6px; overflow: visible; }
.clock-seg { height: 12px; }
.seg-a { background: var(--river-tint); border-radius: 6px 0 0 6px; }
.seg-b { background: var(--flare-tint); }
.seg-c { background: var(--flare-mid); border-radius: 0 6px 6px 0; }
.clock-needle { position: absolute; top: -7px; left: 2%; width: 4px; height: 26px; background: var(--ink); border-radius: 2px; transition: left 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); opacity: 0; }
.clock.has-time .clock-needle { opacity: 1; }
.clock-labels { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); margin-top: 6px; font-stretch: 85%; font-variant-numeric: tabular-nums; }

.now { background: var(--moss-tint); border-left: 4px solid var(--moss); padding: 12px 14px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 18px; font-size: 0.98rem; }
.now p { margin: 0 0 0.4em; }
.now p:last-child { margin-bottom: 0; }
.now-title { font-weight: 720; }
.now ol { margin: 0.3em 0 0.4em; padding-left: 1.3em; }
.now li { margin-bottom: 0.3em; }
.now .warn { color: var(--flare-dark); font-weight: 650; }

.fields { display: grid; gap: 12px; margin-bottom: 16px; }
@media (min-width: 1100px) { .hero .fields { grid-template-columns: 1fr 1fr; } .hero .fields .more, .hero .fields .field-zip { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 640; font-size: 0.95rem; margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 11px 12px; border: 1.5px solid #9fb0b6; border-radius: var(--radius); background: #fff; color: var(--ink); min-height: 48px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--river); outline: 3px solid var(--river-tint); outline-offset: 0; }
.field input[aria-invalid="true"] { border-color: var(--flare); }
.more summary { cursor: pointer; color: var(--river); font-weight: 600; font-size: 0.95rem; padding: 4px 0; }
.more[open] summary { margin-bottom: 10px; }
.more .field { margin-bottom: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 10px 0 0; font-weight: 600; min-height: 0; }
.form-status.error { color: var(--flare-dark); }
.fine { font-size: 0.82rem; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }
.inline-call { font-weight: 700; }

/* ── Sections ──────────────────────────── */
section { padding: 0; }
.band { padding: 56px 0; }
.band-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { max-width: 46em; margin-bottom: 28px; }
.section-intro p { color: var(--ink-2); }

/* Oregon numbers */
.facts { display: grid; gap: 0; border-top: 3px solid var(--ink); }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .fact { border-bottom: 0; border-right: 1px solid var(--line); padding: 20px 20px 8px; } .fact:first-child { padding-left: 0; } .fact:last-child { border-right: 0; } }
.fact .num { display: block; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; margin-bottom: 8px; }
.fact .num small { font-size: 0.45em; font-weight: 650; margin-left: 2px; }
.fact p { margin: 0 0 6px; font-size: 0.98rem; }
.cite { font-size: 0.82em; color: var(--muted); white-space: nowrap; }
.cite:hover { color: var(--river); }

/* Services */
.svc-grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .svc-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.svc { background: var(--paper); padding: 26px 24px 22px; border-top: 6px solid var(--river); border-radius: 0 0 8px 8px; }
.svc.fire { border-top-color: var(--flare); }
.svc h3 { font-size: 1.5rem; font-stretch: 114%; font-weight: 740; }
.svc ul { margin-bottom: 16px; }
.svc-more { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .svc-more { grid-template-columns: repeat(3, 1fr); column-gap: 28px; } }
.svc-more a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 640; text-decoration: none; color: var(--ink); }
.svc-more a span { display: block; font-weight: 400; color: var(--muted); font-size: 0.95rem; }
.svc-more a:hover { color: var(--river); }

/* Steps (true sequence) */
.steps { padding: 56px var(--gutter); }
.steps-list { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 24px; }
@media (min-width: 860px) { .steps-list { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.steps-list li { counter-increment: step; margin: 0; position: relative; padding-top: 56px; }
.steps-list li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; font-stretch: 120%; border-radius: 50%; font-size: 1.15rem; }
.steps-list li:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 52px; right: -18px; height: 2px; background: var(--line); }
@media (max-width: 859px) { .steps-list li:not(:last-child)::after { display: none; } }
.steps-list p { color: var(--ink-2); font-size: 1rem; }

/* Standards */
.standards { padding: 8px var(--gutter) 56px; }
.std-list { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .std-list { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.std-list div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.std-list dt { font-weight: 720; font-stretch: 108%; font-size: 1.12rem; margin-bottom: 4px; }
.std-list dd { margin: 0; color: var(--ink-2); }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; padding: 36px 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.cta-text { font-size: clamp(1.4rem, 3vw, 2rem); font-stretch: 114%; font-weight: 740; margin: 0; line-height: 1.15; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-call { background: #fff; color: var(--ink); }

/* ── Article / split layout ────────────── */
.page-head { padding-top: 36px; padding-bottom: 8px; }
@media (min-width: 960px) { .page-head { padding-top: 52px; padding-bottom: 16px; } }
.page-head h1 { font-size: clamp(2rem, 4.8vw, 3.4rem); max-width: 18em; }
.page-head .lede { font-size: 1.2rem; max-width: 40em; color: var(--ink-2); }
.updated { font-size: 0.9rem; color: var(--muted); }

.split { display: grid; gap: 40px; padding-bottom: 56px; align-items: start; }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr) 390px; gap: 56px; } .split > aside { position: sticky; top: 88px; } }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }

.answer { background: var(--paper); border-left: 5px solid var(--river); padding: 16px 18px; margin: 0 0 1.4em; border-radius: 0 8px 8px 0; }
.answer-q { font-weight: 720; font-stretch: 106%; margin: 0 0 6px; }
.answer-a { margin: 0; }

.callout { background: var(--flare-tint); border-left: 5px solid var(--flare); padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 0 0 1.4em; }
.callout p:last-child { margin: 0; }
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 0.6em; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 14px; height: 8px; border-left: 3px solid var(--moss); border-bottom: 3px solid var(--moss); transform: rotate(-45deg); }
.donts li::marker { color: var(--flare); }

.table-wrap { overflow-x: auto; margin: 0 0 1.6em; background: var(--paper); border-radius: 8px; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 0.98rem; min-width: 520px; }
caption { text-align: left; font-weight: 720; padding: 14px 16px 6px; font-stretch: 106%; }
th, td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--rain); vertical-align: top; }
thead th { font-size: 0.9rem; color: var(--muted); font-weight: 650; border-bottom: 2px solid var(--line); }
tbody th { font-weight: 650; }
td { font-variant-numeric: tabular-nums; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.table-note { font-size: 0.88rem; color: var(--muted); padding: 0 16px 12px; margin: 0; }

.crumbs { padding-top: 18px; font-size: 0.9rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.crumbs li { margin: 0; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }

.faq { padding: 8px var(--gutter) 48px; max-width: calc(70ch + 2 * var(--gutter)); margin-left: 0; }
.split .faq { padding: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 680; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; font-weight: 500; color: var(--river); }
.faq details[open] summary::after { content: "–"; }
.faq-a { padding: 0 0 16px; color: var(--ink-2); }

.related { padding: 8px var(--gutter) 56px; }
.related ul { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .related ul { grid-template-columns: repeat(3, 1fr); column-gap: 28px; } }
.related li { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.related a { font-weight: 680; }
.related p { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }

.area-list { columns: 2; column-gap: 28px; padding-left: 1.1em; }
@media (min-width: 760px) { .area-list { columns: 3; } }

.sources { padding: 32px var(--gutter) 56px; border-top: 1px solid var(--line); font-size: 0.9rem; }
.sources h2 { font-size: 1.2rem; }
.sources ol { padding-left: 1.4em; }
.sources li { margin-bottom: 0.5em; color: var(--muted); }

.print-only { display: none; }

/* ── Footer ────────────────────────────── */
.site-footer { background: var(--ink); color: #d7e1e4; padding: 48px 0 110px; font-size: 0.98rem; }
@media (min-width: 821px) { .site-footer { padding-bottom: 40px; } }
.site-footer a { color: #fff; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer .logo-num { background: #fff; color: var(--ink); }
.site-footer .logo-word { border-color: #fff; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.1fr 0.7fr; gap: 36px; } }
.site-footer h2 { font-size: 1rem; font-stretch: 108%; color: #fff; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-phone a { font-size: 1.4rem; font-weight: 760; font-stretch: 110%; text-decoration: none; }
.footer-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid #33464f; font-size: 0.85rem; color: #aebdc2; }

/* ── Sticky mobile bar ─────────────────── */
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -18px rgba(20, 35, 42, 0.5); transition: transform 0.25s ease; }
.sticky-bar .btn { flex: 1; }
.sticky-bar.is-away { transform: translateY(110%); }
@media (min-width: 821px) { .sticky-bar { display: none; } }

/* ── Thank-you ─────────────────────────── */
.thanks { padding-top: 56px; padding-bottom: 72px; max-width: 46em; }
.thanks .big { font-size: 1.3rem; }

/* ── Print (checklist) ─────────────────── */
@media print {
  .site-header, .site-footer, .sticky-bar, .split > aside, .cta-band, .related, .crumbs, .no-print { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .print-only { display: block; }
  .split { display: block; }
  a { color: inherit; text-decoration: none; }
}
