/* ==========================================================================
   BBO'S Realty & Investments — site styles
   Brand: sky #4BBCE3 · navy #0F2E3D · Montserrat (self-hosted, OFL)
   ========================================================================== */

/* ---------- fonts ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("../assets/fonts/montserrat-latin-800-normal.woff2") format("woff2"); }

/* ---------- tokens ---------- */
:root {
  --sky: #4BBCE3;
  --sky-deep: #1F93C0;
  --sky-dark: #146E93;
  --sky-mist: #EAF6FB;
  --sky-pale: #D6EEF8;
  --navy: #0F2E3D;
  --slate: #4A6572;
  --line: #CFE3EC;
  --white: #FFFFFF;
  --sun: #F6C453;
  --ok: #1F9D6B;
  --err: #C8463B;

  --font: "Montserrat", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --text: 1.0625rem;           /* 17px */
  --lh: 1.6;
  --h1: clamp(2.5rem, 2rem + 4vw, 5rem);
  --h2: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  --h3: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --wrap: 1120px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius: 22px;
  --radius-s: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 18px 50px -20px rgba(15, 46, 61, .35);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text);
  line-height: var(--lh);
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--sky-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); letter-spacing: -0.01em; }
p { margin: 0; }
p + p { margin-top: 1em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--navy); color: #fff; border-radius: 8px; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--slate); max-width: 38em; }
.section { padding-block: var(--section); }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { margin-bottom: .6rem; }
.section-head .lede { max-width: 32em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--sky); color: var(--navy); }
.btn-primary:hover { background: var(--sky-deep); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--sky-dark); }
.btn-white { background: #fff; color: var(--navy); box-shadow: 0 10px 30px -12px rgba(15, 46, 61, .5); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(15, 46, 61, .55); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  padding-block: .8rem;
  color: #fff;
  transition: background-color .3s, box-shadow .3s, padding .3s, color .3s;
}
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; }
.brand { display: block; margin-right: auto; line-height: 0; }
.brand img { height: 52px; width: auto; }
.brand .on-light { display: none; }
.site-header.scrolled { background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--navy); box-shadow: 0 8px 30px -18px rgba(15, 46, 61, .4); padding-block: .5rem; }
.site-header.scrolled .brand .on-dark { display: none; }
.site-header.scrolled .brand .on-light { display: block; }
.site-header.scrolled .brand img { height: 44px; }
.nav { display: none; }
.nav a { color: inherit; text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5rem .75rem; border-radius: 999px; transition: background-color .2s; }
.nav a:hover { background: rgba(255, 255, 255, .16); }
.site-header.scrolled .nav a:hover { background: var(--sky-mist); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.lang-toggle {
  border: 2px solid currentColor; background: transparent; border-radius: 999px;
  padding: .45rem .7rem; font-weight: 800; font-size: .8rem; letter-spacing: .04em; line-height: 1;
  transition: background-color .2s, color .2s;
}
.lang-toggle:hover { background: #fff; color: var(--navy); }
.site-header.scrolled .lang-toggle:hover { background: var(--navy); color: #fff; }
.btn-call { padding: .7rem 1.1rem; font-size: .9rem; }
.site-header:not(.scrolled) .btn-call { background: #fff; color: var(--navy); }
.site-header.scrolled .btn-call { background: var(--sky); color: var(--navy); }
.menu-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle span + span { margin-top: 6px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-nav {
  position: fixed; inset: 0; z-index: 40; background: var(--navy); color: #fff;
  display: grid; place-content: center; gap: .5rem; text-align: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.menu-open .mobile-nav { opacity: 1; visibility: visible; }
.mobile-nav a { color: #fff; text-decoration: none; font-size: 1.7rem; font-weight: 800; padding: .6rem 1rem; }
.mobile-nav a:hover { color: var(--sky); }
.menu-open { overflow: hidden; }
@media (min-width: 900px) {
  .nav { display: flex; gap: .15rem; }
  .menu-toggle, .mobile-nav { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  padding: calc(5.5rem + 4vh) 0 0;
  background: var(--sky);
  color: #fff;
  display: grid; align-content: center;
}
.sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.sun {
  position: absolute; width: 60vmax; height: 60vmax; right: -18vmax; top: -24vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 247, 214, .85) 0%, rgba(255, 247, 214, .35) 28%, rgba(255, 247, 214, 0) 62%);
  animation: sun-breathe 14s ease-in-out infinite alternate;
}
.cloud { position: absolute; fill: #fff; opacity: .38; will-change: transform; }
.cloud-1 { width: 38vw; max-width: 460px; top: 4%; left: -10%; animation: drift 80s linear infinite; animation-delay: -20s; }
.cloud-2 { width: 26vw; max-width: 320px; top: 74%; left: -20%; opacity: .3; animation: drift 110s linear infinite; animation-delay: -60s; }
.cloud-3 { width: 18vw; max-width: 220px; top: 13%; left: -15%; opacity: .26; animation: drift 140s linear infinite; animation-delay: -95s; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(130vw); } }
@keyframes sun-breathe { from { transform: scale(1); } to { transform: scale(1.08); } }

.hero-content { text-align: center; position: relative; z-index: 1; padding-bottom: clamp(7rem, 16vw, 11rem); }
.hero-logo { width: min(86vw, 560px); margin: 0 auto clamp(1.5rem, 4vw, 2.5rem); overflow: visible; }
.hero-logo path { fill: #fff; }
.hero h1 { font-size: var(--h1); text-shadow: 0 2px 20px rgba(15, 46, 61, .15); }
.hero .lede { color: rgba(255, 255, 255, .92); margin: 1rem auto 0; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2rem; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: auto; z-index: 0; }
.hero-foot .ground { fill: #fff; }
.hero-foot .skyline { fill: #fff; opacity: .5; }

/* hero logo build-in (the one orchestrated moment) */
#hl-roof, #hl-letters, #hl-ring, #hl-sub, #hl-tag, #hl-door { transform-box: fill-box; }
#hl-letters, #hl-ring { animation: rise 1s var(--ease) both; }
#hl-ring { animation-delay: .1s; }
#hl-roof { animation: roof-drop 1s var(--ease) .75s both; }
#hl-sub { animation: rise .9s var(--ease) .35s both; }
#hl-tag { animation: rise .9s var(--ease) .55s both; }
#hl-door { transform-origin: 100% 50%; animation: door-open 1.1s cubic-bezier(.3, 1.4, .4, 1) 1.15s both; }
.hero h1, .hero .lede, .cta-row { animation: rise .9s var(--ease) both; }
.hero h1 { animation-delay: 1.3s; }
.hero .lede { animation-delay: 1.45s; }
.cta-row { animation-delay: 1.6s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes roof-drop { from { opacity: 0; transform: translateY(-40px); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes door-open { from { opacity: 0; transform: scaleX(0.05) skewY(-12deg); } 50% { opacity: 1; } to { opacity: 1; transform: none; } }

/* ---------- cities marquee ---------- */
.cities { background: var(--sky-mist); border-block: 1px solid var(--line); padding-block: 1rem; overflow: hidden; }
.cities .wrap { display: flex; align-items: center; gap: 1.5rem; }
.cities-label { font-weight: 700; font-size: .9rem; white-space: nowrap; color: var(--slate); }
.marquee { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { white-space: nowrap; font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: 2.5rem; }
.marquee-track span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- services: three doors ---------- */
.doors { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .doors { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.door {
  position: relative; min-height: 400px; border-radius: var(--radius) var(--radius) 14px 14px;
  background: var(--sky-mist); border: 1px solid var(--line);
  perspective: 1400px; isolation: isolate;
}
@media (min-width: 720px) { .door { min-height: 440px; } }
.door-inside { position: absolute; inset: 0; padding: 2rem 1.5rem 2rem 3.1rem; display: flex; flex-direction: column; gap: .9rem; border-radius: inherit; }
.door-inside h3 { font-size: 1.35rem; }
.door-inside ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; color: var(--slate); font-size: .98rem; }
.door-inside li { display: flex; gap: .6rem; align-items: flex-start; }
.door-inside li::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: .55em; border-radius: 50%; background: var(--sky); }
.door-inside .btn { align-self: flex-start; margin-top: auto; }
.door-panel {
  position: absolute; inset: 0; border-radius: inherit; z-index: 2;
  background: linear-gradient(160deg, #5BC6EA, var(--sky) 55%, #2FA3CC);
  color: #fff; padding: 2rem 1.75rem; display: flex; flex-direction: column; justify-content: flex-end; gap: .6rem;
  transform-origin: left center; transform-style: preserve-3d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
  transition: transform .9s cubic-bezier(.3, .9, .3, 1), box-shadow .9s;
  cursor: pointer; border: 0; text-align: left; width: 100%;
}
.door-panel::before { /* raised panel, like a real door */
  content: ""; position: absolute; inset: 7.5rem 1.25rem 7.5rem; border: 1.5px solid rgba(255, 255, 255, .28); border-radius: 10px; pointer-events: none;
}
.door-panel > * { transition: opacity .35s; }
.door.open .door-panel > *, .door:focus-within .door-panel > * { opacity: 0; }
@media (hover: hover) { .door:hover .door-panel > * { opacity: 0; } }
.door-panel .door-icon { width: 64px; height: 64px; margin-bottom: auto; }
.door-panel h3 { font-size: 1.7rem; color: #fff; }
.door-panel p { color: rgba(255, 255, 255, .92); font-weight: 500; }
.door-panel .hint { font-size: .85rem; font-weight: 700; letter-spacing: .02em; opacity: .9; margin-top: .4rem; display: inline-flex; align-items: center; gap: .4rem; }
.door-panel .hint::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(246, 196, 83, .6); animation: knob-pulse 2.4s ease-out infinite; }
@keyframes knob-pulse { 0% { box-shadow: 0 0 0 0 rgba(246, 196, 83, .6); } 70% { box-shadow: 0 0 0 10px rgba(246, 196, 83, 0); } 100% { box-shadow: 0 0 0 0 rgba(246, 196, 83, 0); } }
.door-panel::after { /* edge of the door that catches light when open */
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(15, 46, 61, 0), rgba(15, 46, 61, .25)); opacity: 0; transition: opacity .9s;
}
.door.open .door-panel { transform: rotateY(-84deg); box-shadow: 30px 10px 40px -20px rgba(15, 46, 61, .5); }
.door.open .door-panel::after { opacity: 1; }
@media (hover: hover) {
  .door:hover .door-panel { transform: rotateY(-84deg); box-shadow: 30px 10px 40px -20px rgba(15, 46, 61, .5); }
  .door:hover .door-panel::after { opacity: 1; }
}
.door:focus-within .door-panel { transform: rotateY(-84deg); }

/* ---------- featured homes ---------- */
.homes { background: var(--sky-mist); }
.homes-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.carousel-nav { display: none; gap: .5rem; }
@media (min-width: 720px) { .carousel-nav { display: flex; } }
.carousel-nav button { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--navy); background: #fff; display: grid; place-items: center; transition: background-color .2s, color .2s; }
.carousel-nav button:hover { background: var(--navy); color: #fff; }
.carousel-nav svg { width: 20px; height: 20px; }
.homes-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 340px); gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .5rem 1.5rem; margin: 0 -.5rem;
  scrollbar-width: none;
}
.homes-track::-webkit-scrollbar { display: none; }
.home-card {
  scroll-snap-align: start; background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column;
  text-decoration: none; color: inherit; transition: transform .35s var(--ease), box-shadow .35s;
}
.home-card:hover { transform: translateY(-6px); }
.home-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sky-pale); }
.home-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.home-card:hover .home-media img { transform: scale(1.05); }
.home-status { position: absolute; top: .9rem; left: .9rem; background: #fff; color: var(--navy); font-size: .75rem; font-weight: 800; letter-spacing: .03em; padding: .35rem .65rem; border-radius: 999px; }
.home-status.sold { background: var(--navy); color: #fff; }
.home-status.pending { background: var(--sun); }
.home-body { padding: 1.1rem 1.25rem 1.35rem; display: grid; gap: .35rem; }
.home-price { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.home-addr { font-weight: 600; }
.home-city { color: var(--slate); font-size: .95rem; }
.home-specs { display: flex; gap: 1rem; margin-top: .5rem; color: var(--slate); font-size: .9rem; font-weight: 600; }
.home-specs span b { color: var(--navy); font-weight: 800; }
.homes-foot { margin-top: 1.5rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.homes-foot p { color: var(--slate); }
.homes-empty { padding: 2rem; background: #fff; border-radius: var(--radius); border: 1px dashed var(--line); color: var(--slate); }

/* ---------- about ---------- */
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.portrait { position: relative; width: min(100%, 380px); margin-inline: auto; }
.portrait-frame { border-radius: 200px 200px 24px 24px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--sky-pale); box-shadow: var(--shadow); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-roof { position: absolute; left: 50%; top: -14%; width: 118%; transform: translateX(-50%); fill: var(--sky); }
.about h2 { margin-bottom: 1rem; }
.about .lede { margin-bottom: 1.25rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem 1.5rem; margin: 1.75rem 0; padding: 0; list-style: none; }
.facts li { border-left: 3px solid var(--sky); padding-left: .9rem; }
.facts b { display: block; font-size: 1.05rem; }
.facts span { color: var(--slate); font-size: .9rem; }
.about-cta { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- the way home (path) ---------- */
.way { background: var(--navy); color: #fff; overflow: hidden; }
.way .lede { color: rgba(255, 255, 255, .8); }
.way-grid { position: relative; display: grid; gap: 2rem; }
@media (min-width: 860px) { .way-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.way-path { position: absolute; left: 0; right: 0; top: 1.5rem; width: 100%; height: 44px; pointer-events: none; display: none; z-index: 1; }
@media (min-width: 860px) { .way-path { display: block; } }
.way-path path { fill: none; stroke: var(--sky); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.way-path .draw { stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 2.4s var(--ease); }
.way.drawn .way-path .draw { stroke-dashoffset: 0; }
.step { position: relative; z-index: 0; display: grid; gap: .6rem; padding: 1.5rem 1.4rem 1.6rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-s); backdrop-filter: blur(4px); }
.step-n { position: relative; z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--navy); font-weight: 800; font-size: 1.05rem; box-shadow: 0 0 0 6px var(--navy); }
.step h3 { font-size: 1.15rem; color: #fff; }
.step p { color: rgba(255, 255, 255, .78); font-size: .97rem; }
.step:last-child .step-n { background: var(--sun); }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.contact-ways { display: grid; gap: .75rem; margin: 1.75rem 0; }
.way-link { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; color: var(--navy); background: #fff; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.way-link:hover { border-color: var(--sky); transform: translateY(-2px); box-shadow: var(--shadow); }
.way-link .ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--sky-mist); display: grid; place-items: center; color: var(--sky-dark); }
.way-link .ic svg { width: 22px; height: 22px; }
.way-link small { display: block; color: var(--slate); font-size: .85rem; }
.way-link b { font-size: 1.02rem; }
.office { color: var(--slate); font-size: .95rem; line-height: 1.7; }
.office b { color: var(--navy); }
.form { background: var(--sky-mist); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--navy); width: 100%;
  padding: .85rem 1rem; border-radius: 12px; border: 2px solid var(--line); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(75, 188, 227, .25); }
.field textarea { min-height: 130px; resize: vertical; }
.form .btn { justify-self: start; }
.form-note { font-size: .85rem; color: var(--slate); }
.form-status { display: none; padding: .9rem 1rem; border-radius: 12px; font-weight: 600; }
.form-status.ok { display: block; background: #E3F6EE; color: #146445; }
.form-status.err { display: block; background: #FBE7E4; color: #8E2A22; }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ---------- MLS search page ---------- */
.search-page { padding-top: 4.6rem; background: var(--sky-mist); }
.search-intro { padding: clamp(1.75rem, 4vw, 3rem) 0 1.25rem; }
.search-intro .wrap { display: grid; gap: 1rem; }
@media (min-width: 900px) { .search-intro .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.search-intro h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); margin-bottom: .5rem; }
.search-intro .lede { max-width: 44em; font-size: 1.05rem; }
.search-tools { display: flex; gap: .6rem; flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .85rem; color: var(--sky-dark); margin-bottom: .75rem; }
.live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(31, 157, 107, .5); animation: knob-pulse 2.2s ease-out infinite; }
.idx-frame-wrap { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.idx-frame { display: block; width: 100%; border: 0; height: max(640px, calc(100svh - 4.6rem)); background: #fff; }
.search-after { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.search-after .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.search-after p { color: var(--slate); max-width: 40em; }
.search-after .btns { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .8); padding: 3.5rem 0 2rem; font-size: .92rem; }
.footer-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer img { width: 220px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sky); }
.footer-note { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; font-size: .82rem; color: rgba(255, 255, 255, .62); }
.footer-note .eho { display: inline-flex; align-items: center; gap: .5rem; }
.footer-note .eho svg { width: 22px; height: 22px; }

/* ---------- section reveal (titles only) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .way-path .draw { stroke-dashoffset: 0; }
  .door-panel { transition: none; }
}
