/* ============================================================
   KADEN SHEEN P.A. — Sheen Real Estate Solutions
   Design system: "Polished light on water"
   Ink navy + warm ivory + champagne. Fraunces / Instrument Sans.
   ============================================================ */

:root {
  --ink: #0a1420;
  --ink-soft: #101c2b;
  --ink-40: rgba(10, 20, 32, 0.4);
  --ink-60: rgba(10, 20, 32, 0.62);
  --ivory: #f5f1e8;
  --ivory-dim: #ece6d8;
  --champagne: #c29a5b;
  --champagne-deep: #a97f3f;
  --sea: #14406e;
  --line: rgba(10, 20, 32, 0.12);
  --line-light: rgba(245, 241, 232, 0.16);
  --text-2: rgba(10, 20, 32, 0.64);
  --text-2-light: rgba(245, 241, 232, 0.66);

  --font-display: "Fraunces", serif;
  --font-body: "Instrument Sans", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.87, 0, 0.13, 1);

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section: clamp(5rem, 12vw, 11rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--champagne); color: var(--ink); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 380;
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 100;
}

.display-xl {
  font-size: clamp(3.2rem, 10.5vw, 9.5rem);
  line-height: 0.98;
}

.display-lg { font-size: clamp(2.6rem, 6.5vw, 5.5rem); }
.display-md { font-size: clamp(1.9rem, 4vw, 3.2rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--champagne-deep);
}

.on-dark .eyebrow { color: var(--champagne); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 34em;
}

.on-dark .lede, .on-dark p { color: var(--text-2-light); }

em.flourish {
  font-style: italic;
  font-variation-settings: "opsz" 100;
  color: var(--champagne);
}

/* ---------- Layout ---------- */

.container {
  width: min(100% - 2 * var(--gutter), 1440px);
  margin-inline: auto;
}

.section { padding-block: var(--section); }
.section-dark { background: var(--ink); color: var(--ivory); }
.section-ivory { background: var(--ivory); }
.section-dim { background: var(--ivory-dim); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.5vw, 2.5rem);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.5s var(--ease-out), backdrop-filter 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(10, 20, 32, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
}

.brand img { height: 40px; width: auto; }

.main-nav { display: flex; gap: 2.2rem; align-items: center; }

.main-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
  position: relative;
  padding-block: 0.3rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--champagne);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  border: 1px solid var(--champagne);
  padding: 0.65rem 1.4rem !important;
  border-radius: 100px;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--champagne); color: var(--ink) !important; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  z-index: 110;
  width: 44px; height: 44px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--ivory);
  transition: transform 0.4s var(--ease-out), opacity 0.3s, top 0.4s var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s var(--ease-out);
  }
  .main-nav a { font-size: 1.1rem; }
  .nav-open .main-nav { opacity: 1; pointer-events: auto; }
  .nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  background: var(--ink);
  color: var(--ivory);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s var(--ease-out), transform 2.8s var(--ease-out);
}
.hero.loaded .hero-media img { opacity: 0.42; transform: scale(1); }

.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,20,32,0.55) 0%, rgba(10,20,32,0.15) 45%, rgba(10,20,32,0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 var(--gutter) clamp(3rem, 7vh, 6rem);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.hero-kicker .rule {
  width: 56px; height: 1px;
  background: var(--champagne);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease-out) 0.9s;
}
.hero.loaded .hero-kicker .rule { transform: scaleX(1); }

.hero h1 { max-width: 11em; }

.line-mask { overflow: hidden; display: block; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line-mask > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
}
.hero.loaded .line-mask > span { transform: translateY(0); }
.hero .line-mask:nth-child(1) > span { transition-delay: 0.15s; }
.hero .line-mask:nth-child(2) > span { transition-delay: 0.27s; }
.hero .line-mask:nth-child(3) > span { transition-delay: 0.39s; }

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(2rem, 5vh, 3.5rem);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out) 0.75s, transform 0.9s var(--ease-out) 0.75s;
}
.hero.loaded .hero-foot { opacity: 1; transform: none; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-2-light);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.hero-scroll::after {
  content: "";
  width: 1px; height: 44px;
  background: linear-gradient(var(--champagne), transparent);
  animation: scrollPulse 2.2s var(--ease-inout) infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.9rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease-out), background 0.4s var(--ease-out), color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn .arrow { transition: transform 0.4s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-champagne { background: var(--champagne); color: var(--ink); }
.btn-champagne:hover { background: var(--ivory); }

.btn-ghost-light { border-color: rgba(245,241,232,0.4); color: var(--ivory); }
.btn-ghost-light:hover { border-color: var(--champagne); color: var(--champagne); }

.btn-ink { background: var(--ink); color: var(--ivory); }
.btn-ink:hover { background: var(--sea); }

.btn-ghost-dark { border-color: var(--ink-40); color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--champagne-deep); color: var(--champagne-deep); }

/* ---------- Stats band ---------- */

.stats-band {
  background: var(--ink);
  color: var(--ivory);
  border-top: 1px solid var(--line-light);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 350;
  letter-spacing: -0.02em;
  color: var(--champagne);
  line-height: 1;
}
.stat .label {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2-light);
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
  background: var(--ivory);
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 3.5rem;
  animation: marquee 30s linear infinite;
  will-change: transform;
}
.marquee span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--ink-60);
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
}
.marquee span::after { content: "✦"; font-size: 0.7rem; color: var(--champagne); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Section headers ---------- */

.section-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head .eyebrow { display: block; margin-bottom: 1.2rem; }
.section-head.split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

/* ---------- About / editorial ---------- */

.about-grid { align-items: center; }
.about-media { grid-column: 1 / span 5; position: relative; }
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: 2px;
}
.about-media::before {
  content: "";
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border: 1px solid var(--champagne);
  border-radius: 2px;
  z-index: -1;
}
.about-copy { grid-column: 7 / span 6; }
.about-copy .sig {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--champagne-deep);
  margin-top: 2rem;
}
@media (max-width: 900px) {
  .about-media, .about-copy { grid-column: 1 / -1; }
  .about-copy { margin-top: 2.5rem; }
}

/* ---------- Neighborhoods ---------- */

.hoods { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(0.9rem, 1.6vw, 1.5rem); }
.hood-card {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background: var(--ink);
  color: var(--ivory);
  display: flex;
  align-items: flex-end;
  min-height: clamp(300px, 42vw, 480px);
}
.hood-card:nth-child(1) { grid-column: 1 / span 7; }
.hood-card:nth-child(2) { grid-column: 8 / span 5; }
.hood-card:nth-child(3) { grid-column: 1 / span 5; }
.hood-card:nth-child(4) { grid-column: 6 / span 7; }
@media (max-width: 760px) { .hood-card { grid-column: 1 / -1 !important; min-height: 300px; } }

.hood-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: transform 1.2s var(--ease-out), opacity 0.6s var(--ease-out);
  will-change: transform;
}
.hood-card:hover img { transform: scale(1.05); opacity: 0.55; }
.hood-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,20,32,0.85) 100%);
}
.hood-body {
  position: relative;
  z-index: 1;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.hood-body h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
}
.hood-body .go {
  flex: none;
  width: 46px; height: 46px;
  border: 1px solid rgba(245,241,232,0.45);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.hood-card:hover .go { background: var(--champagne); border-color: var(--champagne); color: var(--ink); transform: rotate(45deg); }

/* ---------- Testimonials ---------- */

.quote-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(420px, 82vw);
  gap: clamp(1rem, 2vw, 1.8rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--champagne) transparent;
}
.quote-card {
  scroll-snap-align: start;
  background: var(--ink-soft);
  border: 1px solid var(--line-light);
  border-radius: 3px;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.quote-card .mark {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.5;
  color: var(--champagne);
}
.quote-card p { font-size: 1.02rem; }
.quote-card cite {
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-top: auto;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
  overflow: hidden;
}
.cta-band .display-lg { max-width: 14em; margin-inline: auto; }
.cta-band .actions {
  margin-top: 2.8rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(ellipse at 50% 120%, rgba(194,154,91,0.22), transparent 55%);
  pointer-events: none;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--ivory);
  border-top: 1px solid var(--line-light);
  padding-top: var(--section);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 4rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 1.4rem;
}
.site-footer ul { list-style: none; display: grid; gap: 0.7rem; }
.site-footer ul a { color: var(--text-2-light); font-size: 0.95rem; transition: color 0.3s; }
.site-footer ul a:hover { color: var(--champagne); }
.footer-brand img { height: 52px; width: auto; margin-bottom: 1.4rem; }
.footer-brand p { color: var(--text-2-light); font-size: 0.95rem; max-width: 30em; }

.footer-legal {
  border-top: 1px solid var(--line-light);
  padding-block: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(245,241,232,0.45);
}
.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(245,241,232,0.4);
  max-width: 70em;
  padding-bottom: 2rem;
  line-height: 1.6;
}

.socials { display: flex; gap: 0.8rem; margin-top: 1.6rem; }
.socials a {
  width: 40px; height: 40px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ivory);
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out), color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.socials a:hover { background: var(--champagne); border-color: var(--champagne); color: var(--ink); transform: translateY(-3px); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  background: var(--ink);
  color: var(--ivory);
  padding: clamp(9rem, 20vh, 13rem) 0 clamp(3rem, 7vh, 5rem);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 120%;
  background: radial-gradient(ellipse at 80% 100%, rgba(20,64,110,0.35), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { display: block; margin-bottom: 1.2rem; }
.page-hero .lede { margin-top: 1.6rem; }

/* ---------- MBB widget frame ---------- */

.widget-frame {
  background: #fff;
  border-radius: 4px;
  padding: clamp(1rem, 3vw, 2.5rem);
  box-shadow: 0 30px 80px -30px rgba(10, 20, 32, 0.25);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ---------- Team cards ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.team-card:hover { transform: translateY(-6px); box-shadow: 0 28px 64px -24px rgba(10,20,32,0.3); }
.team-photo { aspect-ratio: 1 / 1; overflow: hidden; background: var(--ink); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-meta { padding: 1.6rem 1.6rem 1.8rem; }
.team-meta h3 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.team-meta .role { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--champagne-deep); margin-bottom: 1.1rem; }
.team-contact {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.9rem; color: var(--text-2);
  margin-top: 0.55rem; transition: color 0.3s;
  word-break: break-word;
}
.team-contact svg { flex: none; color: var(--champagne-deep); }
.team-contact:hover { color: var(--ink); }
.team-contact.big { font-size: 1.02rem; font-weight: 500; color: var(--ink); }

/* Broker feature */
.broker-feature {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.broker-photo { border-radius: 4px; overflow: hidden; position: relative; }
.broker-photo::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(transparent, rgba(10,20,32,0.28)); z-index: 1;
}
.broker-photo img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.broker-copy .role-line { font-size: 0.85rem; letter-spacing: 0.06em; color: var(--champagne-deep); margin-top: 0.5rem; font-weight: 500; }
@media (max-width: 760px) {
  .broker-feature { grid-template-columns: 1fr; }
  .broker-photo { max-width: 300px; }
}

/* Google reviews badge */
.google-badge {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  box-shadow: 0 30px 80px -40px rgba(10, 20, 32, 0.3);
  max-width: 640px;
  margin-inline: auto;
}
.gb-brand { display: inline-flex; align-items: center; gap: 0.7rem; font-size: 1.05rem; font-weight: 600; letter-spacing: 0.01em; }
.gb-rating { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin-top: 1.2rem; }
.gb-rating strong { font-family: var(--font-display); font-size: 2.8rem; font-weight: 400; line-height: 1; }
.gb-stars { display: inline-flex; gap: 0.15rem; }
.gb-verified { font-size: 0.9rem; color: var(--text-2); margin-top: 0.9rem; }
.gb-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---------- Prose (blog, content pages) ---------- */

.prose { max-width: 46em; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 2.4em 0 0.8em; }
.prose h3 { font-size: 1.3rem; margin: 2em 0 0.6em; }
.prose p { margin-bottom: 1.2em; color: var(--text-2); }
.prose ul, .prose ol { margin: 0 0 1.4em 1.4em; color: var(--text-2); }
.prose li { margin-bottom: 0.5em; }

/* ---------- Contact ---------- */

.contact-grid { align-items: start; }
.contact-info { grid-column: 1 / span 5; }
.contact-form-wrap { grid-column: 7 / span 6; }
@media (max-width: 900px) {
  .contact-info, .contact-form-wrap { grid-column: 1 / -1; }
  .contact-form-wrap { margin-top: 3rem; }
}

.info-row { display: flex; gap: 1.2rem; padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
.info-row .ico { color: var(--champagne-deep); flex: none; padding-top: 0.2rem; }
.info-row .label { font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-2); margin-bottom: 0.2rem; }
.info-row a, .info-row .val { font-size: 1.1rem; font-weight: 500; }
.info-row a:hover { color: var(--champagne-deep); }

.form-field { margin-bottom: 1.4rem; }
.form-field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 0.5rem;
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  font: inherit;
  padding: 0.9rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--champagne);
  box-shadow: 0 0 0 3px rgba(194,154,91,0.18);
}
.form-consent { font-size: 0.75rem; color: var(--text-2); line-height: 1.6; margin-block: 1.2rem; }

/* ---------- Blog cards ---------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(1.4rem, 2.5vw, 2.2rem);
}
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px -24px rgba(10,20,32,0.22); }
.post-card time { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--champagne-deep); }
.post-card h3 { font-size: 1.45rem; line-height: 1.15; }
.post-card p { font-size: 0.95rem; color: var(--text-2); }
.post-card .more { margin-top: auto; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); display: inline-flex; gap: 0.5rem; align-items: center; }
.post-card:hover .more { color: var(--champagne-deep); }

/* ---------- WhatsApp float ---------- */

.wa-float {
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.4);
  transition: transform 0.35s var(--ease-out);
}
.wa-float:hover { transform: scale(1.08) translateY(-2px); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Utility ---------- */

.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.center { text-align: center; }

/* ---------- MLS listings ---------- */

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.6rem);
}

.listing-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  color: inherit;
  box-shadow: 0 24px 60px -34px rgba(10, 20, 32, 0.42);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
a.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 38px 80px -34px rgba(10, 20, 32, 0.5);
}

.lc-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ivory-dim);
}
.lc-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
a.listing-card:hover .lc-media img { transform: scale(1.05); }
.lc-noimg {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--ivory-dim), var(--ivory));
}

.lc-status, .lc-status.static {
  position: absolute;
  top: 1rem; left: 1rem;
  background: rgba(10, 20, 32, 0.86);
  color: var(--ivory);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.42rem 0.8rem;
  border-radius: 2px;
  backdrop-filter: blur(6px);
}
.lc-status.static { position: static; display: inline-block; margin-bottom: 1rem; }
.lc-count {
  position: absolute;
  bottom: 1rem; right: 1rem;
  background: rgba(10, 20, 32, 0.6);
  color: var(--ivory);
  font-size: 0.68rem;
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
}

.lc-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.lc-price {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap;
}
.lc-sold {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--champagne-deep);
}
.lc-address { font-size: 1rem; font-weight: 600; font-family: var(--font-body); letter-spacing: -0.005em; }
.lc-place { font-size: 0.88rem; color: var(--text-2); }
.lc-specs {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  list-style: none; margin-top: 0.4rem;
  font-size: 0.82rem; color: var(--ink-60);
}
.lc-specs li:not(:last-child)::after { content: "·"; margin-left: 0.55rem; color: var(--ink-40); }
.lc-courtesy {
  margin-top: auto; padding-top: 0.9rem;
  font-size: 0.68rem; color: var(--ink-40); line-height: 1.5;
}

.listing-count {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-2); white-space: nowrap;
}
.listing-empty {
  padding: clamp(2.5rem, 6vw, 5rem) 1rem;
  text-align: center; color: var(--text-2);
  background: #fff; border-radius: 4px;
}
.listing-empty a { color: var(--champagne-deep); font-weight: 600; }

.idx-disclaimer {
  font-size: 0.7rem; line-height: 1.7; color: var(--ink-40);
  border-top: 1px solid var(--line); padding-top: 1.6rem;
}

/* ---------- Search filters ---------- */

.mls-filters {
  background: #fff;
  border-radius: 4px;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  box-shadow: 0 30px 80px -34px rgba(10, 20, 32, 0.28);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0 1.2rem;
  align-items: end;
}
.filter-row .form-field.grow { grid-column: span 2; }
.filter-row .form-field.actions { display: flex; gap: 0.7rem; align-items: center; margin-bottom: 1.4rem; }
.filter-row .form-field.actions .btn { flex: 1; justify-content: center; }
@media (max-width: 640px) {
  .filter-row .form-field.grow { grid-column: span 1; }
  .filter-row .form-field.actions { flex-direction: column; }
  .filter-row .form-field.actions .btn { width: 100%; }
}

.mls-summary {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 1.6rem; min-height: 1.2em;
}
.mls-loading {
  height: 260px; border-radius: 4px;
  background: linear-gradient(100deg, var(--ivory-dim) 30%, #fff 50%, var(--ivory-dim) 70%);
  background-size: 300% 100%;
  animation: mls-shimmer 1.4s linear infinite;
}
@keyframes mls-shimmer { to { background-position: -300% 0; } }

/* ---------- Listing detail ---------- */

.crumbs { font-size: 0.76rem; color: var(--text-2); margin-bottom: 1.8rem; }
.crumbs a { color: var(--ink-60); }
.crumbs a:hover { color: var(--champagne-deep); }
.crumbs span { margin: 0 0.5rem; color: var(--ink-40); }
.crumbs em { font-style: normal; color: var(--ink); }

.ld-gallery { margin-bottom: clamp(2rem, 4vw, 3rem); }
.ld-hero {
  aspect-ratio: 16 / 9;
  border-radius: 4px; overflow: hidden;
  background: var(--ivory-dim);
}
.ld-hero-img { width: 100%; height: 100%; object-fit: cover; }
.ld-thumbs {
  display: flex; gap: 0.6rem; margin-top: 0.6rem;
  overflow-x: auto; padding-bottom: 0.4rem;
  scrollbar-width: thin;
}
.ld-thumb {
  flex: 0 0 clamp(88px, 12vw, 136px);
  aspect-ratio: 4 / 3;
  border: none; padding: 0; cursor: pointer;
  border-radius: 3px; overflow: hidden;
  opacity: 0.72; transition: opacity 0.3s;
  background: var(--ivory-dim);
}
.ld-thumb:hover, .ld-thumb:focus-visible { opacity: 1; }
.ld-thumb img { width: 100%; height: 100%; object-fit: cover; }

.ld-head {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: start;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 860px) { .ld-head { grid-template-columns: 1fr; } }
.ld-place { color: var(--text-2); margin-top: 0.6rem; }
.ld-specs {
  display: flex; flex-wrap: wrap; gap: 1.6rem;
  list-style: none; margin-top: 1.6rem;
}
.ld-specs strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; display: block; }
.ld-specs span { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }

.ld-price-box {
  background: #fff; border-radius: 4px;
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: 0 24px 60px -34px rgba(10, 20, 32, 0.4);
  display: flex; flex-direction: column; gap: 0.9rem;
}
.ld-price {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 500; letter-spacing: -0.02em;
}
.ld-price-box .btn { justify-content: center; }
.ld-call { font-size: 0.8rem; color: var(--text-2); text-align: center; }
.ld-call:hover { color: var(--champagne-deep); }

.ld-remarks { padding-block: clamp(2rem, 4vw, 3rem); max-width: 68ch; }
.ld-remarks p { color: var(--text-2); margin-top: 1rem; }

.ld-facts { padding-bottom: clamp(2rem, 4vw, 3rem); }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0; margin-top: 1.8rem;
}
.fact { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.fact dt { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
.fact dd { font-size: 1rem; margin-top: 0.3rem; }

.ld-map { padding-bottom: 1.6rem; }
.ld-map a { color: var(--champagne-deep); font-weight: 600; font-size: 0.9rem; }
.ld-courtesy { font-size: 0.78rem; color: var(--ink-40); border-top: 1px solid var(--line); padding-top: 1.4rem; }

/* ---------- Market report ---------- */

.mkt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.mkt-card {
  background: #fff; border-radius: 4px;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: 0 24px 60px -34px rgba(10, 20, 32, 0.4);
}
.mkt-card h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; margin-bottom: 1.2rem; }
.mkt-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.mkt-row dt { font-size: 0.78rem; color: var(--text-2); }
.mkt-row dd { font-size: 0.95rem; font-weight: 600; white-space: nowrap; }
.mkt-link { display: inline-block; margin-top: 1.2rem; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--champagne-deep); font-weight: 600; }
.mkt-note { margin-top: 2.4rem; font-size: 0.76rem; color: var(--text-2); }

/* ---------- Listing alerts form ---------- */

.alerts-form-wrap {
  background: #fff; border-radius: 4px;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  box-shadow: 0 30px 80px -34px rgba(10, 20, 32, 0.28);
  max-width: 760px; margin-inline: auto;
}
.alerts-form-wrap.wide { max-width: 640px; }
.alerts-form .btn { width: 100%; justify-content: center; margin-top: 0.6rem; }
.alerts-note { font-size: 0.78rem; color: var(--text-2); margin-top: 1.2rem; text-align: center; line-height: 1.6; }

/* Pages that open on a light background need the header to be legible immediately. */
body.light-top .site-header {
  background: rgba(10, 20, 32, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line-light);
}
body.light-top main > .section:first-child { padding-top: calc(var(--section) * 0.45 + 72px); }
