/* Live Metro East — Boyd Jennings | Keller Williams Marquee
   Mobile-first, no frameworks. KW red #B40101, logo gold #FFC72E. */

:root {
  --red: #B40101;
  --red-dark: #8C0101;
  --red-soft: rgba(180, 1, 1, 0.16);
  --gold: #FFC72E;
  --ink: #161616;
  --muted: #5A5854;
  --paper: #F4F0E9;
  --paper-2: #EBE6DC;
  --white: #FFFFFF;
  --dark: #0F0F0F;
  --dark-2: #1A1A1A;
  --cream-text: #EDE9E2;
  --cream-muted: #C4BFB6;
  --line: #DDD7CC;
  --input-bg: #FBF9F6;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius: 14px;
  --header: Montserrat, "Segoe UI", system-ui, sans-serif;
  --body: Inter, "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: inherit; }

a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 20;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 14px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}
.skip:focus { top: 12px; }
.skip-2:focus { top: 52px; }

/* ----- Header / hero ----- */
.hero {
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(255, 199, 46, 0.14), transparent 52%),
    var(--dark);
  color: var(--white);
  padding: 20px 20px 56px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: 36px;
}

.header-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  width: 100%;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.site-nav a {
  color: var(--cream-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 2px;
}
.site-nav a:hover {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.brand {
  text-decoration: none;
  color: inherit;
}

.logo {
  width: 220px;
  height: auto;
  margin: 0 auto;
}

.brand-lockup {
  margin: 6px 0 0;
  font-family: var(--header);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #E8E4DC;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  padding: 8px 4px;
}
.header-phone:hover { text-decoration: underline; text-underline-offset: 3px; }

.hero-grid {
  display: grid;
  gap: 32px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  font-family: var(--header);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--header);
  font-weight: 700;
  font-size: clamp(1.85rem, 6vw, 3.05rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.lede {
  margin: 0 0 18px;
  color: var(--cream-text);
  font-size: 1.05rem;
  max-width: 38rem;
}

.hero-call {
  color: var(--cream-muted);
  font-size: 0.98rem;
  margin: 0;
}
.hero-call a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}
.hero-call a:hover { text-decoration: underline; text-underline-offset: 3px; }


.trust {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}
.trust li {
  position: relative;
  padding-left: 22px;
  margin: 0 0 8px;
  color: var(--cream-text);
  font-size: 0.98rem;
}
.trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* ----- Form card ----- */
.card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px 22px;
}

.card h2 {
  margin: 0 0 6px;
  font-family: var(--header);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.card-intro {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.field { margin-bottom: 14px; }

label,
.consent-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.optional {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.82rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  appearance: none;
  -webkit-appearance: none;
}

select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%235A5854' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

textarea {
  min-height: 72px;
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-color: var(--red);
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: var(--red);
  background: #FDF6F6;
}

.hint {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.field-error {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--red);
  font-weight: 500;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 18px;
}

.consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  accent-color: var(--red);
}

.consent-label {
  font-weight: 500;
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0;
  color: #2A2A2A;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  font-family: var(--header);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  padding: 14px 18px;
  cursor: pointer;
  min-height: 48px;
}
.btn:hover { background: var(--red-dark); }
.btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-error {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #FDECEC;
  color: #6E0000;
  border-radius: 8px;
  font-size: 0.92rem;
}
.form-error[hidden] { display: none; }

.disclaimer-inline {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Honeypot — off-screen, not display:none */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Thanks state */
#thanks:not([hidden]),
#buyer-thanks:not([hidden]) {
  display: block;
}
#thanks[hidden],
#buyer-thanks[hidden],
#form-wrap[hidden],
#buyer-form-wrap[hidden] { display: none; }

.thanks-kicker {
  display: inline-block;
  margin: 0 0 8px;
  font-family: var(--header);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

#thanks h2,
#buyer-thanks h2 {
  margin: 0 0 10px;
}

#thanks p,
#buyer-thanks p { margin: 0 0 12px; color: #333; }

#thanks .thanks-kicker,
#buyer-thanks .thanks-kicker { color: var(--red); }

#thanks .thanks-phone a,
#buyer-thanks .thanks-phone a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}
#thanks .thanks-phone a:hover,
#buyer-thanks .thanks-phone a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ----- Market snapshot ----- */
.market {
  padding: 48px 20px 16px;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-family: var(--header);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.stat-grid {
  display: grid;
  gap: 14px;
}

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 20px 18px;
  border-top: 3px solid var(--gold);
}

.stat h3 {
  margin: 0 0 10px;
  font-family: var(--header);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.stat .figure {
  font-family: var(--header);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.stat .delta {
  margin: 6px 0 0;
  font-weight: 600;
  color: var(--red);
  font-size: 0.95rem;
}

.stat .label {
  margin: 2px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.sales-note {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 0.98rem;
}

.cite {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 48rem;
}

/* ----- How it works / towns ----- */
.process {
  padding: 40px 20px 56px;
}

.steps {
  display: grid;
  gap: 16px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.steps li {
  background: var(--white);
  border-radius: 12px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
}

.step-num {
  display: block;
  font-family: var(--header);
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.steps h3 {
  margin: 0 0 4px;
  font-family: var(--header);
  font-size: 1.05rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.towns-line {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  max-width: 46rem;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--dark);
  color: var(--cream-text);
  padding: 40px 20px 32px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-brand .logo {
  width: 180px;
  margin: 0 0 10px;
}

.footer-brand p { margin: 0 0 6px; color: var(--cream-muted); }

.footer-brand a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}
.footer-brand a:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer-office h2,
.footer-legal h2 {
  margin: 0 0 8px;
  font-family: var(--header);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-office p,
.footer-legal p {
  margin: 0 0 8px;
  color: var(--cream-muted);
}

.brokerage-name {
  color: var(--white) !important;
  font-weight: 700;
  font-size: 1.05rem;
  font-family: var(--header);
  letter-spacing: 0.01em;
  margin-bottom: 4px !important;
}

.eho {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
}

.eho img,
.eho svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--cream-text);
}

.eho p { margin: 0; font-size: 0.78rem; }

.indep {
  margin-top: 8px;
  font-style: italic;
}

/* ----- Desktop ----- */
@media (min-width: 800px) {
  .hero { padding: 24px 32px 72px; }

  .site-header {
    align-items: stretch;
    text-align: left;
    margin-bottom: 48px;
  }

  .header-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .brand .logo { margin: 0; width: 240px; }

  .header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
  }

  .site-nav {
    justify-content: flex-end;
    border-top: 0;
    padding-top: 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 420px);
    gap: 56px;
    align-items: start;
  }

  .card { padding: 28px 26px 24px; }

  .market,
  .process,
  .buying,
  .towns,
  .about,
  .faq { padding-left: 32px; padding-right: 32px; }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1.1fr 1fr 1.2fr;
    gap: 40px;
    align-items: start;
  }

  .site-footer { padding: 48px 32px 36px; }
}

@media (min-width: 1100px) {
  .hero { padding-left: 40px; padding-right: 40px; }
  .market,
  .process,
  .buying,
  .towns,
  .about,
  .faq,
  .site-footer { padding-left: 40px; padding-right: 40px; }
}

/* ----- Hero CTAs, tabs, buyer fields ----- */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn-inline {
  width: auto;
  min-width: 200px;
  text-decoration: none;
  padding: 12px 16px;
}

.btn-alt {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-alt:hover {
  background: rgba(255, 199, 46, 0.12);
}

.form-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 0;
}

.form-tab {
  font-family: var(--header);
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
  padding: 12px 10px;
  border: 0;
  background: #2A2A2A;
  color: #D8D4CC;
  cursor: pointer;
  min-height: 48px;
}
.form-tab:first-child { border-radius: 14px 0 0 0; }
.form-tab:last-child { border-radius: 0 14px 0 0; }
.form-tab[aria-selected="true"] {
  background: var(--white);
  color: var(--ink);
}
.form-tab:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
  z-index: 1;
}

.tab-card {
  border-radius: 0 0 14px 14px;
}

fieldset.field {
  border: 0;
  padding: 0;
  margin: 0 0 14px;
}
fieldset.field legend,
fieldset.field legend + * {
  /* keep */
}
legend {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
  padding: 0;
}

.town-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}
.town-checks .check:last-child {
  grid-column: 1 / -1;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
  font-size: 0.88rem;
  margin: 0;
  cursor: pointer;
}
.check input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 1px;
  accent-color: var(--red);
}

.radios {
  display: flex;
  gap: 18px;
}

fieldset.is-invalid {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: 8px;
}

/* ----- Buying / towns / about / faq ----- */
.buying,
.towns,
.about,
.faq {
  padding: 8px 20px 48px;
}

.buying { padding-top: 8px; }

.section-cta { margin: 8px 0 0; }

.town-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.town-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px 16px;
}

.town-card h3 {
  margin: 0 0 8px;
  font-family: var(--header);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.town-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.town-card a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}
.town-card a:hover { text-decoration: underline; text-underline-offset: 3px; }

.towns-line { margin-top: 8px; }

.about-copy {
  max-width: 42rem;
}

.about-copy p { margin: 0 0 12px; }
.about-copy a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}
.about-copy a:hover { text-decoration: underline; text-underline-offset: 3px; }

.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.faq-list summary {
  cursor: pointer;
  list-style-position: outside;
}
.faq-list summary h3 {
  display: inline;
  font-family: var(--header);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.faq-list details p {
  margin: 10px 0 0;
  color: #333;
}
.faq-list a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}
.faq-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 800px) {
  .town-grid { grid-template-columns: 1fr 1fr; }
}
