/* Forward Home Buyer v3. One stylesheet for every public page.
   Identity: Wisconsin flag blue and gold ("Forward" is the state motto).
   Type: Literata for the note and headlines, Atkinson Hyperlegible for
   everything else (designed for readers with low vision). */

@font-face { font-family: "Literata"; src: url(/fonts/literata-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url(/fonts/literata-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url(/fonts/literata-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(/fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(/fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --blue: #14325c;      /* flag field */
  --blue-deep: #0e2546;
  --gold: #f2c14e;      /* flag gold */
  --gold-soft: #fbe7b0;
  --ink: #1f2b38;       /* body text on white */
  --muted: #4a5868;
  --mist: #eef2f7;      /* quiet section background */
  --line: #cbd5e1;
  --sky: #c9d6e8;       /* secondary text on blue */
  --green: #2e6b4a;
  --red: #a3261c;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Atkinson", "Segoe UI", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 19px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.on-light :focus-visible, main :focus-visible { outline-color: var(--blue); }
.hero :focus-visible, .band-blue :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--blue); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5vw, 54px); }
h2 { font-size: clamp(28px, 3.4vw, 38px); }
h3 { font-size: 23px; }
p { margin: 0 0 1em; max-width: 66ch; }
ul, ol { padding-left: 1.2em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--gold); color: var(--blue); padding: 10px 16px; z-index: 50; font-weight: 700; }
.skip:focus { top: 12px; }
.lede { font-size: 21px; color: var(--muted); }
.small { font-size: 16px; color: var(--muted); }

/* Hide any injected Netlify badge. */
#nl-badge-frame, iframe[title="Powered by Netlify"], [id^="netlify-badge"] { display: none !important; }

/* ---------------- header ---------------- */
.site-header { background: var(--blue); color: #fff; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; margin-right: auto; }
.brand img { width: 42px; height: 42px; background: #fff; border-radius: 50%; padding: 6px; }
.brand b { font-family: var(--serif); font-size: 25px; font-weight: 600; display: block; line-height: 1.05; }
.brand small { font-size: 14px; color: var(--sky); display: block; letter-spacing: .02em; }
#main-navigation { display: flex; gap: 24px; }
#main-navigation a { color: #fff; text-decoration: none; font-size: 17px; padding: 8px 0; border-bottom: 2px solid transparent; }
#main-navigation a:hover, #main-navigation a[aria-current="page"] { border-bottom-color: var(--gold); }
.header-call { color: var(--gold); font-weight: 700; text-decoration: none; font-size: 18px; white-space: nowrap; }
.header-call span { display: block; font-weight: 400; font-size: 14px; color: var(--sky); }
.menu-toggle { display: none; background: none; border: 2px solid var(--sky); color: #fff; border-radius: 6px; min-width: 48px; min-height: 44px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
@media (max-width: 980px) {
  #main-navigation { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--blue-deep); flex-direction: column; gap: 0; padding: 8px var(--gutter) 18px; z-index: 40; }
  #main-navigation.open { display: flex; }
  #main-navigation a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 19px; }
  .site-header .wrap { position: relative; gap: 14px; }
  .menu-toggle { display: inline-block; }
}
@media (max-width: 520px) {
  .header-call span { display: none; }
  .header-call { font-size: 16px; }
  .brand small { font-size: 13px; }
  .brand b { font-size: 22px; }
  .brand img { width: 36px; height: 36px; padding: 5px; }
}
@media (max-width: 374px) { .header-call { display: none; } }

.review-banner { background: var(--gold); color: var(--blue); font-size: 16px; padding: 10px var(--gutter); text-align: center; }

/* ---------------- hero and the note to Ken ---------------- */
.hero { background: var(--blue); color: #fff; padding: 40px 0 64px; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero .lede { color: var(--sky); max-width: 58ch; margin-bottom: 30px; }
@media (min-width: 961px) { .hero .lede.lede-wide { max-width: none; font-size: 19px; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; align-items: start; }
.hero-ken { text-align: left; color: var(--sky); font-size: 17px; padding-top: 8px; }
.hero-ken img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 4px solid var(--gold); margin-bottom: 14px; }
.hero-ken b { color: #fff; display: block; font-size: 19px; }
.hero-ken a { color: var(--gold); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-ken { display: flex; gap: 16px; align-items: center; padding: 0; }
  .hero-ken img { width: 72px; height: 72px; margin: 0; border-width: 3px; }
}
@media (max-width: 600px) {
  .hero { padding: 22px 0 44px; }
  .hero .lede { font-size: 18px; margin-bottom: 18px; }
}

.note { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.7; color: #fff; margin: 0; }
.note-greeting { font-style: italic; margin: 0 0 .2em; }
.note-line { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .4em; row-gap: .2em; margin: 0 0 .25em; }
.note-line > span { white-space: nowrap; }
.note input[type="text"], .note input[type="tel"] {
  font: inherit; color: #fff; background: rgba(255,255,255,.07); border: 0; border-bottom: 3px solid var(--gold);
  border-radius: 4px 4px 0 0; padding: 2px 10px; min-height: 52px; flex: 1 1 220px; min-width: 0; width: 100%;
}
.note input.wide { flex-basis: 420px; }
.note input::placeholder { color: #9fb2cc; font-style: italic; }
.note input:focus { outline: none; background: rgba(255,255,255,.14); border-bottom-color: #fff; }
.note input:user-invalid { border-bottom-color: #ff9d8f; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--sans); font-size: 18px; line-height: 1.3; margin: .15em 0 .25em; }
.choices label { cursor: pointer; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices span { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 18px; border: 2px solid var(--gold); border-radius: 999px; color: #fff; }
.choices input:checked + span { background: var(--gold); color: var(--blue); font-weight: 700; }
.choices input:focus-visible + span { outline: 3px solid #fff; outline-offset: 3px; }
.note-signoff { font-style: italic; }
.note-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 22px; font-family: var(--sans); }
.btn-gold { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 14px 30px; background: var(--gold); color: var(--blue); border: 0; border-radius: 8px; font: 700 20px/1.2 var(--sans); cursor: pointer; text-decoration: none; }
.btn-gold:hover { background: #ffd56e; }
.btn-gold:disabled { opacity: .7; cursor: progress; }
.note-alt { font-size: 18px; color: var(--sky); }
.note-alt a { color: #fff; font-weight: 700; }
.note-fine { font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--sky); margin-top: 18px; max-width: 70ch; }
.note-fine label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin-bottom: 10px; }
.note-fine input[type="checkbox"] { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--gold); }
.note-fine strong { color: #fff; font-size: 16px; }
.note-fine a { color: #fff; }
.note-fine p { max-width: none; margin: 0; }
.form-feedback { font-family: var(--sans); font-size: 17px; font-weight: 700; background: #fff1ee; color: var(--red); border-left: 5px solid var(--red); padding: 12px 14px; margin: 16px 0 0; max-width: 60ch; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) {
  .note { line-height: 1.55; }
  .note input[type="text"], .note input[type="tel"], .note input.wide { flex-basis: 100%; min-height: 50px; }
  .btn-gold { width: 100%; }
}

/* After sending: confirmation and optional quick questions, in place */
.sent { font-family: var(--sans); color: #fff; }
.sent h2 { color: #fff; font-size: clamp(28px, 3.2vw, 36px); }
.sent p { color: var(--sky); font-size: 19px; }
.quick { margin-top: 18px; display: grid; gap: 18px; }
.quick fieldset { border: 0; padding: 0; margin: 0; }
.quick legend { font-weight: 700; font-size: 19px; margin-bottom: 8px; color: #fff; }
.quick .choices { margin: 0; }
.quick label.field { display: grid; gap: 6px; font-weight: 700; }
.quick input[type="email"], .quick textarea { font: inherit; font-size: 18px; color: var(--ink); background: #fff; border: 2px solid var(--sky); border-radius: 6px; padding: 10px 12px; min-height: 50px; width: 100%; max-width: 560px; }
.quick textarea { min-height: 96px; }
.quick .opt { font-weight: 400; color: var(--sky); }

/* ---------------- sections ---------------- */
.section { padding: 72px 0; }
.section.mist { background: var(--mist); }
.band-blue { background: var(--blue); color: #fff; }
.band-blue h2 { color: #fff; }
.section-head { max-width: 60ch; margin-bottom: 34px; }
.section-head p { color: var(--muted); font-size: 20px; }
@media (max-width: 600px) { .section { padding: 48px 0; } }

/* Ways to sell: three columns marked by a gold rule, not cards */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.way { border-top: 6px solid var(--gold); padding-top: 20px; }
.way h3 { margin-bottom: .35em; }
.way p { color: var(--ink); }
.way .fit { font-size: 17px; color: var(--muted); }
.way.quiet { border-top-color: var(--line); }
@media (max-width: 860px) { .ways { grid-template-columns: 1fr; gap: 30px; } }

/* Situations list */
.situations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; margin: 0; padding: 0; list-style: none; }
.situations li { border-bottom: 1px solid var(--line); }
.situations a { display: block; padding: 16px 0; text-decoration: none; color: var(--ink); }
.situations a b { display: block; font-size: 20px; color: var(--blue); }
.situations a span { font-size: 17px; color: var(--muted); }
.situations a:hover b { text-decoration: underline; }
@media (max-width: 760px) { .situations { grid-template-columns: 1fr; } }

/* Process: a real sequence, so numbered */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding: 0; margin: 0; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: var(--gold); font: 600 24px var(--serif); margin-bottom: 14px; }
.steps h3 { font-size: 22px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 26px; } }

/* Ken */
.ken { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: start; }
.ken img { border-radius: 10px; }
.ken blockquote { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 30px); color: var(--blue); line-height: 1.35; margin: 0 0 20px; }
@media (max-width: 760px) { .ken { grid-template-columns: 1fr; gap: 24px; } .ken img { max-width: 240px; } }
.project-title { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.6vw, 30px); color: var(--blue); line-height: 1.3; margin: 48px 0 0; }
.project { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.project figure { margin: 0; }
.project img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.project figcaption { font-size: 16px; color: var(--muted); margin-top: 8px; }
@media (max-width: 600px) { .project { grid-template-columns: 1fr; } }

/* Places */
.places { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-size: 18px; }

/* Plain content pages */
.page-head { background: var(--blue); color: #fff; padding: 48px 0 52px; }
.page-head h1 { color: #fff; max-width: 22ch; }
.page-head .lede { color: var(--sky); }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }
.callout { background: var(--mist); border-left: 6px solid var(--gold); padding: 18px 22px; margin: 26px 0; }
.callout p:last-child { margin-bottom: 0; }

/* Comparison table */
.compare-wrap { overflow-x: auto; }
.compare { border-collapse: collapse; width: 100%; min-width: 680px; font-size: 18px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--serif); font-size: 21px; color: var(--blue); border-bottom: 3px solid var(--gold); }
.compare tbody th { font-weight: 700; color: var(--blue); width: 18%; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-family: var(--serif); font-size: 22px; color: var(--blue); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; font-family: var(--sans); color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 18px; }

/* ---------------- forms on light pages (details, referral) ---------------- */
.form-page { padding: 44px 0 72px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 32px; max-width: 820px; }
@media (max-width: 600px) { .card { padding: 20px 16px; } }
.fhb-form { display: grid; gap: 20px; }
.fhb-field { display: grid; gap: 6px; }
.fhb-field label, .fhb-label { font-size: 18px; font-weight: 700; color: var(--blue); }
.req, .opt { font-weight: 400; color: var(--muted); font-size: 16px; }
.fhb-form input[type="text"], .fhb-form input[type="tel"], .fhb-form input[type="email"], .fhb-form select, .fhb-form textarea { width: 100%; font: inherit; font-size: 18px; color: var(--ink); background: #fff; border: 2px solid #9fb0c4; border-radius: 6px; padding: 12px 14px; min-height: 52px; }
.fhb-form textarea { min-height: 110px; }
.fhb-form input:focus, .fhb-form select:focus, .fhb-form textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--blue); }
.fhb-hint { margin: 0; font-size: 16px; color: var(--muted); }
.fhb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .fhb-row { grid-template-columns: 1fr; } }
.fhb-fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 18px 0 0; display: grid; gap: 18px; }
.fhb-fieldset legend { font-family: var(--serif); font-size: 24px; color: var(--blue); padding-right: 10px; }
.fhb-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.fhb-choices label { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px 8px 12px; border: 2px solid #9fb0c4; border-radius: 6px; font-size: 18px; cursor: pointer; }
.fhb-choices label:has(input:checked) { border-color: var(--blue); background: var(--mist); }
.fhb-choices input, .fhb-check input { width: 22px; height: 22px; accent-color: var(--blue); flex: none; }
.fhb-check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.55; max-width: 68ch; cursor: pointer; }
.fhb-check strong { color: var(--blue); }
.fhb-check-strong { background: var(--mist); border-radius: 6px; padding: 12px; }
.fhb-legal { margin: 0; font-size: 16px; color: var(--muted); max-width: 68ch; }
.btn-blue { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 14px 30px; background: var(--blue); color: #fff; border: 0; border-radius: 8px; font: 700 20px/1.2 var(--sans); cursor: pointer; text-decoration: none; width: 100%; }
.btn-blue:hover { background: var(--blue-deep); }
.fhb-received { background: var(--mist); border-left: 5px solid var(--green); padding: 14px 16px; margin: 0 0 18px; }
.fhb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------------- footer and phone bar ---------------- */
.site-footer { background: var(--blue-deep); color: var(--sky); padding: 52px 0 110px; font-size: 17px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.site-footer h2 { color: #fff; font-size: 21px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 18px; }
.site-footer li { margin-bottom: 6px; break-inside: avoid; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 16px; }
.footer-bottom a { margin-left: 18px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (min-width: 761px) { .site-footer { padding-bottom: 40px; } }

.phone-bar { display: none; }
@media (max-width: 760px) {
  .phone-bar { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
  .phone-bar a { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 8px; font-weight: 700; font-size: 17px; text-decoration: none; white-space: nowrap; }
  .phone-bar .primary { background: var(--gold); color: var(--blue); }
  .phone-bar .secondary { border: 2px solid var(--blue); color: var(--blue); }
  body.has-bar { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
html { scroll-behavior: smooth; }
.note-target { scroll-margin-top: 16px; }
.btn-blue.inline { width: auto; }

/* Phone header: logo and menu only; Call and Text live in the bottom bar. */
@media (max-width: 600px) {
  .site-header .header-call { display: none; }
  .site-header .wrap { min-height: 64px; }
  #main-navigation { top: 64px; }
  .menu-toggle { min-width: 64px; padding: 0 10px; }
}
