/* Jerry Richardson Real Estate — shared styles (home, pre-foreclosure, offer, legal pages)

   Fluid scale (copied from /matrix): everything is sized in rem. 1rem = 16px up to a 1440px-wide
   screen; beyond that the whole page scales up proportionally (limited by screen height so
   ultrawides don't get huge). */
html { font-size: max(16px, min(100vw / 90, 100vh / 45)); }

:root {
  --navy: #0B1726;
  --navy-2: #14253B;
  --gold: #C49A45;
  --gold-dk: #A67E30;
  --gold-lt: #E3C789;
  --warm: #FAF9F6;
  --white: #FFFFFF;
  --charcoal: #202630;
  --muted: #69717C;
  --line: rgba(11,23,38,0.12);
  --line-dk: rgba(255,255,255,0.14);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --max: 87.5rem;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --header: 5.5rem;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 1rem); }
body {
  margin: 0;
  background: var(--warm);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -0.01em; line-height: 1.12; color: var(--navy); }
h2 { font-size: clamp(2rem, 3.4vw, 2.875rem); text-wrap: balance; }
h3 { font-size: 1.25rem; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 0.1875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: 1rem; top: -3.75rem; z-index: 300;
  background: var(--navy); color: #fff; padding: 0.625rem 1rem; font-size: 0.875rem;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 1.25rem; height: 1.25rem; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.875rem;
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-dk);
}
.eyebrow::before { content: ''; width: 1.75rem; height: 1px; background: currentColor; }
.on-dark .eyebrow, .eyebrow.lt { color: var(--gold); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.gold { color: var(--gold); }
.on-dark .gold { color: var(--gold-lt); }
.lede { font-size: 1.0625rem; line-height: 1.7; color: var(--muted); }
.on-dark .lede { color: rgba(255,255,255,0.74); }

/* ============ IMAGE PLACEHOLDER FALLBACK ============ */
/* A missing image shows its filename (data-label) so you know exactly which file to add to /jerry/images.
   data-hint (optional) adds a short art-direction note underneath. */
.ph { position: relative; background: #e9e4da; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph.img-error img { display: none; }
.ph.img-error::before {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0.75rem;
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em;
  color: #8c8373; overflow-wrap: anywhere;
  background: repeating-linear-gradient(135deg, #efebe3, #efebe3 0.625rem, #e7e1d6 0.625rem, #e7e1d6 1.25rem);
}
.ph.img-error[data-hint]::after {
  content: attr(data-hint);
  position: absolute; left: 50%; top: calc(50% + 1rem); transform: translateX(-50%);
  width: min(86%, 24rem); text-align: center;
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 500; line-height: 1.5; color: #9a917f;
}
.ph.ph-dark { background: var(--navy-2); }
.ph.ph-dark.img-error::before {
  color: #6f86a3;
  background: repeating-linear-gradient(135deg, #0f1e31, #0f1e31 0.625rem, #13243a 0.625rem, #13243a 1.25rem);
}
.ph.ph-dark.img-error[data-hint]::after { color: #5d728d; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: 3.375rem; padding: 0 1.875rem;
  font-family: var(--sans); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn .ico { width: 1rem; height: 1rem; stroke-width: 1.5; transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(0.25rem); }
.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dk); border-color: var(--gold-dk); }
.btn-line { background: transparent; color: var(--navy); border-color: rgba(11,23,38,0.3); }
.btn-line:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.on-dark .btn-line { color: #fff; border-color: rgba(255,255,255,0.35); }
.on-dark .btn-line:hover { background: #fff; color: var(--navy); border-color: #fff; }
.text-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.9375rem; color: var(--navy);
  border-bottom: 1px solid var(--gold); padding-bottom: 0.25rem;
}
.text-link .ico { width: 0.9375rem; height: 0.9375rem; color: var(--gold-dk); transition: transform .35s var(--ease); }
.text-link:hover .ico { transform: translateX(0.25rem); }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header);
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid transparent;
  transition: height .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled { --header: 4.5rem; border-color: var(--line); box-shadow: 0 0.5rem 1.5rem -1.25rem rgba(11,23,38,0.25); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 2rem; }

.brand { display: inline-flex; align-items: center; gap: 0.875rem; flex-shrink: 0; color: var(--navy); }
.brand-logo { display: block; height: 3rem; aspect-ratio: 2128 / 336; background: transparent; transition: height .4s var(--ease); }
.brand-logo img { object-fit: contain; }
.scrolled .brand-logo { height: 2.625rem; }
.brand-logo.img-error::before { font-size: 0.6875rem; }
/* The logo has navy lettering, so on the navy footer it sits on a warm-white plate */
.site-footer .brand { background: var(--warm); padding: 1rem 1.25rem; }
.on-dark .brand, .site-footer .brand { color: #fff; }

.main-nav { display: flex; align-items: center; gap: clamp(1rem, 1.9vw, 1.875rem); margin: 0 auto; }
.main-nav a {
  position: relative; font-size: 0.8125rem; font-weight: 500; color: var(--charcoal); padding: 0.5rem 0;
  white-space: nowrap;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0.125rem; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { min-height: 2.875rem; padding: 0 1.375rem; font-size: 0.8125rem; }

.menu-toggle {
  display: none; margin-left: auto; width: 2.75rem; height: 2.75rem; padding: 0;
  background: none; border: 0; cursor: pointer; position: relative;
}
.menu-toggle span {
  position: absolute; left: 0.625rem; right: 0.625rem; height: 1.5px; background: var(--navy);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 0.9375rem; }
.menu-toggle span:nth-child(2) { top: 1.3125rem; }
.menu-toggle span:nth-child(3) { top: 1.6875rem; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(0.375rem) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-0.375rem) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: #fff; padding: calc(var(--header) + 1.5rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; gap: 1.75rem;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-0.75rem);
  transition: opacity .35s var(--ease), transform .45s var(--ease-out), visibility 0s linear .45s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.5rem; color: var(--navy);
  opacity: 0; transform: translateY(0.5rem);
  transition: opacity .4s var(--ease), transform .5s var(--ease-out);
}
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.mobile-menu nav a small { font-family: var(--sans); font-size: 0.6875rem; letter-spacing: 0.18em; color: var(--gold-dk); }
.mobile-menu .btn { width: 100%; }
.mobile-menu-meta { font-size: 0.875rem; color: var(--muted); line-height: 1.8; }
.mobile-menu-meta a { color: var(--navy); font-weight: 500; }
body.menu-open { overflow: hidden; }

/* ============ HERO ============ */
.hero {
  position: relative; isolation: isolate;
  min-height: clamp(40rem, calc(100svh - var(--header)), 52rem);
  display: flex; align-items: center;
  background: var(--navy); color: #fff;
  /* Not clipped, and layered above the next section, so the address suggestions can drop past the hero's edge */
  z-index: 5;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-video { transition: opacity 1s var(--ease); }
.hero-video.is-waiting { opacity: 0; visibility: hidden; } /* hero.png underneath shows until playback starts */
.hero-video::-webkit-media-controls, .hero-video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.hero-media.img-error::before { justify-content: flex-end; padding-right: 8%; }
.hero-media.img-error[data-hint]::after { left: auto; right: 8%; transform: none; width: 24rem; text-align: right; }
/* Left-side scrim keeps the copy legible over the photograph */
.hero-wash {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,23,38,0.88) 0%, rgba(11,23,38,0.72) 32%, rgba(11,23,38,0.2) 58%, rgba(11,23,38,0) 75%),
    linear-gradient(0deg, rgba(11,23,38,0.55) 0%, rgba(11,23,38,0) 30%);
}
.hero-inner { padding-top: 4.5rem; padding-bottom: 5.5rem; }
.hero-content { max-width: 46rem; }
.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.75rem, 5vw, 4.5rem); line-height: 1.04; font-weight: 500; letter-spacing: -0.02em;
}
.hero h1 .line { display: block; }
.hero h1 .gold { color: var(--gold-lt); font-style: italic; font-weight: 500; }
.hero-sub { margin-top: 1.625rem; font-size: 1.1875rem; font-weight: 500; color: #fff; }
.hero-copy { margin-top: 0.625rem; max-width: 33rem; font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,0.74); }

/* Address capture — input and button read as one bar on desktop */
/* Keep the address bar (and its suggestion list) above the trust row and anything after it */
.addr-wrap { position: relative; z-index: 10; }
.addr-form { position: relative; z-index: 10; margin-top: 2.25rem; display: flex; max-width: 46rem; background: #fff; border: 1px solid #fff; }
.addr-field { position: relative; flex: 1; display: flex; align-items: center; min-width: 0; }
.addr-field > .ico { position: absolute; left: 1.125rem; color: var(--gold-dk); pointer-events: none; }
.addr-field input {
  width: 100%; height: 3.75rem; padding: 0 1rem 0 3.125rem;
  border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--charcoal);
}
.addr-field input::placeholder { color: #8c939c; }
.addr-field input:focus { outline: none; }
.addr-form:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.addr-form .btn { min-height: 3.75rem; border-radius: 0; margin: -1px -1px -1px 0; }
.addr-error { margin-top: 0.625rem; min-height: 1.25rem; font-size: 0.8125rem; color: var(--gold-lt); }

/* Address suggestions (only when Places is configured server-side) */
.addr-list {
  position: absolute; left: -1px; right: -1px; top: 100%; z-index: 20;
  background: #fff; border: 1px solid var(--line); border-top: 0;
  box-shadow: 0 1.25rem 2rem -1.25rem rgba(11,23,38,0.35);
  max-height: 18rem; overflow-y: auto;
}
.addr-list[hidden] { display: none; }
.addr-list li {
  padding: 0.75rem 1rem 0.75rem 3.125rem; font-size: 0.9375rem; color: var(--charcoal); cursor: pointer;
  border-top: 1px solid rgba(11,23,38,0.06);
}
.addr-list li[aria-selected="true"], .addr-list li:hover { background: #f6f1e6; }
.addr-list .powered { padding: 0.5rem 1rem; font-size: 0.6875rem; color: var(--muted); text-align: right; cursor: default; background: #fff !important; }

.trust { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem 2.25rem; }
.trust li { display: flex; align-items: center; gap: 0.625rem; font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.9); }
.trust .ico { width: 1.375rem; height: 1.375rem; color: var(--gold); stroke-width: 1.2; }

.hero-coords {
  position: absolute; right: var(--gutter); bottom: 1.75rem;
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.625rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.6);
}
.hero-coords::before { content: ''; width: 2.5rem; height: 1px; background: var(--gold); }

/* Hero entrance — one choreographed sequence */
.hl { opacity: 0; transform: translateY(1.25rem); animation: rise 1.1s var(--ease-out) forwards; }
.hl.d1 { animation-delay: .25s; }
.hl.d2 { animation-delay: .4s; }
.hl.d3 { animation-delay: .9s; }
.hl.d4 { animation-delay: 1.1s; }
.hl.d5 { animation-delay: 1.3s; }
.hero h1 .gold { display: inline-block; opacity: 0; transform: translateY(0.5rem); animation: rise 1.2s var(--ease-out) .85s forwards; }
.trust li { opacity: 0; animation: fade .9s var(--ease) forwards; }
.trust li:nth-child(1) { animation-delay: 1.5s; }
.trust li:nth-child(2) { animation-delay: 1.65s; }
.trust li:nth-child(3) { animation-delay: 1.8s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity 1s var(--ease), transform 1.1s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
.rule { display: block; width: 3.5rem; height: 1px; margin-top: 1.5rem; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) .3s; }
.in .rule, .rule.in { transform: scaleX(1); }

/* ============ CREDIBILITY BAR ============ */
.cred { background: #fff; border-bottom: 1px solid var(--line); }
.cred-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.cred-item { padding: 2.75rem 1.75rem; text-align: center; position: relative; }
.cred-item + .cred-item::before { content: ''; position: absolute; left: 0; top: 2.25rem; bottom: 2.25rem; width: 1px; background: var(--line); }
.cred-icon { display: block; width: 4rem; height: 4rem; margin: 0 auto 1rem; background: transparent; transition: transform .5s var(--ease-out); }
.cred-icon img { object-fit: contain; }
.cred-icon.img-error::before { font-size: 0.5625rem; padding: 0.125rem; letter-spacing: 0; }
.cred-item:hover .cred-icon { transform: translateY(-0.1875rem); }
.cred-item .stat { display: block; font-family: var(--serif); font-size: 2rem; color: var(--navy); line-height: 1; margin-bottom: 0.5rem; }
.cred-item .stat[hidden] { display: none; }
.cred-item h3 { font-size: 1.1875rem; }
.cred-item p { margin-top: 0.375rem; font-size: 0.8125rem; color: var(--muted); }

/* ============ SECTIONS ============ */
.section { padding: 7.5rem 0; }
.section-head { max-width: 40rem; }
.section-head h2 { margin-top: 1.125rem; }
.section-head .lede { margin-top: 1.25rem; }

/* About / why */
.about { background: var(--warm); }
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 6rem; align-items: center; }
.about-copy h2 { margin-top: 1.125rem; }
.about-copy .lede { margin-top: 1.5rem; max-width: 33rem; }
.checks { margin-top: 2rem; display: grid; gap: 0.875rem; }
.checks li { display: flex; gap: 0.875rem; align-items: flex-start; font-size: 0.9875rem; color: var(--charcoal); }
.checks .ico { width: 1.125rem; height: 1.125rem; margin-top: 0.1875rem; color: var(--gold); stroke-width: 1.6; }
.about-copy .btn { margin-top: 2.5rem; }
.portrait { position: relative; }
.portrait .ph { aspect-ratio: 5 / 5.4; }
.portrait .ph img { transition: transform 1.6s var(--ease-out); }
.portrait:hover .ph img { transform: scale(1.03); }
.portrait-frame { position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem; border: 1px solid var(--gold); z-index: -1; opacity: 0.55; }
.portrait-wrap { position: relative; isolation: isolate; }
.name-card {
  position: absolute; right: 0; bottom: 2rem;
  background: var(--navy); color: #fff; padding: 1.5rem 1.875rem 1.375rem; min-width: 17rem;
  border-left: 2px solid var(--gold);
}
.name-card strong { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.625rem; line-height: 1.1; }
.name-card span { display: block; margin-top: 0.5rem; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-lt); }
.name-card a { display: inline-block; margin-top: 0.75rem; font-size: 1rem; font-weight: 600; letter-spacing: 0.02em; }

/* How it works */
.process { position: relative; isolation: isolate; background: var(--navy); color: #fff; overflow: hidden; }
.process-media { position: absolute; inset: 0; z-index: -2; }
.process-media img { opacity: 0.22; }
.process-media.img-error::before { justify-content: flex-end; align-items: flex-start; padding: 2rem var(--gutter); opacity: 0.8; }
.process-media.img-error[data-hint]::after { display: none; }
.process::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,23,38,0.55), rgba(11,23,38,0.85)); }
.steps { margin-top: 4.25rem; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.step { position: relative; padding: 0 2rem 0.5rem; }
.step:first-child { padding-left: 0; }
.step + .step { border-left: 1px solid var(--line-dk); }
.step-top { display: flex; align-items: center; gap: 1.25rem; }
.step-num {
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center; flex-shrink: 0;
  background: var(--gold); color: #fff; font-family: var(--serif); font-size: 1.25rem;
}
.step .ico { width: 2rem; height: 2rem; color: #fff; stroke-width: 1; transition: color .4s var(--ease); }
.step:hover .ico { color: var(--gold-lt); }
.step h3 { margin-top: 1.75rem; font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; color: #fff; }
.step p { margin-top: 0.625rem; font-size: 0.9375rem; line-height: 1.65; color: rgba(255,255,255,0.66); }
.process-note { margin-top: 2.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.6); }
/* Home page How It Works: a shorter band */
#how { padding: 5rem 0; }
#how .steps { margin-top: 3rem; }
#how .process-media img { opacity: 0.3; } /* a touch less navy than the shared process band */
#how::after { background: linear-gradient(180deg, rgba(11,23,38,0.45), rgba(11,23,38,0.76)); }

/* Pre-foreclosure feature */
.pf { display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.pf-media { min-height: 36rem; }
.pf-media img { transition: transform 1.8s var(--ease-out); }
.pf:hover .pf-media img { transform: scale(1.025); }
.pf-copy { padding: 6.5rem var(--gutter) 6.5rem 5.5rem; max-width: 44rem; position: relative; }
.pf-copy::before { content: ''; position: absolute; left: 0; top: 6.5rem; width: 3px; height: 4.5rem; background: var(--gold); }
.pf-copy h2 { margin-top: 1.125rem; }
.pf-copy .lede { margin-top: 1.5rem; }
.pf-copy .lede + .lede { margin-top: 1rem; }
.pf-copy .lede strong { color: var(--navy); font-weight: 600; }
.pf-actions { margin-top: 2.25rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.875rem; }
.pf-note { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--muted); }
.pf-note .ico { width: 1rem; height: 1rem; color: var(--gold-dk); }
.fine { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.75rem; line-height: 1.6; color: var(--muted); }

/* Testimonials — rendered from site.js JERRY.testimonials; hidden until real reviews exist */
.reviews { background: var(--warm); }
.reviews[hidden] { display: none; }
.review-grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.review { background: #fff; border: 1px solid var(--line); padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.review .stars { display: flex; gap: 0.25rem; color: var(--gold); }
.review .stars svg { width: 0.875rem; height: 0.875rem; }
.review blockquote { margin: 0; font-family: var(--serif); font-size: 1.0625rem; line-height: 1.55; color: var(--navy); }
.review cite { margin-top: auto; font-style: normal; font-size: 0.8125rem; color: var(--muted); }
.review cite strong { display: block; color: var(--charcoal); font-weight: 600; }
.review.is-sample { border-style: dashed; }
.sample-tag { display: inline-block; margin-top: 1rem; padding: 0.25rem 0.5rem; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; background: #fff3d6; color: #8a6418; }

/* FAQ */
.faq { background: #fff; }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 6rem; align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header) + 3rem); }
.faq-aside h2 { margin-top: 1.125rem; }
.faq-aside .lede { margin-top: 1.25rem; }
.faq-aside .text-link { margin-top: 2rem; }
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.5rem 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--serif); font-size: 1.1875rem; color: var(--navy); line-height: 1.35;
}
.acc-q:hover { color: var(--gold-dk); }
.pm { position: relative; width: 0.875rem; height: 0.875rem; flex-shrink: 0; }
.pm::before, .pm::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: var(--gold); transition: transform .4s var(--ease); }
.pm::after { transform: rotate(90deg); }
.acc-q[aria-expanded="true"] .pm::after { transform: rotate(0deg); }
.acc-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc-a > div { overflow: hidden; }
.acc-q[aria-expanded="true"] + .acc-a { grid-template-rows: 1fr; }
.acc-a p { padding: 0 3rem 1.625rem 0; font-size: 0.9875rem; line-height: 1.75; color: var(--muted); }
.acc-a p + p { margin-top: -0.75rem; }

/* Final conversion */
.final { position: relative; isolation: isolate; z-index: 5; background: var(--navy); color: #fff; } /* unclipped so suggestions can drop below */
.final-media { position: absolute; inset: 0; z-index: -2; }
.final-media img { object-position: 70% 50%; }
.final-media.img-error::before { justify-content: flex-end; padding-right: 8%; }
.final-media.img-error[data-hint]::after { left: auto; right: 8%; transform: none; text-align: right; width: 22rem; }
.final::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,23,38,0.94) 0%, rgba(11,23,38,0.8) 45%, rgba(11,23,38,0.38) 100%); }
.final-inner { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.final-copy { max-width: 46rem; }
.final .accent { display: block; width: 4.5rem; height: 2px; background: var(--gold); margin-bottom: 1.5rem; }
.final h2 { font-size: clamp(2.25rem, 4vw, 3.375rem); }
.final .lede { margin-top: 1.25rem; max-width: 32rem; }
.final .addr-form { margin-top: 2rem; }
.final-contact { margin-top: 1rem; font-size: 0.875rem; color: rgba(255,255,255,0.66); }
.final-contact a { color: #fff; font-weight: 600; border-bottom: 1px solid var(--gold); }

/* ============ FOOTER ============ */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); border-top: 1px solid var(--line-dk); }
.footer-top { padding: 5rem 0 3.5rem; display: grid; grid-template-columns: 1.35fr 1fr 1.25fr 0.8fr; gap: 3rem; }
.footer-blurb { margin-top: 1.5rem; max-width: 22rem; font-size: 0.875rem; line-height: 1.7; }
.footer-col h4 { font-family: var(--sans); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; }
.footer-col li + li { margin-top: 0.75rem; }
.footer-col a, .footer-col li { font-size: 0.875rem; }
.footer-col a:hover { color: #fff; }
.footer-legal { padding: 1.75rem 0; border-top: 1px solid var(--line-dk); font-size: 0.75rem; line-height: 1.7; color: rgba(255,255,255,0.5); }
.footer-legal p + p { margin-top: 0.5rem; }
.footer-legal a { color: rgba(255,255,255,0.75); border-bottom: 1px solid rgba(196,154,69,0.5); }
.footer-legal a:hover { color: #fff; }
.footer-bottom { padding: 1.5rem 0 2rem; border-top: 1px solid var(--line-dk); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.footer-bottom nav { display: flex; gap: 1.5rem; }
.footer-bottom a:hover { color: #fff; }

/* Sticky mobile CTA (shown after the hero scrolls away) */
.mobile-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.98); border-top: 1px solid var(--line);
  gap: 0.625rem;
  transform: translateY(110%); transition: transform .45s var(--ease-out);
}
.mobile-cta.show { transform: none; }
.mobile-cta .btn { flex: 1; min-height: 3.25rem; }
.mobile-cta .call { flex: 0 0 3.25rem; padding: 0; }

/* ============ INNER PAGES ============ */
.page-hero { position: relative; isolation: isolate; background: var(--navy); color: #fff; overflow: hidden; }
.page-hero .hero-media img { object-position: 60% 50%; }
.page-hero .hero-wash { background: linear-gradient(90deg, rgba(11,23,38,0.92) 0%, rgba(11,23,38,0.78) 45%, rgba(11,23,38,0.35) 100%); }
.page-hero-inner { padding: 6.5rem 0; max-width: 54rem; }
.page-hero h1 { margin-top: 1.5rem; font-size: clamp(2.5rem, 4.6vw, 4rem); line-height: 1.06; letter-spacing: -0.02em; }
.page-hero h1 .gold { color: var(--gold-lt); font-style: italic; }
.page-hero .lede { margin-top: 1.5rem; max-width: 36rem; font-size: 1.125rem; }
.page-hero .actions { margin-top: 2.25rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.prose-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 6rem; align-items: start; }
.prose h3 { margin-top: 2.25rem; font-size: 1.375rem; }
.prose h3:first-child { margin-top: 0; }
.prose p { margin-top: 1rem; font-size: 1.0125rem; line-height: 1.8; color: #4a515b; }
.prose ul { margin-top: 1rem; display: grid; gap: 0.625rem; }
.prose ul li { position: relative; padding-left: 1.5rem; font-size: 1rem; line-height: 1.7; color: #4a515b; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: 0.75rem; width: 0.625rem; height: 1px; background: var(--gold); }
.prose a { color: var(--navy); border-bottom: 1px solid var(--gold); }

.ga-box { background: var(--navy); color: rgba(255,255,255,0.78); padding: 2.5rem; border-top: 2px solid var(--gold); }
.ga-box h3 { color: #fff; font-size: 1.375rem; }
.ga-box ol { margin-top: 1.5rem; display: grid; gap: 1.25rem; counter-reset: ga; }
.ga-box li { counter-increment: ga; display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; font-size: 0.9375rem; line-height: 1.65; }
.ga-box li::before { content: counter(ga, decimal-leading-zero); font-family: var(--serif); color: var(--gold); font-size: 1rem; }
.ga-box .small { margin-top: 1.5rem; font-size: 0.75rem; color: rgba(255,255,255,0.5); }

.compare { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: #fff; margin-top: 3.5rem; }
.compare > div { padding: 2.75rem; }
.compare > div + div { border-left: 1px solid var(--line); }
.compare h3 { display: flex; align-items: center; gap: 0.75rem; font-size: 1.375rem; }
.compare h3 .ico { width: 1.5rem; height: 1.5rem; color: var(--gold); stroke-width: 1.2; }
.compare ul { margin-top: 1.5rem; display: grid; gap: 1rem; }
.compare li { position: relative; padding-left: 1.5rem; font-size: 0.9875rem; line-height: 1.65; color: #4a515b; }
.compare li::before { content: ''; position: absolute; left: 0; top: 0.75rem; width: 0.625rem; height: 1px; background: var(--gold); }

.consider { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.consider li { padding: 2rem 2rem 2rem 0; border-bottom: 1px solid var(--line); }
.consider li:nth-child(3n+2), .consider li:nth-child(3n+3) { padding-left: 2rem; border-left: 1px solid var(--line); }
.consider .k { font-family: var(--serif); color: var(--gold-dk); font-size: 0.9375rem; }
.consider h3 { margin-top: 0.625rem; font-size: 1.125rem; }
.consider p { margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.65; color: var(--muted); }

.resources { background: var(--warm); border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 2.5rem 2.75rem; display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }
.resources h3 { font-size: 1.5rem; }
.resources ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.resources strong { display: block; font-size: 0.9375rem; color: var(--navy); }
.resources p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.65; color: var(--muted); }
.resources a { color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--gold); }

/* Consultation form (pre-foreclosure page) */
.consult { background: var(--navy); color: #fff; }
.consult-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 5rem; align-items: start; }
.consult-copy .lede { margin-top: 1.25rem; }
.consult-points { margin-top: 2rem; display: grid; gap: 0.875rem; }
.consult-points li { display: flex; gap: 0.75rem; font-size: 0.9375rem; color: rgba(255,255,255,0.82); }
.consult-points .ico { color: var(--gold); width: 1.125rem; height: 1.125rem; margin-top: 0.1875rem; stroke-width: 1.6; }
.consult-direct { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line-dk); font-size: 0.875rem; color: rgba(255,255,255,0.66); line-height: 1.9; }
.consult-direct a { color: #fff; font-weight: 600; }
.panel { background: #fff; color: var(--charcoal); padding: 2.75rem; border-top: 2px solid var(--gold); }
.panel h3 { font-size: 1.5rem; color: var(--navy); }
.panel .sub { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); }

/* ============ FORM CONTROLS ============ */
.fields { margin-top: 1.75rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.125rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: var(--charcoal); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3.25rem; padding: 0.75rem 0.9375rem;
  border: 1px solid #cfd3d9; border-radius: 3px; background: #fff;
  font: inherit; font-size: 1rem; color: var(--charcoal);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 6.5rem; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23A67E30' stroke-width='1.4'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 0.75rem; padding-right: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196,154,69,0.18); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b4483c; }
.field .err { font-size: 0.75rem; color: #b4483c; min-height: 0; }
.field .addr-field > .ico { left: 0.9375rem; }
.field .addr-field input { padding-left: 2.75rem; }
.field .addr-list li { padding-left: 2.75rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check-field { border: 0; padding: 0; margin: 0; }
.check-field legend { margin-bottom: 0.75rem; padding: 0; }
.check-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }

.consent { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.8125rem; line-height: 1.6; color: var(--muted); cursor: pointer; }
.consent input { flex-shrink: 0; width: 1.125rem; height: 1.125rem; margin: 0.1875rem 0 0; accent-color: var(--gold-dk); }
.disclose { font-size: 0.75rem; line-height: 1.65; color: var(--muted); }
.disclose a { color: var(--navy); border-bottom: 1px solid var(--gold); }
.form-status { margin-top: 1rem; font-size: 0.875rem; min-height: 1.25rem; }
.form-status.error { color: #b4483c; }
.form-done { text-align: left; }
.form-done .ico { width: 2.75rem; height: 2.75rem; color: var(--gold); stroke-width: 1; }
.form-done h3 { margin-top: 1.25rem; font-size: 1.75rem; }
.form-done p { margin-top: 0.875rem; color: var(--muted); line-height: 1.7; }
.form-done a { color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--gold); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ============ OFFER (multi-step) ============ */
.offer { background: var(--warm); min-height: calc(100svh - var(--header)); }
.offer-grid { display: grid; grid-template-columns: 1fr 22rem; gap: 5rem; padding-top: 4rem; padding-bottom: 6rem; align-items: start; }
.progress { display: flex; align-items: center; gap: 1.25rem; }
.progress-bar { flex: 1; height: 2px; background: rgba(11,23,38,0.1); position: relative; overflow: hidden; }
.progress-bar span { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0.2); transition: transform .7s var(--ease-out); }
.progress-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.flow { margin-top: 3rem; position: relative; }
.q { display: none; }
.q.active { display: block; animation: qIn .6s var(--ease-out); }
.q.back { animation-name: qInBack; }
@keyframes qIn { from { opacity: 0; transform: translateX(1.5rem); } to { opacity: 1; transform: none; } }
@keyframes qInBack { from { opacity: 0; transform: translateX(-1.5rem); } to { opacity: 1; transform: none; } }
.q legend, .q .q-title { padding: 0; font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.18; color: var(--navy); max-width: 38rem; }
.q fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.q-help { margin-top: 0.875rem; font-size: 0.9375rem; color: var(--muted); max-width: 36rem; line-height: 1.65; }
.q .addr-form { margin-top: 2rem; max-width: none; border: 1px solid #cfd3d9; }
.q .addr-form:focus-within { outline-offset: 0; }
.cards { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; }
.card { position: relative; display: block; cursor: pointer; }
.card input { position: absolute; opacity: 0; pointer-events: none; }
.card span {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.5rem; padding: 1rem 1.375rem;
  background: #fff; border: 1px solid #d6d9de; border-radius: 3px;
  font-size: 1rem; font-weight: 500; color: var(--charcoal);
  transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.card span small { display: block; margin-top: 0.25rem; font-size: 0.8125rem; font-weight: 400; color: var(--muted); }
.card span::after {
  content: ''; width: 1.125rem; height: 1.125rem; flex-shrink: 0; border: 1px solid #c3c8cf; border-radius: 2px;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
  background: center / 0.75rem no-repeat;
}
.card:hover span { border-color: var(--gold); }
.card input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.card input:checked + span { border-color: var(--gold); background: #fdf9f0; box-shadow: inset 0 0 0 1px var(--gold); }
.card input:checked + span::after {
  border-color: var(--gold); background-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='1.8'%3E%3Cpath d='M2.5 6.2l2.4 2.3 4.6-5'/%3E%3C/svg%3E");
}
.q-actions { margin-top: 2.5rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.back-btn { background: none; border: 0; padding: 0.5rem 0; cursor: pointer; font-size: 0.875rem; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 0.5rem; }
.back-btn:hover { color: var(--navy); }
.back-btn .ico { width: 0.9375rem; height: 0.9375rem; }
.skip-btn { margin-left: auto; background: none; border: 0; padding: 0.5rem 0; cursor: pointer; font-size: 0.875rem; color: var(--muted); border-bottom: 1px solid rgba(11,23,38,0.2); }
.skip-btn:hover { color: var(--navy); }
.q-error { margin-top: 1rem; font-size: 0.875rem; color: #b4483c; min-height: 1.25rem; }
.q .fields { margin-top: 2rem; }
.q .consent { margin-top: 1.5rem; }
.q .disclose { margin-top: 1rem; }

.offer-aside { position: sticky; top: calc(var(--header) + 2rem); background: var(--navy); color: rgba(255,255,255,0.78); }
.offer-aside .ph { aspect-ratio: 16 / 10; }
.offer-aside-body { padding: 2rem; }
.offer-aside h3 { color: #fff; font-size: 1.25rem; }
.offer-aside ul { margin-top: 1.25rem; display: grid; gap: 0.75rem; }
.offer-aside li { display: flex; gap: 0.75rem; font-size: 0.875rem; line-height: 1.55; }
.offer-aside li .ico { color: var(--gold); width: 1rem; height: 1rem; margin-top: 0.1875rem; stroke-width: 1.6; }
.offer-aside .contact { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dk); font-size: 0.875rem; line-height: 1.8; }
.offer-aside .contact a { color: #fff; font-weight: 600; }

/* Legal pages */
.legal { padding: 5rem 0 7rem; background: #fff; }
.legal .wrap { max-width: calc(46rem + 2 * var(--gutter)); }
.legal h1 { font-size: clamp(2.25rem, 4vw, 3rem); }
.legal .updated { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--muted); }

/* ============ RESPONSIVE ============ */
/* Seven nav links + logo + CTA: tighten spacing just above the menu breakpoint */
@media (max-width: 1440px) {
  .main-nav { gap: 1.125rem; }
}
@media (max-width: 1280px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 1180px) {
  .about-grid, .faq-grid, .prose-grid, .consult-grid { gap: 3.5rem; }
  .pf-copy { padding-left: 3.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .resources { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .section { padding: 5.5rem 0; }
  #how { padding: 4rem 0; }
  #how .steps { margin-top: 2.5rem; }
  .cred-grid { grid-template-columns: 1fr 1fr; }
  .cred-item:nth-child(3)::before { display: none; }
  .cred-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about-grid, .faq-grid, .prose-grid, .consult-grid { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
  .portrait { max-width: 32rem; }
  .steps { grid-template-columns: 1fr; margin-top: 3rem; }
  /* Vertical timeline */
  .step { padding: 0 0 2.75rem 4.25rem; border-left: 0 !important; }
  .step::before { content: ''; position: absolute; left: 1.375rem; top: 2.75rem; bottom: 0; width: 1px; background: var(--line-dk); }
  .step:last-child::before { display: none; }
  .step:last-child { padding-bottom: 0; }
  .step:first-child { padding-left: 4.25rem; }
  .step-top { gap: 1rem; }
  .step-num { position: absolute; left: 0; top: 0; }
  .step-top .ico { width: 1.75rem; height: 1.75rem; margin-top: 0.5rem; }
  .step h3 { margin-top: 0.875rem; }
  .pf { grid-template-columns: 1fr; }
  .pf-media { min-height: 0; aspect-ratio: 16 / 10; }
  .pf-copy { padding: 4rem var(--gutter) 4.5rem; }
  .pf-copy::before { top: 0; left: var(--gutter); width: 3.5rem; height: 3px; }
  .review-grid { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: 1fr; gap: 3rem; padding-top: 2.5rem; }
  .offer-aside { position: static; }
  .compare { grid-template-columns: 1fr; }
  .compare > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .consider { grid-template-columns: 1fr; }
  .consider li { padding: 1.75rem 0 !important; border-left: 0 !important; }
  .resources ul { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 760px) {
  :root { --header: 4.25rem; }
  .site-header.scrolled { --header: 4rem; }
  .brand-logo, .scrolled .brand-logo { height: 2.25rem; }
  .site-footer .brand-logo { height: 2.5rem; }

  /* Hero recomposed for phones: the house sits in the top band, copy below on navy */
  .hero { display: block; min-height: 0; max-height: none; }
  .hero > .hero-media { position: relative; inset: auto; height: 21rem; }
  .hero > .hero-media img, .hero > .hero-media .hero-video { object-position: 72% 50%; }
  .hero-media.img-error::before { justify-content: center; padding: 0.75rem; }
  .hero-media.img-error[data-hint]::after { left: 50%; right: auto; transform: translateX(-50%); width: 80%; text-align: center; }
  .hero > .hero-wash { background: linear-gradient(180deg, rgba(11,23,38,0) 0, rgba(11,23,38,0) 12rem, var(--navy) 21rem); }
  .hero-inner { margin-top: -5.5rem; padding-top: 0; padding-bottom: 3.5rem; position: relative; }
  .hero h1 { margin-top: 1rem; font-size: clamp(2rem, 8.6vw, 3rem); }
  .hero-sub { font-size: 1.0625rem; margin-top: 1.25rem; }
  .hero-copy { font-size: 0.9375rem; }
  .hero-coords { display: none; }
  .addr-form { flex-direction: column; background: transparent; border: 0; gap: 0.625rem; }
  .addr-field { background: #fff; }
  .addr-form .btn { margin: 0; width: 100%; border-radius: 2px; }
  .addr-form:focus-within { outline: none; }
  .addr-field:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
  .q .addr-form { border: 0; }
  .q .addr-field { border: 1px solid #cfd3d9; }
  .trust { flex-direction: column; gap: 0.75rem; margin-top: 1.75rem; }

  .cred-item { padding: 2rem 1rem; }
  .cred-item h3 { font-size: 1.0625rem; }
  .portrait-frame { inset: 1rem -0.75rem -0.75rem 1rem; }
  .name-card { position: relative; right: auto; bottom: auto; margin: -2.5rem 1.25rem 0 auto; width: fit-content; min-width: 0; }
  .final-inner { padding-top: 3.5rem; padding-bottom: 3.75rem; }
  .final::after { background: rgba(11,23,38,0.86); }
  .footer-top { grid-template-columns: 1fr; gap: 2.25rem; padding-top: 3.5rem; }
  .fields { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .card span { min-height: 3.75rem; }
  .panel { padding: 2rem 1.5rem; }
  .ga-box, .compare > div, .resources { padding: 2rem 1.5rem; }
  .page-hero-inner { padding: 4rem 0 4.5rem; }
  .page-hero .hero-wash { background: rgba(11,23,38,0.8); }
  .page-hero .actions .btn { width: 100%; }
  .acc-a p { padding-right: 0; }
  .mobile-cta { display: flex; }
  body.has-mobile-cta .site-footer { padding-bottom: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ CASH VS LISTING — laid out like a settlement statement ============ */
.compare-sec { background: var(--warm); }
.cmp-head { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; }
.cmp-head h2 { margin-top: 1.125rem; }
.statement { margin-top: 3.5rem; background: #fff; border: 1px solid var(--line); border-top: 3px double var(--navy); }
.statement-top {
  display: flex; justify-content: space-between; gap: 1rem; padding: 0.875rem 1.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.cmp-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cmp-table th, .cmp-table td { padding: 1.25rem 1.5rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 0.9375rem; line-height: 1.6; }
.cmp-table thead th {
  padding-top: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--navy);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy);
}
.cmp-table thead .cmp-cash { color: var(--gold-dk); }
.cmp-table tbody th, .cmp-table tfoot th { width: 22%; font-family: var(--serif); font-weight: 500; font-size: 1.0625rem; color: var(--navy); }
.cmp-table td { width: 36%; color: #4a515b; }
.cmp-table td + td { border-left: 1px solid var(--line); }
/* The cash column carries a faint gold wash, like the highlighted column on a closing form */
.cmp-table tr > :nth-child(3) { background: #fcf8ef; color: var(--charcoal); }
.cmp-table .cmp-line { width: 4.5rem; padding-right: 0; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; color: #a3a9b1; background: none !important; }
.cmp-table tbody tr { transition: background-color .3s var(--ease); }
.cmp-table tbody tr:hover { background: #fbfaf7; }
.cmp-table tfoot th, .cmp-table tfoot td { border-top: 3px double var(--navy); border-bottom: 0; font-weight: 500; }
.cmp-table tfoot td { color: var(--navy); }
.cmp-foot { margin-top: 2.5rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cmp-foot p { max-width: 34rem; font-size: 0.9375rem; color: var(--muted); }

/* ============ GEORGIA FORECLOSURE CALENDAR ============ */
.pf-side { position: relative; display: flex; flex-direction: column; }
.pf-side .pf-media { flex: 1; }
.sale-cal {
  position: absolute; left: 2.5rem; bottom: 2.5rem; width: 25.5rem; z-index: 2;
  background: var(--navy); color: rgba(255,255,255,0.75); padding: 1.5rem 1.625rem 1.375rem;
  border-top: 2px solid var(--gold);
  box-shadow: 0 1.5rem 3rem -1.5rem rgba(11,23,38,0.6);
}
.sc-head { display: flex; align-items: center; gap: 0.5rem; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.sc-head .ico { width: 0.9375rem; height: 0.9375rem; stroke-width: 1.5; }
.sc-body:empty { display: none; }
.sc-next { margin-top: 1.25rem; display: flex; align-items: center; gap: 1.25rem; }
/* Tear-off calendar leaf */
.leaf { position: relative; width: 4.75rem; flex-shrink: 0; background: #fff; text-align: center; color: var(--navy); }
.leaf::before, .leaf::after { content: ''; position: absolute; top: -0.3125rem; width: 0.3125rem; height: 0.625rem; border-radius: 1px; background: #c9ccd2; }
.leaf::before { left: 1.125rem; } .leaf::after { right: 1.125rem; }
.leaf-m { display: block; padding: 0.3125rem 0 0.25rem; background: var(--gold); color: #fff; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.2em; }
.leaf-d { display: block; padding-top: 0.25rem; font-family: var(--serif); font-variant-numeric: lining-nums; font-size: 2.375rem; line-height: 1; }
.leaf-w { display: block; padding: 0.25rem 0 0.4375rem; font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.sc-label { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.sc-date { margin-top: 0.125rem; font-family: var(--serif); font-variant-numeric: lining-nums; font-size: 1.1875rem; line-height: 1.3; color: #fff; }
.sc-days { margin-top: 0.375rem; font-size: 0.8125rem; font-weight: 600; color: var(--gold-lt); }
.sc-later { margin-top: 1.125rem; display: flex; gap: 0; border-top: 1px solid var(--line-dk); }
.sc-later li { flex: 1; padding-top: 0.75rem; font-size: 0.75rem; color: rgba(255,255,255,0.55); }
.sc-later li + li { padding-left: 0.875rem; border-left: 1px solid var(--line-dk); }
.sc-later strong { display: block; font-weight: 500; color: rgba(255,255,255,0.85); }
.sc-note { margin-top: 1rem; font-size: 0.75rem; line-height: 1.6; color: rgba(255,255,255,0.55); }
.sc-body:empty + .sc-note { margin-top: 0.75rem; color: rgba(255,255,255,0.8); }

/* Light version (pre-foreclosure page, above the Georgia process box) */
.pf-aside { display: grid; gap: 1.5rem; }
.sale-cal.sc-light { position: static; width: auto; background: #fff; color: var(--charcoal); border: 1px solid var(--line); border-top: 2px solid var(--gold); box-shadow: none; padding: 1.75rem 2rem; }
.sc-light .sc-head { color: var(--gold-dk); }
.sc-light .leaf { border: 1px solid var(--line); }
.sc-light .sc-label { color: var(--muted); }
.sc-light .sc-date { color: var(--navy); font-size: 1.375rem; }
.sc-light .sc-days { color: var(--gold-dk); }
.sc-light .sc-later { border-color: var(--line); }
.sc-light .sc-later li { color: var(--muted); }
.sc-light .sc-later li + li { border-color: var(--line); }
.sc-light .sc-later strong { color: var(--navy); }
.sc-light .sc-note, .sc-light .sc-body:empty + .sc-note { color: var(--muted); }

@media (max-width: 960px) {
  .cmp-head { grid-template-columns: 1fr; gap: 1.25rem; }
  .sale-cal { position: relative; left: auto; bottom: auto; width: auto; margin: -3rem var(--gutter) 0; }
  .pf-side .pf-media { flex: none; }
  .pf-side + .pf-copy::before { display: none; }
}
@media (max-width: 760px) {
  /* Statement becomes one card per line item */
  .statement-top span + span { display: none; }
  .statement-top { padding: 0.875rem 1.25rem; }
  .cmp-table thead { display: none; }
  .cmp-table, .cmp-table tbody, .cmp-table tfoot, .cmp-table tr, .cmp-table th, .cmp-table td { display: block; width: auto; }
  .cmp-table tr { padding: 1.25rem 1.25rem 1.375rem; border-bottom: 1px solid var(--line); position: relative; }
  .cmp-table tfoot tr { border-top: 3px double var(--navy); border-bottom: 0; }
  .cmp-table th, .cmp-table td { padding: 0; border: 0 !important; }
  .cmp-table .cmp-line { position: absolute; right: 1.25rem; top: 1.5rem; width: auto; line-height: 1; }
  .cmp-table tbody th, .cmp-table tfoot th { width: auto; font-size: 1.125rem; margin-bottom: 0.75rem; padding-right: 3rem; }
  .cmp-table td { padding: 0.75rem 0.875rem !important; font-size: 0.9375rem; }
  .cmp-table td + td { margin-top: 0.375rem; background: #f6f6f4; }
  .cmp-table td::before {
    content: attr(data-label); display: block; margin-bottom: 0.25rem;
    font-size: 0.625rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  }
  .cmp-table tr > :nth-child(3)::before { color: var(--gold-dk); }
  .cmp-foot .btn { width: 100%; }
  .sale-cal { margin: -2rem 1rem 0; padding: 1.25rem 1.25rem 1.125rem; }
  .sale-cal.sc-light { margin: 0; padding: 1.5rem 1.25rem; }
}

/* ============ FIND A HOME ============ */
.homes-hero .page-hero-inner { padding: 5rem 0 5.5rem; }
/* Home-page hero in a shorter band: a light blue tint over the whole frame, deeper on the text side */
.homes-hero .hero-media img, .homes-hero .hero-video { object-position: 70% 55%; }
.homes-hero .hero-wash {
  background:
    linear-gradient(90deg, rgba(11,23,38,0.72) 0%, rgba(11,23,38,0.45) 45%, rgba(11,23,38,0.1) 80%),
    linear-gradient(rgba(28,72,128,0.28), rgba(28,72,128,0.28));
}
.homes-quick { margin-top: 2.25rem; }
.tabs-bar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: var(--header); z-index: 40; transition: top .4s var(--ease); }
.tabs { display: flex; gap: 2.5rem; }
.tabs button {
  position: relative; padding: 1.375rem 0 1.25rem; background: none; border: 0; cursor: pointer;
  font-size: 0.9375rem; font-weight: 600; color: var(--muted); transition: color .3s var(--ease);
}
.tabs button::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.tabs button:hover { color: var(--navy); }
.tabs button[aria-selected="true"] { color: var(--navy); }
.tabs button[aria-selected="true"]::after { transform: scaleX(1); }

.homes-panel { padding: 4.5rem 0 6rem; background: var(--warm); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.panel-head h2 { margin-top: 1rem; font-size: clamp(1.875rem, 3vw, 2.5rem); }
.results-meta { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted); min-height: 1.25rem; }
.sort-field { min-width: 13rem; }

.filters { margin-top: 2.25rem; display: grid; grid-template-columns: 2.2fr repeat(7, 1fr); gap: 0.875rem; align-items: end; padding: 1.5rem; background: #fff; border: 1px solid var(--line); }
.filters .field input, .filters .field select { min-height: 3rem; padding-top: 0.5rem; padding-bottom: 0.5rem; font-size: 0.9375rem; }
.filter-actions { grid-column: 1 / -1; display: flex; gap: 0.75rem; }
.filter-actions .btn { min-height: 3rem; }
#allMeta { margin-top: 1.75rem; }
.filter-checks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; padding-top: 0.25rem; }
.check { display: inline-flex; align-items: center; gap: 0.625rem; font-size: 0.875rem; color: var(--charcoal); cursor: pointer; }
.check input { width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--navy); cursor: pointer; }

.shortcuts { margin-top: 1.75rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.shortcuts a { display: flex; flex-direction: column; height: 100%; padding: 1.5rem 1.5rem 1.375rem; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--gold); transition: border-color .35s var(--ease), box-shadow .35s var(--ease); }
.shortcuts a:hover { border-color: rgba(196,154,69,0.6); border-top-color: var(--gold); box-shadow: 0 1.25rem 2.5rem -1.75rem rgba(11,23,38,0.35); }
.shortcuts strong { margin-top: 0.875rem; font-family: var(--serif); font-weight: 500; font-size: 1.375rem; line-height: 1.2; color: var(--navy); }
.shortcut-go { margin-top: auto; padding-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--navy); }
.shortcut-go .ico { width: 0.9375rem; height: 0.9375rem; transition: transform .35s var(--ease); }
.shortcuts a:hover .shortcut-go .ico { transform: translateX(3px); }
.search-note { margin-top: 2rem; max-width: 46rem; font-size: 0.9375rem; color: var(--muted); }
.search-note a { color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--gold); }

.home-grid { margin-top: 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.home-card { background: #fff; border: 1px solid var(--line); transition: border-color .35s var(--ease), box-shadow .35s var(--ease); }
.home-card:hover { border-color: rgba(196,154,69,0.6); box-shadow: 0 1.25rem 2.5rem -1.75rem rgba(11,23,38,0.35); }
.home-link { display: block; height: 100%; }
.home-photo { aspect-ratio: 4 / 3; }
.home-photo img { transition: transform 1.2s var(--ease-out); }
.home-card:hover .home-photo img { transform: scale(1.04); }
.home-photo .badge { position: absolute; left: 0.875rem; top: 0.875rem; z-index: 2; }
.home-photo .badge + .badge-gold { left: auto; right: 0.875rem; }
.home-photo .badge-gold:first-of-type { left: 0.875rem; }
.photo-count { position: absolute; right: 0.875rem; bottom: 0.875rem; z-index: 2; padding: 0.25rem 0.5rem; background: rgba(11,23,38,0.72); color: #fff; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.04em; }
.home-body { padding: 1.375rem 1.5rem 1.5rem; }
.home-price { font-family: var(--serif); font-size: 1.625rem; line-height: 1.1; color: var(--navy); font-variant-numeric: lining-nums; }
.home-price small { font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); }
.home-specs { margin-top: 0.75rem; display: flex; gap: 1.125rem; font-size: 0.875rem; color: var(--muted); }
.home-specs li + li { padding-left: 1.125rem; border-left: 1px solid var(--line); }
.home-specs strong { color: var(--charcoal); font-weight: 600; }
.home-address { margin-top: 0.875rem; font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; color: var(--charcoal); line-height: 1.4; }
.home-where { margin-top: 0.125rem; font-size: 0.875rem; color: var(--muted); }
.home-courtesy { margin-top: 0.875rem; padding-top: 0.75rem; border-top: 1px solid var(--line); font-size: 0.6875rem; color: #8b919a; }
.home-card.is-sample { border-style: dashed; }
.home-card.is-sample .home-link { cursor: default; }

.badge { display: inline-block; padding: 0.3125rem 0.625rem; background: var(--navy); color: #fff; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.badge-gold { background: var(--gold); }

.home-card.is-skeleton .home-photo, .home-card.is-skeleton .home-body span { background: linear-gradient(90deg, #efede8 25%, #f7f5f1 50%, #efede8 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.home-card.is-skeleton .home-body span { display: block; height: 0.875rem; margin-top: 0.75rem; }
.home-card.is-skeleton .home-body span:first-child { width: 45%; height: 1.375rem; margin-top: 0; }
.home-card.is-skeleton .home-body span:last-child { width: 70%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty-state { grid-column: 1 / -1; padding: 3.5rem 2rem; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--gold); text-align: center; }
.empty-state strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--navy); }
.empty-state p { margin-top: 0.75rem; color: var(--muted); }
.empty-state a { color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--gold); }

.pager { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.pager-btn { display: inline-flex; align-items: center; gap: 0.5rem; justify-self: start; padding: 0.75rem 1.125rem; background: #fff; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; font-weight: 600; font-size: 0.875rem; color: var(--navy); }
.pager-btn:last-child { justify-self: end; }
.pager-btn:hover { border-color: var(--gold); }
.pager-btn .ico { width: 0.9375rem; height: 0.9375rem; }
.pager-page { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.idx-band { padding: 2.25rem 0; background: #fff; border-top: 1px solid var(--line); }
.idx-small { font-size: 0.75rem; line-height: 1.65; color: #8b919a; }
.idx-small + .idx-small { margin-top: 0.5rem; }
.homes-cta { background: var(--navy); color: #fff; }
.homes-cta-inner { padding-top: 4.5rem; padding-bottom: 4.5rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.homes-cta h2 { margin-top: 1rem; font-size: clamp(1.75rem, 3vw, 2.375rem); }
.homes-cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============ PROPERTY PAGE ============ */
.property-page { background: var(--warm); padding-bottom: 6rem; }
.detail-back { padding: 2rem 0 1.5rem; }
.back-link .ico { color: var(--gold-dk); }
.listing-top { display: grid; grid-template-columns: 1.55fr 1fr; gap: 2.5rem; align-items: start; }
.gallery { position: relative; }
.gallery-main { aspect-ratio: 3 / 2; }
.gallery-arrow {
  position: absolute; top: calc(50% - 4rem); width: 3rem; height: 3rem; display: grid; place-items: center;
  background: rgba(255,255,255,0.92); border: 0; border-radius: 2px; cursor: pointer; color: var(--navy);
}
.gallery-arrow.prev { left: 1rem; } .gallery-arrow.next { right: 1rem; }
.gallery-arrow:hover { background: #fff; color: var(--gold-dk); }
.gallery-count { position: absolute; right: 1rem; top: 1rem; padding: 0.3125rem 0.625rem; background: rgba(11,23,38,0.72); color: #fff; font-size: 0.75rem; }
.gallery-thumbs { margin-top: 0.625rem; display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: thin; padding-bottom: 0.25rem; }
.gallery-thumbs button { flex: 0 0 6.5rem; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: 0.7; transition: opacity .25s var(--ease), border-color .25s var(--ease); }
.gallery-thumbs button[aria-current], .gallery-thumbs button:hover { opacity: 1; border-color: var(--gold); }
.gallery-thumbs .ph { aspect-ratio: 4 / 3; }

.listing-summary { background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--gold); padding: 2rem; }
.listing-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.detail-price { margin-top: 1.25rem; font-family: var(--serif); font-size: 2.5rem; line-height: 1; color: var(--navy); font-variant-numeric: lining-nums; }
.detail-address { margin-top: 1rem; font-family: var(--sans); font-size: 1.125rem; font-weight: 600; color: var(--charcoal); line-height: 1.4; }
.detail-where { margin-top: 0.25rem; font-size: 0.9375rem; color: var(--muted); }
.facts { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(4.5rem, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { padding: 1rem 0.5rem; text-align: center; }
.facts li + li { border-left: 1px solid var(--line); }
.facts strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.375rem; color: var(--navy); font-variant-numeric: lining-nums; }
.facts strong small { display: block; font-family: var(--sans); font-size: 0.625rem; color: var(--muted); }
.facts span { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.agent-card { margin-top: 1.75rem; display: grid; grid-template-columns: 4rem 1fr; gap: 0.5rem 1rem; align-items: center; }
.agent-photo { width: 4rem; height: 4rem; }
.agent-photo img { object-position: 50% 20%; }
.agent-name { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); }
.agent-role { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dk); }
.agent-pitch { grid-column: 1 / -1; margin-top: 0.5rem; font-size: 0.9375rem; color: var(--muted); line-height: 1.6; }
.agent-actions { grid-column: 1 / -1; margin-top: 0.75rem; display: grid; gap: 0.625rem; }
.agent-actions .btn { width: 100%; }

.listing-body { margin-top: 3.5rem; display: grid; grid-template-columns: 1.55fr 1fr; gap: 2.5rem; align-items: start; }
.detail-section + .detail-section { margin-top: 3rem; }
.detail-section h2 { font-size: 1.75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.detail-desc p { margin-top: 1.25rem; font-size: 1rem; line-height: 1.8; color: #4a515b; white-space: pre-line; }
.feature-list { margin: 0; }
.feature-list div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.875rem 0; border-bottom: 1px solid var(--line); }
.feature-list dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); padding-top: 0.125rem; }
.feature-list dd { margin: 0; font-size: 0.9375rem; color: #4a515b; line-height: 1.6; }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { padding: 0.875rem 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.9375rem; }
.specs th { width: 40%; font-weight: 500; color: var(--muted); }
.specs td { color: var(--charcoal); font-weight: 500; }
.detail-section .idx-small { margin-top: 0.75rem; }
.map-frame { margin-top: 1.25rem; aspect-ratio: 16 / 9; border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.idx-attribution { margin-top: 3rem; padding-top: 1.5rem; border-top: 3px double var(--navy); display: grid; gap: 0.75rem; }
.idx-attribution > p:first-child { font-size: 0.875rem; color: var(--charcoal); }
.listing-side { position: sticky; top: calc(var(--header) + 1.5rem); }
.listing-side .panel { padding: 2rem; }
.listing-side .fields { margin-top: 1.25rem; }

@media (max-width: 1180px) {
  .filters { grid-template-columns: repeat(4, 1fr); }
  .filters .field-q { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .home-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .shortcuts { grid-template-columns: 1fr 1fr; }
  .listing-top, .listing-body { grid-template-columns: 1fr; }
  .listing-side { position: static; }
}
@media (max-width: 760px) {
  .tabs { gap: 1.75rem; }
  .tabs button { font-size: 0.875rem; padding: 1.125rem 0 1rem; }
  .homes-panel { padding: 3rem 0 4.5rem; }
  .filters { grid-template-columns: 1fr 1fr; padding: 1.125rem; }
  .filter-actions .btn { flex: 1; }
  .sort-field { width: 100%; }
  .home-grid { grid-template-columns: 1fr; }
  .shortcuts { grid-template-columns: 1fr; }
  .shortcuts strong { font-size: 1.25rem; }
  .pager-btn { padding: 0.75rem 0.875rem; }
  .homes-cta-actions .btn { width: 100%; }
  .homes-hero .page-hero-inner { padding: 3.5rem 0 4rem; }
  .homes-hero .hero-wash { background: linear-gradient(rgba(11,23,38,0.55), rgba(11,23,38,0.55)), linear-gradient(rgba(28,72,128,0.28), rgba(28,72,128,0.28)); }
  .gallery { margin: 0 calc(var(--gutter) * -1); }
  .gallery-thumbs { padding: 0 var(--gutter) 0.25rem; }
  .gallery-arrow { top: calc(50% - 4.5rem); width: 2.5rem; height: 2.5rem; }
  .listing-summary { padding: 1.5rem; }
  .detail-price { font-size: 2.125rem; }
  .feature-list div { grid-template-columns: 1fr; gap: 0.25rem; }
  .facts li:nth-child(n+5) { display: none; } /* year built is also in Property Details */
  .listing-side .panel { padding: 1.75rem 1.25rem; }
}

/* ============ SEO PAGES (guides, areas, sale dates, about, contact) — gaforeclosurerelief.com ============ */
/* WebP <picture> wrappers added by the build must not change layout */
.ph picture { display: contents; }

/* Inline links inside copy */
.lede a, .sc-note a, .ga-box a, .acc-a a, .date-note a, .county-inv a { color: inherit; font-weight: 600; border-bottom: 1px solid var(--gold); }
.on-dark .lede a { color: #fff; }
.ga-box a { color: #fff; }

/* Breadcrumbs */
.crumbs { margin-bottom: 1.5rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.625rem; font-size: 0.75rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.6); }
.crumbs li { display: inline-flex; align-items: center; gap: 0.625rem; }
.crumbs li + li::before { content: '/'; color: var(--gold); opacity: 0.7; }
.crumbs a { color: rgba(255,255,255,0.82); }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: rgba(255,255,255,0.6); }

/* Guide article */
.article-hero { background: var(--navy); color: #fff; padding: 4.5rem 0 4rem; border-bottom: 1px solid var(--line-dk); }
.article-hero h1 { margin-top: 1.25rem; max-width: 52rem; font-size: clamp(2.25rem, 4.2vw, 3.5rem); line-height: 1.08; letter-spacing: -0.02em; }
.article-hero h1 .gold { color: var(--gold-lt); font-style: italic; }
.article-hero .lede { margin-top: 1.25rem; max-width: 44rem; font-size: 1.125rem; }
.byline { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line-dk); font-size: 0.8125rem; color: rgba(255,255,255,0.6); max-width: 44rem; }
.byline a { color: #fff; font-weight: 600; border-bottom: 1px solid var(--gold); }
.article-sec { background: #fff; padding: 4.5rem 0 6rem; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 5rem; align-items: start; }
.article { max-width: 46rem; }
.article h2 { margin-top: 3rem; font-size: clamp(1.625rem, 2.4vw, 2rem); scroll-margin-top: calc(var(--header) + 1.5rem); }
.article h3 { margin-top: 2rem; font-size: 1.25rem; }
.article p, .article li { font-size: 1.0625rem; }
.article strong { color: var(--navy); font-weight: 600; }
.takeaways { background: var(--warm); border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 1.75rem 2rem; }
.takeaways .takeaways-h { margin: 0; font-family: var(--sans); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-dk); }
.takeaways ul { margin-top: 1rem; }
.takeaways + h2 { margin-top: 3rem; }
.callout { margin-top: 1.75rem; padding: 1.5rem 1.75rem; background: var(--navy); color: rgba(255,255,255,0.82); font-size: 1rem; line-height: 1.7; border-top: 2px solid var(--gold); }
.callout strong { color: #fff; }
.callout a { color: #fff; border-bottom-color: var(--gold); }
.prose ol.timeline { margin-top: 1.5rem; display: grid; gap: 1.125rem; counter-reset: tl; }
.prose ol.timeline li { counter-increment: tl; position: relative; padding-left: 3.25rem; font-size: 1.0125rem; line-height: 1.75; color: #4a515b; }
.prose ol.timeline li::before { content: counter(tl, decimal-leading-zero); position: absolute; left: 0; top: 0.0625rem; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; background: var(--navy); color: var(--gold-lt); font-family: var(--serif); font-size: 0.9375rem; }
.table-wrap { margin-top: 1.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); }
.data-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.9375rem; line-height: 1.55; }
.data-table caption { caption-side: top; text-align: left; padding: 0.875rem 1.125rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dk); background: var(--warm); border-bottom: 1px solid var(--line); }
.data-table th, .data-table td { padding: 0.875rem 1.125rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table thead th { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: #fff; }
.data-table tbody th { font-weight: 600; color: var(--navy); white-space: nowrap; }
.data-table td { color: #4a515b; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
.data-table a { color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--gold); }
.disclaimer { margin-top: 3rem !important; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.875rem !important; color: var(--muted) !important; }
.article-aside { position: sticky; top: calc(var(--header) + 1.5rem); display: grid; gap: 1.5rem; }
.toc { border-top: 2px solid var(--navy); padding-top: 1.25rem; }
.toc-h { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-dk); }
.toc ol { margin-top: 0.875rem; display: grid; gap: 0.5rem; counter-reset: toc; }
.toc li { counter-increment: toc; display: grid; grid-template-columns: 1.5rem 1fr; font-size: 0.875rem; line-height: 1.45; }
.toc li::before { content: counter(toc); font-family: var(--serif); color: var(--gold-dk); }
.toc a { color: var(--charcoal); }
.toc a:hover { color: var(--gold-dk); }
.aside-cta { background: var(--navy); color: rgba(255,255,255,0.75); padding: 1.75rem; border-top: 2px solid var(--gold); font-size: 0.9375rem; }
.aside-cta-h { font-family: var(--serif); font-size: 1.375rem; color: #fff; line-height: 1.2; }
.aside-cta p + p { margin-top: 0.5rem; }
.aside-cta .btn { margin-top: 1.25rem; width: 100%; }
.aside-phone { display: block; margin-top: 0.875rem; text-align: center; font-weight: 600; color: #fff; }

/* Guide cards */
.guide-cards { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.guide-cards a { display: flex; flex-direction: column; height: 100%; padding: 1.75rem 1.75rem 1.5rem; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--gold); transition: border-color .35s var(--ease), box-shadow .35s var(--ease); }
.guides-sec[style*="#fff"] .guide-cards a { background: var(--warm); }
.guide-cards a:hover { border-color: rgba(196,154,69,0.6); border-top-color: var(--gold); box-shadow: 0 1.25rem 2.5rem -1.75rem rgba(11,23,38,0.35); }
.guide-cards strong { margin-top: 0.875rem; font-family: var(--serif); font-weight: 500; font-size: 1.375rem; line-height: 1.22; color: var(--navy); }
.guide-desc { margin-top: 0.75rem; font-size: 0.9375rem; line-height: 1.6; color: var(--muted); }
.guide-go { margin-top: auto; padding-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--navy); }
.guide-go .ico { width: 0.9375rem; height: 0.9375rem; transition: transform .35s var(--ease); }
.guide-cards a:hover .guide-go .ico, .county-cards a:hover .guide-go .ico { transform: translateX(3px); }

/* Areas */
.areas-band { background: var(--warm); }
.areas-band-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 5rem; align-items: center; }
.areas-band h2 { margin-top: 1.125rem; }
.areas-band .lede { margin-top: 1.25rem; }
.area-chips { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.area-chips li a, .area-chips.static li { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.125rem; background: #fff; border: 1px solid var(--line); font-size: 0.9375rem; font-weight: 500; color: var(--navy); }
.area-chips li a { transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease); }
.area-chips li a:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.county-split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 5rem; align-items: start; }
.county-split h2 { margin-top: 1.125rem; }
.county-split .lede { margin: 1.25rem 0 1.75rem; }
.county-links { background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--gold); padding: 2.25rem; display: grid; gap: 0.875rem; }
.county-links h3 { font-size: 1.375rem; }
.county-links p { font-size: 0.9375rem; line-height: 1.65; color: var(--muted); }
.county-links .btn { width: 100%; }
.county-inv { margin-top: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.county-inv a { color: var(--navy); }
.facts-list { margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.facts-list div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-dk); }
.facts-list dt { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); padding-top: 0.1875rem; }
.facts-list dd { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: rgba(255,255,255,0.86); }
.nearby-h { font-size: 1.375rem; margin-bottom: 1.25rem; }
.county-cards { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.county-cards a { display: flex; flex-direction: column; height: 100%; padding: 1.75rem; background: var(--warm); border: 1px solid var(--line); border-top: 2px solid var(--gold); transition: border-color .35s var(--ease), box-shadow .35s var(--ease); }
.county-cards a:hover { border-color: rgba(196,154,69,0.6); border-top-color: var(--gold); box-shadow: 0 1.25rem 2.5rem -1.75rem rgba(11,23,38,0.35); }
.county-cards strong { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--navy); }
.county-seat { margin-top: 0.375rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dk); }
.county-cities { margin-top: 0.875rem; font-size: 0.9375rem; line-height: 1.6; color: var(--muted); }

/* Sale dates */
.date-years { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.date-year { background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--gold); padding: 1.75rem; }
.date-year h3 { font-size: 2rem; }
.date-year ul { margin-top: 1rem; }
.date-year li { padding: 0.625rem 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; color: var(--charcoal); display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.date-year li:last-child { border-bottom: 0; }
.date-year li.past { color: #a3a8ae; text-decoration: line-through; text-decoration-color: rgba(0,0,0,0.2); }
.date-year li.next { font-weight: 600; color: var(--navy); }
.next-tag { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.25rem 0.5rem; background: var(--gold); color: #fff; }
.date-note { margin-top: 1.5rem; font-size: 0.875rem; color: var(--muted); max-width: 46rem; }
.county-table { margin-top: 2.5rem; max-width: 56rem; }

/* About */
.about-actions { margin-top: 2.25rem; display: flex; gap: 0.875rem; flex-wrap: wrap; }
.about-copy.prose h2 { margin-top: 1.125rem; }

/* Footer (generated) */
.footer-h { font-family: var(--sans); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; line-height: 1.4; }
.footer-h a { color: inherit; }
.footer-contact { margin-top: 1.25rem; display: grid; gap: 0.5rem; font-size: 0.9375rem; }
.footer-contact a { color: #fff; font-weight: 500; }
.footer-areas ul { columns: 2; column-gap: 1.5rem; }
.footer-areas li { break-inside: avoid; }
.footer-areas li + li { margin-top: 0; }
.footer-areas li { margin-bottom: 0.75rem; }

.notfound { padding-top: 2rem; }
.notfound h1 { margin-top: 1rem; }

@media (max-width: 1180px) {
  .article-grid { grid-template-columns: minmax(0, 1fr) 18rem; gap: 3rem; }
}
@media (max-width: 960px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .toc { display: none; }
  .guide-cards, .county-cards, .date-years { grid-template-columns: 1fr 1fr; }
  .areas-band-inner, .county-split { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 760px) {
  .article-hero { padding: 3rem 0 2.75rem; }
  .article-sec { padding: 3rem 0 4rem; }
  .takeaways { padding: 1.375rem 1.25rem; }
  .guide-cards, .county-cards, .date-years { grid-template-columns: 1fr; }
  .facts-list div { grid-template-columns: 1fr; gap: 0.25rem; }
  .county-links { padding: 1.5rem; }
  .data-table { font-size: 0.875rem; }
  .data-table tbody th { white-space: normal; }
  .footer-areas ul { columns: 2; }
}
