/* =====================================================================
   Typography: Playfair Display (titles) + Avenir (all other text).
   Avenir is a licensed font: it displays on Apple devices automatically.
   Everywhere else, Nunito Sans (a close free match) is used. To serve
   real Avenir everywhere, license the webfont (e.g. from fonts.com) and
   add its @font-face here.
   ===================================================================== */
:root {
  --navy: #000000;
  --navy-2: #1a1a1a;
  --ink: #1c1c1c;
  --body: #444;
  --muted: #767676;
  --line: #e3ded4;
  --cream: #f7f4ee;
  --sand: #efe9de;
  --white: #fff;
  --gold: #a8854f;
  --gold-light: #c9ab7a;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Avenir", "Avenir Next", "Nunito Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 10vw, 140px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--body);
  font-family: var(--sans); font-size: 16px; line-height: 1.75; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
address { font-style: normal; }

h1, h2, h3, h4, .display {
  font-family: var(--serif); color: var(--ink); font-weight: 400;
  line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
h4 { font-size: 1.2rem; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold); }

.eyebrow {
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2em;
}
.lede { font-size: 1.15rem; line-height: 1.8; color: var(--body); max-width: 680px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.section { padding: var(--section) 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: rgba(255,255,255,.78); }
.section-navy h2, .section-navy h3 { color: #fff; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.rule { width: 56px; height: 1px; background: var(--gold); border: 0; margin: 28px 0; }
.center .rule { margin-left: auto; margin-right: auto; }

.section-title { text-align: center; margin-bottom: clamp(40px, 5vw, 72px); }
.section-title h2 { margin-bottom: .3em; }
.section-title .text-link { display: inline-block; margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  padding: 18px 34px; border: 1px solid var(--ink); color: var(--ink); background: transparent;
  cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-solid { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-solid:hover { background: var(--gold); border-color: var(--gold); }
.btn[disabled] { opacity: .6; cursor: wait; }
.text-link {
  font-size: .72rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--ink);
  border-bottom: 1px solid var(--gold); padding-bottom: 4px; transition: color .3s;
}
.text-link:hover { color: var(--gold); }
.section-navy .text-link { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); color: var(--ink);
  border-bottom: 1px solid var(--line); transition: background .4s var(--ease), border-color .4s, box-shadow .4s, color .4s;
}
.site-header.is-over-hero { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; color: #fff; }
.site-header.is-over-hero.is-scrolled { background: rgba(255,255,255,.98); color: var(--ink); border-color: var(--line); box-shadow: 0 6px 30px rgba(0,0,0,.06); }
body.menu-open .site-header { background: transparent !important; color: #fff !important; border-color: transparent !important; box-shadow: none !important; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1560px; margin: 0 auto; padding: 22px var(--gutter); position: relative; z-index: 2; }
.site-header.is-scrolled .header-inner { padding-top: 16px; padding-bottom: 16px; }
.header-right { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav { display: flex; gap: clamp(18px, 2.2vw, 36px); align-items: center; }
.nav a, .nav-phone {
  font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; position: relative; padding: 6px 0;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { right: 0; }
.nav-phone { padding-left: clamp(18px, 2.4vw, 40px); border-left: 1px solid currentColor; border-left-color: rgba(127,127,127,.35); }
.wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.wordmark-name { font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.5rem); letter-spacing: .16em; text-transform: uppercase; }
.wordmark-sub { font-size: .56rem; letter-spacing: .38em; text-transform: uppercase; margin-top: 7px; opacity: .8; }
.menu-toggle { display: flex; align-items: center; gap: 14px; background: none; border: 0; color: inherit; cursor: pointer; padding: 8px 0; font: inherit; }
.menu-label { font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.menu-icon { width: 28px; height: 14px; position: relative; display: block; }
.menu-icon span { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.menu-icon span:nth-child(1) { top: 0; } .menu-icon span:nth-child(2) { top: 6.5px; left: 8px; } .menu-icon span:nth-child(3) { top: 13px; }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Full-screen menu overlay */
.site-menu { position: fixed; inset: 0; z-index: 1; background: var(--navy); color: #fff; overflow-y: auto; animation: menuIn .45s var(--ease); }
@keyframes menuIn { from { opacity: 0; } to { opacity: 1; } }
.site-menu-inner { max-width: 1240px; margin: 0 auto; min-height: 100%; padding: 140px var(--gutter) 64px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: center; }
.site-menu-nav { display: flex; flex-direction: column; }
.site-menu-nav a { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.25; padding: 6px 0; color: rgba(255,255,255,.88); transition: color .3s, padding-left .4s var(--ease); }
.site-menu-nav a:hover, .site-menu-nav a[aria-current] { color: var(--gold-light); padding-left: 12px; }
.site-menu-aside { border-left: 1px solid rgba(255,255,255,.15); padding-left: 48px; color: rgba(255,255,255,.72); font-size: .95rem; }
.site-menu-name { font-family: var(--serif); font-size: 1.8rem; color: #fff; margin-bottom: .3em; }
.site-menu-aside a:not(.btn):hover { color: var(--gold-light); }
@media (max-width: 1180px) { .nav, .nav-phone { display: none; } }
@media (max-width: 800px) { .site-menu-inner { grid-template-columns: 1fr; padding-top: 110px; gap: 40px; } .site-menu-aside { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.15); padding-top: 32px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background-color: var(--navy);
}
.hero-media {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  background-image: var(--img, none), radial-gradient(120% 80% at 70% 20%, #4a4a4a 0%, #1f1f1f 45%, #0a0a0a 100%);
  transform: scale(1.04); animation: heroZoom 18s var(--ease) forwards;
}
.hero video.hero-media { width: 100%; height: 100%; object-fit: cover; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.08) 35%, rgba(0,0,0,.65) 100%); }
.hero-content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(64px, 12vh, 140px); }
.hero.hero-center { align-items: center; text-align: center; }
.hero.hero-center .hero-content { padding: 120px var(--gutter) 80px; }
.hero.hero-center h1 { max-width: 16ch; margin-left: auto; margin-right: auto; font-size: clamp(2.8rem, 6.4vw, 5.8rem); }
.hero.hero-center .hero-actions { justify-content: center; }
.hero h1 { color: #fff; max-width: 14ch; margin-bottom: .35em; }
.hero .eyebrow { color: var(--gold-light); }
.hero p.hero-sub { font-size: 1.1rem; max-width: 520px; color: rgba(255,255,255,.88); margin-bottom: 2.2em; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); bottom: 28px; font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 12px; color: rgba(255,255,255,.85); }
.scroll-cue::after { content: ""; width: 1px; height: 54px; background: linear-gradient(rgba(255,255,255,.8), rgba(255,255,255,0)); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.page-hero { position: relative; min-height: 64vh; display: flex; align-items: center; text-align: center; color: #fff; overflow: hidden; background: var(--navy); }
.page-hero .hero-content { padding-top: 160px; }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.6rem); max-width: 18ch; margin-left: auto; margin-right: auto; }
.page-hero .hero-content { padding-bottom: 40px; }

.page-intro { padding: clamp(56px, 8vw, 96px) 0 0; }

/* ---------- Placeholder art (shown until you add photos) ---------- */
.ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,.06) 0 1px, transparent 1px 100%) 0 0 / 22px 22px,
    radial-gradient(120% 90% at 30% 10%, #3d3d3d 0%, #1a1a1a 55%, #000000 100%);
}
.ph span { font-family: var(--serif); font-style: italic; color: rgba(255,255,255,.55); font-size: 1.4rem; letter-spacing: .02em; }

/* ---------- Split / intro ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split-media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--sand); }
.split-media img { width: 100%; height: 100%; object-fit: cover; object-position: 54% 25%; }
.split-media::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.35); z-index: 2; pointer-events: none; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-media { aspect-ratio: 4/3; } }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar { background: #fff; padding: clamp(32px, 4vw, 56px); transition: background .4s var(--ease); }
.pillar:hover { background: var(--cream); }
.pillar .num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.1rem; display: block; margin-bottom: 18px; }
.pillar p { font-size: .95rem; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Property cards ---------- */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(28px, 3vw, 44px); }
.prop-card { display: flex; flex-direction: column; }
.prop-media { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--navy); }
.prop-media img, .prop-media .ph { transition: transform 1.1s var(--ease); }
.prop-media img { width: 100%; height: 100%; object-fit: cover; }
.prop-card:hover .prop-media img, .prop-card:hover .prop-media .ph { transform: scale(1.05); }
.prop-status, .prop-sample { position: absolute; top: 16px; z-index: 2; font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; padding: 7px 12px; }
.prop-status { left: 16px; background: rgba(255,255,255,.94); color: var(--ink); }
.prop-sample { right: 16px; background: var(--gold); color: #fff; }
.prop-body { padding: 24px 0 0; }
.prop-price { font-family: var(--serif); font-size: 1.55rem; color: var(--ink); margin-bottom: .2em; }
.prop-title { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: .3em; }
.prop-title a:hover { color: var(--gold); }
.prop-city { color: var(--muted); font-size: .9rem; margin-bottom: .6em; }
.prop-facts { font-size: .85rem; color: var(--body); border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: .5em; }
.prop-courtesy { font-size: .72rem; color: var(--muted); }
.empty { color: var(--muted); }

/* ---------- Neighborhood tiles ---------- */
.hood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hood-tile { position: relative; aspect-ratio: 3/4; overflow: hidden; color: #fff; display: flex; align-items: flex-end; padding: 28px; background: var(--navy); }
.hood-tile .ph, .hood-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hood-tile .ph span { display: none; }
.hood-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.75)); }
.hood-tile:hover .ph, .hood-tile:hover img { transform: scale(1.06); }
.hood-tile > div { position: relative; z-index: 2; }
.hood-tile h3 { color: #fff; margin: 0 0 .3em; }
.hood-tile .text-link { color: #fff; }
.hood-tile:nth-child(2) { margin-top: 48px; }
@media (max-width: 860px) { .hood-grid { grid-template-columns: 1fr 1fr; } .hood-tile:nth-child(2) { margin-top: 0; } }
@media (max-width: 520px) { .hood-grid { grid-template-columns: 1fr; } .hood-tile { aspect-ratio: 4/3; } }

/* ---------- Featured area tiles (home) ---------- */
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.area-tile { position: relative; aspect-ratio: 4/5; overflow: hidden; color: #fff; display: flex; align-items: flex-end; padding: 26px; background: var(--navy); }
.area-tile .ph, .area-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.area-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.75)); }
.area-tile:hover .ph, .area-tile:hover img { transform: scale(1.06); }
.area-tile > div { position: relative; z-index: 2; }
.area-tile h3 { color: #fff; margin: 0 0 .4em; }
.area-tile .eyebrow { color: var(--gold-light); margin-bottom: .6em; }
.area-tile .text-link { color: #fff; }
@media (max-width: 960px) { .area-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .area-grid { grid-template-columns: 1fr; } .area-tile { aspect-ratio: 16/10; } }

/* ---------- Neighborhoods page ---------- */
.hood-index { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hood-index a { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.hood-index a:hover { color: var(--gold); }
.hood-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; padding: clamp(56px, 8vw, 110px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.hood-row:nth-child(even) .hood-media { order: 2; }
.hood-media { position: relative; aspect-ratio: 5/4; overflow: hidden; background: var(--navy); }
.hood-media img { width: 100%; height: 100%; object-fit: cover; }
.hood-facts { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; font-size: .9rem; }
.hood-facts li { border-top: 1px solid var(--line); padding-top: 10px; }
.hood-facts b { display: block; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
@media (max-width: 860px) { .hood-row { grid-template-columns: 1fr; } .hood-row:nth-child(even) .hood-media { order: 0; } }

/* ---------- Quote / CTA band ---------- */
.band { position: relative; padding: clamp(96px, 14vw, 180px) 0; color: #fff; text-align: center; overflow: hidden; background: var(--navy); }
.band .ph { z-index: 0; }
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.band:has(.band-img)::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,.58); }
.band .container { position: relative; z-index: 2; }
.band h2 { color: #fff; max-width: 20ch; margin-left: auto; margin-right: auto; }
.band p { color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 2em; }

/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(32px, 4vw, 56px); }
.post-media { position: relative; display: block; aspect-ratio: 3/2; overflow: hidden; background: var(--navy); margin-bottom: 22px; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card h3 a:hover { color: var(--gold); }
.post-card .eyebrow { margin-bottom: .8em; }

.article { padding: clamp(56px, 8vw, 100px) 0; }
.article h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.6em; }
.article h3 { margin-top: 1.4em; }
.article p, .article li { font-size: 1.05rem; }
.article ul, .article ol { padding-left: 1.2em; margin: 0 0 1.4em; }
.article li { margin-bottom: .5em; }
.article blockquote { margin: 2em 0; padding: 0 0 0 28px; border-left: 1px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--ink); line-height: 1.5; }
.article a { color: var(--gold); border-bottom: 1px solid currentColor; }
.article .note { background: var(--cream); padding: 22px 26px; font-size: .9rem; }
.post-meta { color: var(--muted); font-size: .85rem; }

/* ---------- Search / IDX ---------- */
.idx-frame { width: 100%; min-height: 1400px; border: 0; display: block; }
.idx-pending { border: 1px solid var(--line); background: var(--cream); padding: clamp(28px, 5vw, 64px); }
.search-form { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 32px; }
.search-form label { display: flex; flex-direction: column; background: #fff; padding: 14px 18px; font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.search-form input, .search-form select { border: 0; padding: 6px 0 0; font: inherit; font-size: .95rem; letter-spacing: 0; text-transform: none; color: var(--ink); background: transparent; font-weight: 400; }
.search-form .btn { border: 0; }
@media (max-width: 900px) { .search-form { grid-template-columns: 1fr 1fr; } .search-form label:first-child, .search-form .btn { grid-column: 1 / -1; } }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.quick-links a { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; border: 1px solid var(--line); padding: 10px 16px; background: #fff; transition: border-color .3s, color .3s; }
.quick-links a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid #cfc8ba; background: transparent; padding: 10px 0;
  font: inherit; color: var(--ink); border-radius: 0; transition: border-color .3s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .75rem; line-height: 1.6; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--navy); width: 16px; height: 16px; flex: none; }
.form-status { font-size: .9rem; margin: 0; }
.form-status.ok { color: #2f6b3a; } .form-status.err { color: #9b2c2c; }
.hidden-field { display: none; }
.section-navy .field input, .section-navy .field select, .section-navy .field textarea { color: #fff; border-bottom-color: rgba(255,255,255,.3); }
.section-navy .field select option { color: var(--ink); }
.section-navy .consent, .section-navy .field label { color: rgba(255,255,255,.6); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 7vw, 110px); }
.contact-card p { margin-bottom: .4em; }
.contact-card .big { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.legal h2 { font-size: 1.6rem; margin-top: 2em; }
.legal p, .legal li { font-size: .98rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.66); font-size: .9rem; }
.footer-cta { position: relative; padding: clamp(80px, 11vw, 140px) 0; border-bottom: 1px solid rgba(255,255,255,.1);
  background: radial-gradient(90% 120% at 50% 0%, #333333 0%, var(--navy) 70%); }
.footer-cta h2 { color: #fff; max-width: 20ch; margin: 0 auto .9em; }
.footer-top { padding-top: clamp(64px, 8vw, 100px); padding-bottom: 48px; text-align: center; }
.footer-logo { display: inline-flex; flex-direction: column; align-items: center; color: #fff; }
.footer-name { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: .16em; text-transform: uppercase; line-height: 1.1; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; margin: 44px 0 56px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-nav a { font-size: .66rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.85); transition: color .3s; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.footer-col address { line-height: 1.9; }
.footer-col strong { color: #fff; font-weight: 600; }
.footer-col a:hover, .footer-social a:hover, .legal-links a:hover, .footer-nav a:hover { color: var(--gold-light); }
.footer-social { display: flex; gap: 20px; justify-content: center; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 36px; padding-bottom: 48px; font-size: .72rem; line-height: 1.75; color: rgba(255,255,255,.5); }
.footer-legal p { margin-bottom: 1em; }
.eho { display: flex; align-items: center; gap: 10px; color: #fff; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; }
.legal-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 20px; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.75); }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
@media print { .site-header, .hero-media, .band { display: none; } }
.hood-facts li.full { grid-column: 1 / -1; }

.data-table { width: 100%; border-collapse: collapse; margin: 1.6em 0 2em; font-size: .95rem; }
.data-table th { text-align: left; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--ink); }
.data-table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.article .sources { font-size: .85rem; } .article .sources li { margin-bottom: .3em; }
@media (max-width: 560px) { .data-table { font-size: .85rem; } }

/* ---------- Subdivisions directory ---------- */
.page-hero-short { min-height: 46vh; }
/* Pages whose header sits above the banner (not over it): balance the padding so the title is centered. */
.site-header:not(.is-over-hero) ~ main .page-hero .hero-content { padding-top: 48px; padding-bottom: 48px; }
.page-hero .hero-content > :last-child { margin-bottom: 0; }
.crumbs { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 22px 0 0; }
.crumbs a:hover { color: var(--gold); }
.sub-filter { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: flex-end; justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; }
.sub-search { display: flex; flex-direction: column; flex: 1 1 280px; max-width: 420px; font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.sub-search input { border: 0; border-bottom: 1px solid var(--ink); padding: 10px 0; font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--ink); background: transparent; }
.sub-search input:focus { outline: none; border-color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; padding: 10px 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: border-color .3s, background .3s, color .3s; }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.sub-count { color: var(--muted); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 22px 0 0; }
.sub-city { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: clamp(40px, 5vw, 64px) 0 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.sub-card { display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 28px 26px; transition: background .3s; }
.sub-card:hover { background: var(--cream); }
.sub-card h3 { margin: 0 0 .5em; font-size: 1.35rem; }
.sub-card .eyebrow { margin-bottom: .7em; }
.sub-card .text-link { margin-top: auto; padding-top: 10px; align-self: flex-start; }
.sub-hoa { font-size: .9rem; margin-bottom: .4em; }
.sub-hoa b { font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-right: 6px; }
.sub-meta { font-size: .85rem; color: var(--muted); }
.sub-group[hidden], .sub-card[hidden] { display: none; }
.sub-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.sub-h { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.8em; scroll-margin-top: 100px; }
.sub-range { font-family: var(--serif); font-size: 1.45rem; color: var(--ink); margin-bottom: .8em; }
.sub-range .eyebrow { display: block; font-family: var(--sans); margin-bottom: .5em; }
.sub-detail .note { background: var(--cream); padding: 20px 24px; font-size: .85rem; }
.sub-aside { position: sticky; top: 110px; }
.sub-map { position: relative; aspect-ratio: 4/3; background: var(--cream); border: 1px solid var(--line); }
.sub-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35); }
.sub-map-cap { font-size: .88rem; color: var(--body); margin: 14px 0 0; }
.sub-map-cap .text-link { display: inline-block; margin-top: 8px; }
.sub-cta { background: var(--navy); color: rgba(255,255,255,.85); padding: 28px; margin-top: 28px; }
.sub-cta .eyebrow { color: var(--gold-light); }
.sub-cta .btn-solid { background: transparent; border-color: #fff; }
.sub-cta .btn-solid:hover { background: var(--gold); border-color: var(--gold); }
.faq { border-top: 1px solid var(--line); }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--sans); font-size: 1.4rem; color: var(--gold); transition: transform .3s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 22px; margin: 0; }
@media (max-width: 900px) { .sub-layout { grid-template-columns: 1fr; } .sub-aside { position: static; } }

.footer-brand { text-align: center; margin: 28px 0 8px; }
.footer-brand img { width: 232px; max-width: 70%; height: auto; display: inline-block; }

/* ---------- New Development ---------- */
.nd-top { padding-bottom: 24px; }
.nd-h { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .5em; scroll-margin-top: 100px; }
.nd-small { font-size: .82rem; color: var(--muted); }
.nd-cite { font-size: .78rem; color: var(--muted); }
.nd-cite a, .nd-src a, .nd-small a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.nd-glance { margin-top: 28px; }
.nd-points { margin: 0 0 18px; padding-left: 1.1em; }
.nd-points li { margin-bottom: .45em; }
.nd-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.nd-jump a { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink); border: 1px solid var(--line); padding: 7px 12px; }
.nd-jump a:hover { border-color: var(--gold); color: var(--gold); }
/* town dropdowns */
.nd-town { border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.nd-town:last-of-type { border-bottom: 1px solid var(--line); }
.nd-town > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 14px; padding: 20px 34px 20px 0; position: relative; }
.nd-town > summary::-webkit-details-marker, .nd-item > summary::-webkit-details-marker { display: none; }
.nd-town > summary h3 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.nd-town-sum { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.nd-town > summary::after, .nd-item > summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--serif); font-size: 1.5rem; color: var(--gold); transition: transform .3s var(--ease); }
.nd-town[open] > summary::after, .nd-item[open] > summary::after { transform: translateY(-50%) rotate(45deg); }
.nd-town-body { padding: 0 0 26px; }
.nd-town-intro { color: var(--muted); margin: 0 0 14px; }
.nd-town-intro .text-link { margin-left: 8px; }
/* community dropdowns */
.nd-item { border: 1px solid var(--line); margin-bottom: 8px; background: #fff; scroll-margin-top: 100px; }
.nd-item > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name status" "meta status"; column-gap: 14px; padding: 12px 46px 12px 16px; position: relative; }
.nd-item > summary::after { right: 16px; font-size: 1.25rem; }
.nd-name { grid-area: name; font-family: var(--serif); font-size: 1.08rem; color: var(--ink); }
.nd-meta { grid-area: meta; font-size: .8rem; color: var(--muted); }
.nd-meta:empty { display: none; }
.nd-status { grid-area: status; align-self: center; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; padding: 4px 9px; white-space: nowrap; }
.nd-selling { background: #e6efe6; color: #2e5b33; }
.nd-building { background: #f6ecd8; color: #7a5a1c; }
.nd-planned { background: #eeeeee; color: #333333; }
.nd-rebuild { background: #f1e6e1; color: #6e3b2a; }
.nd-body { padding: 2px 16px 16px; border-top: 1px solid var(--line); }
.nd-body > p:first-child { margin-top: 14px; }
.nd-note-item { background: var(--cream); }
.nd-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; margin: 14px 0; }
.nd-facts dt { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.nd-facts dd { margin: 2px 0 0; font-size: .9rem; }
.nd-src { font-size: .78rem; color: var(--muted); margin: 10px 0; }
.nd-src span { font-weight: 600; }
.nd-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.nd-body ul { padding-left: 1.1em; }
.nd-body li { margin-bottom: .5em; }
.nd-timeline { list-style: none; margin: 14px 0 6px; padding: 0; }
.nd-timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.nd-timeline li:last-child { border-bottom: 0; }
.nd-timeline li.hot .nd-when { color: var(--gold); }
.nd-when { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); padding-top: 2px; }
.nd-table { overflow-x: auto; margin: 14px 0; }
.nd-table table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.nd-table th, .nd-table td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.nd-table thead th { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nd-table tbody th { font-weight: 600; white-space: nowrap; }
.nd-request { border: 1px solid var(--line); background: #fff; padding: 28px; text-align: center; max-width: 720px; margin: 0 auto; }
@media (max-width: 640px) {
  .nd-facts { grid-template-columns: 1fr; }
  .nd-item > summary { grid-template-columns: 1fr; grid-template-areas: "name" "meta" "status"; row-gap: 4px; }
  .nd-status { justify-self: start; margin-top: 4px; }
  .nd-town > summary { flex-direction: column; gap: 2px; }
  .nd-timeline li { grid-template-columns: 1fr; gap: 2px; }
  .nd-table tbody th { white-space: normal; }
}

/* ---------- Wellington section of the Subdivisions directory ---------- */
.wl-total { font-family: var(--sans); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-left: 10px; vertical-align: middle; }
.wl-intro { max-width: 820px; color: var(--muted); margin: 0 0 8px; }
.wl-intro .text-link { margin-left: 6px; }
.wl-h { font-size: clamp(1.15rem, 2vw, 1.4rem); margin: 40px 0 16px; }
.wl-master { border: 1px solid var(--line); background: #fff; margin-bottom: 16px; scroll-margin-top: 100px; }
.wl-master[hidden] { display: none; }
.wl-master .wl-head { border: 0; padding: 26px 28px 18px; background: transparent; }
.wl-master .wl-head:hover { background: transparent; }
.wl-assoc { font-weight: 600; margin: 0 0 .5em; }
.wl-links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 10px; }
.wl-links .text-link { margin-top: 0; padding-top: 0; }
.wl-subs { border-top: 1px solid var(--line); }
.wl-subs > summary { cursor: pointer; list-style: none; padding: 14px 28px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--ink); background: var(--cream); position: relative; }
.wl-subs > summary::-webkit-details-marker { display: none; }
.wl-subs > summary span { color: var(--muted); margin-left: 8px; }
.wl-subs > summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-family: var(--serif); font-size: 1.3rem; color: var(--gold); transition: transform .3s var(--ease); }
.wl-subs[open] > summary::after { transform: translateY(-50%) rotate(45deg); }
.wl-subs > :not(summary) { margin-left: 28px; margin-right: 28px; }
.wl-g { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-family: var(--sans); font-weight: 600; margin: 22px 0 6px; }
.wl-g span { color: var(--gold); margin-left: 6px; }
.wl-list { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line); }
.wl-az { background: #fff; border: 1px solid var(--line); }
.wl-az .wl-row { padding-left: 18px; padding-right: 18px; }
.sub-card.wl-row { display: grid; grid-template-columns: minmax(200px, 1.1fr) 2fr auto; gap: 6px 22px; align-items: baseline; padding: 11px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.sub-card.wl-row:hover { background: transparent; }
.sub-card.wl-row[hidden] { display: none; }
.wl-name { display: flex; flex-direction: column; }
.wl-name a, .wl-name > span:first-child { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }
.wl-name a:hover { color: var(--gold); }
.wl-type { font-size: .74rem; color: var(--muted); }
.wl-facts { font-size: .84rem; color: var(--ink); }
.wl-facts a, .wl-src a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.wl-fee { white-space: normal; }
.wl-ask { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--gold); padding-bottom: 2px; justify-self: end; }
.wl-src { font-size: .78rem; color: var(--muted); margin-bottom: 20px; }
@media (max-width: 720px) {
  .sub-card.wl-row { grid-template-columns: 1fr auto; }
  .wl-facts { grid-column: 1 / -1; grid-row: 2; }
  .wl-master .wl-head { padding: 22px 18px 14px; }
  .wl-subs > summary { padding: 14px 44px 14px 18px; }
  .wl-subs > :not(summary) { margin-left: 18px; margin-right: 18px; }
}

/* IDX switch (js/config.js idxEnabled). While off, search links and IDX-only
   blocks are hidden; site.js adds .idx-on to <html> when it is turned on. */
html:not(.idx-on) [data-idx],
html:not(.idx-on) a[href*="search.html"] { display: none !important; }
.area-grid-single { grid-template-columns: 1fr; }
.area-grid-single .area-tile { aspect-ratio: 21/9; }
@media (max-width: 960px) { .area-grid-single { grid-template-columns: 1fr; } .area-grid-single .area-tile { aspect-ratio: 4/3; } }
