:root {
  --navy: #1b3764;
  --navy-deep: #132849;
  --navy-soft: #27487a;
  --orange: #ff6600;
  --orange-hover: #e65c00;
  --ink: #1a2332;
  --slate: #4a5568;
  --mist: #eef2f7;
  --paper: #f7f9fc;
  --white: #ffffff;
  --line: rgba(27, 55, 100, 0.12);
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1140px;
  --font: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Roboto", "Segoe UI", sans-serif;
  --header-h: 78px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }

h1, h2, h3, h4, .brand-text {
  font-family: var(--font);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

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

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 18px rgba(27, 55, 100, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo img {
  height: 48px;
  width: auto;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-primary a {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.2s var(--ease);
}

.nav-primary a:hover,
.nav-primary a.is-active { color: var(--orange); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  white-space: nowrap;
}

.phone-link svg { width: 18px; height: 18px; fill: var(--orange); flex-shrink: 0; }
.phone-link:hover { color: var(--orange); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.65; cursor: wait; transform: none; }

.btn-orange {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(255, 102, 0, 0.28);
}
.btn-orange:hover { background: var(--orange-hover); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-deep); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 2.4rem;
  height: 2.4rem;
  cursor: pointer;
  color: var(--navy);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 1rem 0 1.25rem;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.7rem 0;
  font-family: var(--font);
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 1rem; width: 100%; }

/* ——— Hero ——— */
.hero {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(105deg, rgba(27, 55, 100, 0.96) 0%, rgba(27, 55, 100, 0.88) 48%, rgba(19, 40, 73, 0.78) 100%),
    url("../img/happy-people-who-sold-their-house-to-wbhgc-1.png") center / cover no-repeat;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 48px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.75rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  margin-bottom: 0.85rem;
}

.hero .lede {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}

.hero-points span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 500;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-visual img {
  max-height: 340px;
  width: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.28));
  animation: float-in 0.9s var(--ease) both;
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white);
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 0.65rem; }
.page-hero p { color: rgba(255, 255, 255, 0.88); max-width: 42rem; margin: 0 auto; font-size: 1.05rem; }

/* ——— Sections ——— */
.section { padding: 4rem 0; }
.section-alt { background: var(--paper); }
.section-navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
}
.section-navy h2,
.section-navy h3 { color: var(--white); }

.section-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 2.5rem;
}
.section-head h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin-bottom: 0.75rem; }
.section-head p { font-size: 1.05rem; }

.eyebrow {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.55rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.split img {
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(27, 55, 100, 0.15);
}

.prose h2 { margin: 1.75rem 0 0.75rem; font-size: 1.55rem; }
.prose h3 { margin: 1.4rem 0 0.55rem; font-size: 1.2rem; }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1.1rem 1.15rem; list-style: disc; }
.prose ol { margin: 0 0 1.1rem 1.35rem; list-style: decimal; }
.prose li { margin-bottom: 0.35rem; }
.prose blockquote footer { margin-top: 0.75rem; font-size: 0.9rem; color: var(--slate); }
.prose a { color: var(--orange); font-weight: 600; }
.prose a:hover { text-decoration: underline; }

/* ——— Columns / lists ——— */
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.check-list li {
  position: relative;
  padding-left: 1.55rem;
  margin-bottom: 0.45rem;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--orange);
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem 1.35rem;
  height: 100%;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(27, 55, 100, 0.1);
}
.feature-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.95rem; }

.stat-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1.35rem;
}
.stat-box h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.stat-box li {
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
}
.stat-box li:last-child { border-bottom: none; }
.stat-box strong { color: var(--white); }

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.compare-col {
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
}
.compare-col.us {
  background: var(--navy);
  color: var(--white);
}
.compare-col.us h3 { color: var(--white); }
.compare-col.them {
  background: var(--mist);
  color: var(--ink);
}
.compare-col h3 { margin-bottom: 1rem; font-size: 1.25rem; }
.compare-col li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}
.compare-col.them li { border-bottom-color: rgba(27, 55, 100, 0.1); }
.compare-col li:last-child { border-bottom: none; }
.compare-col .mark { color: var(--orange); font-weight: 700; }

.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  padding: 1rem 1.15rem;
}
.faq-list summary {
  font-family: var(--font);
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details[open] summary { margin-bottom: 0.65rem; color: var(--orange); }
.faq-list details p { font-size: 0.97rem; }

.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.city-col h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--orange);
}
.city-col li {
  font-size: 0.9rem;
  padding: 0.22rem 0;
  color: var(--slate);
}
.city-col a:hover { color: var(--orange); }

/* ——— Offer form ——— */
.offer-box {
  background: var(--white);
  border-radius: 14px;
  padding: 1.35rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}
.offer-box h3 {
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
  text-align: center;
}
.offer-box.dark {
  background: rgba(255, 255, 255, 0.97);
}

.address-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.address-row input[type="text"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.95rem 1rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
}
.address-row input:focus {
  outline: none;
  border-color: var(--navy);
}
.address-row .btn { flex: 0 0 auto; }

.form-stack { display: grid; gap: 0.85rem; }
.form-stack-spaced { gap: 0; }
.form-group {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.form-group:last-of-type {
  border-bottom: none;
  padding-bottom: 0.25rem;
}
.form-stack > label,
.form-group > label {
  display: block;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 0.65rem;
}
.form-stack input,
.form-stack select,
.form-stack textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  margin-top: 0.15rem;
}
.form-stack > label input,
.form-stack > label select,
.form-stack > label textarea,
.form-group > label input,
.form-group > label select,
.form-group > label textarea {
  margin-top: 0.5rem;
}
.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.form-stack textarea { min-height: 110px; resize: vertical; }

.form-fieldset {
  border: none;
  margin: 0;
  padding: 0;
}
.form-fieldset legend {
  display: block;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 0.35rem;
  padding: 0;
}
.form-hint {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--slate);
  line-height: 1.4;
}
.form-checklist {
  display: grid;
  gap: 0.65rem;
  padding: 1.1rem 1.15rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
@media (min-width: 520px) {
  .form-checklist {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.25rem;
  }
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.35;
  margin: 0;
  padding: 0.2rem 0;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.15rem 0 0;
  flex-shrink: 0;
  accent-color: var(--navy);
}

.form-note {
  font-size: 0.85rem;
  color: var(--slate);
  text-align: center;
  margin-top: 0.65rem;
}
.form-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.25rem;
}
.form-status.error { color: #c0392b; }
.form-status.success { color: #1e7a3c; }

.step-indicator {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.step-indicator span {
  width: 2.25rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--mist);
}
.step-indicator span.is-active { background: var(--orange); }
.step-indicator span.is-done { background: var(--navy); }

.funnel-shell {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  box-shadow: 0 12px 36px rgba(27, 55, 100, 0.08);
}
.funnel-shell-wide {
  max-width: 680px;
  padding: 2.25rem 1.75rem;
}
.funnel-shell-wide .form-stack .btn {
  margin-top: 0.75rem;
}
#lead-address-display {
  margin-bottom: 0.5rem;
}
.funnel-shell h1 {
  font-size: 1.65rem;
  text-align: center;
  margin-bottom: 0.5rem;
}
.funnel-shell > p {
  text-align: center;
  margin-bottom: 1.5rem;
}

.inline-cta {
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}
.inline-cta .offer-box {
  width: min(100%, 640px);
  box-shadow: 0 12px 32px rgba(27, 55, 100, 0.12);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 1.5rem;
}
.site-footer h3,
.site-footer h4 { color: var(--white); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-blurb p { margin-bottom: 0.85rem; font-size: 0.95rem; }
.footer-contact h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.footer-contact p { margin-bottom: 0.35rem; }
.footer-contact a:hover { color: var(--orange); }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.socials a:hover {
  background: var(--orange);
  transform: translateY(-2px);
}
.socials svg { width: 18px; height: 18px; fill: var(--white); }

.footer-cities {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 2rem;
  margin-bottom: 2rem;
}
.footer-cities .city-col h4 {
  color: var(--white);
  border-bottom-color: var(--orange);
}
.footer-cities .city-col li,
.footer-cities .city-col a { color: rgba(255, 255, 255, 0.7); }
.footer-cities .city-col a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}
.footer-bottom a:hover { color: var(--orange); }

/* ——— Reveal motion ——— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ——— Utilities ——— */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1.5rem; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* ——— Responsive ——— */
@media (max-width: 980px) {
  .nav-primary { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hero-grid,
  .split,
  .cols-3,
  .cols-2,
  .compare-grid,
  .city-grid,
  .footer-top { grid-template-columns: 1fr; }
  .hero { padding: 3.25rem 0 3.5rem; }
  .hero-visual { order: -1; }
  .hero-visual img { max-height: 240px; }
  .phone-link .phone-label { display: none; }
}

@media (max-width: 640px) {
  .header-actions .btn-cta-label { display: none; }
  .address-row { flex-direction: column; }
  .address-row .btn { width: 100%; }
  .section { padding: 3rem 0; }
}
