/* Spokane Foundation Co.
   Static referral site. Mobile-first.
   Tokens: chalk #F4F1EA, ink #1C2430, structural navy #13293A,
   copper #8C3410, brass #A4844A. No webfonts. */

:root {
  color-scheme: light;
  --bg: #F4F1EA;
  --surface: #FFFcf7;
  --surface-tint: #E8E2D6;
  --ink: #1C2430;
  --ink-soft: #3A4553;
  --navy: #13293A;
  --navy-raised: #1C3A50;
  --brass: #A4844A;
  --brass-soft: #E7D7B8;
  --cta: #8C3410;
  --cta-deep: #6E280C;
  --line: #D4CBBC;
  --ok-bg: #E5F2E8;
  --ok-ink: #14532D;
  --font-display: "Segoe UI", "Avenir Next", system-ui, sans-serif;
  --font-body: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --container: 1120px;
  --header-h: 64px;
  --shadow: 0 18px 40px -28px rgba(19, 41, 58, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--cta); text-underline-offset: 3px; }
a:hover { color: var(--cta-deep); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(1.85rem, 1.4rem + 2vw, 2.7rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 700; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--ink-soft); }
li { margin: 0 0 0.4rem; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--cta);
  color: #fff;
  padding: 10px 14px;
  z-index: 20;
  font-family: var(--font-display);
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 760px); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cta);
  margin: 0 0 0.6rem;
}

.level-line {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 12px;
  margin: 0 0 14px;
}
.level-line::before, .level-line::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--brass);
}
.level-line span {
  width: 22px;
  height: 10px;
  border: 1.5px solid var(--cta);
  border-radius: 99px;
  position: relative;
}
.level-line span::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cta);
  left: 3px;
  top: 1.5px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
  color: #F4F1EA;
  min-height: var(--header-h);
}
.site-header a { color: #F4F1EA; text-decoration: none; }
.site-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; }
.brand-word { font-size: 0.98rem; letter-spacing: -0.01em; }
.primary-nav { display: none; margin-left: auto; }
.primary-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-family: var(--font-display); font-size: 0.92rem; font-weight: 700; border-radius: 4px; }
.primary-nav a[aria-current="page"], .primary-nav a:hover { background: rgba(255,255,255,0.08); }
.nav-dropdown { position: relative; }
.dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 8px;
  list-style: none;
  margin: 0;
}
.dropdown-panel a { color: var(--ink); display: block; min-height: 42px; }
.dropdown-panel a:hover, .dropdown-panel a[aria-current="page"] { background: var(--bg); color: var(--ink); }
.nav-dropdown:hover .dropdown-panel, .nav-dropdown:focus-within .dropdown-panel { display: block; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.primary-nav + .header-actions { margin-left: 0; }
.nav-cta-short { display: inline; }
.nav-cta-long { display: none; }
.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #fff;
  border-radius: 4px;
}
.nav-toggle svg { width: 22px; height: 22px; display: block; margin: 0 auto; }
.mobile-nav { display: none; background: var(--navy-raised); border-top: 1px solid rgba(255,255,255,0.08); }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px 16px 16px; }
.mobile-nav a { display: flex; align-items: center; min-height: 44px; color: #F4F1EA; text-decoration: none; font-family: var(--font-display); font-weight: 700; }
.mobile-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 980px) {
  .primary-nav { display: block; }
  .nav-toggle, .mobile-nav { display: none !important; }
  .header-actions { margin-left: 0; }
  .nav-cta-short { display: none; }
  .nav-cta-long { display: inline; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-cta { background: var(--cta); color: #fff !important; }
.btn-cta:hover { background: var(--cta-deep); color: #fff !important; }
.btn-block { width: 100%; }
.btn-line { background: transparent; color: var(--navy) !important; border-color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff !important; }

.hero { padding: 28px 0 12px; }
.hero-grid { display: grid; gap: 22px; align-items: start; }
.hero-copy p:last-child { margin-bottom: 0; }
.lede { font-size: 1.12rem; color: var(--ink); }
.check-list { list-style: none; padding: 0; margin: 14px 0 0; }
.check-list li { padding-left: 1.4rem; position: relative; color: var(--ink); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }

@media (min-width: 900px) {
  .hero { padding: 40px 0 16px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: 36px; }
}

.quote-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px 16px 18px;
}
.quote-panel h2 { font-size: 1.25rem; margin-bottom: 4px; }
.quote-panel .quote-intro { margin-bottom: 12px; font-size: 0.98rem; }
#quote:target { box-shadow: 0 0 0 3px var(--brass), var(--shadow); }

.quote-form { display: grid; gap: 12px; }
.form-grid { display: grid; gap: 12px; }
.form-row { display: grid; gap: 4px; }
.form-row label, .consent-label {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #B7AFA2;
  border-radius: 4px;
  padding: 10px 12px;
  min-height: 44px;
}
.form-success {
  margin: 0;
  background: var(--ok-bg);
  color: var(--ok-ink);
  padding: 12px 14px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
}
.form-row textarea { min-height: 96px; resize: vertical; }
.form-row input:user-invalid, .form-row textarea:user-invalid, .consent input:user-invalid {
  border-color: var(--cta);
}
.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.consent { display: flex; gap: 10px; align-items: flex-start; }
.consent input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
  accent-color: var(--cta);
}
.consent-label { font-weight: 500; font-size: 0.95rem; line-height: 1.45; font-family: var(--font-body); }
.form-note { margin: 0; font-size: 0.92rem; }
.form-error { display: none; margin: 0; color: var(--cta-deep); font-family: var(--font-display); font-weight: 700; }
.form-error.is-visible { display: block; }

@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: 1 / -1; }
}

.section { padding: 36px 0; }
.section-tint { background: var(--surface-tint); }
.section-header { margin-bottom: 18px; max-width: 720px; }
.prose { max-width: 760px; }
.prose h2, .prose h3 { margin-top: 1.4em; }

.card-grid { display: grid; gap: 12px; }
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}
.card:hover { border-color: var(--brass); }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; }
@media (min-width: 720px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .card-grid.thirds { grid-template-columns: 1fr 1fr 1fr; }
}

.steps { list-style: none; padding: 0; display: grid; gap: 12px; margin: 0; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 14px 14px 58px; position: relative; }
.steps .num {
  position: absolute;
  left: 12px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  display: grid;
  place-items: center;
}
@media (min-width: 800px) { .steps { grid-template-columns: 1fr 1fr 1fr; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy); background: #F7F3EB; }
caption { caption-side: bottom; text-align: left; padding: 10px 12px 12px; color: var(--ink-soft); font-size: 0.92rem; }

.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  padding: 14px 28px 14px 0;
  min-height: 44px;
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  font-weight: 500;
  color: var(--cta);
}
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 0 14px; }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 0; margin: 0; font-family: var(--font-display); font-size: 0.88rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--brass); }

.cta-band { background: var(--navy); color: #F4F1EA; padding: 32px 0; }
.cta-band h2, .cta-band p { color: #F4F1EA; }
.cta-band .btn-line { color: #F4F1EA !important; border-color: #F4F1EA; }
.cta-band .btn-line:hover { background: #F4F1EA; color: var(--navy) !important; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.site-footer { background: #0E1E2C; color: #E6E1D6; padding: 32px 0 24px; }
.site-footer a { color: #F4F1EA; }
.footer-grid { display: grid; gap: 22px; }
.footer-nav { display: grid; gap: 16px; }
.footer-nav h2 { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-soft); margin: 0 0 8px; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav a { text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.footer-nav a:hover { text-decoration: underline; }
.footer-coverage { margin: 0; color: #E6E1D6; }
.footer-disclosure { margin: 22px 0 8px; color: #F4F1EA; font-size: 0.98rem; }
.footer-copyright { margin: 0; color: #C9C2B4; font-family: var(--font-display); font-size: 0.85rem; }
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.2fr 2fr; }
  .footer-nav { grid-template-columns: 1fr 1fr 1.3fr; }
}

.sticky-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9;
  transform: translateY(140%);
}
.sticky-bar.is-visible { transform: translateY(0); }
.sticky-bar a { width: 100%; box-shadow: var(--shadow); }
@media (min-width: 980px) { .sticky-bar { display: none; } }

.callout {
  border-left: 3px solid var(--brass);
  background: var(--surface);
  padding: 12px 14px;
  margin: 0 0 1rem;
}
.callout p:last-child { margin: 0; }

.city-list { display: grid; gap: 12px; }
@media (min-width: 720px) { .city-list { grid-template-columns: 1fr 1fr; } }
.city {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}
.city h3 { margin-bottom: 6px; }
.city p:last-child { margin: 0; }
