/* ============================================================================
   QHB Landing — June 2026 redesign (Carmine mockup, "Mailers blue")
   ----------------------------------------------------------------------------
   Accent: #173d7a (deep cobalt) + #102d5c (deeper) on warm paper.
   Type:  Fraunces (display) + Inter (body).
   v2 polish: hero owns the first screen (headline + sub + CTA + card + the 4
   stats), condensing topbar, defined property card, zoomed satellite.
   --------------------------------------------------------------------------*/

:root {
  --accent:       #173d7a;        /* Mailers blue — primary accent */
  --accent-deep:  #102d5c;        /* darker — form section bg, hovers */
  --accent-darker:#0c2247;        /* deepest — gradient floor */
  --accent-soft:  rgba(23, 61, 122, 0.08);
  --accent-line:  rgba(23, 61, 122, 0.55);

  --ink:        #1f2d36;          /* primary text */
  --ink-soft:   #3f4e59;
  --ink-faint:  #7b8893;
  --rule:       rgba(31, 45, 54, 0.12);
  --rule-strong:rgba(31, 45, 54, 0.18);

  --paper:      #ffffff;
  --cream:      #f1e7d3;          /* warm cream — hero */
  --paper-warm: #efe5d0;          /* warm band (how-it-works) */
  --paper-soft: #f9f3e7;          /* light cream — hero top */

  --shadow-sm:  0 1px 2px rgba(20, 28, 50, 0.06);
  --shadow:     0 6px 24px rgba(20, 28, 50, 0.10);
  --shadow-md:  0 10px 34px rgba(20, 28, 50, 0.12);
  --shadow-lg:  0 18px 50px rgba(12, 34, 71, 0.18);

  --radius:     14px;
  --radius-sm:  10px;
  --container:  1140px;
  --topbar-h:   50px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--ink); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 760px; }

.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

/* ───────────────── TOPBAR (compact, fixed — no scroll animation) ───────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 9px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
/* Never let the logo squish: brand + logo hold their intrinsic ratio. */
.brand { flex-shrink: 0; display: inline-flex; align-items: center; }
.brand-logo { height: 30px; width: auto; flex-shrink: 0; }

.topbar-call {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  padding: 8px 15px;
  border-radius: 100px;
  border: 1px solid var(--rule);
  background: #fff;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.topbar-call:hover { background: var(--accent-soft); border-color: var(--accent-line); }
.topbar-call svg { color: var(--accent); }

/* ───────────────── BUTTONS ───────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: transform 0.06s, background 0.15s, box-shadow 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(23, 61, 122, 0.28), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-primary:hover {
  background: var(--accent-deep);
  box-shadow: 0 10px 28px rgba(23, 61, 122, 0.34), inset 0 1px 0 rgba(255,255,255,0.12);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: #fff;
  color: var(--accent);
  border-color: var(--rule-strong);
}
.btn-outline:hover { background: var(--accent-soft); border-color: var(--accent-line); }
.btn-block { display: flex; width: 100%; }

.btn-primary:disabled,
.btn-primary[disabled] {
  transform: none; cursor: default; opacity: 0.96;
  box-shadow: 0 6px 20px rgba(23, 61, 122, 0.18);
}
.btn-primary:disabled:hover,
.btn-primary[disabled]:hover { transform: none; background: var(--accent); }
.btn-primary.btn-sent,
.btn-primary.btn-sent:hover,
.btn-primary.btn-sent[disabled],
.btn-primary.btn-sent:disabled {
  background: #137b48; color: #fff; transform: none; cursor: default; opacity: 1;
  box-shadow: 0 6px 20px rgba(19, 123, 72, 0.28);
}

/* ────────────────────────────────────────────────────────────────────────
   HERO — owns the first screen: text + card, with the 4 stats pinned bottom
   ───────────────────────────────────────────────────────────────────── */
.hero {
  background: #fff;
  display: flex;
  flex-direction: column;
}
/* Desktop: white hero fills the first screen (purely white above the fold);
   content + stats sit at the top, the beige How-this-works starts below. */
@media (min-width: 900px) {
  .hero { min-height: calc(100vh - var(--topbar-h)); justify-content: center; }
}

.hero-main {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 40px 0 26px;
}
@media (max-width: 899px) { .hero-main { padding: 32px 0 28px; } }

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 52px;
  align-items: center;
}
@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
}

.hero-h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(33px, 5vw, 58px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 0 0 20px;
  color: var(--ink);
}
.hero-h1 .addr { color: var(--accent); }

.hero-sub {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 560px;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

/* "From Ed Rooney" + cell as two calm lines (not crammed) */
.hero-from {
  font-size: 13.5px;
  color: var(--ink-soft);
  font-weight: 500;
  margin: 0 0 3px;
}
.hero-cell {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0;
}
.hero-cell a {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid var(--accent-line);
}
.hero-cell a:hover { border-bottom-color: var(--accent); }

/* Property card */
.property-card {
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.property-card-head { padding: 16px 18px 13px; }
.property-card-head .eyebrow { margin-bottom: 6px; }
.property-card-addr {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.35;
}
.property-image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-darker) 100%);
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
/* Zoom in ~10% from the top so the Google watermark on the bottom edge is
   cropped out of frame. */
.property-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transform-origin: center top;
}
.property-fallback {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-darker) 100%);
}
.property-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.property-fact {
  padding: 12px 14px;
  border-right: 1px solid var(--rule);
}
.property-fact:last-child { border-right: none; }
.property-fact-label {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 3px;
}
.property-fact-value { font-size: 14px; font-weight: 600; color: var(--ink); }

/* Stat row — pinned at the bottom of the hero (still above the fold) */
.hero-stats-wrap {
  flex: 0 0 auto;
  padding: 0 0 40px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
@media (max-width: 760px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stat-grid { grid-template-columns: 1fr; } }
.stat { padding: 20px 18px; text-align: center; }
@media (min-width: 761px) { .stat + .stat { border-left: 1px solid var(--rule); } }
@media (max-width: 760px) {
  .stat:nth-child(odd) { border-right: 1px solid var(--rule); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 420px) {
  .stat { border-right: none !important; }
  .stat + .stat { border-top: 1px solid var(--rule); }
}
.stat-num {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(26px, 2.8vw, 38px); font-weight: 600; letter-spacing: -0.015em;
  color: var(--ink); margin-bottom: 5px; line-height: 1;
}
.stat-text { font-size: clamp(12px, 0.95vw, 13.5px); line-height: 1.5; color: var(--ink-soft); }

/* ────────────────────────────────────────────────────────────────────────
   HOW THIS WORKS — warm band, numbered steps
   ───────────────────────────────────────────────────────────────────── */
.how { background: linear-gradient(180deg, #f1e8d6 0%, #e9deca 100%); padding: clamp(60px, 6vw, 88px) 0; }
.how-title {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(28px, 3.7vw, 42px);
  font-weight: 600; letter-spacing: -0.015em;
  margin: 0 0 12px; color: var(--ink);
}
.how-lede { font-size: clamp(16px, 1.5vw, 18px); color: var(--ink-soft); margin: 0 0 36px; max-width: 580px; }
.how-steps {
  list-style: none; padding: 0; margin: 0 0 26px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 44px;
}
@media (max-width: 720px) { .how-steps { grid-template-columns: 1fr; gap: 18px; } }
.how-step { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; }
.how-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; margin-top: 1px;
}
.how-step-body { font-size: clamp(14.5px, 1.05vw, 15.5px); line-height: 1.55; color: var(--ink-soft); }
.how-step-body strong { color: var(--ink); font-weight: 600; }
.how-callout {
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 14.5px; line-height: 1.55; color: var(--ink-soft);
}
.how-callout strong { color: var(--ink); }

/* ────────────────────────────────────────────────────────────────────────
   NOTE FROM ED — photo left, text right
   ───────────────────────────────────────────────────────────────────── */
.note { background: #fff; padding: 72px 0; }
.note-grid {
  display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start;
}
@media (max-width: 760px) { .note-grid { grid-template-columns: 1fr; gap: 26px; justify-items: center; text-align: left; } }
.note-photo {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--rule-strong);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 760px) { .note-photo { max-width: 230px; aspect-ratio: 1/1; } }
.note-title {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(27px, 3.4vw, 35px);
  font-weight: 600; letter-spacing: -0.015em;
  margin: 0 0 16px; color: var(--ink);
}
.note-body { font-size: 16px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 22px; }
.note-quote {
  margin: 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  font-size: 16px; line-height: 1.6; color: var(--ink);
}
.note-quote cite { display: block; margin-top: 8px; font-style: normal; font-size: 13.5px; color: var(--ink-faint); }

/* ────────────────────────────────────────────────────────────────────────
   REQUEST YOUR CASH OFFER — deep blue, copy left + white card right
   ───────────────────────────────────────────────────────────────────── */
.request {
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-darker) 100%);
  color: #fff;
  padding: 72px 0;
}
.request-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start;
}
@media (max-width: 880px) { .request-grid { grid-template-columns: 1fr; gap: 32px; } }
.request .eyebrow { color: rgba(255,255,255,0.72); }
.request-title {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(25px, 3.2vw, 33px);
  font-weight: 600; letter-spacing: -0.015em; line-height: 1.18;
  margin: 0 0 16px; color: #fff;
}
.request-body { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.86); margin: 0 0 24px; max-width: 460px; }
.request-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.request-list li {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start;
  font-size: 14.5px; color: rgba(255,255,255,0.92);
}
.request-list svg { color: #6fd3a3; margin-top: 2px; }

.form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 30px 26px;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
@media (max-width: 600px) { .form-card { padding: 22px 18px; } }

.error-card {
  padding: 12px 14px;
  background: rgba(201,38,63,0.07);
  border: 1px solid rgba(201,38,63,0.25);
  border-radius: var(--radius-sm);
  font-size: 13.5px; margin-bottom: 16px; color: #a91d33;
}
.error-card strong { display: block; margin-bottom: 2px; }

.lead-form { display: grid; gap: 15px; }
.field-row { display: grid; gap: 6px; }
.field-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--ink-faint);
}
.field-label .opt { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink-faint); }
.field-input,
.field-select {
  width: 100%;
  padding: 13px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border 0.15s, box-shadow 0.15s;
  -webkit-appearance: none; appearance: none;
}
.field-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237b8893' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field-input:focus,
.field-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 61, 122, 0.14);
}
.field-input.input-error,
.field-select.input-error {
  border-color: #c9263f;
  box-shadow: 0 0 0 3px rgba(201,38,63,0.10);
}

.consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12px; line-height: 1.45; color: var(--ink-soft);
  margin-top: 4px;
}
.consent input { margin-top: 2px; flex-shrink: 0; }
.consent.consent-error { color: #c9263f; }

#submitBtn { margin-top: 6px; padding: 16px 24px; font-size: 16px; }

.form-fineprint {
  font-size: 11.5px; line-height: 1.5; color: var(--ink-faint);
  margin: 12px 0 0; text-align: center;
}
.form-fineprint a { color: var(--accent); }

.form-status { padding: 10px 12px; border-radius: 8px; font-size: 13.5px; margin-top: 4px; }
.form-status.error { background: rgba(201,38,63,0.08); color: #a91d33; border: 1px solid rgba(201,38,63,0.22); }

.form-success { text-align: center; padding: 14px 6px 6px; }
.form-success-icon { color: #137b48; margin: 0 auto 12px; width: 46px; }
.form-success h3 { font-family: Fraunces, Georgia, serif; font-size: 25px; margin: 0 0 8px; color: var(--ink); }
.form-success p { font-size: 15.5px; line-height: 1.55; margin: 4px 0; color: var(--ink-soft); }
.form-success a { color: var(--accent); font-weight: 600; }

/* ────────────────────────────────────────────────────────────────────────
   FOOTER — centered logo, then contact, compliance, bottom row
   ───────────────────────────────────────────────────────────────────── */
.footer { background: #0f1626; color: rgba(255,255,255,0.74); padding: 48px 0 26px; }
.footer-top {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer-logo { height: 32px; width: auto; margin: 0 auto; filter: brightness(0) invert(1) opacity(0.92); }
.footer-tag { font-size: 12.5px; color: rgba(255,255,255,0.5); }

.footer-contact {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  padding: 22px 0;
  font-size: 13.5px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-contact .fc { display: inline-flex; align-items: baseline; gap: 7px; }
.footer-contact .fc-label {
  font-size: 9.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}
.footer-contact a, .footer-contact span.fc-val { color: #fff; }

.compliance { margin: 22px 0 18px; font-size: 11.5px; line-height: 1.55; color: rgba(255,255,255,0.5); }
.compliance p { margin: 0 0 8px; }
.compliance strong { color: rgba(255,255,255,0.7); }

.footer-bottom {
  font-size: 12px; color: rgba(255,255,255,0.48);
  display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-sep { opacity: 0.4; }

/* ───────────────── DESKTOP: bigger, bolder above-the-fold ───────────────── */
@media (min-width: 900px) {
  .hero-main { padding: 38px 0 30px; }
  .hero .btn { padding: 16px 30px; font-size: 16.5px; }
  .hero-stats-wrap { padding: 0 0 48px; }
}

/* ───────────────── VARIANT GATING ───────────────── */
body:not([data-variant="foreclosure"]) [data-variant-only="foreclosure"] { display: none !important; }
body:not([data-variant="pre_probate"]) [data-variant-only="pre_probate"] { display: none !important; }
body:not([data-variant="tax_delinquent"]) [data-variant-only="tax_delinquent"] { display: none !important; }

/* Standalone privacy and terms pages share the site's typography and spacing. */
.legal-page {
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) 24px 64px;
}
.legal-page-back { display: inline-flex; align-items: center; gap: 6px; }
.legal-page-title { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 24px 0 12px; }
.legal-meta { color: #555; font-size: 14px; margin: 0 0 28px; }
.legal-prose { font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.legal-prose h4 { font-size: 19px; line-height: 1.4; margin: 32px 0 12px; }
.legal-prose p, .legal-prose ul { margin: 0 0 16px; }
.legal-prose ul { padding-left: 24px; }
.legal-prose li { margin-bottom: 8px; }
.legal-page a { text-decoration: underline; text-underline-offset: 3px; }
.legal-page ~ .footer .footer-inner { max-width: 840px; margin: 0 auto; padding: 0 24px; }
.legal-page ~ .footer .footer-brand { color: #fff; font-size: 19px; font-weight: 700; }
.legal-page ~ .footer .footer-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.legal-page ~ .footer .footer-links a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.legal-page ~ .footer .footer-copy { font-size: 13px; }
