/* ============================================================
   GOOD LIFE HOME BUYERS — styles.css
   Mobile-first. Palette inspired by floridacashhomebuyers.com:
   trust blue + warm orange CTAs on white / light gray.

   NOTE ON THE ORANGE: the brief suggested #F7941D, but white
   text on #F7941D fails WCAG AA (~2.2:1). Buttons use #E07000
   (~3.2:1 with white at large/bold sizes) so CTAs stay both
   punchy AND readable. #F7941D is kept for non-text accents.
   ============================================================ */

:root {
  --blue:        #1B3A5C;  /* headings, header bar */
  --blue-mid:    #2C5F8A;  /* secondary blue, links */
  --blue-pale:   #E8EFF6;  /* pale blue tint for highlights */
  --orange:      #EE5A2C;  /* CTA fill (FCHB-style orange-red) — ~3.4:1 w/ white, AA for large bold text */
  --orange-hot:  #D64A1E;  /* CTA hover/active */
  --orange-glow: #F7941D;  /* non-text accents only */
  --gold:        #FFC845;  /* "Cash" underline inside CTA buttons */
  --green:       #2E9E4F;  /* success / checkmarks */
  --ink:         #2A2A2A;  /* body text */
  --ink-soft:    #55606B;  /* secondary text */
  --bg:          #FFFFFF;
  --bg-alt:      #F5F7FA;  /* alternating sections */
  --line:        #D9E1E8;  /* borders */
  --sky:         #3AA0DB;  /* nav hover/active accent */
  --radius:      12px;
  --shadow:      0 4px 20px rgba(27, 58, 92, 0.10);
  --shadow-soft: 0 2px 10px rgba(27, 58, 92, 0.07);
}

/* ---------- Base ---------- */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
  color: var(--blue);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 14px;
}

h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
h3 { font-size: 1.2rem; font-weight: 700; }

/* Highlighted word/phrase inside a heading */
.hl { color: var(--orange); }

p { margin: 0 0 1em; max-width: 65ch; }

a { color: var(--blue-mid); }

img, svg { max-width: 100%; }

.icon { width: 22px; height: 22px; flex-shrink: 0; }

.is-hidden { display: none !important; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.container-narrow { max-width: 860px; }

.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }

.section h2 { text-align: center; }

.section-sub {
  text-align: center;
  color: var(--ink-soft);
  font-size: 1.06rem;
  max-width: 60ch;
  margin: 0 auto 36px;
}

.section-cta { text-align: center; margin-top: 36px; }

/* Inline lead form revealed in place of a mid-page CTA button */
.inline-lead-form {
  max-width: 460px;
  margin: 24px auto 0;
  text-align: left;
}

/* Confetti burst piece — position/size/color set inline per-piece by
   script.js; this just defines the shared fly-out-and-fade motion. */
.confetti-piece {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 400;
  border-radius: 1px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: confetti-burst 850ms ease-out forwards;
}

@keyframes confetti-burst {
  0% { transform: translate(-50%, -50%) translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; }
}

/* Clean white promo card that turns "read the reviews" into "get
   your own offer" — sits at the end of the Testimonials section. */
.success-cta {
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFCFE 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px 28px;
  margin-top: 40px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(15, 40, 80, 0.1);
}

.success-cta-heading {
  color: var(--blue);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 16px;
}

.success-cta-sub {
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

@media (max-width: 480px) {
  .success-cta { padding: 40px 16px; }
  .success-cta .btn { font-size: 1.05rem; padding: 14px 20px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size: 1.25rem; /* ≥20px — large text for AA contrast */
  line-height: 1.2;
  border: none;
  border-radius: 8px;
  min-height: 54px;
  padding: 15px 30px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:hover, .btn:focus-visible { background: var(--orange-hot); }
.btn:active { transform: scale(0.985); }

/* Gold underline under "Cash" inside CTA buttons (FCHB style) */
.btn-underline {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.btn-block { display: flex; width: 100%; }
.btn-lg { font-size: 1.25rem; min-height: 58px; padding: 16px 36px; }

/* Shine sweep — a light band slides across the button every few
   seconds. overflow:hidden on the button clips it to the rounded
   corners; animating `left` (not background-position) keeps the
   motion simple and glitch-free. */
.btn-shine { position: relative; overflow: hidden; }

.btn-shine::after {
  content: "";
  position: absolute;
  top: -60%;
  bottom: -60%;
  left: -30%;
  width: 22%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: btn-shine-sweep 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btn-shine-sweep {
  0%   { left: -30%; }
  35%  { left: 120%; }
  100% { left: 120%; }
}

/* ---------- 1. Header ---------- */

.site-header {
  position: static;
  z-index: 100;
  background: #fff;
  color: var(--blue);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  height: 48px;
  width: auto;
  display: block;
}

.logo > img {
  height: 40px;
  width: auto;
  display: block;
}

@media (max-width: 639px) {
  .logo > img { height: 32px; }
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-line1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  background: linear-gradient(100deg, var(--blue) 0%, #3EC6E0 20%, var(--blue) 40%, #F3FDFF 50%, var(--blue) 60%, #3EC6E0 80%, var(--blue) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: logo-shine 4s linear infinite;
}

@keyframes logo-shine {
  to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-line1 { animation: none; background: linear-gradient(90deg, #3EC6E0, var(--blue)); -webkit-background-clip: text; background-clip: text; }
}

.logo-line2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #1A1A1A;
}

@media (max-width: 639px) {
  .logo-icon { height: 38px; }
  .logo-line1 { font-size: 17px; }
  .logo-line2 { font-size: 10px; letter-spacing: 2px; }
}

/* Anchors land clear of the sticky header instead of sliding underneath it */
section[id] { scroll-margin-top: 88px; }

/* ---------- Header actions (phone CTA) ---------- */

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: var(--orange);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 16px;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.header-phone:hover,
.header-phone:focus-visible {
  background: var(--orange-hot);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(238, 90, 44, 0.35);
}

.header-phone:active { transform: translateY(0); }

/* Mobile: collapse the CTA copy down to icon + "Call Now" */
.header-phone-text { display: none; }
.header-phone-text-short { display: inline; }

@media (min-width: 640px) {
  .header-phone { padding: 10px 20px; }
  .header-phone-text { display: inline; }
  .header-phone-text-short { display: none; }
}

/* Hidden on mobile — the sticky bottom CTA bar (#sticky-cta) already
   keeps calling/texting one tap away without cluttering the header. */
@media (max-width: 899px) {
  .header-phone { display: none; }
}

.noscript-banner {
  background: #FFF4E3;
  border-bottom: 2px solid var(--orange);
  padding: 14px 16px;
  text-align: center;
  font-size: 1rem;
}

/* ---------- 2. Hero + form (FCHB-style slanted blue band) ---------- */

.hero {
  /* Neighborhood street photo with a blue gradient overlay so the
     white headline/form-card text stays readable on top. */
  background-image: linear-gradient(135deg, rgba(27, 58, 92, 0.82) 0%, rgba(36, 80, 126, 0.82) 100%),
                     url("assets/thumbnails/hero-bg.webp");
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: cover, cover;
  /* Slanted top + bottom edges */
  clip-path: polygon(0 2.5vw, 100% 0, 100% calc(100% - 2.5vw), 0 100%);
  padding: calc(36px + 2.5vw) 0 calc(44px + 2.5vw);
  /* drop-shadow (not box-shadow) follows the clip-path silhouette, so the
     slanted bottom edge casts a soft shadow onto the trust strip below —
     that's what reads as "floating" rather than a hard seam. */
  filter: drop-shadow(0 10px 14px rgba(15, 30, 51, 0.3));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.hero h1 { color: #fff; }
.hero-location { color: #fff; }

.hero-sub {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--orange-glow);
  margin-bottom: 18px;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.icon.check { color: var(--orange-glow); margin-top: 3px; width: 20px; height: 20px; }

/* Mobile: form immediately after H1/subhead — keep hero copy tight */
@media (max-width: 899px) {
  .hero-points { display: none; } /* keep step-1 form in first viewport on mobile */
}

@media (min-width: 900px) {
  .hero { padding: calc(48px + 2.5vw) 0 calc(56px + 2.5vw); }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
  }
}

/* Form card */

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px 24px;
}

@media (min-width: 900px) { .form-card { padding: 28px 28px 30px; } }

.form-step { border: none; padding: 0; margin: 0; }

.form-step.step-enter { animation: step-in 0.3s ease; }

@keyframes step-in {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: none; }
}

/* Fatter submit CTA — taller than the site's default .btn so it commands
   more attention as the one button that actually submits the lead. */
[data-role="submit-lead"] {
  min-height: 68px;
  padding: 20px 30px;
  font-size: 1.35rem;
}

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 5px;
  color: var(--blue);
}

.field label .req { color: #C0392B; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.custom-select-trigger {
  width: 100%;
  font-family: inherit;
  font-size: 1.05rem; /* ≥16px prevents iOS zoom-on-focus */
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  min-height: 50px;
}

.field input:focus, .custom-select-trigger:focus {
  outline: 2px solid var(--blue-mid);
  outline-offset: 1px;
  border-color: var(--blue-mid);
}

.field.has-error input, .field.has-error .custom-select-trigger { border-color: #C0392B; }

.field-search { position: relative; }

.field-search .field-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--ink-soft);
  pointer-events: none;
}

.field .field-search input[type="text"] { padding-left: 42px; }

/* Custom "Reason for selling" combobox — a styled trigger button that
   opens a floating panel of options, with the current pick highlighted,
   in place of an OS-native <select> popup we can't style consistently. */
.custom-select { position: relative; }

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.custom-select-value { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-select-value.is-placeholder { color: #6B7785; }

.custom-select-cursor-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #6B7785;
}

.custom-select-caret {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--blue-mid);
  transition: transform 0.2s ease;
}

.custom-select-trigger[aria-expanded="true"] .custom-select-caret { transform: rotate(180deg); }

.custom-select-panel {
  /* Positioned in JS (script.js) via top/left/width matching the trigger's
     bounding rect — it's moved to <body> at runtime so the hero's
     clip-path (slanted edges) can't clip it. */
  position: fixed;
  z-index: 20;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.custom-select-panel.is-hidden { display: none; }

.custom-select-panel li {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.98rem;
  color: var(--ink);
  cursor: pointer;
}

.custom-select-panel li:hover,
.custom-select-panel li.is-highlighted {
  background: var(--blue-pale);
}

.custom-select-panel li[aria-selected="true"] {
  background: var(--blue-pale);
  color: var(--blue);
  font-weight: 700;
}

.field-error {
  display: none;
  color: #C0392B;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 5px 0 0;
}

.field.has-error .field-error { display: block; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row .field { margin-bottom: 14px; }

/* Google Places Autocomplete dropdown (injected by Google's script —
   only appears once GOOGLE_PLACES_API_KEY is set in script.js) */
.pac-container {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow);
  margin-top: -2px;
}

.pac-item {
  padding: 8px 14px;
  font-size: 0.95rem;
  cursor: pointer;
}

.pac-item-query { font-size: 0.98rem; }

/* Checkbox fields (qualification + TCPA consent) */

.field-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink);
  cursor: pointer;
}

.field-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--blue-mid);
  cursor: pointer;
}

.field-checkbox.has-error label span { color: #C0392B; }

.field-checkbox-muted { color: var(--ink-soft); }

.form-legal-links {
  text-align: center;
  font-size: 0.95rem;
  margin: 10px 0 0;
}

/* Bold, underlined, and clearly link-colored — A2P/TCPA carrier review
   checks that the Privacy Policy / Terms links near consent language are
   unmistakably visible and clickable, not faint fine print. */
.form-legal-links a {
  color: var(--blue-mid);
  font-weight: 700;
  text-decoration: underline;
}

.form-legal-links a:hover,
.form-legal-links a:focus-visible { color: var(--blue); }

.form-reassure {
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 10px 0 0;
}

.form-back {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue-mid);
  cursor: pointer;
  text-decoration: underline;
}

/* Success state */

.form-success { text-align: center; padding: 12px 4px; }
.form-success .success-icon { width: 56px; height: 56px; margin-bottom: 10px; }
.form-success h3 { font-size: 1.3rem; }
.form-success p { margin: 0 auto; }

.form-reset-link {
  display: block;
  margin: 16px auto 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue-mid);
  cursor: pointer;
  text-decoration: underline;
}

.form-reset-link:hover,
.form-reset-link:focus-visible { color: var(--blue); }

.form-error-global {
  background: #FDECEA;
  border: 1px solid #C0392B;
  border-radius: 8px;
  color: #7B241C;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 14px;
  margin: 14px 0 0;
}

/* Trust strip — review-platform badges (Google / BBB / Facebook / Trustpilot) */

.trust-band {
  background: #fff;
  padding: 20px 0 24px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 20px 32px;
}

.review-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.rb-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rb-bottom {
  font-size: 0.8rem;
  color: var(--ink);
}

.rb-sep { color: #9AA6B1; margin: 0 2px; }
/* No text-decoration — badges are plain divs (not links) for now. */
.rb-link { color: inherit; }

/* Mobile: badges stack one per line by default (flex-wrap), which reads as
   plain loose text. Give each its own card so the strip feels curated. */
@media (max-width: 639px) {
  .trust-band { padding: 24px 0; }

  .trust-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .review-badge {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    padding: 16px;
    gap: 8px;
  }

  .rb-bottom { font-size: 0.85rem; }
}

/* Google wordmark (brand letter colors) */
.google-wordmark {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
}

.google-wordmark b,
.google-wordmark i,
.google-wordmark u,
.google-wordmark em {
  font-style: normal;
  font-weight: 700;
  text-decoration: none;
}

.google-wordmark b { color: #4285F4; }        /* G, g */
.google-wordmark i { color: #EA4335; }        /* o, e */
.google-wordmark u { color: #FBBC05; }        /* o */
.google-wordmark em { color: #34A853; }       /* l */

/* Facebook wordmark */
.facebook-wordmark {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1;
  color: #1877F2;
}

/* Trustpilot wordmark */
.trustpilot-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1;
  color: #191919;
}

.tp-star { width: 22px; height: 22px; color: #00B67A; }

/* Yellow star rating with fractional fill (--pct sets the fill width) */
.star-rating {
  position: relative;
  display: inline-block;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 1px;
}

.star-rating .sr-back { color: #D9DDE1; }

.star-rating .sr-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--pct, 100%);
  overflow: hidden;
  white-space: nowrap;
  color: #F5B81C;
}

/* Square star tiles (BBB blue / Trustpilot green) */
.tile-stars {
  display: inline-flex;
  gap: 2px;
  line-height: 1;
}

.tile-stars span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #fff;
  font-size: 0.95rem;
}

.tile-blue span { background: #1E5DA8; }
.tile-green span { background: #00B67A; }

.tile-green .tile-half {
  background: linear-gradient(90deg, #00B67A 0 50%, #C9CDD1 50% 100%);
}

/* BBB plaque: torch + "A+ RATING" on BBB blue */
.bbb-plaque {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1E5DA8;
  color: #fff;
  border-radius: 8px;
  padding: 6px 12px 6px 8px;
}

.bbb-torch { width: 26px; height: 26px; }

.bbb-plaque-text {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

/* ---------- 3. How it works ---------- */

#how-it-works {
  position: relative;
  overflow: hidden;
}

/* Soft curved shadow sitting just above this section's own heading rather
   than hugging the trust badges above — a flat, invisible ellipse whose
   bottom edge sits exactly at the section's top edge; its unoffset blur
   spreads both ways evenly, so only the downward half pokes into view,
   clipped by overflow:hidden into a soft arc rather than a straight line. */
#how-it-works::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 30px;
  border-radius: 50%;
  box-shadow: 0 0 18px 8px rgba(15, 30, 51, 0.28);
}

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

@media (min-width: 780px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }

.step-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 28px 22px 22px;
  text-align: center;
}

.step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon { width: 40px; height: 40px; color: var(--blue-mid); margin-bottom: 10px; }
.step-card p { margin: 0 auto; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- 5. Who we help (photo tiles) ---------- */

.reasons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 640px) { .reasons-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .reasons-grid { grid-template-columns: repeat(3, 1fr); } }

.reason-tile {
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reason-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.reason-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.reason-tile figcaption { padding: 18px 20px 22px; }

.reason-tile h3 {
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.25;
}

.reason-tile p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* "Still thinking?" section — full-width photo CTA banner. The house
   photo fills the entire section; a white fade overlay keeps it subtle
   behind the copy + CTA sitting on the left. The CTA scrolls back up
   to the hero form. */
.still-thinking-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(88px, 11vw, 160px) 0;
  min-height: clamp(480px, 40vw, 800px);
  background: var(--bg-alt);
}

.still-thinking-banner .container { width: 100%; }

.still-thinking-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% 60%;
}

/* Fade over the photo: near-solid white veil on mobile (copy spans the
   full width), left-to-right fade on desktop that fully clears by 60%
   of the banner width so the SOLD sign shows at full color while the
   copy on the left stays readable. */
.still-thinking-banner-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.84) 55%,
    rgba(255, 255, 255, 0.6) 100%);
  pointer-events: none;
}

@media (min-width: 900px) {
  .still-thinking-banner-fade {
    background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.9) 34%,
      rgba(255, 255, 255, 0.55) 50%,
      rgba(255, 255, 255, 0.15) 56%,
      rgba(255, 255, 255, 0) 60%);
  }
}

.still-thinking-banner-copy {
  position: relative;
  max-width: 660px;
}

/* Small uppercase eyebrow, sets a premium tone above the headline */
.still-thinking-kicker {
  margin: 0 0 18px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

#still-thinking h2 {
  font-size: clamp(2.1rem, 4.2vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-align: left;
  text-wrap: balance;
  margin: 0 0 18px;
}

.still-thinking-banner-copy .section-sub {
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 44ch;
  margin: 0 0 30px;
}

.still-thinking-points {
  list-style: none;
  padding: 0;
  margin: 0 0 38px;
}

.still-thinking-points li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 16px;
}

.still-thinking-points li:last-child { margin-bottom: 0; }

.still-thinking-points .icon.check {
  color: var(--green);
  background: rgba(46, 158, 79, 0.12);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  padding: 5px;
  box-sizing: border-box;
}

/* Inline lead form revealed by the banner CTA: left-aligned with the
   copy column instead of the default centered placement. */
.still-thinking-banner-copy .inline-lead-form { margin-left: 0; }

/* ---------- 6. Comparison ---------- */

.compare-card {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 8px;
}

.compare-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 700px) {
  .compare-columns { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.compare-column {
  background: #fff;
  border-radius: 20px;
  padding: 44px 40px;
}

.compare-us { border: 2px solid rgba(46, 158, 79, 0.4); }
.compare-them { border: 2px solid rgba(192, 57, 43, 0.35); }

.compare-column h3 {
  text-align: left;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 28px;
}

.compare-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.compare-column li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.15rem;
  color: var(--ink);
}

.compare-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.compare-icon-yes { background: var(--green); }
.compare-icon-no { background: #C0392B; }

/* ---------- 8. Testimonials (carousel) ---------- */

.testimonial-carousel {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* auto, not smooth: the marquee writes scrollLeft directly every frame —
     CSS smooth-scroll would fight that by animating toward each tiny
     per-frame target instead of jumping to it. Dot clicks still animate
     smoothly via the explicit `behavior: "smooth"` passed to scrollTo()
     in script.js, which overrides this regardless. */
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  padding: 22px 4px 14px;
  text-align: center;
  scrollbar-width: none;
  /* Fade the strip out at both edges instead of hard-cropping whichever
     card is mid-drift there — a sliced-off sentence is what makes a
     continuously-scrolling strip feel hard to read. A fixed pixel width
     (not a %) so it stays a thin edge hint on the single mobile card
     instead of eating into its text, while still covering most of a
     partially-cropped card once there's room for 2-3 per view. */
  --carousel-fade: 30px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--carousel-fade), #000 calc(100% - var(--carousel-fade)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--carousel-fade), #000 calc(100% - var(--carousel-fade)), transparent);
}

@media (min-width: 640px) { .testimonial-track { --carousel-fade: 60px; } }
@media (min-width: 980px) { .testimonial-track { --carousel-fade: 90px; } }

.testimonial-track::-webkit-scrollbar { display: none; }

/* While script.js is driving the continuous marquee, drop scroll-snap so
   the per-frame scrollLeft nudges don't fight the browser's snap-back —
   snap returns the instant the user hovers/touches/focuses to pause it. */
.testimonial-track.is-marquee { scroll-snap-type: none; }

.testimonial-card {
  position: relative;
  scroll-snap-align: start;
  flex: 0 0 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(15, 40, 80, 0.05),
    0 10px 24px rgba(15, 40, 80, 0.06);
  padding: 30px 26px 26px;
  margin: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 640px) { .testimonial-card { flex-basis: calc((100% - 20px) / 2); } }
@media (min-width: 980px) { .testimonial-card { flex-basis: calc((100% - 60px) / 4); } }

/* The card nearest the center of the viewport gets a subtle lift so the
   marquee reads as having a "current" testimonial, not just a scroll strip. */
.testimonial-card.is-active-card {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 1px 2px rgba(15, 40, 80, 0.06),
    0 16px 32px rgba(15, 40, 80, 0.10);
  z-index: 1;
}

/* Dots only render once script.js confirms it can drive them
   (adds .carousel-ready) — without JS this is just a swipeable strip. */
.carousel-dots { display: none; }

.testimonial-carousel.carousel-ready ~ .carousel-dots { display: flex; }

.carousel-dots {
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.carousel-dot {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 7.5px;
  border-radius: 999px;
  border: none;
  background: var(--line);
  background-clip: content-box;
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.carousel-dot.is-active {
  width: 45px;
  background: var(--blue-pale);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 1.3rem;
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.testimonial-headline {
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--blue);
  font-size: 1.05rem;
  line-height: 1.4;
}

.testimonial-body {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 20px;
}

.testimonial-card figcaption {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

/* Video lite-embed */

.video-embed { max-width: 720px; margin: 30px auto 0; }

.video-poster {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
}

.video-play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
}

.video-caption { font-weight: 700; font-size: 1.05rem; }

.video-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: var(--radius);
}

/* ---------- 9. About ---------- */

#about h2 { margin-bottom: 44px; }

/* Founder rows: photo + story side-by-side, alternating which side
   the photo sits on per founder (zig-zag bio layout). */
.founder-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.founder-row + .founder-row { margin-top: 48px; }

@media (min-width: 780px) {
  .founder-row { grid-template-columns: minmax(260px, 320px) 1fr; gap: 48px; }
  .founder-row-reverse { grid-template-columns: 1fr minmax(260px, 320px); }
}

.founder-row-photo {
  position: relative;
  width: min(300px, 70vw);
  margin: 0 auto;
  order: 1;
}

.founder-row-copy { order: 2; }

@media (min-width: 780px) {
  .founder-row-photo { width: 100%; margin: 0; }
  .founder-row-reverse .founder-row-photo { order: 2; }
  .founder-row-reverse .founder-row-copy { order: 1; }
}

.founder-row-photo img {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(15, 40, 80, 0.10),
    0 12px 28px rgba(15, 40, 80, 0.14),
    0 28px 56px rgba(15, 40, 80, 0.12);
}

.founder-row-img-top { object-position: center 15%; }

/* Flat navy panel offset behind the portrait — matted-print
   framing rather than a gradient. */
.founder-row-frame {
  position: absolute;
  top: 20px;
  right: -20px;
  bottom: -20px;
  left: 20px;
  z-index: 0;
  border-radius: 20px;
  background: var(--blue);
}

/* Panel leans toward the story text on both rows of the zig-zag */
@media (min-width: 780px) {
  .founder-row-reverse .founder-row-frame { right: 20px; left: -20px; }
}

/* Name/title baked into the photo itself, movie-poster credit style */
.founder-row-caption {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 20px 18px;
  border-radius: 0 0 20px 20px;
  background: linear-gradient(180deg, rgba(15, 32, 54, 0) 0%, rgba(15, 32, 54, 0.55) 45%, rgba(15, 32, 54, 0.88) 100%);
  text-align: left;
}

.founder-row-name {
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  margin: 0;
}

.founder-row-title {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 4px 0 0;
}

.about-quote {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 32px 32px;
  margin-bottom: 20px;
  box-shadow:
    0 1px 2px rgba(15, 40, 80, 0.05),
    0 14px 32px rgba(15, 40, 80, 0.08);
}

/* Small solid quote glyph opening the text — editorial pull-quote
   style, in the same navy as the photo mats. The SVG draws closing
   marks, so rotate it into an opening pair. */
.about-quote-mark {
  display: block;
  width: 26px;
  height: 26px;
  margin-bottom: 14px;
  color: var(--blue);
  transform: rotate(180deg);
}

.about-quote p { line-height: 1.7; }

.about-quote p:last-child { margin-bottom: 0; }

@media (max-width: 779px) {
  #about h2 { margin-bottom: 24px; }
}

/* ---------- 10. Offer formula ---------- */

/* One horizontal equation on desktop (card − card − card − card = card),
   a vertical stack with the operators between cards on mobile. */
.formula-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  justify-items: center;
}

@media (min-width: 980px) {
  .formula-row {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
    gap: 12px;
    align-items: stretch;
  }
}

.formula-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 20px 16px;
  text-align: center;
}

.formula-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.formula-card p { margin: 0 auto; color: var(--ink-soft); font-size: 0.9rem; }

.formula-op {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--orange);
}

/* The result term — highlighted like other pale-blue emphasis blocks. */
.formula-card-result {
  background: var(--blue-pale);
  border-color: var(--blue-mid);
}

.formula-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 1.06rem;
  max-width: 60ch;
  margin: 32px auto 0;
}

/* ---------- 11. FAQ ---------- */

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  background: #fff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(27, 58, 92, 0.1);
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.faq-item:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(27, 58, 92, 0.15); }

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue);
  padding: 16px 18px;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }

.faq-answer { padding: 14px 18px 6px; }
.faq-answer p { color: var(--ink); }

/* ---------- 12. Final CTA ---------- */

.final-cta {
  /* Same background treatment as #testimonials, for visual consistency
     between the two sections. */
  background: linear-gradient(180deg, var(--bg-alt) 0%, #EAF0F7 100%);
  text-align: center;
}

.final-cta h2 { color: var(--blue); margin-bottom: 10px; }

.final-cta-sub {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 55ch;
  margin: 0 auto 26px;
}

/* Embedded lead form — same form-card/lead-form markup as the hero,
   constrained to a readable width and reset to left-aligned text since
   .final-cta centers everything above it. */
.final-cta-form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

/* ---------- 13. Footer ---------- */

.site-footer {
  position: relative;
  background: linear-gradient(180deg, #12283E 0%, #0C1D2F 100%);
  color: #8FA2B3;
  font-size: 0.85rem;
  padding: 32px 0;
  text-align: center;
}

/* Thin brand accent along the top edge */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
}

.footer-contact-line {
  margin: 0 0 10px;
  max-width: none;
  font-size: 0.95rem;
}

.footer-contact-line a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-contact-line a:hover { text-decoration: underline; }

.footer-contact-line .icon {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  margin-right: 5px;
  color: var(--orange);
}

.footer-contact-line .icon + .icon { margin-left: -1px; }

.footer-address {
  margin: 0 0 12px;
  max-width: none;
  color: #B9C7D4;
}

.footer-about {
  margin: 0 auto 12px;
  max-width: 720px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #8FA2B3;
}

.footer-copy {
  margin: 0 0 6px;
  max-width: none;
  color: #8FA2B3;
}

.footer-legal-links { margin: 12px 0 0; max-width: none; font-size: 1rem; }

.footer-legal-links a {
  display: inline-block;
  padding: 4px 2px;
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer-legal-links a:hover { color: var(--orange); }

.footer-contact-line span,
.footer-legal-links span { margin: 0 8px; color: #55606B; }

/* Leave room for the mobile sticky bar */
@media (max-width: 899px) { .site-footer { padding-bottom: 96px; } }

/* Mobile footer: stack contact links and address lines */
@media (max-width: 600px) {
  .footer-contact-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
  }

  .footer-contact-line > span { display: none; }

  .footer-contact-line a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
  }

  .footer-address .footer-sep { display: none; }

  .footer-address .footer-biz,
  .footer-address .footer-loc {
    display: block;
    line-height: 1.5;
  }
}

/* ---------- 14. Mobile sticky CTA bar ---------- */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  gap: 10px;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(27, 58, 92, 0.15);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(0);
  transition: transform 0.25s ease;
}

.sticky-cta.sticky-hidden { transform: translateY(110%); }

.sticky-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  min-height: 52px;
  border-radius: 10px;
  text-decoration: none;
}

.sticky-call { background: var(--blue); color: #fff; }
.sticky-offer { background: var(--orange); color: #fff; }

/* Desktop: no sticky bar */
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- Legal pages (privacy-policy.html / terms-and-conditions.html) ---------- */

.legal-page { padding: 40px 0 64px; }

.legal-page h1 {
  color: var(--blue);
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin: 0 0 22px;
}

.legal-page h2 {
  text-align: left;
  font-size: 1.45rem;
  margin: 34px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.legal-page h3 {
  font-size: 1.1rem;
  margin: 22px 0 8px;
}

.legal-page p { max-width: 75ch; }

.legal-page ul {
  max-width: 75ch;
  margin: 0 0 1em;
  padding-left: 26px;
}

.legal-page li { margin-bottom: 6px; }

.legal-back { margin-top: 40px; font-weight: 700; }

/* ---------- Reveal-on-scroll (JS adds .reveal-init, then .reveal-visible) ---------- */
/* Without JS, elements are fully visible by default. */

.reveal-init [data-reveal],
[data-reveal].reveal-init {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].reveal-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal].reveal-init { opacity: 1; transform: none; transition: none; }
  .sticky-cta, .btn { transition: none; }
  .header-phone { transition: none; }
  .form-step.step-enter { animation: none; }
  .testimonial-track { scroll-behavior: auto; }
  .btn-shine::after { animation: none; content: none; }
  .confetti-piece { display: none; }
}
