/* Reece Home Buyers — seller lead site
   Warm, homeowner look. Not the barn palette. */

:root {
  --navy: #24364a;
  --navy-dark: #182634;
  --navy-mid: #355270;
  --clay: #a34720;
  --clay-deep: #863616;
  --clay-soft: #c56a45;
  --honey: #c9a06a;
  --paper: #faf7f3;
  --cream: #f3ebe3;
  --ink: #231f1c;
  --muted: #5c564e;
  --line: #e4d8cc;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(24, 38, 52, 0.12);
  --radius: 16px;
  --max: 1120px;
  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-sans: "Nunito Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --header-h: 4.4rem;
}

*, *::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;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay); }
a:hover { color: var(--clay-deep); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

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

/* Header */
.site-header {
  background: var(--navy-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 3px solid var(--clay);
}
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.8rem 0;
}
.brand {
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand:hover { color: #fff; }
.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
}
.brand strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.brand span {
  display: block;
  font-size: 0.78rem;
  color: #d5dde4;
  font-weight: 400;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
  justify-content: flex-start;
}
.nav a {
  color: #f3ebe3;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}
.nav a:hover,
.nav a:focus {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 0;
  display: grid;
  align-items: end;
  color: #fff;
  background: #24364a center / cover no-repeat;
  background-image:
    linear-gradient(180deg, rgba(18, 28, 38, 0.46) 0%, rgba(18, 28, 38, 0.52) 42%, rgba(18, 28, 38, 0.88) 100%),
    image-set(url("images/hero-porch-house.webp") type("image/webp"), url("images/hero-porch-house.jpg") type("image/jpeg"));
}
.hero-inner { padding: 3.2rem 0 2.4rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: #efc895;
  margin-bottom: 0.7rem;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 560;
  font-size: clamp(1.85rem, 6vw, 3.05rem);
  line-height: 1.15;
  margin: 0 0 0.85rem;
  max-width: 22ch;
  text-wrap: balance;
}
.hero p.lead {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  font-size: 1.12rem;
  color: #f3ebe3;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
}
.btn-primary {
  background: var(--clay);
  color: #fff;
  border-color: var(--clay);
}
.btn-primary:hover { background: var(--clay-deep); color: #fff; border-color: var(--clay-deep); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.75);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-mid); color: #fff; }
.btn-wide { min-width: 0; width: 100%; padding-block: 1rem; font-size: 1.08rem; }

/* Trust bar */
.trust {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.trust ul {
  list-style: none;
  margin: 0;
  padding: 1.1rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 1.25rem;
}
.trust li {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-dark);
  padding-left: 1.3rem;
  position: relative;
  text-wrap: pretty;
}
.trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--clay);
}

/* Sections */
section { padding: 3.2rem 0; }
section[id] { scroll-margin-top: 8.5rem; }
@media (min-width: 861px) {
  section[id] { scroll-margin-top: 5.5rem; }
}
.section-kicker {
  color: var(--clay);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}
h2 {
  font-family: var(--font-serif);
  font-weight: 560;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.22;
  margin: 0 0 0.7rem;
  color: var(--navy-dark);
  text-wrap: balance;
}
.intro {
  max-width: 42rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

/* How it works */
#how { background: var(--paper); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem 1.3rem;
  box-shadow: 0 8px 24px rgba(24, 38, 52, 0.04);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}
.step h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--navy-dark);
}
.step p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Situations */
#situations { background: var(--cream); }
.sit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
.sit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 100%;
}
.sit-card svg {
  width: 36px;
  height: 36px;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.sit-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy-dark);
}
.sit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Options */
#options { background: var(--paper); }
.option-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.option-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem 1.25rem 1.45rem;
  box-shadow: 0 8px 24px rgba(24, 38, 52, 0.04);
}
.option-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--navy-dark);
}
.option-card p { margin: 0; color: var(--muted); }

/* Why */
#why { background: var(--cream); }
.why-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  align-items: center;
}
.why-photo {
  margin: 0;
  background: transparent;
}
.why-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  border-radius: 18px;
}
.why-photo figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.55rem 0.15rem 0;
}
.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.why-list li {
  padding-left: 1.6rem;
  position: relative;
}
.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--clay);
}
.why-list strong { color: var(--navy-dark); }

.split-note {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.split-note img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.split-note div { padding: 1.15rem 1.2rem 1.3rem; }
.split-note p { margin: 0; color: var(--muted); }

/* Form */
#offer { background: var(--navy-dark); color: #f3ebe3; }
#offer h2 { color: #fff; }
#offer .intro { color: #d5dde4; }
.form-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  align-items: start;
}
.form-copy p { margin: 0 0 0.9rem; color: #d5dde4; }
.form-copy p:last-child { margin-bottom: 0; }
.form-card {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field.full { grid-column: auto; }
label { font-weight: 800; font-size: 0.9rem; }
.hint { font-weight: 600; color: var(--muted); font-size: 0.8rem; }
.req { color: var(--clay); }
input, select, textarea {
  font: inherit;
  padding: 0.65rem 0.7rem;
  border: 1px solid #cfc6b8;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid #f0d3c4;
  border-color: var(--clay);
}
textarea { min-height: 6.5rem; resize: vertical; }
.honey { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-error {
  display: none;
  grid-column: auto;
  background: #fde8e4;
  color: #7a1f12;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.92rem;
}
.form-error.show { display: block; }
button.btn { border-style: solid; }
.consent {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 600;
}
.consent a { color: var(--clay-deep); }

/* Areas */
#areas { background: var(--paper); }
.towns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.towns li {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.towns.secondary { margin-top: 0.85rem; }
.towns.secondary li {
  background: #fff;
  font-weight: 600;
}
.subhead {
  margin: 1.4rem 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
}

/* FAQ */
#faq { background: var(--cream); }
.faq-list { display: grid; gap: 0.7rem; max-width: 46rem; }
details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy-dark);
}
details p { margin: 0.6rem 0 0.15rem; color: var(--muted); }

/* Simple interior pages */
.page-main { padding: 4.2rem 0 5rem; }
.page-main .prose {
  max-width: 40rem;
}
.page-main .prose p { color: var(--muted); }
.page-main .prose h2 { margin-top: 2rem; }

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #d5dde4;
  padding: 2.2rem 0 2.6rem;
  font-size: 0.95rem;
}
.site-footer strong { color: #fff; }
.site-footer a { color: #efc895; }
.site-footer p { margin: 0 0 0.55rem; }
.site-footer p:last-child { margin-bottom: 0; }

/* Desktop and tablet */
@media (min-width: 561px) {
  .trust ul { grid-template-columns: 1fr 1fr; }
  .sit-grid { grid-template-columns: 1fr 1fr; }
  .btn-wide { min-width: 16rem; width: auto; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field.full { grid-column: 1 / -1; }
  .form-error { grid-column: 1 / -1; }
  .split-note { grid-template-columns: 0.9fr 1.1fr; }
  .split-note img { aspect-ratio: 1 / 1; min-height: 100%; }
}

@media (min-width: 861px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
  }
  .nav { justify-content: flex-end; gap: 0.25rem 1rem; }
  .hero { min-height: min(82vh, 720px); }
  .hero {
    background-image:
      linear-gradient(180deg, rgba(24, 38, 52, 0.22) 8%, rgba(18, 28, 38, 0.50) 55%, rgba(18, 28, 38, 0.86) 100%),
      image-set(url("images/hero-porch-house.webp") type("image/webp"), url("images/hero-porch-house.jpg") type("image/jpeg"));
  }
  .hero-inner { padding: 4.6rem 0 3.3rem; }
  section { padding: 4rem 0; }
  .trust ul { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .sit-grid { grid-template-columns: repeat(4, 1fr); }
  .option-grid { grid-template-columns: 1fr 1fr; }
  .why-layout { grid-template-columns: 1fr 1.05fr; gap: 2.25rem; }
  .form-layout { grid-template-columns: 0.85fr 1.15fr; gap: 2.25rem; }
  .form-card { padding: 1.4rem; }
}

/* Linked town pills and inner town pages */
.towns a { color: inherit; text-decoration: none; }
.towns a:hover { color: var(--navy-dark); text-decoration: underline; }
.towns .is-current { background: var(--navy); color: #fff; border-color: var(--navy); }
.hero-inner-page { min-height: min(58vh, 520px); }
.town-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}
.town-copy { max-width: 46rem; }
.town-copy p { margin: 0 0 1.05rem; color: var(--muted); }
.town-copy .related { margin-top: 1.4rem; font-weight: 700; color: var(--navy-dark); }
.town-photo { margin: 0; }
.town-photo figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }
.page-main .prose h1 {
  font-family: var(--font-serif);
  font-weight: 560;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  line-height: 1.22;
  margin: 0 0 0.7rem;
  color: var(--navy-dark);
}
@media (max-width: 800px) {
  .town-layout { grid-template-columns: 1fr; }
}
