/* Lyons Realty — shared styles
   Brand guide: Clash Display (headings) + Poppins (body)
   Black Olive #283818 · Wasabi #A8B89E · Off White #FFFCE8 · Whiskey #DBA05C · Bourbon #CC7127 */

:root {
  --olive: #283818;        /* Black Olive */
  --olive-2: #34481f;
  --olive-deep: #1c2810;
  --wasabi: #a8b89e;
  --offwhite: #fffce8;
  --paper: #f7f3dc;        /* slightly deeper Off White for alternating sections */
  --whiskey: #dba05c;
  --bourbon: #cc7127;
  --bourbon-text: #a8561a; /* Bourbon darkened for small text on Off White */
  --ink: #1f2b12;
  --muted: #535d44;
  --rule: #dcd7bb;

  --display: "Clash Display", "Poppins", system-ui, sans-serif;
  --body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4.5vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--bourbon-text); }
:focus-visible { outline: 2px solid var(--bourbon); outline-offset: 4px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: 0.005em; word-spacing: 0.12em; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.75rem, 7vw, 5.75rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); color: var(--olive); }
h3 { font-size: 1.375rem; color: var(--olive); font-weight: 500; letter-spacing: 0.01em; line-height: 1.3; }
p { margin: 0 0 1.1em; max-width: 60ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--olive); color: var(--offwhite); padding: 10px 16px; }
.skip:focus { left: 16px; top: 16px; color: var(--offwhite); }

/* A short Bourbon rule before a line of context text */
.kicker { display: flex; align-items: center; gap: 14px; font-size: 0.9375rem; font-weight: 500; margin: 0 0 22px; }
.kicker::before { content: ""; width: 36px; height: 2px; background: var(--bourbon); flex: none; }

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

.site-header { position: relative; z-index: 30; background: var(--offwhite); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.site-header.overlay { position: absolute; top: 0; left: 0; right: 0; background: transparent; border-bottom: 1px solid rgba(255, 252, 232, .18); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--olive); }
.brand img { width: 36px; height: auto; }
.brand-name { white-space: nowrap; font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; }
.overlay .brand, .overlay .brand:hover { color: var(--offwhite); }

.nav-toggle { display: none; background: none; border: 1px solid currentColor; border-radius: 999px; padding: 8px 18px; font: inherit; font-size: 0.9375rem; color: var(--olive); cursor: pointer; }
.overlay .nav-toggle { color: var(--offwhite); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
.site-nav a { white-space: nowrap; text-decoration: none; color: var(--ink); font-size: 0.9375rem; font-weight: 500; }
.site-nav a:hover { color: var(--bourbon-text); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--bourbon); }
.overlay .site-nav a { color: var(--offwhite); }
.overlay .site-nav a:hover { color: var(--whiskey); }
.site-nav .nav-call { background: var(--olive); color: var(--offwhite); padding: 11px 20px; border-radius: 999px; }
.site-nav .nav-call:hover { background: var(--olive-2); color: var(--offwhite); }
.overlay .site-nav .nav-call { background: var(--offwhite); color: var(--olive); }
.overlay .site-nav .nav-call:hover { background: var(--whiskey); color: var(--olive); }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--olive); z-index: 20; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; }
  .site-nav li a, .overlay .site-nav li a { display: block; padding: 14px 0; color: var(--offwhite); border-bottom: 1px solid rgba(255,252,232,.12); font-size: 1.0625rem; }
  .site-nav a[aria-current="page"] { box-shadow: none; color: var(--whiskey); }
  .site-nav .nav-call, .overlay .site-nav .nav-call { text-align: center; margin-top: 16px; background: var(--whiskey); color: var(--olive); border: 0; }
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 500; font-size: 1rem; text-decoration: none;
  padding: 15px 28px; border-radius: 999px; border: 1.5px solid var(--olive);
  background: var(--olive); color: var(--offwhite); cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--olive-2); border-color: var(--olive-2); color: var(--offwhite); }
.btn-line { background: transparent; color: var(--olive); }
.btn-line:hover { background: var(--olive); color: var(--offwhite); }

.dark .btn, .photo-head .btn, .hero .btn, .photo-band .btn { background: var(--whiskey); border-color: var(--whiskey); color: var(--olive); }
.dark .btn:hover, .photo-head .btn:hover, .hero .btn:hover, .photo-band .btn:hover { background: #e8b878; border-color: #e8b878; color: var(--olive); }
.dark .btn-line, .photo-head .btn-line, .hero .btn-line, .photo-band .btn-line { background: transparent; border-color: rgba(255,252,232,.7); color: var(--offwhite); }
.dark .btn-line:hover, .photo-head .btn-line:hover, .hero .btn-line:hover, .photo-band .btn-line:hover { background: var(--offwhite); border-color: var(--offwhite); color: var(--olive); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.dark { background: var(--olive); color: #e8ead8; }
.dark h1, .dark h2, .dark h3 { color: var(--offwhite); }
.dark p { color: #d2d8c1; }
.dark a:not(.btn) { color: var(--offwhite); }

/* ---------- Photo backgrounds (hero, page heads, bands) ---------- */

.photo-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.photo-bg picture { display: contents; }
.photo-bg img { width: 100%; height: 100%; object-fit: cover; }
.photo-bg::after { content: ""; position: absolute; inset: 0; }

/* Home hero */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; color: var(--offwhite); background: var(--olive); }
.hero .photo-bg::after {
  background:
    linear-gradient(90deg, rgba(28,40,16,.85) 0%, rgba(28,40,16,.5) 45%, rgba(28,40,16,0) 78%),
    linear-gradient(0deg, rgba(28,40,16,.7) 0%, rgba(28,40,16,0) 45%),
    linear-gradient(180deg, rgba(28,40,16,.35) 0%, rgba(28,40,16,0) 18%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: calc(170px + var(--announce-h, 0px)); padding-bottom: clamp(48px, 8vh, 96px); display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.hero h1 { color: var(--offwhite); max-width: 11ch; }
.hero-lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: #ece9d2; max-width: 46ch; }
.hero .kicker { color: var(--whiskey); }

/* Wanda's card in the hero corner */
.broker-card {
  display: flex; align-items: center; gap: 12px; padding: 6px 24px 6px 7px; border-radius: 999px;
  background: rgba(255, 252, 232, .1); border: 1px solid rgba(255, 252, 232, .22);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--offwhite); text-decoration: none;
}
.broker-card:hover { background: rgba(255, 252, 232, .18); color: var(--offwhite); }
.broker-card img { width: 47px; height: 47px; border-radius: 50%; object-fit: cover; object-position: top; }
.broker-card strong { display: block; font-weight: 500; font-size: 1rem; line-height: 1.25; }
.broker-card span { display: block; font-size: 0.875rem; line-height: 1.4; color: #dcdcc4; }

/* The same card as a floating pill: follows the visitor once the hero card scrolls away.
   Dark olive glass so it reads on photos and on Off White alike. */
.call-pill {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 25;
  display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 999px;
  background: rgba(40, 56, 24, .8); border: 1px solid rgba(255, 252, 232, .2);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 14px 36px rgba(28, 40, 16, .3); color: var(--offwhite);
  opacity: 0; visibility: hidden; transform: translateY(24px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s linear .45s;
}
.call-pill.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.call-pill img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; }
.call-pill p { margin: 0; }
.call-pill-name { line-height: 1.3; padding-right: 4px; }
.call-pill-name strong { display: block; font-weight: 500; font-size: 0.9375rem; }
.call-pill-name span { display: block; font-size: 0.8125rem; color: #dcdcc4; white-space: nowrap; }
.call-pill-actions { display: flex; gap: 6px; }
.call-pill-actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; font-size: 0.875rem; font-weight: 500; text-decoration: none; transition: background .2s, color .2s; }
.call-pill-actions a:first-child { background: var(--whiskey); color: var(--olive); }
.call-pill-actions a:first-child:hover { background: #e8b878; color: var(--olive); }
.call-pill-actions a + a { border: 1px solid rgba(255, 252, 232, .55); color: var(--offwhite); }
.call-pill-actions a + a:hover { background: var(--offwhite); color: var(--olive); }
@media (max-width: 640px) {
  .call-pill { left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); gap: 12px; }
  .call-pill-name { flex: 1; min-width: 0; }
  .call-pill-actions a { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) { .call-pill { transform: none; transition: none; } }

/* One orchestrated moment on load: the photo settles and the text rises */
@media (prefers-reduced-motion: no-preference) {
  .hero .photo-bg img, .photo-head .photo-bg img { animation: settle 2.4s var(--ease) both; }
  .hero .wrap > *, .photo-head .wrap > * { animation: rise 1.1s var(--ease) both; }
  .hero .wrap > :nth-child(2), .photo-head .wrap > :nth-child(2) { animation-delay: .25s; }
}
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .hero { min-height: 92svh; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: calc(140px + var(--announce-h, 0px)); }
  .hero .photo-bg img { object-position: 62% center; }
  .hero .photo-bg::after { background: linear-gradient(0deg, rgba(28,40,16,.92) 0%, rgba(28,40,16,.6) 55%, rgba(28,40,16,.35) 100%); }
  .broker-card { justify-self: start; }
}

/* Inner page heads */
.photo-head { position: relative; color: var(--offwhite); background: var(--olive); min-height: clamp(440px, 62vh, 640px); display: flex; align-items: flex-end; }
.photo-head .photo-bg::after { background: linear-gradient(90deg, rgba(28,40,16,.92) 0%, rgba(28,40,16,.68) 50%, rgba(28,40,16,.2) 100%), linear-gradient(180deg, rgba(28,40,16,.5) 0%, rgba(28,40,16,0) 30%); }
.photo-head .wrap { position: relative; z-index: 1; width: 100%; padding-top: calc(150px + var(--announce-h, 0px)); padding-bottom: clamp(48px, 7vw, 88px); }
.photo-head h1 { color: var(--offwhite); max-width: 14ch; font-size: clamp(2.5rem, 6vw, 4.75rem); }
.photo-head p { font-size: 1.125rem; color: #ece9d2; max-width: 50ch; }
.photo-head .kicker { color: var(--whiskey); }

/* Photo call band */
.photo-band { position: relative; color: var(--offwhite); background: var(--olive); padding: clamp(96px, 14vw, 180px) 0; }
.photo-band .photo-bg::after { background: linear-gradient(90deg, rgba(28,40,16,.9) 0%, rgba(28,40,16,.6) 50%, rgba(28,40,16,.25) 100%); }
.photo-band .wrap { position: relative; z-index: 1; }
.photo-band h2 { color: var(--offwhite); max-width: 13ch; }
.photo-band p { color: #ece9d2; font-size: 1.125rem; }

/* ---------- Sections ---------- */

.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-paper { background: var(--paper); }
.section-head { max-width: 46rem; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { color: var(--muted); font-size: 1.125rem; }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head-row .section-head { margin-bottom: 0; }

/* Property type photo tiles: title on the photo, description beneath */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 18px; }
.tile { display: block; color: var(--ink); text-decoration: none; }
.tile-media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; background: var(--olive); margin-bottom: 18px; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(28,40,16,.92) 0%, rgba(28,40,16,.7) 22%, rgba(28,40,16,.3) 45%, rgba(28,40,16,0) 65%); }
.tile h3 { position: absolute; left: 22px; bottom: 16px; z-index: 1; margin: 0; color: var(--offwhite); font-size: 1.625rem; }
.tile-text { display: block; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; margin-bottom: 12px; }
.tile .more { font-size: 0.875rem; font-weight: 500; color: var(--bourbon-text); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.tile:hover { color: var(--ink); }
.tile:hover .tile-media img { transform: scale(1.05); }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .tile-media { aspect-ratio: 4 / 3.4; } }

/* Column-ruled rows */
.ruled { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 0 40px; }
.ruled > div { border-top: 1px solid var(--rule); padding-top: 24px; }
.ruled h3 { margin-bottom: 0.5em; }
.ruled p { color: var(--muted); font-size: 0.975rem; }
.dark .ruled > div { border-top-color: rgba(255,252,232,.2); }
.dark .ruled h3 { color: var(--whiskey); }
.dark .ruled p { color: #d2d8c1; }
@media (max-width: 860px) { .ruled { grid-template-columns: 1fr; gap: 28px; } }

/* About Wanda */
.about { display: grid; grid-template-columns: minmax(260px, 440px) 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.portrait-wrap { position: relative; z-index: 0; }
.portrait-wrap img { width: 100%; height: auto; border-radius: 6px; }
.portrait-wrap::after { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1.5px solid var(--bourbon); border-radius: 6px; z-index: -1; }
.statement { font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.3; letter-spacing: 0.005em; word-spacing: 0.1em; color: var(--olive); max-width: 22ch; margin-bottom: 32px; }
.name { font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: clamp(1.75rem, 3vw, 2.25rem); color: var(--olive); line-height: 1.1; margin: 0; }
.title { font-size: 0.9375rem; letter-spacing: 0.06em; color: var(--muted); margin: 6px 0 22px; }
.about-copy p.body { color: var(--muted); }
.memberships { list-style: none; padding: 16px 0 0; margin: 8px 0 0; border-top: 1px solid var(--rule); font-size: 0.875rem; line-height: 1.9; color: var(--muted); }
.memberships li::before { content: ""; display: inline-block; width: 14px; height: 1.5px; margin-right: 10px; vertical-align: middle; background: var(--bourbon); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .portrait-wrap { max-width: 320px; margin-right: 22px; } }

/* Client reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; }
.review { margin: 0; padding-top: 26px; border-top: 2px solid var(--olive); display: flex; flex-direction: column; }
.review .stars { color: var(--bourbon); letter-spacing: 3px; font-size: 1rem; }
.review blockquote { margin: 16px 0 24px; font-family: var(--display); font-weight: 500; font-size: 1.25rem; line-height: 1.5; letter-spacing: 0.01em; word-spacing: 0.1em; color: var(--olive); flex: 1; }
.review figcaption { font-size: 0.9375rem; color: var(--muted); }
.review figcaption strong { color: var(--ink); font-weight: 500; margin-right: 6px; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; gap: 40px; } }

/* "From above" aerial strip */
.aerials { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.aerials figure { margin: 0; overflow: hidden; border-radius: 6px; }
.aerials img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.aerials figure:first-child { grid-row: span 2; }
@media (max-width: 760px) { .aerials { grid-template-columns: 1fr 1fr; } .aerials figure:first-child { grid-column: span 2; grid-row: auto; } }

/* Areas served */
.areas { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(40px, 6vw, 96px); }
.area-group h3 { font-size: 1.25rem; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 2px solid var(--olive); }
.area-group dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 32px; }
.area-group dl > div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.area-group dt { font-weight: 500; color: var(--olive); }
.area-group dd { margin: 2px 0 0; font-size: 0.9375rem; color: var(--muted); line-height: 1.55; }
.area-group:last-child dl { grid-template-columns: 1fr; }
.area-note { display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 999px; font-family: var(--body); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em; vertical-align: middle; background: var(--olive); color: var(--offwhite); }
.area-group:last-child .area-note { background: transparent; color: var(--muted); border: 1px solid var(--rule); }
@media (max-width: 860px) { .areas { grid-template-columns: 1fr; } }

/* Steps — the buying and selling processes are real sequences */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 90px 1fr; gap: 4px 24px; padding: 30px 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--display); font-weight: 500; font-size: 2.5rem; line-height: 1; color: var(--bourbon); letter-spacing: -0.02em; }
.steps h3 { margin-bottom: 0.3em; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 560px) { .steps li { grid-template-columns: 60px 1fr; } .steps li::before { font-size: 1.875rem; } }

.steps-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.steps-layout .section-head { position: sticky; top: 40px; }
@media (max-width: 860px) { .steps-layout { grid-template-columns: 1fr; } .steps-layout .section-head { position: static; } }

/* Text beside a photo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: 6px; }
@media (min-width: 861px) { .split-photo img { aspect-ratio: 1 / 3; max-height: 1350px; } }
.split.flip .split-photo { order: -1; }
.split + .split { margin-top: clamp(80px, 10vw, 140px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip .split-photo { order: 0; } }

.checks { list-style: none; padding: 0; margin: 8px 0 0; }
.checks li { position: relative; padding: 13px 0 13px 34px; border-bottom: 1px solid var(--rule); }
.checks li:first-child { border-top: 1px solid var(--rule); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 13px; height: 7px; border-left: 2px solid var(--bourbon); border-bottom: 2px solid var(--bourbon); transform: rotate(-45deg); }
.dark .checks li { border-color: rgba(255,252,232,.16); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-lines { list-style: none; padding: 0; margin: 0 0 32px; }
.contact-lines li { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.contact-lines li:first-child { border-top: 1px solid var(--rule); }
.contact-lines strong { display: block; font-weight: 500; font-size: 0.8125rem; color: var(--muted); margin-bottom: 2px; }
.contact-lines a, .contact-lines span { font-family: var(--display); font-weight: 500; font-size: 1.375rem; letter-spacing: 0.01em; word-spacing: 0.1em; text-decoration: none; line-height: 1.35; }
.contact-lines a.text-link { display: inline-block; margin-left: 14px; font-family: var(--body); font-size: 0.875rem; font-weight: 500; color: var(--bourbon-text); text-decoration: underline; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 6px; filter: saturate(.7); }

.form-card { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: clamp(24px, 4vw, 44px); }
.form-card h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 0.9375rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: 14px 16px; border: 1px solid #c9c7ad; border-radius: 6px;
  background: var(--offwhite); color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(40,56,24,.15); }
.field textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-status { font-weight: 500; color: var(--olive); margin: 0; }
.form-status.error { color: #9b2c1f; }
.form-status a { white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Payment calculator (Buying) */
.calc-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-top: 22px; border-top: 1px solid var(--rule); }
.calc-total { font-family: var(--display); font-weight: 600; font-size: clamp(2.25rem, 4vw, 2.875rem); line-height: 1.1; color: var(--olive); }
.calc-result span + span { color: var(--muted); }
.calc-breakdown { margin: 0; display: grid; gap: 8px; font-size: 0.9375rem; }
.calc-breakdown div { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.calc-breakdown dd { margin: 0; color: var(--ink); font-weight: 500; }
.fine { font-size: 0.9375rem; color: var(--muted); }

/* Questions & answers */
.faq-group { max-width: 52rem; }
.faq-group + .faq-group { margin-top: clamp(56px, 7vw, 88px); }
.faq-group h2 { margin-bottom: 20px; }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 500; font-size: 1.25rem; line-height: 1.35; letter-spacing: 0.01em; word-spacing: 0.1em; color: var(--olive);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--body); font-size: 1.75rem; font-weight: 400; line-height: 1; color: var(--bourbon); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--bourbon-text); }
.faq details > div { padding: 0 0 24px; max-width: 46rem; }
.faq details > div p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Long-form text: privacy policy and town guides */
.prose { max-width: 44rem; }
.prose h2, .town-homes h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.6em; }
.town-homes h2 { margin-top: 0; }
.town-homes { align-self: start; }
/* Town guides: both columns start at the top now that the sidebar is long */
.split:has(> .town-homes) { align-items: start; }
.split:has(> .town-homes) .prose > h2:first-child { margin-top: 0; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.updated { color: var(--muted); font-size: 0.9375rem; }

/* Town guide links under Areas served */
.town-links { max-width: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: clamp(40px, 5vw, 56px) 0 0; }
.town-links span { grid-column: 1 / -1; font-weight: 500; }
.town-links .btn { position: relative; isolation: isolate; overflow: hidden; padding-inline: 16px; white-space: nowrap; }
/* On hover, the button fades into a small preview of that town's header photo */
.town-links .btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(40, 56, 24, .5), rgba(40, 56, 24, .5)), var(--photo) center / cover; opacity: 0; transform: scale(1.08); transition: opacity .35s var(--ease), transform .6s var(--ease); }
.town-links .btn:hover, .town-links .btn:focus-visible { background: transparent; color: var(--offwhite); text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.town-links .btn:hover::before, .town-links .btn:focus-visible::before { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .town-links .btn::before { transition: none; transform: none; } }

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

.site-footer { background: var(--olive-deep); color: #c3cab2; padding: clamp(64px, 8vw, 100px) 0 36px; font-size: 0.9375rem; }
.site-footer a { color: var(--offwhite); text-decoration: none; }
.site-footer a:hover { color: var(--whiskey); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,252,232,.12); }
.footer-grid h3 { color: var(--whiskey); font-family: var(--body); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.04em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 4px 0; }
.footer-brand img { width: 240px; margin-bottom: 24px; }
.footer-tagline { font-family: var(--display); font-weight: 500; font-size: 1.375rem; color: var(--offwhite); letter-spacing: 0.01em; word-spacing: 0.1em; margin-bottom: 12px; }
.legal { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-top: 28px; font-size: 0.8125rem; color: #9fa891; }
.legal p { margin: 0; max-width: none; }
.eho { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Listings (built by build.py from content/listings) */
.listing-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px 28px; }
.listing-card a { display: block; position: relative; text-decoration: none; color: var(--ink); }
.listing-card a:hover .card-address { color: var(--bourbon-text); }
.card-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--olive); }
.no-photo { display: grid; place-items: center; }
.card-body { display: block; padding-top: 14px; border-bottom: 2px solid var(--olive); padding-bottom: 14px; }
.card-price { display: block; font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--olive); line-height: 1.2; }
.card-address { display: block; font-weight: 500; margin-top: 4px; }
.card-place, .card-facts { display: block; font-size: 0.9rem; color: var(--muted); }
.listing-card .status { position: absolute; top: 12px; left: 12px; }
.status { display: inline-block; font-size: 0.8125rem; font-weight: 500; padding: 5px 12px; border-radius: 999px; background: var(--olive); color: var(--offwhite); }
.status-pending { background: var(--whiskey); color: var(--olive); }
.status-sold { background: var(--bourbon); color: #fff; }
.see-all { margin: 36px 0 0; }
.empty { font-size: 1.0625rem; color: var(--muted); }

.listing-detail { padding-top: clamp(32px, 5vw, 56px); }
.back { margin: 0 0 20px; font-size: 0.9375rem; }
.back a::before { content: "\2039\00a0"; }
.listing-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; margin-bottom: 28px; }
.listing-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--olive); margin: 12px 0 4px; }
.listing-place { color: var(--muted); margin: 0; }
.listing-price { font-family: var(--display); font-weight: 600; font-size: clamp(1.75rem, 3.5vw, 2.5rem); color: var(--bourbon-text); margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 40px; }
.gallery a:first-child { grid-column: span 4; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.gallery a:first-child img { aspect-ratio: 16 / 9; }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery a:first-child { grid-column: span 2; } }
.listing-body { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .listing-body { grid-template-columns: 1fr; } }
.listing-facts { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.listing-facts li { border: 1px solid var(--rule); border-radius: 3px; padding: 6px 12px; font-size: 0.9375rem; background: #fff; }
.listing-contact { padding: 32px; border-radius: 8px; }
.listing-contact img { width: 96px; border-radius: 3px; margin-bottom: 16px; }
.listing-contact h2 { font-size: 1.5rem; margin-bottom: 4px; }
.listing-contact .actions { margin-top: 16px; flex-direction: column; }
.listing-contact .btn { text-align: center; }

/* Town guides: link to the town's official site */
.town-gov { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--rule); }
.town-gov h3 { font-size: 1.25rem; margin: 0 0 6px; }
.town-gov .fine { margin: 0 0 18px; }
.town-gov .town-links { margin: 0; }

/* Contact: photo of the office sign above the map */
.office-sign { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; margin-bottom: 24px; }

/* Town guides: short Q&A under the main content */
.section.town-faq { padding-top: 0; }
.town-faq h2 { margin-bottom: 16px; }

/* Announcement bar: Wanda turns it on in Pages CMS; it sits at the top of the header */
.announce { background: var(--whiskey); color: var(--olive); text-align: center; font-size: 0.9375rem; font-weight: 500; }
.announce p { margin: 0 auto; max-width: var(--wrap); padding: 10px var(--gutter); }
.announce a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.announce a:hover { text-decoration-thickness: 2px; }

/* ---------- Home: town guides with drop-down area map ---------- */

.town-guides { margin-top: clamp(40px, 5vw, 56px); }
.town-guides .town-links { margin: 0; }
.town-guides-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.town-guides-head > span { font-weight: 500; }
.map-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 6px 2px; border: 0; background: none; font: inherit; font-weight: 500; font-size: .9375rem; color: var(--olive); cursor: pointer; }
.map-toggle svg { width: 20px; height: 20px; fill: none; stroke: var(--bourbon); stroke-width: 1.6; stroke-linejoin: round; }
.map-toggle::after { content: ""; width: 7px; height: 7px; margin: 0 4px 3px 2px; border: solid var(--olive); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); transition: transform .25s var(--ease); }
.map-toggle[aria-expanded="true"]::after { transform: translateY(3px) rotate(-135deg); }
.map-toggle:hover span { text-decoration: underline; text-underline-offset: 4px; }
.map-toggle:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; border-radius: 4px; }

.area-map-panel { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--rule); animation: map-open .45s var(--ease); }
@keyframes map-open { from { opacity: 0; transform: translateY(-10px); } }
.area-map { position: relative; max-width: 720px; margin: 0 auto; }
.area-map svg { display: block; width: 100%; height: auto; }
.area-map .county, .area-map .county-other { fill: none; stroke: #bfb691; stroke-width: 2; stroke-dasharray: 0.1 6; stroke-linecap: round; }
.area-map .county-name { font: 500 28px var(--display); fill: #b3ab88; letter-spacing: .02em; }
.area-map .road { fill: none; stroke: #ddd3ae; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.area-map .road-minor { stroke: #e3dbbd; stroke-width: 2.5; }
.area-map .road-label { font: 500 17px var(--body); fill: #a59c78; }
.area-map .river { fill: none; stroke: #bccaa6; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.area-map .lake { fill: #bccaa6; }
.area-map .water-label { font: italic 500 18px var(--body); fill: #85916a; }
/* Compass rose with the LR mark at its center */
.area-map .rose-dark { fill: var(--olive); }
.area-map .rose-light { fill: var(--paper); stroke: var(--olive); stroke-width: 1; stroke-linejoin: round; }
.area-map .rose-minor { fill: #c9c19c; }
.area-map .rose-ring { fill: none; stroke: #bfb691; stroke-width: 1.2; }
.area-map .rose-center { fill: var(--paper); }
.area-map .rose-n { font: 600 22px var(--display); fill: var(--olive); }
.area-map-panel .fine { margin: 12px auto 0; text-align: center; }

/* Town pins: real links over the drawing */
.pin { position: absolute; transform: translate(-8px, -50%); display: flex; align-items: center; gap: 7px; text-decoration: none; color: var(--olive); font: 600 clamp(.8125rem, 1.3vw, 1rem) var(--display); white-space: nowrap; }
.pin .dot { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--bourbon); box-shadow: 0 0 0 3px var(--paper); transition: transform .25s var(--ease); }
.pin.office .dot { width: 20px; height: 20px; }
/* Indianapolis: a gray reference marker, not a link */
.pin.city { color: #8f8767; font-weight: 500; font-size: clamp(.75rem, 1.1vw, .875rem); gap: 6px; transform: translate(-3.5px, -50%); }
.pin.city .dot { width: 7px; height: 7px; background: #a9a17e; box-shadow: none; }
.pin.office { transform: translate(-10px, -50%); }
.pin:hover .dot, .pin:focus-visible .dot, .pin.active .dot { transform: scale(1.35); }
.pin:hover .pin-name, .pin.active .pin-name { text-decoration: underline; text-underline-offset: 3px; }
.pin:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; border-radius: 4px; }

/* Photo card that appears beside a pin */
.map-preview { position: absolute; z-index: 5; width: 220px; background: var(--offwhite); border-radius: 10px; box-shadow: 0 16px 36px rgba(28, 40, 16, .2); overflow: hidden; pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.map-preview.show { opacity: 1; transform: none; }
.map-preview img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.map-preview div { padding: 12px 14px 14px; }
.map-preview h3 { margin: 0 0 4px; font-size: 1.125rem; }
.map-preview p { margin: 0 0 8px; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.map-preview span { font-size: .8125rem; font-weight: 500; color: var(--bourbon-text); }

@media (max-width: 760px) {
  .area-map .county-name, .area-map .road-label, .area-map .water-label { display: none; }
  .pin .dot { width: 12px; height: 12px; box-shadow: 0 0 0 2px var(--paper); }
  .pin.office .dot { width: 15px; height: 15px; }
  .pin.city .dot { width: 6px; height: 6px; }
  .pin.city { gap: 4px; transform: translate(-3px, -50%); }
  .pin { gap: 5px; transform: translate(-6px, -50%); }
  .pin.office { transform: translate(-7.5px, -50%); }
  .pin.flip { flex-direction: row-reverse; transform: translate(calc(-100% + 6px), -50%); } /* keeps Westfield's name clear of Noblesville */
  .map-preview { display: none; }
}
@media (prefers-reduced-motion: reduce) { .area-map-panel { animation: none; } .pin .dot, .map-preview, .map-toggle::after { transition: none; } }

/* Town guides: Census facts and school districts in the sidebar */
.town-facts { margin-bottom: 48px; }
.town-facts dl { margin: 0 0 14px; }
.town-facts dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.town-facts dl > div:first-child { border-top: 2px solid var(--olive); }
.town-facts dt { color: var(--muted); }
.town-facts dd { margin: 0; font: 600 1.125rem var(--display); color: var(--olive); white-space: nowrap; }
.school-list { list-style: none; margin: 0 0 12px; padding: 0; }
.school-list li { padding: 4px 0; }
.school-list a { font-weight: 500; color: var(--olive); text-underline-offset: 3px; }
.school-list a:hover { color: var(--bourbon-text); }
.town-facts .fine { font-size: .75rem; line-height: 1.5; color: #6f7560; }
