/* =========================================================
   Tri-Cities New Home Savings Center · The Lalka Group
   Mobile-first. Monochrome to match thelalkagroup.com.
   ========================================================= */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../assets/fonts/poppins-light.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/poppins-regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/poppins-medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 300; font-display: swap; src: url("../assets/fonts/poppins-lightitalic.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/poppins-bold.woff2") format("woff2"); }

:root {
  --ink: #111;
  --charcoal: #4a4a4a;
  --paper: #fff;
  --mist: #efefef;
  --line: #d6d6d6;
  --line-dark: rgba(255, 255, 255, .22);
  --muted: #5f5f5f;          /* 6.4:1 on white */
  --muted-on-dark: #c9c9c9;
  --accent: var(--ink);      /* optional brand accent: unused unless the team wants one */
  --error: #a4161a;
  --focus: #111;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 112px);
  --header-h: 64px;
  --bar-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
@media (min-width: 768px) { body { padding-bottom: 0; } }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 .5em; }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.75rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.site-header, .hero, .quickbar, .filters, .site-footer, .stat-band, .register-callout, .action-bar, .savings-banner { --focus: #fff; }

.visually-hidden {
  position: absolute !important; 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: 12px; top: -60px; z-index: 200; background: var(--paper); color: var(--ink); padding: 10px 16px; font-weight: 500; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- Type helpers ---------- */
.label {
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px;
}
.label--light { color: var(--muted-on-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 0;
  font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; text-align: center; line-height: 1.2; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 12px; }
.btn--lg { min-height: 56px; padding: 0 28px; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--mist); }
.btn--dark, .btn--black { background: var(--ink); color: var(--paper); }
.btn--dark:hover, .btn--black:hover { background: #333; }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.8); color: var(--paper); }
.btn--outline-light:hover { background: var(--paper); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: rgba(17, 17, 17, .78); color: var(--paper);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 16px; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; flex-shrink: 0; }
.brand__mark { width: 34px; height: 34px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.brand__sub { font-size: 9px; letter-spacing: .34em; text-transform: uppercase; color: var(--muted-on-dark); margin-top: 3px; }
.brand__divider { width: 1px; height: 28px; background: rgba(255,255,255,.35); }
.brand__broker { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; }

.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-phone { display: none; text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .04em; white-space: nowrap; }
.site-header__actions .btn { display: none; white-space: nowrap; }

.nav-toggle { width: 44px; height: 44px; border: 0; background: transparent; color: var(--paper); cursor: pointer; display: grid; place-items: center; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.nav-toggle__bars::before { position: absolute; top: -7px; }
.nav-toggle__bars::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav.is-open {
  display: block; position: fixed; top: var(--header-h); left: 0; right: 0;
  background: rgba(17,17,17,.97); padding: 8px var(--gutter) 24px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-nav.is-open li a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid rgba(255,255,255,.1); }

@media (max-width: 767px) {
  .brand { gap: 8px; }
  .brand__mark { width: 30px; height: 30px; }
  .brand__name { font-size: 12px; letter-spacing: .1em; }
  .brand__broker { font-size: 9.5px; letter-spacing: .1em; max-width: 8.5em; }
}
@media (max-width: 359px) { .brand__sub { display: none; } }
@media (min-width: 768px) {
  .header-phone { display: inline; }
  .site-header__actions .btn { display: inline-flex; }
}
@media (min-width: 1240px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; background: none; padding: 0; border: 0; margin: 0 auto; }
  .site-nav ul { display: flex; gap: 24px; align-items: center; }
  .site-nav.is-open li a { display: inline; min-height: 0; border: 0; }
  .site-nav a { padding: 12px 0; }
  .site-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
  .site-nav__back a { color: var(--muted-on-dark); }
  .site-header__actions { margin-left: 0; }
}

/* ---------- File-open notice ---------- */
.file-notice { margin: calc(var(--header-h) + 12px) var(--gutter) 12px; padding: 14px 18px; border: 2px solid var(--ink); background: #fffbe6; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92svh, 860px); display: flex; align-items: flex-end; color: var(--paper); background: #1b1d22; isolation: isolate; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.35) 38%, rgba(0,0,0,.55) 70%, rgba(0,0,0,.86) 100%); }
.hero__content { padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(88px, 12vw, 140px); }
.hero__title { font-size: clamp(2.1rem, 6.2vw, 4.4rem); max-width: 17ch; margin-bottom: 22px; }
.hero__title .em { display: block; font-weight: 300; }
.hero__title .em::after { content: ""; display: block; width: 72px; height: 2px; background: currentColor; margin-top: 22px; }
.hero__sub { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 46ch; color: #eaeaea; margin-bottom: 30px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__ctas .btn { flex: 1 1 260px; max-width: 360px; }
.hero__fine { margin: 22px 0 0; font-size: 12px; letter-spacing: .08em; color: var(--muted-on-dark); }

/* ---------- Quick filter bar ---------- */
.quickbar-wrap { position: relative; z-index: 5; margin-top: -56px; }
.quickbar {
  background: var(--charcoal); color: var(--paper); padding: 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 12px; align-items: end;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.quickbar__title { grid-column: 1 / -1; margin: 0; color: var(--paper); }
.quickbar__field label, .filters__field label { display: block; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px; color: var(--paper); }
.quickbar select, .filters select, .filters input[type="search"] {
  width: 100%; min-height: 48px; padding: 0 40px 0 14px; border: 0; border-radius: 0; background-color: var(--paper); color: var(--ink);
  -webkit-appearance: none; appearance: none; font-size: 15px;
}
.quickbar select, .filters select, .results-sort select, .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.quickbar__btn { grid-column: auto; }
@media (min-width: 768px) {
  .quickbar { grid-template-columns: 1fr 1fr 1fr auto; padding: 22px 24px; }
  .quickbar__btn { min-width: 140px; }
}
@media (min-width: 1024px) {
  .quickbar { grid-template-columns: auto 1fr 1fr 1fr auto; }
  .quickbar__title { grid-column: auto; align-self: center; max-width: 8em; line-height: 1.5; }
}

/* ---------- Proof strip ---------- */
.proof { padding: clamp(44px, 6vw, 72px) 0 clamp(8px, 2vw, 16px); }
.proof__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.proof__item { display: flex; flex-direction: column; border-top: 1px solid var(--ink); padding-top: 14px; }
.proof__num { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.proof__label { margin-top: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 768px) { .proof__list { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section--mist { background: var(--mist); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head__intro { font-size: 1.05rem; color: #333; }
.pulled { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pulled::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.loading { color: var(--muted); }

.notice { margin: 14px 0 0; padding: 12px 14px; border-left: 3px solid var(--ink); background: #fff6d8; font-size: 14px; line-height: 1.5; }
.notice--ended { background: var(--mist); }

.callout { margin-top: clamp(28px, 4vw, 40px); border: 1px solid var(--ink); padding: 20px 22px; font-size: 13px; line-height: 1.6; color: #333; background: var(--paper); }
.callout p:last-child { margin-bottom: 0; }
.callout__title { color: var(--ink); margin-bottom: 8px; }
.callout--quiet { border-color: var(--line); }

/* ---------- Offer cards (builders) ---------- */
.offer-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.offer { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--paper); }
.offer__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.offer__builder { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.offer__logo { height: 32px; width: auto; }
.offer__body { padding: 24px 22px 8px; flex: 1; }
.offer__figure { font-size: clamp(2.6rem, 7vw, 3.8rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1; margin: 0; }
.offer__figure-label { margin: 10px 0 18px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.offer__headline { font-size: 1.15rem; margin-bottom: 14px; }
.offer__rate-line { margin: 0 0 14px; font-size: 14px; }
.offer__rate-line strong { font-weight: 500; }
.offer__list { list-style: none; padding: 0; margin: 0 0 16px; }
.offer__list li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 15px; }
.offer__list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 1px; background: var(--ink); }
.offer__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.offer__meta strong { color: var(--ink); font-weight: 500; }
.offer__lender { font-size: 13px; color: #333; margin-bottom: 12px; }
.offer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 16px 22px 22px; }
.offer__actions .btn { flex: 1 1 200px; }
.offer.is-ended .offer__figure, .offer.is-ended .offer__list { opacity: .45; }
.offer__preview-flag { position: absolute; top: -1px; right: -1px; background: #ffde59; color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 4px 8px; text-transform: uppercase; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-block; padding: 4px 8px; border: 1px solid var(--ink); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; background: var(--paper); color: var(--ink); }
.badge--dark { background: var(--ink); color: var(--paper); }
.badge--muted { border-color: var(--line); color: var(--muted); }

.more { border-top: 1px solid var(--line); }
.more summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 0 22px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-size: 20px; font-weight: 300; }
.more[open] summary::after { content: "−"; }
.more__body { padding: 0 22px 20px; font-size: 14px; color: #333; }
.community-list { list-style: none; margin: 0; padding: 0; }
.community-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--mist); }
.community-list li:last-child { border-bottom: 0; }
.community-list__name { font-weight: 500; color: var(--ink); }
.community-list__price { text-align: right; font-weight: 500; color: var(--ink); white-space: nowrap; }
.community-list__meta { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.community-list__link { grid-column: 1 / -1; justify-self: start; min-height: 32px; font-size: 12px; }
.terms dt { font-weight: 500; color: var(--ink); margin-top: 10px; }
.terms dd { margin: 2px 0 0; }

/* ---------- Filters (inventory) ---------- */
.filters { background: var(--charcoal); color: var(--paper); padding: 16px 20px 20px; }
.filters__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.filters__title { margin: 0; color: var(--paper); }
.filters__toggle { min-height: 44px; padding: 0 4px; background: none; border: 0; color: var(--paper); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.filters__body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.filters__field--wide { grid-column: 1 / -1; }
.filters input[type="search"] { padding-right: 14px; }
.filters__actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
@media (min-width: 768px) {
  .filters__body { grid-template-columns: repeat(4, 1fr); }
  .filters__field--wide { grid-column: span 3; }
  .filters__actions { grid-column: auto; align-items: flex-end; }
  .filters__actions .btn { width: 100%; }
}
@media (min-width: 1100px) {
  .filters__toggle { display: none; }
  .filters__body[hidden] { display: grid !important; }
}

.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 18px; }
.results-count { margin: 0; font-weight: 500; }
.results-sort { display: flex; align-items: center; gap: 10px; }
.results-sort label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.results-sort select { min-height: 44px; padding: 0 38px 0 12px; border: 1px solid var(--ink); border-radius: 0; background-color: var(--paper); -webkit-appearance: none; appearance: none; }

/* ---------- Home cards ---------- */
.home-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.home { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); }
.home__media { position: relative; aspect-ratio: 16 / 10; background: #e9e9e9; overflow: hidden; }
.home__media img { width: 100%; height: 100%; object-fit: cover; }
.home__status { position: absolute; top: 12px; left: 12px; }
.home__builder { position: absolute; bottom: 0; left: 0; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; }
.home__body { padding: 18px 18px 6px; flex: 1; }
.home__price { font-size: 1.55rem; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 4px; line-height: 1.2; }
.home__where { margin: 0 0 2px; font-size: 14px; font-weight: 500; }
.home__addr { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.home__facts { list-style: none; margin: 0 0 12px; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 4px 16px; border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist); font-size: 14px; }
.home__facts strong { font-weight: 500; }
.home__movein { margin: 0 0 10px; font-size: 13px; }
.home__tag { display: inline-block; margin: 0 0 8px; padding: 6px 10px; background: var(--mist); font-size: 12px; line-height: 1.4; }
.home__tag--verified { background: var(--ink); color: var(--paper); }
.home__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 18px 18px; }
.home__actions .btn { padding: 0 10px; font-size: 11px; letter-spacing: .08em; }

.show-more { display: flex; justify-content: center; margin-top: 28px; }
.empty-state { text-align: center; padding: 48px 20px; border: 1px dashed var(--charcoal); background: var(--paper); }
.empty-state__title { font-size: 1.5rem; font-weight: 500; margin-bottom: 6px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: none; }
.step { border-top: 1px solid var(--ink); padding-top: 18px; }
.step__num { display: block; font-size: 2.6rem; font-weight: 300; letter-spacing: -0.03em; line-height: 1; margin-bottom: 16px; }
.step p { color: #333; margin: 0; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 36px; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Calculator ---------- */
.calc { display: grid; gap: 28px; }
@media (min-width: 1024px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: start; } .calc__results { position: sticky; top: calc(var(--header-h) + 20px); } }
.calc__inputs { display: grid; gap: 20px; }
.calc__group { margin: 0; padding: 20px; border: 1px solid var(--line); background: var(--paper); min-width: 0; }
.calc__group > legend { padding: 0 6px; margin-left: -6px; margin-bottom: 0; color: var(--ink); }
.calc__warn { margin: 6px 0 0; font-size: 13px; color: var(--error); }

.field { margin-bottom: 16px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field > label, .field__label, .field > legend, .segmented > legend { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field input[type="date"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #8a8a8a; border-radius: 0; background-color: var(--paper); font-size: 16px;
}
.field select { -webkit-appearance: none; appearance: none; padding-right: 38px; }
.field textarea { resize: vertical; min-height: 96px; }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field__pair { display: flex; align-items: stretch; border: 1px solid #8a8a8a; background: var(--paper); }
.field__pair:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.field__pair input[type="number"] { border: 0; flex: 1; min-width: 0; }
.field__pair input:focus-visible { outline: none; }
.field__prefix, .field__suffix { display: flex; align-items: center; padding: 0 12px; background: var(--mist); color: #333; font-size: 15px; }
.field__duo { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.field__hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } .field-row--3 { grid-template-columns: 1fr 1fr 1fr; } }
.field-row .field { margin-bottom: 0; }
.field-row + .field, .field-row + .field-row, .field + .field-row { margin-top: 16px; }
.field--check { display: flex; align-items: flex-start; gap: 12px; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--ink); }
.field--check label { font-size: 14px; font-weight: 400; margin: 0; }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 4px 0 0; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 2px; background: var(--ink); }
.range::-moz-range-track { height: 2px; background: var(--ink); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--ink); margin-top: -10px; }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--ink); }

.segmented { border: 0; margin: 0; padding: 0; }
.segmented__opts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); }
.segmented__opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented__opts label { display: flex; align-items: center; justify-content: center; min-height: 46px; margin: 0; font-size: 14px; font-weight: 500; cursor: pointer; border-left: 1px solid var(--ink); }
.segmented__opts label:first-of-type { border-left: 0; }
.segmented__opts input:checked + label { background: var(--ink); color: var(--paper); }
.segmented__opts input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; position: relative; z-index: 1; }

.calc__results { border: 1px solid var(--ink); background: var(--paper); }
.results-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.results-table caption { text-align: left; padding: 18px 20px 6px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.results-table th, .results-table td { padding: 11px 20px; text-align: right; border-bottom: 1px solid var(--mist); vertical-align: top; }
.results-table th[scope="row"] { text-align: left; font-weight: 400; color: #333; }
.results-table thead th { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--ink); vertical-align: bottom; }
.results-table thead th span { display: block; font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 500; margin-top: 2px; }
.results-table td small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.results-table .row-pi th, .results-table .row-pi td { font-weight: 500; color: var(--ink); }
.results-table .row-total th, .results-table .row-total td { border-top: 2px solid var(--ink); border-bottom: 0; padding-top: 16px; padding-bottom: 18px; }
.results-table .row-total th { font-weight: 500; color: var(--ink); }
.results-table .row-total td { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 500; letter-spacing: -0.02em; }
.results-table .row-loan td, .results-table .row-loan th { font-size: 13px; color: var(--muted); }
@media (max-width: 420px) { .results-table th, .results-table td { padding-left: 12px; padding-right: 12px; } }
.savings-banner { background: var(--ink); color: var(--paper); padding: 20px; display: grid; gap: 14px; }
@media (min-width: 560px) { .savings-banner { grid-template-columns: 1fr 1fr; } }
.savings-banner__num { display: block; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; }
.savings-banner__label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-dark); margin-top: 6px; }
.calc__disclaimer { margin: 0; padding: 16px 20px; font-size: 12.5px; line-height: 1.55; color: #333; border-top: 1px solid var(--line); background: var(--mist); }
.calc__cta { padding: 20px; display: grid; gap: 10px; }
.calc__cta p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Why us ---------- */
.why { display: grid; gap: 32px; }
@media (min-width: 1024px) { .why { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: end; } .why__head { margin-bottom: 0; } }
.why__lede { font-size: clamp(1.2rem, 2.2vw, 1.45rem); font-weight: 300; font-style: italic; margin-bottom: 14px; }
.benefits { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.benefits li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); }
.benefits li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 14px; height: 8px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.stat-band { background: var(--ink); color: var(--paper); margin: clamp(48px, 7vw, 80px) 0; padding: clamp(40px, 6vw, 64px) 0; }
.stat-band__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; text-align: center; }
@media (min-width: 640px) { .stat-band__list { grid-template-columns: repeat(3, 1fr); } }
.stat-band__num { display: block; font-size: clamp(3rem, 8vw, 5rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.stat-band__label { display: block; margin-top: 12px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-on-dark); }
.register-callout { background: var(--charcoal); color: var(--paper); padding: clamp(24px, 4vw, 40px); display: grid; gap: 20px; align-items: center; border-left: 6px solid var(--ink); }
@media (min-width: 900px) { .register-callout { grid-template-columns: 1fr auto; gap: 40px; } }
.register-callout__text { font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 500; line-height: 1.35; margin: 0; letter-spacing: -0.01em; }

/* ---------- Relocation ---------- */
.relocate { display: grid; gap: 12px; }
@media (min-width: 900px) { .relocate { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } .relocate h2 { margin-bottom: 0; } }
.relocate p:not(.label) { font-size: 1.05rem; color: #333; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font-size: 1.05rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 300; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: #333; padding-bottom: 8px; max-width: 70ch; }

/* ---------- Team + final form ---------- */
.team { display: grid; gap: 40px; }
@media (min-width: 1024px) { .team { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.team__people { list-style: none; margin: 24px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.person img { width: 100%; height: auto; aspect-ratio: 5 / 6; object-fit: cover; background: #d9d9d9; }
.person__name { margin: 12px 0 0; font-weight: 500; }
.person__title { margin: 0; font-size: 13px; color: var(--muted); }
.team__contact { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.team__contact a { display: inline-block; padding: 10px 0; font-weight: 500; text-underline-offset: 4px; }
.team__form { background: var(--paper); padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); }
.team__form-title { font-size: 1.4rem; }
.team__form-sub { color: #333; }

/* ---------- Lead form ---------- */
.lead-form__grid { display: grid; gap: 14px; }
@media (min-width: 560px) { .lead-form__grid { grid-template-columns: 1fr 1fr; } .lead-form__full { grid-column: 1 / -1; } }
.lead-form__grid .field { margin: 0; }
.lead-form__consent { margin: 18px 0 14px; }
.lead-form__consent label { font-size: 12.5px; line-height: 1.5; color: #333; }
.lead-form__submit { width: 100%; }
.lead-form__error { margin: 0 0 12px; padding: 12px 14px; border-left: 3px solid var(--error); background: #fbeaea; color: var(--error); font-size: 14px; }
.lead-form__error a { font-weight: 500; }
.lead-form__fine { margin: 12px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.lead-form__turnstile:empty { display: none; }
.lead-form__turnstile { margin-bottom: 12px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Modal ---------- */
.modal { padding: 0; border: 0; width: 100%; max-width: 100%; max-height: 100%; height: 100%; margin: 0; background: var(--paper); color: var(--ink); }
.modal::backdrop { background: rgba(0, 0, 0, .62); }
.modal__inner { position: relative; padding: 56px 20px 28px; max-height: 100%; overflow-y: auto; height: 100%; }
@media (min-width: 640px) {
  .modal { width: min(640px, calc(100% - 40px)); height: fit-content; max-height: calc(100% - 40px); margin: auto; }
  .modal__inner { padding: 44px 36px 32px; height: auto; max-height: calc(100vh - 40px); }
}
.modal__close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 30px; font-weight: 300; line-height: 1; cursor: pointer; }
.modal__title { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 8px; }
.modal__context { margin: 0 0 18px; padding: 10px 12px; background: var(--mist); font-size: 14px; }
html.modal-open { overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #e6e6e6; padding: clamp(48px, 7vw, 80px) 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; }
.site-footer a { color: var(--paper); text-underline-offset: 4px; }
.site-footer__top { display: grid; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 768px) { .site-footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer__logo { font-size: 15px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--paper); }
.site-footer__logo span { display: block; margin-top: 6px; font-size: 13px; letter-spacing: .14em; color: var(--paper); }
.site-footer__links ul { list-style: none; margin: 0; padding: 0; }
.site-footer__links li a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
.site-footer__links li a:hover { text-decoration: underline; }
.site-footer__legal { padding: 28px 0; border-bottom: 1px solid var(--line-dark); font-size: 12.5px; line-height: 1.6; color: var(--muted-on-dark); }
.site-footer__legal p { max-width: 110ch; }
.site-footer__bottom { display: flex; align-items: center; gap: 16px; padding-top: 24px; font-size: 12.5px; color: var(--muted-on-dark); }
.site-footer__bottom p { margin: 0; }
.eho { width: 56px; height: 56px; color: var(--paper); flex-shrink: 0; }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr 1.4fr;
  height: calc(var(--bar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--ink); border-top: 1px solid rgba(255,255,255,.15);
}
.action-bar__btn { display: flex; align-items: center; justify-content: center; color: var(--paper); text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; border-left: 1px solid rgba(255,255,255,.18); }
.action-bar__btn:first-child { border-left: 0; }
.action-bar__btn--primary { background: var(--paper); color: var(--ink); }
@media (min-width: 768px) { .action-bar { display: none; } }

/* ---------- Thank-you & simple pages ---------- */
.simple-page { padding: calc(var(--header-h) + 64px) 0 var(--section-y); min-height: 70vh; }
.simple-page h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.simple-page .lede { font-size: 1.15rem; color: #333; max-width: 52ch; }
.simple-page .prose { max-width: 72ch; }
.simple-page .prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.next-steps { list-style: none; margin: 32px 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 768px) { .next-steps { grid-template-columns: repeat(3, 1fr); } }
.next-steps li { border-top: 1px solid var(--ink); padding-top: 14px; }
.next-steps strong { display: block; font-weight: 500; margin-bottom: 4px; }

@media print {
  .site-header, .action-bar, .quickbar-wrap, .filters, .modal, .hero__ctas { display: none !important; }
  body { padding: 0; }
}
.offer__apr { display: inline-block; white-space: nowrap; }
.cta-row { margin-top: 28px; }
.site-footer__legal--plain { padding-top: 0; }

/* Placeholder marker: shows only while the hero still uses the placeholder file */
.hero__placeholder-tag { display: none; position: absolute; top: calc(var(--header-h) + 10px); right: 12px; z-index: 1; padding: 4px 8px; background: rgba(255,255,255,.14); color: #fff; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.hero__img[src*="placeholder"] ~ .hero__placeholder-tag { display: block; }
.site-nav__back-short { display: none; }
@media (min-width: 1240px) { .site-nav__back-long { display: none; } .site-nav__back-short { display: inline; } }

/* ---------- Call pop-up ---------- */
.modal--call { height: fit-content; max-height: calc(100% - 32px); width: calc(100% - 32px); margin: auto; }
.modal--call .modal__inner { height: auto; padding: 48px 24px 28px; text-align: center; }
@media (min-width: 640px) { .modal--call { width: min(460px, calc(100% - 40px)); } .modal--call .modal__inner { padding: 48px 40px 32px; } }
.call-number { font-size: clamp(2rem, 8vw, 2.6rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; margin: 4px 0 22px; white-space: nowrap; }
.call-actions { display: grid; gap: 10px; }
.call-desktop-hint { display: none; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .call-desktop-hint { display: block; } }
.call-alt { margin: 18px 0 0; font-size: 14px; color: #333; overflow-wrap: anywhere; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.action-bar { grid-template-columns: 1fr 1fr 1fr 1.35fr; }
.action-bar__btn { letter-spacing: .08em; }

/* ---------- Team contact details ---------- */
.ico { width: 16px; height: 16px; flex-shrink: 0; }
.person__contact { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; }
.person__contact a { display: flex; align-items: center; gap: 8px; min-height: 40px; text-decoration: none; overflow-wrap: anywhere; line-height: 1.3; }
.person__contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) { .person__contact { font-size: 13px; } .person__contact .ico { width: 14px; height: 14px; } }
.team__office { margin: 8px 0 0; }
.team__office a { display: inline-flex; align-items: flex-start; gap: 8px; min-height: 44px; padding-top: 10px; text-decoration: none; }
.team__office .ico { margin-top: 3px; }
.team__office a:hover span span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.team__office-label { font-weight: 500; }
.site-footer__address { margin-bottom: 14px; }
.site-footer__people { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.site-footer__people a { display: inline-block; padding: 3px 0; overflow-wrap: anywhere; }
.site-footer__logo span { line-height: 1.5; }

/* ---------- Logo (header + footer) ---------- */
.brand__logo { display: flex; align-items: center; min-height: 44px; }
.brand__logo img { height: 40px; width: auto; }
.brand__logo:hover img { opacity: .85; }
@media (max-width: 767px) { .brand__logo img { height: 36px; } }
@media (max-width: 359px) { .brand__logo img { height: 32px; } }
.site-nav__back a { color: var(--paper) !important; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.45); padding: 10px 12px !important; }
.site-nav__back a:hover { background: var(--paper); color: var(--ink) !important; text-decoration: none !important; }
.site-nav.is-open .site-nav__back a { border: 0; padding: 0 !important; }
.site-nav.is-open .site-nav__back a:hover { background: none; color: var(--paper) !important; }
.site-footer__logo a { display: inline-block; margin-bottom: 12px; }
.site-footer__logo img { height: 48px; width: auto; }
.site-footer__logo span { margin-top: 0; }
.header-mainsite { display: none; align-items: center; min-height: 44px; margin-right: 8px; text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.header-mainsite:hover { text-decoration: underline; text-underline-offset: 6px; }
@media (min-width: 1024px) and (max-width: 1239px) { .header-mainsite { display: inline-flex; } }

/* ---------- Bios ---------- */
.team__head { max-width: 820px; }
.team__lede { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 300; color: var(--ink); line-height: 1.5; }
.bios { display: grid; gap: 28px; }
.bio { display: grid; gap: 20px; background: var(--paper); border: 1px solid var(--line); padding: clamp(18px, 3vw, 32px); }
@media (min-width: 720px) { .bio { grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: 36px; align-items: start; } .bio__photo { position: sticky; top: calc(var(--header-h) + 20px); } }
.bio__photo { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: #d9d9d9; max-width: 360px; }
.bio__name { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 0 0 4px; }
.bio__title { margin: 0 0 6px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bio .person__contact { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0 0 14px; }
.bio__text { max-width: 68ch; color: #333; }
.bio__text p { margin-bottom: .9em; }
.bio__toggle { color: var(--ink); }
.bio__toggle[aria-expanded="true"]::after { transform: rotate(-90deg); }
#team .team__office { margin: 22px 0 clamp(40px, 6vw, 64px); }
#team .team { align-items: start; }
