/* HomePros — v2 "Bold tech".
   Tokens, type and motion come from design/Main2.dc.html (desktop) and
   design/Mobile2.dc.html (mobile look). Desktop mockup is 1440px wide and
   mobile is 390px; everything between is interpolated with clamp(). */

:root {
  --navy:        #1d2e42;
  --navy-deep:   #0f1926;
  --navy-card:   #121d2b;
  --navy-tint:   #24384f;
  --yellow:      #fdbf00;
  --ice:         #B5D4F4;
  --white:       #ffffff;
  --grey-bg:     #f5f5f5;
  --grey-panel:  #f4f4f2;
  --grey-line:   #d9d9d9;
  --grey-text:   #666666;
  --body-text:   #444444;
  --blue:        #147efb;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(56px, 8vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }

/* The `hidden` attribute only carries `display: none` from the UA sheet, so ANY
   author `display` rule silently beats it. Several panels here are flex
   containers, which meant `hidden` did nothing and the lead form, the
   confirmation, the empty listings section and the HOA/PMI rows all rendered
   regardless. Make `hidden` actually hide. */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  background: var(--navy-deep);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); }
a:hover { color: var(--blue); }

/* Archivo at 125% width is the headline face throughout the mockup. */
.disp {
  font-family: 'Archivo', system-ui, sans-serif;
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.025em;
}
.mono { font-family: 'Geist Mono', ui-monospace, monospace; }

.outline { color: transparent; -webkit-text-stroke: 2px var(--ice); }
@media (max-width: 720px) { .outline { -webkit-text-stroke-width: 1.5px; } }

.dots {
  background-image: radial-gradient(rgba(181,212,244,0.14) 1px, transparent 1px);
  background-size: 24px 24px;
}
@media (max-width: 720px) { .dots { background-size: 20px 20px; } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── MOTION ───────────────────────────────────────────────────────────── */
.scan  { animation: scan 3.6s ease-in-out infinite alternate; }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(290px); } }

.track { display: flex; gap: 56px; white-space: nowrap; animation: mq 45s linear infinite; width: max-content; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.blink { animation: bl 1s steps(1) infinite; }
@keyframes bl { 50% { opacity: 0; } }

.pulse { animation: pu 1.6s ease-in-out infinite; }
@keyframes pu { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

@media (prefers-reduced-motion: reduce) {
  .scan, .track, .blink, .pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── CONTROLS ─────────────────────────────────────────────────────────── */
input, select, button, textarea { font-family: inherit; }
input[type=range] { accent-color: var(--yellow); width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
/* Every tap target clears 44px. */
button, .btn, .nav-cta { min-height: 44px; }

.btn-primary {
  border: none; border-radius: 999px;
  background: var(--yellow); color: var(--navy);
  font-size: 16px; font-weight: 600; cursor: pointer;
  padding: 0 26px; height: 56px;
}
.btn-primary:hover { background: #e5ac00; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ice); }
.field input, .field select {
  height: 48px; border: 1px solid rgba(181,212,244,0.3); border-radius: 12px;
  padding: 0 14px; font-size: 16px; background: var(--navy-deep); color: var(--white);
}
.field select { padding: 0 12px; }

/* Honeypot — off-screen, not display:none, and unreachable by keyboard or AT. */
.hp-trap {
  position: absolute; left: -9999px; top: -9999px;
  width: 1px; height: 1px; opacity: 0;
}

.consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 11px; line-height: 1.5; color: var(--ice);
}
.consent input { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; }
.consent a { color: var(--white); }

.err { color: var(--yellow); font-size: 13px; margin: 0; }

/* ── LAYOUT ───────────────────────────────────────────────────────────── */
.wrap { display: flex; flex-direction: column; background: var(--navy-deep); overflow-x: hidden; }
.section { padding: var(--section-y) var(--gutter); }

/* ── HEADER / HERO ────────────────────────────────────────────────────── */
.hero { background-color: var(--navy); padding: 0 var(--gutter) clamp(40px, 6vw, 88px); }
.bar { height: clamp(64px, 6vw, 88px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
/* Header logo. width/height attributes on the <img> carry the intrinsic
   aspect ratio, so the bar does not reflow while the file loads. */
.brand-logo { height: 40px; width: auto; display: block; }
@media (max-width: 720px) { .brand-logo { height: 32px; } }

.nav { display: flex; align-items: center; gap: 36px; font-size: 15px; }
.nav a { color: var(--ice); text-decoration: none; }
.nav a:hover { color: var(--white); }

.bar-right { display: flex; align-items: center; gap: 14px; }
.langs {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid rgba(181,212,244,0.4); border-radius: 999px; padding: 4px 4px 4px 14px;
}
.lang-pill {
  border: none; border-radius: 999px; padding: 0 18px; background: transparent;
  color: var(--white); font-size: 15px; cursor: pointer; min-height: 44px; text-decoration: none;
  display: inline-flex; align-items: center;
}
.lang-pill[aria-current="true"] { background: var(--yellow); color: var(--navy); font-weight: 600; }
.nav-cta {
  background: var(--yellow); color: var(--navy); text-decoration: none;
  font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: 999px;
  display: inline-flex; align-items: center;
}
.menu-btn {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid rgba(181,212,244,0.3); background: transparent; cursor: pointer;
}

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  padding: clamp(28px, 4vw, 56px) 0 clamp(14px, 2vw, 28px);
  font-size: clamp(10px, 1.1vw, 13px); letter-spacing: 0.2em;
  color: var(--yellow); text-transform: uppercase;
}
.dot { width: 9px; height: 9px; border-radius: 999px; background: var(--yellow); display: inline-block; flex: 0 0 auto; }

h1 { margin: 0; display: flex; flex-direction: column; }
.h1-line { font-size: clamp(38px, 9.7vw, 140px); line-height: 0.88; color: var(--white); }
.h1-line.accent { color: var(--yellow); }
.caret {
  display: inline-block; width: clamp(6px, 1.4vw, 20px); height: clamp(30px, 7.5vw, 108px);
  background: var(--yellow); margin-left: clamp(4px, 0.8vw, 12px); vertical-align: -6px;
}

.hero-cols { display: flex; gap: 64px; align-items: flex-end; padding-top: clamp(24px, 3vw, 40px); }
.hero-main { flex: 1 1 0; display: flex; flex-direction: column; gap: clamp(18px, 2vw, 28px); padding-bottom: 12px; min-width: 0; }
.hero-sub { margin: 0; font-size: clamp(18px, 1.9vw, 24px); line-height: 1.4; color: var(--white); max-width: 600px; letter-spacing: -0.01em; }

.addr-wrap { position: relative; max-width: 620px; }
.addr-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border-radius: 999px; padding: 8px 8px 8px 24px;
}
.addr-row input {
  flex: 1 1 0; border: none; font-size: 17px; height: 48px;
  color: var(--navy); background: transparent; min-width: 0;
}
.addr-row input:focus { outline: none; }
/* Google's PlaceAutocompleteElement, restyled to sit inside the pill. */
.addr-row gmp-place-autocomplete { flex: 1 1 0; min-width: 0; --gmp-mat-color-surface: #fff; }

.trust { display: flex; flex-wrap: wrap; gap: clamp(14px, 2vw, 28px); font-size: 13px; color: var(--ice); }

.hero-art { width: 560px; height: 470px; position: relative; flex: 0 0 auto; }
.chip {
  position: absolute; background: var(--navy-deep); border: 1px solid rgba(253,191,0,0.5);
  border-radius: 8px; padding: 8px 12px; font-size: 12px; color: var(--white);
}
.chip.solid { background: var(--yellow); color: var(--navy); border-color: var(--yellow); font-weight: 500; }

/* Inline lead form + success */
.lead-card {
  max-width: 620px; background: var(--navy-card);
  border: 1px solid rgba(253,191,0,0.45); border-radius: 24px;
  padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 14px;
}
.lead-head { font-size: clamp(22px, 2.2vw, 26px); line-height: 1; color: var(--white); letter-spacing: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sent-card {
  max-width: 620px; background: var(--yellow); border-radius: 24px;
  padding: 28px; display: flex; flex-direction: column; gap: 8px;
}
.sent-head { font-size: clamp(24px, 2.6vw, 30px); line-height: 1; color: var(--navy); letter-spacing: 0; }
.sent-body { font-size: 16px; line-height: 1.5; color: var(--navy); }

/* ── CITY MARQUEE ─────────────────────────────────────────────────────── */
.marquee { background: var(--yellow); height: clamp(48px, 4.4vw, 64px); display: flex; align-items: center; overflow: hidden; }
.marquee .disp { font-size: clamp(16px, 1.6vw, 22px); color: var(--navy); letter-spacing: 0; }
.marquee .sep { color: rgba(29,46,66,0.35); }

/* ── SECTION HEADS ────────────────────────────────────────────────────── */
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.h2 { margin: 0; font-size: clamp(30px, 5.3vw, 76px); line-height: 0.92; }
.h2-big { margin: 0; font-size: clamp(32px, 5.9vw, 84px); line-height: 0.9; }
.mark { background: var(--yellow); color: var(--navy); padding: 0 12px; }
.lede { margin: 0; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.6; max-width: 420px; }
.kicker { font-size: clamp(10px, 1vw, 12px); letter-spacing: 0.18em; text-transform: uppercase; }

/* ── BENTO ────────────────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cell { border-radius: 24px; padding: clamp(20px, 2.4vw, 36px); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 260px; }
.cell-navy { background: var(--navy); }
.cell-deep { background: var(--navy-card); border: 1px solid rgba(181,212,244,0.18); }
.cell-yellow { background: var(--yellow); color: var(--navy); }
.cell-wide { grid-column: span 2; grid-row: span 2; }
.cell-full { grid-column: span 4; background: var(--white); padding: clamp(24px, 2.6vw, 36px) clamp(24px, 3vw, 40px); flex-direction: row; align-items: center; gap: 32px; min-height: 0; }
.comp-row { display: flex; align-items: center; gap: 14px; background: var(--navy-card); border-radius: 12px; padding: 14px 16px; }
.comp-bar { flex: 1 1 0; height: 8px; background: rgba(181,212,244,0.15); border-radius: 999px; position: relative; }
.comp-bar > i { position: absolute; top: 0; bottom: 0; background: var(--yellow); border-radius: 999px; }
.badge { font-size: 11px; color: var(--navy); background: var(--ice); padding: 4px 8px; border-radius: 6px; }

/* ── HOME VALUE ───────────────────────────────────────────────────────── */
.value { background: var(--grey-bg); display: flex; gap: clamp(32px, 5vw, 72px); align-items: center; }
.value-copy { flex: 1 1 0; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.value-form {
  width: 580px; flex: 0 0 auto; background: var(--navy); border-radius: 28px;
  padding: clamp(24px, 2.8vw, 40px); display: flex; flex-direction: column; gap: 16px;
}
.value-form .field input, .value-form .field select { height: 50px; background: var(--navy-card); }

/* ── CALCULATOR ───────────────────────────────────────────────────────── */
.calc { background: var(--white); display: flex; flex-direction: column; gap: clamp(28px, 3.4vw, 48px); }
.calc-cols { display: flex; gap: 16px; align-items: stretch; }
.calc-inputs { flex: 1 1 0; background: var(--grey-panel); border-radius: 28px; padding: clamp(22px, 3vw, 44px); display: flex; flex-direction: column; gap: clamp(22px, 2.6vw, 36px); min-width: 0; }
.calc-out { width: 500px; flex: 0 0 auto; background: var(--navy); border-radius: 28px; padding: clamp(22px, 3vw, 44px); display: flex; flex-direction: column; gap: 24px; }
.slider-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--grey-text); gap: 12px; }
.slider-val { font-size: clamp(22px, 2.2vw, 30px); color: var(--navy); letter-spacing: 0; }
.num {
  height: 54px; border: 1px solid var(--grey-line); border-radius: 14px;
  padding: 0 16px; font-size: 18px; background: var(--white); color: var(--navy); width: 100%;
}
.num-label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--grey-text); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.term-btn { height: 54px; flex: 1 1 0; border-radius: 999px; border: 1px solid var(--grey-line); background: var(--white); color: var(--navy); font-size: 16px; cursor: pointer; }
.term-btn[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: var(--white); font-weight: 600; }
.total { font-size: clamp(46px, 6.2vw, 88px); line-height: 0.9; color: var(--yellow); letter-spacing: -0.03em; }
.break { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--ice); }
.break > div { display: flex; justify-content: space-between; gap: 12px; }
.break span:last-child { color: var(--white); }
.break .loan { padding-top: 8px; border-top: 1px solid rgba(181,212,244,0.18); }
.break .pmi span { color: var(--yellow); }
.rule { height: 1px; background: rgba(181,212,244,0.2); }
.perks { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ice); }
.perks b { color: var(--yellow); font-weight: 400; }
.disclaimer { margin: 0; font-size: 12px; line-height: 1.6; color: var(--grey-text); }

/* ── LISTINGS ─────────────────────────────────────────────────────────── */
.listings { background: var(--navy-deep); display: flex; flex-direction: column; gap: clamp(24px, 3vw, 44px); }
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.listing-card { background: var(--navy); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; }
.listing-photo { height: 280px; background-color: var(--navy-tint); display: block; width: 100%; object-fit: cover; }
.listing-ph { height: 280px; background-color: var(--navy-tint); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--ice); }
.listing-body { padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.listing-price { font-size: 30px; color: var(--white); letter-spacing: 0; }
.listing-meta { font-size: 12px; color: var(--ice); }
.listing-by { font-size: 12px; color: var(--ice); padding-top: 10px; border-top: 1px solid rgba(181,212,244,0.18); }
.idx-disclaimer { margin: 0; font-size: 12px; line-height: 1.6; color: var(--ice); }
.ghost {
  color: var(--white); font-size: 16px; border: 1px solid rgba(181,212,244,0.35);
  border-radius: 999px; padding: 14px 22px; text-decoration: none; display: inline-flex; align-items: center;
}

/* ── AREAS / FAQ ──────────────────────────────────────────────────────── */
.areas { background: var(--white); display: flex; flex-direction: column; gap: clamp(24px, 3vw, 44px); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-city { border: 1px solid var(--grey-line); border-radius: 999px; padding: 12px 20px; font-size: 16px; color: var(--navy); }
.faq { background: var(--grey-bg); display: flex; gap: clamp(32px, 5.5vw, 80px); }
.faq h2 { width: 440px; flex: 0 0 auto; color: var(--navy); }
.faq-list { flex: 1 1 0; display: flex; flex-direction: column; min-width: 0; }
.faq-item { border-top: 1px solid var(--grey-line); padding: 28px 0; display: flex; flex-direction: column; gap: 10px; }
.faq-item h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; color: var(--navy); }
.faq-item p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--body-text); }

/* ── FOOTER ───────────────────────────────────────────────────────────── */
.foot { background: var(--navy); padding: clamp(48px, 6vw, 88px) var(--gutter) 48px; display: flex; flex-direction: column; gap: clamp(28px, 3.4vw, 48px); }
.foot-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.foot-cta { display: flex; flex-direction: column; gap: 20px; }
.foot-head { font-size: clamp(28px, 3.2vw, 44px); line-height: 0.95; color: var(--white); }
.foot-cols { display: flex; gap: clamp(32px, 5vw, 72px); font-size: 15px; line-height: 1.7; color: var(--ice); flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; }
.foot-col a { color: var(--ice); }
.foot-word { font-size: clamp(54px, 13.2vw, 190px); line-height: 0.8; color: var(--navy-tint); letter-spacing: -0.04em; }
.foot-legal {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 12px; line-height: 1.6; color: var(--ice);
  border-top: 1px solid rgba(181,212,244,0.2); padding-top: 24px;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-cols { flex-direction: column; align-items: stretch; gap: 40px; }
  .hero-art { display: none; }           /* desktop-only illustration */
  .value { flex-direction: column; align-items: stretch; }
  .value-form { width: 100%; }
  .calc-cols { flex-direction: column; }
  .calc-out { width: 100%; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell-wide { grid-column: span 2; grid-row: auto; }
  .cell-full { grid-column: span 2; flex-direction: column; align-items: flex-start; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { flex-direction: column; }
  .faq h2 { width: auto; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
  .bar-right .nav-cta { display: none; }
  .hero-cols { padding-top: 16px; }
  .addr-row { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px; border-radius: 22px; }
  .addr-row input { padding: 0 14px; height: 48px; font-size: 16px; }
  .addr-row .btn-primary { width: 100%; height: 52px; }
  .addr-row .pin { display: none; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cell { min-height: 0; padding: 20px; border-radius: 20px; }
  .cell-wide, .cell-full { grid-column: span 2; }
  .listing-grid { grid-template-columns: 1fr; }
  .head-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .foot-top { flex-direction: column; }
}

/* Mobile nav sheet */
.sheet { display: none; flex-direction: column; gap: 4px; padding: 12px 0 4px; }
.sheet.open { display: flex; }
.sheet a { color: var(--ice); text-decoration: none; font-size: 17px; padding: 12px 0; min-height: 44px; display: flex; align-items: center; }
@media (min-width: 721px) { .sheet, .sheet.open { display: none; } }

/* Courtesy Spanish rendering of the consent text on /es. The English text
   above it remains the official version. */
.consent-es {
  margin: -4px 0 0 28px;
  font-size: 11px; line-height: 1.5;
  color: rgba(181,212,244,0.75);
}
.consent-es b { color: var(--ice); font-weight: 600; }
.consent-es a { color: #fff; }
