/* ==========================================================================
   Ohio Valley Radon Mitigation — styles.css
   Single stylesheet. No framework. CSS custom properties for all color/type.
   Design character: slate-navy + warm amber, serif body, mono data readings,
   diagonal section breaks. Built to read like a local trade site, not a template.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  --navy: #1b2a41;
  --navy-90: #223350;
  --amber: #c8883a;
  --amber-dark: #a06a28;
  --slate: #4a5568;
  --slate-light: #6b7688;
  --bg: #f7f6f3;
  --white: #ffffff;
  --ink: #1f2733;
  --danger: #9b1c1c;
  --safe: #276749;
  --data-bg: #f1f5f9;
  --line: #e4e2dc;
  --line-strong: #d3d0c8;

  --font-head: "Outfit", "Inter", system-ui, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1120px;
  --wrap-narrow: 760px;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(27, 42, 65, 0.06), 0 8px 24px rgba(27, 42, 65, 0.06);
  --shadow-lg: 0 12px 40px rgba(27, 42, 65, 0.14);
}

/* ---- Reset-ish ---------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { max-width: 100%; display: block; }
a { color: var(--amber-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1rem; }
ul, ol { margin: 0 0 1.1rem; padding-left: 1.2rem; }
li { margin-bottom: 0.4rem; }
strong { color: var(--navy); }

/* ---- Layout helpers ----------------------------------------------------- */
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.container--narrow { max-width: var(--wrap-narrow); }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section--bg { background: var(--white); }
.section--navy { background: var(--navy); color: #dfe4ec; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--amber-dark);
  margin: 0 0 0.7rem;
}
.section--navy .eyebrow { color: var(--amber); }
.lead { font-size: 1.2rem; color: var(--slate); }
.measure { max-width: 62ch; }

/* Diagonal divider — a slim slanted edge between sections */
.slant-top { position: relative; }
.slant-top::before {
  content: "";
  position: absolute; top: -28px; left: 0; right: 0; height: 28px;
  background: inherit;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 0.85rem 1.5rem; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .05s;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--amber { background: var(--amber); color: var(--navy); border-color: var(--amber); }
.btn--amber:hover { background: var(--amber-dark); border-color: var(--amber-dark); color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--navy:hover { background: #0f1a2b; color: var(--white); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.section--navy .btn--ghost, .hero .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.35); }
.section--navy .btn--ghost:hover, .hero .btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.05rem; }

/* ---- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 243, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; }
.nav__logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 700; color: var(--navy); text-decoration: none; font-size: 1.05rem; letter-spacing: -0.01em; }
.nav__logo .mark { width: 30px; height: 30px; flex: none; }
.nav__logo small { display: block; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.04em; color: var(--slate-light); text-transform: uppercase; }
.nav__links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-family: var(--font-head); font-weight: 500; font-size: 0.95rem; color: var(--navy); text-decoration: none; }
.nav__links a:hover { color: var(--amber-dark); }
.nav__cta { margin-left: 0.4rem; }
.nav__call { font-family: var(--font-head); font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; }
.nav__toggle { display: none; background: none; border: 0; padding: 0.4rem; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative; color: var(--white);
  background:
    linear-gradient(180deg, rgba(27,42,65,.82), rgba(27,42,65,.92)),
    radial-gradient(120% 120% at 80% 0%, #2a3f5f 0%, #16233a 60%, #0f1a2b 100%);
  overflow: hidden;
}
.hero::after { /* faint contour lines, evokes soil strata without a photo */
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: repeating-linear-gradient(115deg, transparent 0 38px, rgba(200,136,58,.5) 38px 39px);
}
.hero__inner { position: relative; z-index: 1; padding: clamp(3.5rem, 8vw, 6.5rem) 0; max-width: 46rem; }
.hero h1 { color: var(--white); }
.hero p { color: #d6ddea; font-size: 1.2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.16); list-style: none; padding-left: 0; }
.trust-strip li { display: flex; align-items: center; gap: 0.45rem; font-family: var(--font-head); font-size: 0.86rem; color: #cfd7e4; margin: 0; }
.trust-strip li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; }

/* ---- Data urgency bar --------------------------------------------------- */
.data-bar { background: var(--navy); color: #d7deea; }
.data-bar .container { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.data-bar strong, .data-bar b { font-family: var(--font-mono); color: var(--amber); font-weight: 700; }
.data-bar a { color: #cbd4e2; text-decoration: underline; }

/* ---- Data callout (pCi/L reading) --------------------------------------- */
.data-callout {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  background: var(--data-bg); border: 1px solid var(--line-strong); border-left: 4px solid var(--amber);
  border-radius: var(--radius); padding: 1rem 1.3rem; margin: 0.6rem 0 1.4rem;
}
.data-callout .value { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1; }
.data-callout .label { font-family: var(--font-head); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--slate); margin-top: 0.4rem; }
.data-callout--danger { border-left-color: var(--danger); }
.data-callout--danger .value { color: var(--danger); }
.data-callout--safe { border-left-color: var(--safe); }
.data-callout--safe .value { color: var(--safe); }

/* ---- Steps (How it works) ---------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1.2rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem 1.4rem; box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700; color: var(--amber-dark);
  display: block; margin-bottom: 0.6rem; letter-spacing: 0.02em;
}
.step h3 { margin-bottom: 0.35rem; }
.step p { margin: 0; color: var(--slate); font-size: 0.98rem; }

/* ---- Cards (services) --------------------------------------------------- */
.cards { display: grid; gap: 1.2rem; margin-top: 1.6rem; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--amber); border-radius: var(--radius); padding: 1.5rem 1.4rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--slate); font-size: 0.98rem; margin-bottom: 0.9rem; }
.card a { font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; }

/* ---- Trend callout ------------------------------------------------------ */
.trend { border-left: 4px solid var(--amber); background: var(--white); padding: 1.3rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
.trend p { margin: 0; }
.trend .big { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.15rem; }

/* ---- Tables ------------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.96rem; background: var(--white); }
th, td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
thead th { font-family: var(--font-head); background: var(--navy); color: var(--white); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #fbfaf7; }
td .mono, .mono { font-family: var(--font-mono); }

/* ---- FAQ accordion ------------------------------------------------------ */
.faq { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 1.1rem 2.2rem 1.1rem 0; position: relative; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--navy); }
.faq__q::after { content: "+"; position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--amber-dark); font-weight: 400; }
.faq__q[aria-expanded="true"]::after { content: "\2013"; }
.faq__a { display: none; padding: 0 0 1.2rem; color: var(--slate); }
.faq__a p:last-child { margin-bottom: 0; }
.faq__item.is-open .faq__a { display: block; }

/* ---- Quote form --------------------------------------------------------- */
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow-lg); }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 620px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.86rem; color: var(--navy); margin-bottom: 0.35rem; }
.field label .req { color: var(--amber-dark); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 0.7rem 0.85rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fdfdfc;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
.field textarea { min-height: 96px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.84rem; color: var(--slate-light); margin: 0.8rem 0 0; }
.form-status { margin-top: 1rem; font-family: var(--font-head); font-weight: 600; }
.form-status.err { color: var(--danger); }
.form-status.ok { color: var(--safe); }

/* ---- Breadcrumbs -------------------------------------------------------- */
.crumbs { font-family: var(--font-head); font-size: 0.84rem; color: var(--slate-light); padding: 1rem 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: 0.4rem; color: var(--line-strong); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--amber-dark); }

/* ---- Prose blocks on content pages ------------------------------------- */
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose > p, .prose > ul, .prose > ol { max-width: 68ch; }
.callout-answer { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.3rem 1.5rem; margin: 1.4rem 0; box-shadow: var(--shadow); }
.callout-answer p { margin: 0; }
.callout-answer .mono { font-family: var(--font-mono); color: var(--navy); font-weight: 700; }

/* ---- SVG system diagram ------------------------------------------------- */
.diagram { background: var(--data-bg); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 1.5rem; margin: 1.6rem 0; }
.diagram svg { width: 100%; height: auto; }
.diagram figcaption { font-family: var(--font-head); font-size: 0.82rem; color: var(--slate); margin-top: 0.8rem; text-align: center; }

/* ---- Location / link grids --------------------------------------------- */
.link-grid { display: grid; gap: 0.6rem 1.4rem; margin: 1.4rem 0; padding: 0; list-style: none; }
@media (min-width: 620px) { .link-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .link-grid { grid-template-columns: repeat(3, 1fr); } }
.link-grid a { font-family: var(--font-head); font-weight: 500; text-decoration: none; color: var(--navy); display: block; padding: 0.6rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.link-grid a:hover { border-color: var(--amber); color: var(--amber-dark); }
.county-group { margin-bottom: 1.4rem; }
.county-group h3 { font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); margin-bottom: 0.6rem; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #b9c2d1; font-size: 0.95rem; }
.site-footer .container { padding-top: 3rem; padding-bottom: 2rem; }
.footer-cols { display: grid; gap: 1.8rem; }
@media (min-width: 720px) { .footer-cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: var(--white); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.8rem; }
.site-footer a { color: #c3cbd8; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.footer-brand p { color: #93a0b4; font-size: 0.9rem; }
.disclosure { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2rem; padding-top: 1.4rem; font-size: 0.82rem; color: #8f9cb0; line-height: 1.6; }
.disclosure strong { color: #c3cbd8; }
.copyright { margin-top: 1rem; font-size: 0.82rem; color: #7c899d; }

/* ---- Mobile sticky CTA -------------------------------------------------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-strong); box-shadow: 0 -6px 20px rgba(27,42,65,.16); transform: translateY(100%); transition: transform .25s ease; }
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta a { display: flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.95rem; font-family: var(--font-head); font-weight: 700; text-decoration: none; font-size: 0.98rem; }
.sticky-cta .call { background: var(--amber); color: var(--navy); }
.sticky-cta .quote-btn { background: var(--navy); color: var(--white); }

/* ---- Utilities ---------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: 1.1rem; }
.pill { display: inline-block; font-family: var(--font-head); font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.25rem 0.6rem; border-radius: 100px; background: var(--data-bg); color: var(--slate); border: 1px solid var(--line-strong); }
.pill--rising { background: #fef3e6; color: var(--amber-dark); border-color: #f0d6b0; }
.split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1.2fr 0.8fr; } .split--even { grid-template-columns: 1fr 1fr; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* ---- Responsive nav ----------------------------------------------------- */
@media (max-width: 900px) {
  .nav__toggle { display: block; }
  /* Drop the header's backdrop-filter on mobile: a filtered ancestor clips its
     position:fixed children, which was clipping the drawer to the header's
     height and leaving the menu items on a transparent background. */
  .site-header { backdrop-filter: none; background: var(--bg); }
  .nav__links {
    position: fixed; top: 0; right: 0; bottom: 0; height: 100dvh;
    width: min(80vw, 320px); z-index: 60; overflow-y: auto;
    flex-direction: column; align-items: flex-start; gap: 0.2rem;
    background: var(--white); border-left: 1px solid var(--line);
    padding: 5rem 1.6rem 2rem; transform: translateX(100%); transition: transform .25s ease;
    box-shadow: var(--shadow-lg);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { padding: 0.7rem 0; font-size: 1.05rem; width: 100%; border-bottom: 1px solid var(--line); }
  .nav__cta { margin: 0.6rem 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 620px) {
  .sticky-cta { display: grid; }
  body { padding-bottom: 0; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
