/* =========================================================
   Local Agent LLC — site styles
   Brand colors come straight from the logo file:
     Navy     #020242  (Jeep body)
     Charcoal #231F20  (lettering / outlines)
   ========================================================= */

:root {
  --navy: #020242;
  --navy-700: #0b0b5c;
  --navy-500: #2a2a78;
  --charcoal: #231f20;
  --ink: #1b1a24;
  --muted: #5d5b68;
  --line: #e4e1da;
  --paper: #faf8f4;
  --white: #ffffff;
  --brass: #a8874f;          /* secondary accent — used sparingly */
  --brass-soft: #efe6d6;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(2, 2, 66, .06), 0 8px 24px rgba(2, 2, 66, .07);
  --shadow-lg: 0 20px 50px rgba(2, 2, 66, .16);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-500); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1.1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 1rem; display: inline-flex; align-items: center; gap: .7rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: #dcdcf0; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }

/* Draft markers — remove before launch */
.draft-note {
  display: inline-block; font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  background: #fff4d6; color: #7a5b00; border: 1px dashed #d9b44a; border-radius: 4px; padding: 2px 8px; vertical-align: middle;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; font-family: var(--sans); font-weight: 600; font-size: .95rem;
  padding: 15px 28px; border-radius: var(--radius); text-decoration: none; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-700); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--brass-soft); color: var(--navy); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.06); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 244, .92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 20px rgba(2,2,66,.05); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 54px; height: 54px; border-radius: 50%; }
.brand-text { font-family: var(--display); font-size: 1.25rem; color: var(--charcoal); letter-spacing: .04em; line-height: 1; }
.brand-text small { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .22em; color: var(--muted); margin-top: 5px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 28px; white-space: nowrap; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink); font-size: .93rem; font-weight: 500; position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--navy); transition: width .25s; }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links .btn { padding: 11px 20px; color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 1180px) {   /* switch to the menu button before 8 links get crowded */
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 84px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 16px; }
  body.nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(168,135,79,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(42,42,120,.7), transparent 60%),
    var(--navy);
}
.hero::before { /* fine architectural grid */
  content: ""; position: absolute; inset: 0; opacity: .07;
  background-image: linear-gradient(rgba(255,255,255,1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,1) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; padding-top: clamp(80px, 12vw, 150px); padding-bottom: clamp(90px, 12vw, 150px); }
.hero h1 { color: var(--white); font-weight: 500; }
.hero h1 em { font-style: italic; color: #e3d3b4; }
.hero .lead { color: #c9c9e3; font-size: 1.25rem; }
.hero .eyebrow { color: #d2bc92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 56px; font-size: .82rem; color: #a9a9cc; letter-spacing: .04em; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 16px; height: 16px; color: #d2bc92; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* Photo hero (home) — photo on the right, navy fades in from the left for legible text */
.hero--photo { background: var(--navy); }
.hero--photo::before { display: none; }
.hero--photo .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero--photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(2,2,66,.96) 0%, rgba(2,2,66,.88) 38%, rgba(2,2,66,.45) 68%, rgba(2,2,66,.15) 100%),
              linear-gradient(0deg, rgba(2,2,66,.55) 0%, transparent 35%);
}
.hero--photo .hero-inner { z-index: 1; grid-template-columns: minmax(0, 640px); padding-top: clamp(96px, 14vw, 180px); padding-bottom: clamp(130px, 15vw, 200px); }
.hero-caption { position: absolute; z-index: 1; right: var(--gutter); bottom: 96px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); display: flex; align-items: center; gap: 10px; }
.hero-caption::before { content: ""; width: 28px; height: 1px; background: currentColor; }
@media (max-width: 900px) {
  .hero--photo::after { background: linear-gradient(0deg, rgba(2,2,66,.97) 0%, rgba(2,2,66,.85) 55%, rgba(2,2,66,.4) 100%); }
  .hero-caption { display: none; }
}

/* Page hero (inner pages) */
.page-hero { background: var(--navy); color: #c9c9e3; padding: clamp(70px, 10vw, 120px) 0 clamp(56px, 8vw, 90px); position: relative; overflow: hidden; }
.page-hero--photo { background: linear-gradient(90deg, rgba(2,2,66,.95) 0%, rgba(2,2,66,.84) 45%, rgba(2,2,66,.35) 100%), var(--navy); background-size: cover; background-position: center; padding-top: clamp(100px, 13vw, 170px); padding-bottom: clamp(80px, 10vw, 130px); }
.page-hero--photo::after { display: none; }
.page-hero .container { position: relative; z-index: 1; }

/* Inner-page header photos */
.bg-plaza-condo-exterior { background-image: linear-gradient(90deg, rgba(2,2,66,.95) 0%, rgba(2,2,66,.84) 45%, rgba(2,2,66,.35) 100%), url("../img/photos/plaza-condo-exterior.webp"); }
.bg-brookside-brick-tudor { background-image: linear-gradient(90deg, rgba(2,2,66,.95) 0%, rgba(2,2,66,.84) 45%, rgba(2,2,66,.35) 100%), url("../img/photos/brookside-brick-tudor.webp"); }
.bg-waldo-water-tower { background-image: linear-gradient(90deg, rgba(2,2,66,.95) 0%, rgba(2,2,66,.84) 45%, rgba(2,2,66,.35) 100%), url("../img/photos/waldo-water-tower.webp"); }
.bg-corinthian-hall { background-image: linear-gradient(90deg, rgba(2,2,66,.95) 0%, rgba(2,2,66,.84) 45%, rgba(2,2,66,.35) 100%), url("../img/photos/corinthian-hall.webp"); }
.bg-st-john-the-baptist-strawberry-hill { background-image: linear-gradient(90deg, rgba(2,2,66,.95) 0%, rgba(2,2,66,.84) 45%, rgba(2,2,66,.35) 100%), url("../img/photos/st-john-the-baptist-strawberry-hill.webp"); }
.bg-prairie-style-home { background-image: linear-gradient(90deg, rgba(2,2,66,.95) 0%, rgba(2,2,66,.84) 45%, rgba(2,2,66,.35) 100%), url("../img/photos/prairie-style-home.webp"); }
.bg-luxury-modern-estate { background-image: linear-gradient(90deg, rgba(2,2,66,.95) 0%, rgba(2,2,66,.84) 45%, rgba(2,2,66,.35) 100%), url("../img/photos/luxury-modern-estate.webp"); }
.bg-crossroads-loft-interior { background-image: linear-gradient(90deg, rgba(2,2,66,.95) 0%, rgba(2,2,66,.84) 45%, rgba(2,2,66,.35) 100%), url("../img/photos/crossroads-loft-interior.webp"); }
.bg-luxury-lakefront-estate { background-image: linear-gradient(90deg, rgba(2,2,66,.95) 0%, rgba(2,2,66,.84) 45%, rgba(2,2,66,.35) 100%), url("../img/photos/luxury-lakefront-estate.webp"); }

/* Photo blocks */
.photo { border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: var(--shadow); background: var(--brass-soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.photo:hover img { transform: scale(1.03); }
.photo-stack { position: relative; padding-bottom: 90px; }
.photo-stack .photo { aspect-ratio: 4 / 3; }
.photo-stack .quote-card { position: absolute; left: -40px; right: 40px; bottom: 0; }
@media (max-width: 900px) { .photo-stack { padding-bottom: 0; } .photo-stack .quote-card { position: relative; left: 0; right: 0; margin: -60px 16px 0; } }

.gallery { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; margin-bottom: 64px; }
.gallery figure { margin: 0; aspect-ratio: 4 / 5; }
.gallery figure:first-child { aspect-ratio: auto; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 22px; background: linear-gradient(0deg, rgba(2,2,66,.85), transparent); color: var(--white); }
.gallery figcaption strong { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.gallery figcaption span { font-size: .85rem; color: #d6d6ec; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } .gallery figure { aspect-ratio: 4 / 3; } }

.svc-photo { aspect-ratio: 3 / 2; margin-bottom: 32px; }

.cta-band--photo { background: linear-gradient(90deg, rgba(2,2,66,.95) 0%, rgba(2,2,66,.85) 50%, rgba(2,2,66,.5) 100%), url("../img/photos/luxury-lakefront-estate.webp") center 60% / cover no-repeat, var(--navy); }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); }
.page-hero h1 { color: var(--white); font-weight: 500; max-width: 820px; }
.page-hero .eyebrow { color: #d2bc92; }
.page-hero .lead { color: #c9c9e3; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); margin-top: -60px; position: relative; z-index: 2; }
.stat { padding: 34px 28px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 600; color: var(--navy); line-height: 1; }
.stat-label { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Split / intro ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.quote-card { background: var(--white); border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow); position: relative; }
.quote-card::before { content: "\201C"; font-family: var(--serif); font-size: 7rem; line-height: 1; color: var(--brass-soft); position: absolute; top: 10px; left: 26px; }
.quote-card blockquote { margin: 0; position: relative; font-family: var(--serif); font-size: 1.55rem; line-height: 1.4; color: var(--navy); font-style: italic; }
.quote-card .who { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.quote-card .who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; }
.quote-card .who strong { display: block; color: var(--ink); }
.quote-card .who span { font-size: .88rem; color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist svg { flex: none; width: 22px; height: 22px; color: var(--brass); margin-top: 3px; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px 34px; transition: transform .25s, box-shadow .25s, border-color .25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .icon { width: 52px; height: 52px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; margin-bottom: 24px; color: var(--navy); }
.card .icon svg { width: 24px; height: 24px; }
.card p { color: var(--muted); }
.card ul { color: var(--muted); padding-left: 1.1em; margin: 0 0 1.2em; }
.card ul li { margin-bottom: 4px; }
.card .more { margin-top: auto; font-weight: 600; font-size: .92rem; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }

.type-tile { border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: 28px 24px; transition: background .25s, border-color .25s; }
.type-tile:hover { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.3); }
.type-tile svg { width: 28px; height: 28px; color: #d2bc92; margin-bottom: 18px; }
.type-tile h3 { font-size: 1.3rem; margin-bottom: 6px; }
.type-tile p { font-size: .93rem; color: #a9a9cc; margin: 0; }

/* ---------- Areas ---------- */
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .areas { grid-template-columns: 1fr; } }
.area-col { background: var(--white); border-radius: var(--radius-lg); padding: 34px; border: 1px solid var(--line); }
.area-col h3 { display: flex; align-items: center; gap: 12px; }
.area-col h3 .state { font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .12em; background: var(--navy); color: var(--white); padding: 4px 9px; border-radius: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font-size: .88rem; padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px; }
.agent { text-align: left; }
.agent-photo { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(160deg, var(--navy-500), var(--navy)); position: relative; margin-bottom: 18px; }
.agent-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .5s; filter: saturate(.92); }
.agent:hover .agent-photo img { transform: scale(1.04); }
.agent-photo .initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 3.6rem; color: rgba(255,255,255,.85); letter-spacing: .04em; }
.agent-photo .tag { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.92); color: var(--navy); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; }
.agent h3 { font-size: 1.4rem; margin-bottom: 2px; }
.agent .role { font-size: .85rem; color: var(--brass); font-weight: 600; letter-spacing: .02em; margin-bottom: 8px; }
.agent p { font-size: .93rem; color: var(--muted); margin: 0; }
.agent-link { text-decoration: none; color: inherit; display: block; }
.agent-link:hover h3 { color: var(--navy-500); }
.agent-more { display: inline-block; margin-top: 12px; font-size: .85rem; font-weight: 600; text-decoration: none; }
.agent-more .arrow { transition: transform .2s; display: inline-block; }
.agent-more:hover .arrow { transform: translateX(3px); }
.team-grid--3 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 36px; }
.more-link { margin-top: 40px; }

/* ---------- Blog (blog/ and blog/<post>/) ---------- */
.post-hero h1 { max-width: 900px; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.post-meta { color: #a9a9cc; font-size: .9rem; margin-top: 18px; }
.post-meta a { color: #e0e0f2; }
.post-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.post-body { max-width: 720px; font-size: 1.07rem; line-height: 1.75; }
.post-body h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 1.7em; }
.post-body h3 { font-size: 1.35rem; margin-top: 1.4em; }
.post-body ul, .post-body ol { padding-left: 22px; }
.post-body li { margin-bottom: 8px; }
.post-body blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brass); color: var(--muted); font-style: italic; }
.post-disclaimer { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem !important; color: var(--muted); }
.post-side { position: sticky; top: 110px; display: grid; gap: 24px; }
.post-cta { background: var(--navy); color: #c9c9e3; border-radius: var(--radius-lg); padding: 28px; }
.post-cta h3 { color: var(--white); font-size: 1.4rem; }
.post-cta .btn { margin-top: 6px; background: var(--white); color: var(--navy); }
.post-related { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; }
.post-related h3 { font-size: 1.25rem; }
.post-list { list-style: none; padding: 0; margin: 10px 0 0; }
.post-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.post-list li:last-child { border-bottom: 0; }
.post-list a { font-weight: 600; text-decoration: none; }
.post-list span { font-size: .8rem; color: var(--muted); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.post-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 30px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.post-card h2 { font-size: 1.6rem; margin: 0; }
.post-card p { color: var(--muted); margin: 0; font-size: .95rem; flex: 1; }
.post-card-date { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
.post-feed { margin-top: 36px; }
@media (max-width: 900px) {
  .post-wrap { grid-template-columns: 1fr; }
  .post-side { position: static; }
}

/* ---------- Neighborhood guides (neighborhoods/<name>/) ---------- */
a.chip--link { text-decoration: none; transition: border-color .2s, background .2s, color .2s; }
a.chip--link:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }
.guide-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.guide-text { max-width: 720px; }
.guide-text .guide-intro { font-size: 1.2rem; color: var(--ink); }
.guide-text h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: 1.6em; }
.guide-text p { font-size: 1.05rem; line-height: 1.7; }
.guide-side { position: sticky; top: 110px; display: grid; gap: 24px; }
.guide-toc, .guide-tips { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; }
.guide-toc h3, .guide-tips h3 { font-size: 1.3rem; margin-bottom: 10px; }
.guide-toc ul { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .92rem; }
.guide-toc li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.guide-toc li:last-child { border-bottom: 0; }
.guide-tips { background: var(--brass-soft); border-color: transparent; }
.guide-tips ul { padding-left: 18px; margin: 0; }
.guide-tips li { margin-bottom: 10px; font-size: .95rem; }
.guide-more { margin-top: 56px; }
.guide-more h3 { font-size: 1.4rem; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
.guide-card { text-decoration: none; color: inherit; display: block; }
.guide-card-img { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; position: relative; margin-bottom: 18px; background: linear-gradient(160deg, var(--navy-500), var(--navy)); }
.guide-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.guide-card:hover .guide-card-img img { transform: scale(1.04); }
.guide-card-img--plain span:first-child { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 2rem; color: rgba(255,255,255,.9); padding: 0 20px; text-align: center; }
.guide-card-img .tag { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.92); color: var(--navy); font-size: .7rem; font-weight: 700; letter-spacing: .1em; padding: 5px 10px; border-radius: 4px; }
.guide-card h3 { font-size: 1.6rem; margin-bottom: 4px; }
.guide-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.guide-card:hover h3 { color: var(--navy-500); }
@media (max-width: 900px) {
  .guide-body { grid-template-columns: 1fr; }
  .guide-side { position: static; }
  .guide-toc { display: none; }
}

/* ---------- Agent profile page (team/<name>/) ---------- */
.agent-hero { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.agent-hero .agent-photo { margin: 0; box-shadow: var(--shadow-lg); }
.agent-hero .hero-actions { margin-top: 28px; }
.crumbs { font-size: .82rem; color: #a9a9cc; margin-bottom: 18px; }
.crumbs a { color: #d2d2ea; text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.agent-body { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.agent-about p { font-size: 1.08rem; }
.agent-sub { font-size: 1.3rem; margin: 30px 0 4px; }
.agent-side { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px 30px 26px; }
.agent-side p { color: var(--muted); font-size: .93rem; }
.profile-links { list-style: none; padding: 0; margin: 12px 0 0; }
.profile-links li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.profile-links a { font-weight: 600; text-decoration: none; }
.profile-links .note { font-size: .85rem; color: var(--muted); }
.fine { font-size: .78rem !important; margin-top: 10px; }
@media (max-width: 900px) {
  .agent-body { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .agent-hero { grid-template-columns: 1fr; }
  .agent-hero .agent-photo { max-width: 240px; }
}

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter { font: inherit; font-size: .9rem; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; color: var(--ink); }
.filter.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Listings ---------- */
.listing-tabs { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 32px; }
.listing-tabs button { font: inherit; font-size: .92rem; border: 0; background: none; padding: 10px 22px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.listing-tabs button.active { background: var(--navy); color: var(--white); }
.listing { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .25s, transform .25s; }
.listing:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.listing-img { aspect-ratio: 3 / 2; background: linear-gradient(135deg, #e9e6df, #d8d4ca); display: grid; place-items: center; color: #9c978b; position: relative; }
.listing-img svg { width: 48px; height: 48px; }
.listing-img .status { position: absolute; left: 14px; top: 14px; background: var(--navy); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; }
.listing-body { padding: 22px 24px 20px; }
.listing-price { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; color: var(--navy); line-height: 1; }
.listing-addr { color: var(--ink); margin: 8px 0 12px; font-size: .97rem; }
.listing-meta { display: flex; gap: 16px; font-size: .86rem; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.listing-courtesy { font-size: .74rem; color: var(--muted); margin-top: 12px; line-height: 1.4; }
.disclaimer { margin-top: 48px; padding: 24px 28px; background: var(--white); border-left: 3px solid var(--brass); border-radius: var(--radius); font-size: .86rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); border-radius: var(--radius-lg); padding: clamp(44px, 7vw, 80px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; bottom: -160px; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); }
.cta-band h2 { color: var(--white); margin: 0 0 8px; }
.cta-band p { color: #c9c9e3; margin: 0; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Contact form ---------- */
.contact-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 3px rgba(2,2,66,.1); }
textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .88rem; color: var(--muted); }
.check input { width: auto; margin-top: 4px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; font-size: .92rem; }
.form-status.ok { color: #1d6b3a; }
.form-status.err { color: #a12a2a; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; }
.contact-list .icon { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy); }
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.reveal-btn { font: inherit; background: none; border: 0; padding: 0; color: var(--navy); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: #01012e; color: #9d9dc0; padding: 80px 0 36px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--sans); color: var(--white); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #c9c9e3; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; }
.footer-brand span { font-family: var(--display); color: var(--white); font-size: 1.25rem; letter-spacing: .04em; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; font-size: .8rem; color: #7a7aa3; }
.eho { display: inline-flex; align-items: center; gap: 8px; }
.eho svg { width: 22px; height: 22px; }

/* ---------- Motion ---------- */
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ---------- Live property search (HomeASAP embed) ---------- */
.search-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.search-head > div { max-width: 680px; }
.search-head h2 { margin-bottom: 12px; }
.search-head .lead { margin: 0; }
.search-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-bottom: 18px; }
.seg { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg button { font: inherit; font-size: .92rem; font-weight: 500; border: 0; background: none; padding: 10px 20px; border-radius: 999px; cursor: pointer; color: var(--muted); transition: background .2s, color .2s; }
.seg button[aria-selected="true"] { background: var(--navy); color: var(--white); }
.search-areas { margin: 0; }
.search-areas .chip { font: inherit; font-size: .86rem; cursor: pointer; background: var(--white); transition: border-color .2s, background .2s, color .2s; }
.search-areas .chip:hover { border-color: var(--navy); }
.search-areas .chip.active { background: var(--brass-soft); border-color: var(--brass); color: var(--navy); font-weight: 600; }
.search-areas[hidden] { display: none; }

/* The HomeASAP window is shifted up inside this frame so its own top bar
   (agent name, search box, login) sits out of view. --crop = pixels hidden. */
.search-frame { --crop: 110px; position: relative; height: 85vh; min-height: 720px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.search-frame[data-mode="ours"] { --crop: 46px; }
.search-frame iframe { position: absolute; left: 0; top: calc(var(--crop) * -1); width: 100%; height: calc(100% + var(--crop)); border: 0; display: block; }
@media (max-width: 760px) { .search-frame { --crop: 122px; height: 78vh; min-height: 600px; } .seg button { padding: 9px 14px; } }
.search-note { font-size: .82rem; color: var(--muted); margin-top: 16px; }

/* ---------- Legal pages ---------- */
.legal h2 { font-size: 1.6rem; margin-top: 1.6em; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }

/* ---------- About: community stats on navy ---------- */
.stats-inline { display: grid; gap: 26px; }
.stats-inline > div { border-left: 2px solid var(--brass); padding-left: 22px; }
.stats-inline .stat-num { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; color: var(--white); line-height: 1.05; }
.stats-inline span:last-child { color: #c9c9e3; font-size: .95rem; }
.section--navy .eyebrow { color: #d2bc92; }
