/* ============================================================================
   QHB Landing — v3 (right-hook close, 5-section)
   ----------------------------------------------------------------------------
   Brand: navy #1d2a4a + red #C9263F + warm white #FFFFFF
   Type:  Fraunces (display) + Inter (body) + Homemade Apple (Ed signature)
   --------------------------------------------------------------------------*/

:root {
  --ink:        #1d2a4a;          /* navy, primary text */
  --ink-soft:   rgba(29, 42, 74, 0.70);
  --ink-faint:  rgba(29, 42, 74, 0.50);
  --rule:       rgba(29, 42, 74, 0.14);
  --accent:     #C9263F;          /* red, brand accent */
  --accent-soft: rgba(201, 38, 63, 0.10);
  --paper:      #FFFFFF;
  --paper-warm: #FAF7F0;
  --paper-tint: rgba(29, 42, 74, 0.04);
  --shadow-sm:  0 1px 2px rgba(20, 28, 50, 0.06);
  --shadow:     0 6px 24px rgba(20, 28, 50, 0.10);
  --shadow-lg:  0 14px 50px rgba(20, 28, 50, 0.16);
  --shadow-xl:  0 22px 70px rgba(20, 28, 50, 0.22);
  --radius:     14px;
  --radius-sm:  10px;
  --container:  1180px;
  --container-narrow: 720px;
}

* { box-sizing: border-box; }

html {
  /* Smooth-scroll for in-page anchor clicks (hero CTA -> #formSection, etc.) */
  scroll-behavior: smooth;
  /* Keep the sticky topbar from covering the form target on anchor jump */
  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;
}

body.lp { background: var(--paper); }

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }

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

/* ───────────────── LAYOUT HELPERS ───────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: var(--container-narrow); }

.section-header {
  text-align: center;
  margin-bottom: 36px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
}

/* ───────────────── TOPBAR ───────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  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: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand-logo { height: 32px; width: auto; }
.topbar-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--rule);
  text-decoration: none !important;
  transition: background 0.15s;
}
.topbar-call:hover { background: var(--paper-warm); }
.topbar-call-icon { display: inline-flex; color: var(--accent); }

/* ────────────────────────────────────────────────────────────────────────
   SECTION 1 — HERO (full-bleed satellite, minimal warm acknowledgment)
   ───────────────────────────────────────────────────────────────────── */
.hero-fullbleed {
  position: relative;
  min-height: 580px;
  display: flex;
  overflow: hidden;
}
@media (min-width: 900px) {
  .hero-fullbleed { min-height: 640px; }
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Stronger darkening so text reads on bright satellite imagery */
  filter: brightness(0.62) saturate(0.92);
}
/* On mobile the satellite reads too pulled-back — scale 10% so the property
   sits larger in the frame. .hero-image-wrap is overflow:hidden so the extra
   pixels clip cleanly without breaking layout. */
@media (max-width: 768px) {
  .hero-image {
    transform: scale(1.1);
    transform-origin: center center;
  }
}
.hero-fallback {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #1d2a4a 0%, #0f1a35 100%);
}
/* Layered overlay: deep at the bottom (where text sits), softer at the top.
   The horizontal layer pulls extra darkness into the left third for greeting
   readability on busy backgrounds. */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,22,38,0.18) 0%, rgba(15,22,38,0.55) 55%, rgba(15,22,38,0.82) 100%),
    linear-gradient(90deg, rgba(15,22,38,0.55) 0%, rgba(15,22,38,0.10) 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 72px 0 72px;
}
.hero-content-inner {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-text {
  color: #FFFFFF;
  max-width: 720px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.30);
}

.hero-greet {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(28px, 4.6vw, 50px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0 0 18px;
  color: #FFFFFF;
}
.hero-address-inline {
  font-weight: 600;
  color: #FFFFFF;
  font-style: italic;
}
.hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
  margin: 0 0 26px;
  max-width: 600px;
}
.hero-sub strong { color: #FFFFFF; font-weight: 600; }

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.hero-phone-link {
  font-size: 13.5px;
  color: rgba(255,255,255,0.82);
  margin: 0;
}
.hero-phone-link a {
  color: #FFFFFF;
  border-bottom: 1px dotted rgba(255,255,255,0.45);
}
.hero-phone-link a:hover { text-decoration: none; border-bottom-color: #FFFFFF; }

/* ───────────────── BUTTONS ───────────────── */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1px;
  border-radius: 100px;
  border: 1px solid transparent;
  text-decoration: none !important;
  transition: transform 0.06s, background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 6px 22px rgba(201,38,63,0.30), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-primary:hover {
  background: #b3202f;
  box-shadow: 0 10px 30px rgba(201,38,63,0.36), inset 0 1px 0 rgba(255,255,255,0.12);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
/* Lock the button to its baseline position when disabled (sending) or in the
   sent state, so the hover-lift / active-press transforms don't cause the
   button to shift down and crash into the phone CTA below. */
.btn-primary:disabled,
.btn-primary[disabled] {
  transform: none;
  cursor: default;
  box-shadow: 0 6px 22px rgba(201,38,63,0.20), inset 0 1px 0 rgba(255,255,255,0.10);
  opacity: 0.95;
}
.btn-primary:disabled:hover,
.btn-primary[disabled]:hover {
  transform: none;
  background: var(--accent);
  box-shadow: 0 6px 22px rgba(201,38,63,0.20), inset 0 1px 0 rgba(255,255,255,0.10);
}
/* Success state: green background + check icon, no transform on hover. */
.btn-primary.btn-sent,
.btn-primary.btn-sent:hover,
.btn-primary.btn-sent:disabled,
.btn-primary.btn-sent[disabled],
.btn-primary.btn-sent:disabled:hover {
  background: #137b48;
  color: #FFFFFF;
  box-shadow: 0 6px 22px rgba(19,123,72,0.30), inset 0 1px 0 rgba(255,255,255,0.14);
  transform: none;
  cursor: default;
  opacity: 1;
}
.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.30);
  backdrop-filter: blur(6px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.20); }

.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

/* ────────────────────────────────────────────────────────────────────────
   SECTION 2 — FORM (the close, the visual center of the page)
   ───────────────────────────────────────────────────────────────────── */
.form-section {
  padding: 72px 0 64px;
  background: var(--paper);
  position: relative;
}
/* Subtle paper-tint band runs full-bleed behind the form so the white card
   reads as a discrete, focused element. */
.form-section:before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper-tint);
  z-index: 0;
}
.form-section > .container { position: relative; z-index: 1; }

.form-prelude {
  text-align: center;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  margin: 0 auto 22px;
  max-width: 560px;
  line-height: 1.35;
}

.form-card {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 36px 36px 30px;
  box-shadow: var(--shadow-xl);
}
@media (max-width: 600px) { .form-card { padding: 24px 20px; } }

.lead-form { display: grid; gap: 16px; }
.field-row { display: grid; gap: 6px; }
.field-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.field-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #FFFFFF;
  transition: border 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.field-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,38,63,0.14);
}
.field-input.input-error {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,38,63,0.10);
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-top: 6px;
}
.consent input { margin-top: 3px; }
.consent.consent-error { color: var(--accent); }

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

.form-status { padding: 10px 12px; border-radius: 8px; font-size: 13.5px; margin-top: 4px; }
.form-status.error { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(201,38,63,0.25); }
.form-status.success { background: rgba(20,160,90,0.10); color: #137b48; border: 1px solid rgba(20,160,90,0.30); }
.form-status.info { background: var(--paper-warm); color: var(--ink-soft); }

.form-or {
  text-align: center;
  margin: 22px 0 10px;
  color: var(--ink-faint);
  font-size: 12.5px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.form-or:before, .form-or:after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--rule);
  vertical-align: middle;
  margin: 0 12px;
}
.phone-cta-secondary {
  display: block;
  text-align: center;
  text-decoration: none !important;
  padding: 14px 12px;
  border-radius: 10px;
  border: 1px solid var(--rule);
  transition: background 0.15s;
}
.phone-cta-secondary:hover { background: var(--paper-warm); }
.phone-cta-number {
  font-family: Fraunces, Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  display: block;
  letter-spacing: -0.01em;
}
.phone-cta-detail { font-size: 12.5px; color: var(--ink-soft); }

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

.form-success {
  background: rgba(20,160,90,0.08);
  border: 1px solid rgba(20,160,90,0.30);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  margin-top: 18px;
}
.form-success-icon { color: #137b48; margin: 0 auto 14px; width: 48px; }
/* Big serif greeting carries the visual weight. */
.form-success h3 { font-family: Fraunces, Georgia, serif; font-size: 26px; margin: 0 0 10px; }
/* "Talk soon 😊" and the phone-fallback line are uniform in size + family
   so the card reads as one coherent block instead of three competing
   typographic levels. "Talk soon" stays in full ink colour to keep its
   role as the primary payoff; the fallback is one shade softer. */
.form-success p {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  margin: 4px 0;
}
.form-success-headline {
  color: var(--ink);
  font-weight: 500;
}
.form-success-secondary {
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ────────────────────────────────────────────────────────────────────────
   SECTION 3 — WHAT HAPPENS NEXT (red 01–04 numbered timeline)
   ───────────────────────────────────────────────────────────────────── */
.next {
  padding: 72px 0 64px;
  background: var(--paper);
}
.next-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}
.next-step {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: start;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.next-step:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
@media (max-width: 600px) {
  .next-step { grid-template-columns: 56px 1fr; gap: 14px; padding: 20px 18px; }
}
.next-num {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(40px, 5.4vw, 60px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}
.next-body { padding-top: 4px; }
.next-title {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(17px, 1.9vw, 20px);
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ink);
  line-height: 1.25;
}
.next-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ────────────────────────────────────────────────────────────────────────
   SECTION 4 — TRUST BAND (single horizontal strip, four cells)
   ───────────────────────────────────────────────────────────────────── */
.trust-band {
  background: var(--ink);
  color: #FFFFFF;
  padding: 32px 0;
}
.trust-band-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 880px) { .trust-band-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; } }
@media (max-width: 480px) { .trust-band-grid { grid-template-columns: 1fr; gap: 22px; } }
.trust-band-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.trust-band-num {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(18px, 1.8vw, 21px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  text-transform: uppercase;
}
.trust-band-sub {
  font-size: 11.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}

/* ────────────────────────────────────────────────────────────────────────
   SECTION 5 — FOOTER + COMPLIANCE
   ───────────────────────────────────────────────────────────────────── */
.footer {
  background: #0f1626;
  color: rgba(255,255,255,0.78);
  padding: 56px 0 28px;
}
.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Contact block is centered. Each row is its own stacked label-above-value
   pair (Cell / phone, Office / phone, Email / address, Web / domain). */
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.footer-logo { height: 32px; width: auto; filter: brightness(0) invert(1) opacity(0.95); margin: 0 0 8px; }
.footer-tag { font-size: 12.5px; color: rgba(255,255,255,0.55); margin: 0; }
.footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
}
.footer-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: rgba(255,255,255,0.48);
  text-align: center;
}
.footer-row a { color: #FFFFFF; }
.footer-row strong { font-weight: 600; }

.compliance {
  margin: 28px 0 20px;
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.52);
}
.compliance p { margin: 0 0 8px; }
.compliance strong { color: rgba(255,255,255,0.72); }

.footer-bottom {
  font-size: 12px;
  color: rgba(255,255,255,0.50);
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom a { color: rgba(255,255,255,0.72); }
.footer-sep { padding: 0 8px; }

/* ───────────────── 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; }
