/* York County Radon Mitigation — design tokens: dark slate structure + caution-amber accent (invisible-hazard trade pairing) */

:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --surface-sunk: #eef0ee;
  --ink: #1c2127;
  --ink-soft: #3d4551;
  --ink-muted: #6d7684;
  --line: #dde0e2;
  --line-strong: #b9c0c5;
  --structure: #1c2733;
  --structure-soft: #2b3a49;
  --accent: #d97706;
  --accent-hover: #b45f04;
  --on-accent: #1c1305;
  --on-structure: #ffffff;
  --ok: #1f7a4d;
  --ok-wash: #e7f5ee;
  --warn: #b5540a;
  --warn-wash: #fdf1e6;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 25, 30, .06), 0 8px 24px -8px rgba(20, 25, 30, .12);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Oswald", "Barlow", sans-serif;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.normal-case { text-transform: none; }

a { color: var(--structure-soft); text-decoration: underline; text-decoration-color: var(--line-strong); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }
.section-sunk { background: var(--surface-sunk); }
.section-structure { background: var(--structure); color: var(--on-structure); }
.section-structure h1, .section-structure h2, .section-structure h3, .section-structure p { color: var(--on-structure); }
.section-structure p { color: #c7cdd3; }

.eyebrow {
  display: inline-block;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  color: var(--accent-hover);
  font-weight: 600;
  margin-bottom: .6em;
}
.section-structure .eyebrow { color: #f2b64f; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--radius);
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.section-structure .btn-outline { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-hover); }
.btn-block { width: 100%; }

.site-header { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { font-family: "Oswald", sans-serif; text-transform: uppercase; font-weight: 700; font-size: 1.02rem; color: var(--structure); text-decoration: none; letter-spacing: .01em; }
.brand small { display: block; font-size: .62rem; letter-spacing: .12em; color: var(--ink-muted); font-weight: 500; }

.nav-desktop { display: none; align-items: center; gap: 28px; }
.nav-desktop a { font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: .85rem; letter-spacing: .04em; color: var(--ink-soft); text-decoration: none; }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--accent-hover); }
.header-cta { display: flex; align-items: center; gap: 14px; }

.hamburger { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.hamburger span::before, .hamburger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); }
.hamburger span::before { top: -6px; }
.hamburger span::after { top: 6px; }

.mobile-nav { display: none; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; }
.mobile-nav.is-open { display: flex; }
.mobile-nav a { padding: 12px 0; font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: .9rem; letter-spacing: .04em; color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav a[aria-current="page"] { color: var(--accent-hover); }
.mobile-nav .btn { margin-top: 14px; }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .hamburger, .mobile-nav { display: none !important; }
}

#hero { background: linear-gradient(180deg, var(--structure) 0%, var(--structure-soft) 100%); color: var(--on-structure); min-height: calc(100svh - 76px); display: flex; align-items: center; }
@media (min-width: 900px) { #hero { min-height: calc(100vh - 76px); } }
#hero .wrap { padding-top: 44px; padding-bottom: 44px; }
#hero h1 { color: #fff; }
#hero .lede { color: #c7cdd3; font-size: 1.15rem; max-width: 640px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); font-size: .85rem; color: #c7cdd3; }
.trust-row span { display: flex; align-items: center; gap: 8px; }

.answer-block { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 22px 24px; margin: 20px 0 28px; box-shadow: var(--shadow); }
.answer-block p { margin: 0; color: var(--ink); font-size: 1.02rem; }
.answer-block .label { font-size: .72rem; }

.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; color: var(--structure); }
.card p:last-child { margin-bottom: 0; }
.card .num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--structure); color: #fff; font-family: "Oswald", sans-serif; font-weight: 700; margin-bottom: 12px; }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.check-list li:last-child { border-bottom: none; }
.check-list li::before { content: "✓"; color: var(--ok); font-weight: 700; flex-shrink: 0; }

.town-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.town-chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .88rem; color: var(--ink-soft); }

table { width: 100%; border-collapse: collapse; margin: 16px 0; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .92rem; }
th { font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: .78rem; letter-spacing: .04em; color: var(--ink-muted); }

.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item h3 { margin-bottom: .4em; font-size: 1.05rem; text-transform: none; font-family: "Barlow", sans-serif; font-weight: 700; color: var(--ink); }
.faq-item p { margin: 0; }

.cta-band { background: var(--surface-sunk); border-radius: var(--radius); padding: 32px 28px; text-align: center; margin: 24px 0; }
.cta-band h2 { margin-bottom: .4em; }

.breadcrumbs { font-size: .82rem; color: var(--ink-muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--ink-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-hover); }

.callout-warn { background: var(--warn-wash); border: 1px solid #f0d3ad; border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
.callout-warn p { margin: 0; color: #7a3d07; }

.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 640px) { .form-grid.two-col { grid-template-columns: 1fr 1fr; } }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
input, select, textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 1rem; font-family: inherit; background: var(--surface); color: var(--ink); }
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--structure); outline-offset: 1px; }
.form-note { font-size: .82rem; color: var(--ink-muted); margin-top: 10px; }
.form-status { margin-top: 14px; font-size: .92rem; font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #b3261e; }

.site-footer { background: var(--ink); color: #cdd2d8; padding: 44px 0 30px; }
.site-footer a { color: #cdd2d8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; margin-bottom: 24px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: .82rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-size: .9rem; }
.footer-bottom { border-top: 1px solid #2b3038; padding-top: 20px; font-size: .82rem; color: #8b929c; }
.footer-disclosure { font-size: .8rem; color: #8b929c; max-width: 720px; margin: 0 0 14px; }

.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--structure); padding: 10px 16px; display: flex; justify-content: center; transform: translateY(120%); transition: transform .25s ease; box-shadow: 0 -6px 18px rgba(0,0,0,.18); }
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { width: 100%; max-width: 420px; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
