/* Spokane Window Replacement
   Referral site. Mobile-first. No web fonts, no framework.
   Palette: paper, deep window-frame blue, brass muntin, spruce button. */

:root {
  --bg: #f3f0e8;
  --surface: #fffdf8;
  --ink: #17202b;
  --muted: #3d4b5c;
  --frame: #14384a;
  --frame-raised: #1c4c62;
  --brass: #6b4e1e;
  --brass-bright: #c6a15a;
  --cta: #0c4c47;
  --cta-pressed: #083532;
  --line: #ddd4c6;
  --tint: #e7f0f2;
  --danger: #7f1d1d;
  --ok-bg: #e7f6ec;
  --ok-ink: #14532d;
  --shadow: 0 18px 40px -28px rgba(20, 32, 43, 0.45);
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--cta); }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.45em;
}
h1 { font-size: clamp(2.05rem, 1.5rem + 2.2vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 1.3rem + 0.8vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; color: var(--muted); }
strong { color: var(--ink); font-weight: 650; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--muted); }
li { margin: 0 0 0.4rem; }

:focus-visible {
  outline: 3px solid var(--brass-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--brass-bright);
  color: var(--ink);
  padding: 10px 14px;
  z-index: 20;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.7rem;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 0;
  border-top: 2px solid var(--brass-bright);
  box-shadow: 0 5px 0 -3px var(--frame);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand-mark { flex: 0 0 auto; }
.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.1;
}
.brand-kicker {
  display: block;
  margin-top: 0.12rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.primary-nav { display: none; }
.primary-nav ul, .mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; align-items: center; gap: 0.15rem; }
.primary-nav a, .mobile-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 620;
}
.primary-nav > ul > li > a { display: block; padding: 0.7rem 0.7rem; }
.primary-nav a:hover, .mobile-nav a:hover { color: var(--cta); }
.primary-nav a[aria-current="page"], .mobile-nav a[aria-current="page"] {
  color: var(--cta);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.nav-dropdown { position: relative; }
.dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 16.5rem;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel { display: block; }
.dropdown-panel a { display: block; padding: 0.55rem 0.7rem; }
.header-cta { display: none; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
}
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 0.4rem 1rem 1rem;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.mobile-nav .mobile-cta {
  display: inline-flex;
  margin-top: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.9rem;
  padding: 0.65rem 1.05rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font: 700 0.95rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.btn-cta { background: var(--cta); color: #fff; border-color: var(--cta); }
.btn-cta:hover { background: var(--cta-pressed); border-color: var(--cta-pressed); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { color: #fff; border-color: #fff; }
.btn-block { width: 100%; }

.hero { padding: 0.85rem 0 2rem; }
.hero-grid {
  display: grid;
  gap: 1rem;
  align-items: start;
}
.hero h1 { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 3.35rem); }
.hero-copy h1 { margin-bottom: 0.55rem; }
.lede { font-size: 1.08rem; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.hero-note { margin: 0; }
.chips li {
  margin: 0;
  padding: 0.35rem 0.6rem;
  background: var(--tint);
  color: var(--frame);
  font-size: 0.86rem;
  font-weight: 700;
}
.hero-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--frame);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.section { padding: 2.6rem 0; }
.section-tint { background: var(--tint); }
.section-frame { background: var(--frame); color: #e7eef1; }
.section-frame h2, .section-frame h3, .section-frame strong { color: #fff; }
.section-frame p, .section-frame li { color: #d5e2e8; }
.section-head { max-width: 40rem; margin-bottom: 1.3rem; }

.steps, .card-grid, .area-grid { display: grid; gap: 0.9rem; }
.step, .card, .area-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1rem 1rem 0.4rem;
}
.step-num {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--frame);
  line-height: 1;
}
.card h3, .area-card h3, .step h3 { margin-top: 0.35rem; }
.link-list { list-style: none; padding: 0; }
.link-list a { font-weight: 700; }

.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.6rem; }
.callout {
  margin: 1rem 0 1.2rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border-left: 4px solid var(--brass-bright);
  color: var(--ink);
}
.callout p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0.5rem 0 1.2rem; border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 36rem; }
caption {
  text-align: left;
  padding: 0.75rem 0.8rem;
  font-weight: 750;
  color: var(--ink);
}
th, td { padding: 0.7rem 0.8rem; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); background: var(--surface); }
.faq-item summary {
  cursor: pointer;
  padding: 0.95rem 0.2rem;
  font-weight: 750;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--frame);
  color: #fff;
  font-weight: 700;
}
.faq-item[open] summary::after { content: "\00d7"; background: var(--cta); }
.faq-item .faq-answer { padding: 0 0.2rem 1rem; max-width: 68ch; }

.crumbs { margin: 0 0 0.8rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.88rem; }
.crumbs li { margin: 0; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.35rem; color: var(--line); }

.quote-form { display: grid; gap: 0.8rem; }
.form-grid { display: grid; gap: 0.8rem; }
.form-row { display: grid; gap: 0.3rem; }
.form-row label, .consent-row label {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.consent-row label {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.86rem;
  font-weight: 550;
  line-height: 1.45;
  color: var(--muted);
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.7rem 0.75rem;
  font: 1rem/1.4 var(--sans);
}
.form-row textarea { min-height: 6.5rem; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 3px solid var(--brass-bright);
  outline-offset: 1px;
  border-color: var(--brass);
}
.consent-row {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.65rem;
  align-items: start;
}
.consent-row input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  accent-color: var(--cta);
}
.form-note { margin: 0; font-size: 0.86rem; }
.form-error {
  margin: 0;
  padding: 0.7rem 0.75rem;
  background: #fdecea;
  color: var(--danger);
  font-weight: 700;
}
.form-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cta-band { padding: 2rem 0; }
.cta-band .wrap { display: grid; gap: 1rem; }
.page-intro { padding: 1.6rem 0 0.4rem; }

.site-footer { background: var(--frame); color: #d5e2e8; padding: 2rem 0 1.2rem; }
.footer-grid { display: grid; gap: 1.4rem; }
.site-footer p { color: #d5e2e8; }
.site-footer .brand-name { color: #fff; }
.site-footer a { color: #f3e2c2; }
.stack-top { margin-top: 1.5rem; }
.footer-label {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.55rem;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin: 0 0 0.35rem; }
.footer-disclosure {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.16);
  color: #e4eef2;
  font-size: 0.92rem;
  max-width: 70ch;
}
.footer-copy { color: rgba(255,255,255,0.7); font-size: 0.82rem; }

.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  display: none;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  background: var(--frame);
  border-top: 2px solid var(--brass-bright);
}
.sticky-bar.is-visible { display: block; }
.sticky-bar a { width: 100%; }

@media (min-width: 720px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-span { grid-column: 1 / -1; }
  .steps, .card-grid { grid-template-columns: repeat(3, 1fr); }
  .area-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .cta-band .wrap { grid-template-columns: 1.4fr auto; align-items: center; }
}

@media (min-width: 960px) {
  .primary-nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle, .mobile-nav { display: none !important; }
  .hero { padding: 2rem 0 3.2rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(20rem, 28rem); gap: 1rem 2rem; }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-aside { grid-column: 2; grid-row: 1 / span 2; }
  .chips, .hero-note { grid-column: 1; grid-row: 2; align-self: start; }
  .sticky-bar { display: none !important; }
  .section { padding: 3.4rem 0; }
}

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