/* ==========================================================================
   PROKC Real Estate — site stylesheet
   Colors & fonts live in :root below. Change them there and the whole site
   updates.
   ========================================================================== */

:root {
  /* Brand palette */
  --ink: #111820;          /* primary — deep ink navy (header, footer, dark bands) */
  --ink-2: #1a242f;        /* slightly lighter ink for layered dark surfaces */
  --paper: #f7f5f0;        /* page background — warm off-white */
  --stone: #ece7dd;        /* secondary — Kansas City limestone */
  --stone-2: #e2dccf;
  --line: #d8d1c3;         /* hairline rules on light backgrounds */
  --line-dark: rgba(255, 255, 255, 0.14);
  --text: #18202a;
  --muted: #5b6470;
  --muted-dark: rgba(255, 255, 255, 0.66);
  --bronze: #8f7048;       /* accent — used sparingly */
  --bronze-light: #c9ab7e; /* accent on dark backgrounds */
  --white: #ffffff;

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 10vw, 136px);
  --radius: 2px;
  --header-h: 84px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--bronze-light); color: var(--ink); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--white); color: var(--ink); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 400; color: inherit; }
.display, h1, h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  line-height: 1.06;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-family: var(--sans); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.35; }
h1 em, h2 em { font-style: italic; color: var(--bronze); }
.on-dark h1 em, .on-dark h2 em { color: var(--bronze-light); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--muted); }
.on-dark .lead { color: var(--muted-dark); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bronze); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: var(--bronze-light); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--stone { background: var(--stone); }
.section--ink { background: var(--ink); color: var(--white); }
.section-head { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: clamp(48px, 6vw, 80px); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: 64px; }
}
.section-head .lead { max-width: 52ch; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 28px; min-height: 52px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--bronze); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--bronze-light); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.section:not(.section--ink) .btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.text-link:hover { color: var(--bronze); }
.on-dark .text-link:hover { color: var(--bronze-light); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  color: var(--white);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.4s var(--ease);
}
.site-header.is-solid, .site-header--solid {
  background: rgba(17, 24, 32, 0.96);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; }
.brand img { height: 40px; width: auto; }
.nav { display: none; align-items: center; gap: 36px; }
.nav a:not(.btn) {
  position: relative; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82); padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--bronze-light); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--white); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: 12px 20px; min-height: 44px; font-size: 0.74rem; }
.menu-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px;
}
.menu-toggle span { display: block; height: 1.5px; background: var(--white); transition: transform 0.3s var(--ease), opacity 0.3s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (min-width: 1000px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
}

.mobile-nav {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--white);
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.menu-open .mobile-nav { opacity: 1; visibility: visible; }
.mobile-nav a:not(.btn) { font-family: var(--serif); font-size: 2.1rem; line-height: 1.3; padding: 8px 0; border-bottom: 1px solid var(--line-dark); }
.mobile-nav .btn { margin-top: 28px; }
.mobile-nav small { margin-top: auto; color: var(--muted-dark); font-size: 0.8rem; }
@media (min-width: 1000px) { .mobile-nav { display: none; } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); background: var(--ink); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; transform: scale(1.04); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(17,24,32,0.72) 0%, rgba(17,24,32,0.15) 30%, rgba(17,24,32,0.35) 55%, rgba(17,24,32,0.94) 100%),
    linear-gradient(90deg, rgba(17,24,32,0.55) 0%, rgba(17,24,32,0) 70%);
}
.hero__content { position: relative; padding-top: calc(var(--header-h) + 64px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero h1 { max-width: 19ch; margin-bottom: 28px; }
.hero .lead { max-width: 54ch; color: rgba(255,255,255,0.8); margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats {
  position: relative; border-top: 1px solid var(--line-dark);
  display: grid; grid-template-columns: repeat(2, 1fr);
}
.hero__stats .stat { padding: 26px 0 30px; }
@media (min-width: 800px) {
  .hero__stats { grid-template-columns: repeat(4, 1fr); }
  .hero__stats .stat + .stat { border-left: 1px solid var(--line-dark); padding-left: 32px; }
}
.stat__num { display: block; font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1; margin-bottom: 10px; }
.stat__label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-dark); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative; background: var(--ink); color: var(--white); overflow: hidden;
  padding: calc(var(--header-h) + clamp(64px, 9vw, 120px)) 0 clamp(56px, 7vw, 96px);
}
.page-hero__bg { position: absolute; inset: 0; opacity: 0.28; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 15%, rgba(17,24,32,0.6) 100%); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); max-width: 18ch; margin-bottom: 24px; }
.page-hero .lead { max-width: 58ch; }
.breadcrumb { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 28px; }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Statement / intro ---------- */
.statement { display: grid; gap: 40px; }
@media (min-width: 900px) { .statement { grid-template-columns: 1.15fr 0.85fr; gap: 96px; align-items: start; } }
.statement blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.15; letter-spacing: -0.01em; }
.statement blockquote em { color: var(--bronze); }
.statement__body { padding-top: 10px; color: var(--muted); }
.statement__body p:first-child { color: var(--text); font-size: 1.12rem; }
.statement__body .text-link { margin-top: 16px; color: var(--text); }

/* ---------- Client cards (who we serve) ---------- */
.clients { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .clients { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .clients { grid-template-columns: repeat(4, 1fr); } }
.client {
  position: relative; padding: 40px 32px 44px 0; border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
@media (min-width: 700px) { .client:nth-child(2n) { padding-left: 32px; border-left: 1px solid var(--line); } }
@media (min-width: 1100px) {
  .client { padding: 44px 32px 48px; border-bottom: 0; }
  .client:first-child { padding-left: 0; }
  .client + .client { border-left: 1px solid var(--line); }
}
.client__num { font-family: var(--serif); font-style: italic; color: var(--bronze); font-size: 1.1rem; }
.client h3 { font-family: var(--serif); font-weight: 400; font-size: 1.85rem; letter-spacing: -0.01em; }
.client p { color: var(--muted); font-size: 0.98rem; margin: 0; }
.client ul { list-style: none; padding: 0; margin: 6px 0 0; font-size: 0.9rem; }
.client li { padding: 7px 0; border-top: 1px solid var(--line); }

/* ---------- Services (split rows) ---------- */
.services { display: grid; gap: 0; }
.service {
  display: grid; gap: 20px; padding: 44px 0; border-top: 1px solid var(--line-dark);
}
.service:last-child { border-bottom: 1px solid var(--line-dark); }
@media (min-width: 900px) {
  .service { grid-template-columns: 80px 1fr 1.1fr; gap: 48px; align-items: start; padding: 52px 0; }
}
.service__num { font-family: var(--serif); font-style: italic; color: var(--bronze-light); font-size: 1.2rem; }
.service h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.25rem); line-height: 1.15; letter-spacing: -0.01em; }
.service p { color: var(--muted-dark); margin: 0 0 14px; }
.service .tags { margin-top: 18px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 12px; border: 1px solid var(--line); color: var(--muted);
}
.on-dark .tags li { border-color: var(--line-dark); color: var(--muted-dark); }

/* ---------- Feature (image + text) ---------- */
.feature { display: grid; gap: 48px; align-items: center; }
@media (min-width: 950px) { .feature { grid-template-columns: 1fr 1fr; gap: 96px; } .feature--flip .feature__media { order: 2; } }
.feature__media { position: relative; }
.feature__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.feature__media figcaption {
  position: absolute; left: 0; bottom: 0; background: var(--paper); padding: 18px 24px 0 0;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.section--stone .feature__media figcaption { background: var(--stone); }
.feature__body h2 { margin-bottom: 28px; }
.feature__body .lead { margin-bottom: 32px; }
.checklist { list-style: none; padding: 0; margin: 0 0 40px; border-top: 1px solid var(--line); }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; width: 14px; height: 1px; background: var(--bronze); margin-top: 0.85em; }
.checklist strong { display: block; font-weight: 600; }
.checklist span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Property types ---------- */
.ptypes { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .ptypes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ptypes { grid-template-columns: repeat(3, 1fr); } }
.ptype {
  display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start;
  padding: 30px 24px 30px 0; border-bottom: 1px solid var(--line);
}
.ptype svg { width: 36px; height: 36px; stroke: var(--bronze); fill: none; stroke-width: 1.25; }
.ptype h3 { margin-bottom: 4px; }
.ptype p { margin: 0; font-size: 0.93rem; color: var(--muted); }

/* ---------- Areas served (state line) ---------- */
.areas { display: grid; gap: 40px; }
@media (min-width: 900px) { .areas { grid-template-columns: 1fr 120px 1fr; gap: 0; } }
.areas__state h3 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 8px;
}
.areas__state > p { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bronze-light); margin-bottom: 28px; }
.areas__list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 28px; }
.areas__list li { break-inside: avoid; padding: 11px 0; border-top: 1px solid var(--line-dark); font-size: 0.98rem; color: rgba(255,255,255,0.86); }
.areas__line { display: none; }
@media (min-width: 900px) {
  .areas__state--ks { text-align: right; }
  .areas__state--ks .areas__list { direction: rtl; }
  .areas__state--ks .areas__list li { direction: ltr; }
  .areas__line { display: flex; flex-direction: column; align-items: center; gap: 16px; }
  .areas__line::before, .areas__line::after { content: ""; flex: 1; width: 1px; background: repeating-linear-gradient(to bottom, var(--bronze-light) 0 8px, transparent 8px 16px); }
  .areas__line span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--bronze-light); }
}
.areas__beyond { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-dark); color: var(--muted-dark); font-size: 0.95rem; text-align: center; }
.areas__beyond strong { color: var(--white); font-weight: 600; }

/* ---------- Gallery / track record teaser ---------- */
.mosaic { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 140px; gap: 16px; }
  .mosaic > :nth-child(1) { grid-column: span 7; grid-row: span 3; }
  .mosaic > :nth-child(2) { grid-column: span 5; grid-row: span 2; }
  .mosaic > :nth-child(3) { grid-column: span 5; grid-row: span 3; }
  .mosaic > :nth-child(4) { grid-column: span 4; grid-row: span 2; }
  .mosaic > :nth-child(5) { grid-column: span 3; grid-row: span 2; }
}
.tile { position: relative; overflow: hidden; background: var(--stone-2); margin: 0; aspect-ratio: 4/3; }
@media (min-width: 900px) { .mosaic .tile { aspect-ratio: auto; } }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 20px 16px;
  background: linear-gradient(transparent, rgba(17,24,32,0.85));
  color: var(--white); font-size: 0.86rem; line-height: 1.35;
}
.tile figcaption small { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze-light); margin-bottom: 4px; }

/* ---------- Team ---------- */
.team { display: grid; gap: 64px; }
@media (min-width: 900px) { .team { grid-template-columns: 1fr 1fr; gap: 72px; } }
.member__photo { position: relative; overflow: hidden; background: var(--stone-2); margin-bottom: 28px; aspect-ratio: 4 / 5; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 1.2s var(--ease); }
.member:hover .member__photo img { transform: scale(1.03); }
.member__role { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bronze); margin-bottom: 10px; }
.member h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3vw, 2.6rem); letter-spacing: -0.01em; margin-bottom: 18px; }
.member p { color: var(--muted); }
.member__links { display: flex; gap: 24px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.member__links a { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.member__links a:hover { color: var(--bronze); }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; background: var(--ink); color: var(--white);
  padding: clamp(80px, 11vw, 150px) 0;
}
.cta__bg { position: absolute; inset: 0; opacity: 0.22; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.cta .container { position: relative; display: grid; gap: 40px; }
@media (min-width: 900px) { .cta .container { grid-template-columns: 1.3fr 0.7fr; align-items: end; } }
.cta h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); max-width: 16ch; }
.cta__side p { color: var(--muted-dark); margin-bottom: 28px; }

/* ---------- Deals (track record) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter {
  padding: 11px 18px; min-height: 44px; border: 1px solid var(--line); background: transparent; cursor: pointer;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  transition: all 0.25s var(--ease);
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.filter .count { opacity: 0.6; margin-left: 6px; }
.deals { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: 1fr; }
@media (min-width: 640px) { .deals { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .deals { grid-template-columns: repeat(3, 1fr); } }
.deal { background: var(--paper); padding: 32px 30px 30px; display: flex; flex-direction: column; min-height: 280px; transition: background 0.3s var(--ease); }
.deal:hover { background: var(--white); }
.deal[hidden] { display: none; }
.deal__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.deal__type { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze); }
.deal__status { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; padding: 5px 9px; background: var(--ink); color: var(--white); }
.deal h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 6px; }
.deal__loc { font-size: 0.86rem; color: var(--muted); margin-bottom: 18px; }
.deal__desc { font-size: 0.94rem; color: var(--text); margin: 0 0 22px; }
.deal__meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.deal__meta span { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 4px 8px; background: var(--stone); }
.deal--photo { padding: 0; }
.deal--photo .deal__img { aspect-ratio: 16 / 10; overflow: hidden; }
.deal--photo .deal__img img { width: 100%; height: 100%; object-fit: cover; }
.deal--photo .deal__inner { padding: 26px 30px 30px; display: flex; flex-direction: column; flex: 1; }

.gallery { columns: 1; column-gap: 16px; }
@media (min-width: 600px) { .gallery { columns: 2; } }
@media (min-width: 1000px) { .gallery { columns: 3; } }
.gallery figure { margin: 0 0 16px; break-inside: avoid; overflow: hidden; background: var(--stone-2); }
.gallery img { width: 100%; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }

/* ---------- Listings ---------- */
.listings { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .listings { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .listings { grid-template-columns: repeat(3, 1fr); } }
.listing { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.listing__img { aspect-ratio: 4/3; background: var(--stone-2); overflow: hidden; position: relative; }
.listing__img img { width: 100%; height: 100%; object-fit: cover; }
.listing__badge { position: absolute; top: 14px; left: 14px; background: var(--ink); color: var(--white); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; padding: 6px 10px; }
.listing__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.listing__price { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; margin-bottom: 6px; }
.listing h3 { margin-bottom: 4px; }
.listing__addr { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }
.listing__facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.86rem; margin-bottom: 18px; }
.listing__courtesy { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--muted); }
.listing__courtesy strong { color: var(--text); font-weight: 600; }
.listing__actions { display: flex; gap: 18px; margin-top: 16px; }
.empty {
  border: 1px solid var(--line); background: var(--white); padding: clamp(40px, 6vw, 72px);
  display: grid; gap: 32px;
}
@media (min-width: 900px) { .empty { grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 64px; } }
.empty h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.15; margin-bottom: 14px; }
.empty p { color: var(--muted); }
.disclaimer { margin-top: 40px; font-size: 0.8rem; color: var(--muted); max-width: 90ch; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 64px; }
@media (min-width: 1000px) { .contact { grid-template-columns: 0.8fr 1.2fr; gap: 96px; } }
.contact__aside h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 24px; }
.contact__aside .lead { margin-bottom: 40px; }
.contact__steps { list-style: none; padding: 0; margin: 0; counter-reset: step; border-top: 1px solid var(--line); }
.contact__steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact__steps li::before { content: "0" counter(step); font-family: var(--serif); font-style: italic; color: var(--bronze); }
.contact__steps strong { display: block; font-weight: 600; }
.contact__steps span { color: var(--muted); font-size: 0.94rem; }
.contact__note { margin-top: 32px; font-size: 0.86rem; color: var(--muted); display: flex; gap: 12px; }
.contact__note svg { flex: none; width: 20px; height: 20px; stroke: var(--bronze); fill: none; stroke-width: 1.5; margin-top: 2px; }

.form { background: var(--white); border: 1px solid var(--line); padding: clamp(28px, 4vw, 56px); }
.form__grid { display: grid; gap: 22px 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } .form__full { grid-column: 1 / -1; } }
.field label, .field legend { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; color: var(--text); }
.field label .opt { font-weight: 500; letter-spacing: 0.04em; text-transform: none; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; min-height: 52px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 1rem; transition: border-color 0.2s, background 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23111820' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--line); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: none; color: var(--muted);
  transition: all 0.2s;
}
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chips input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.84rem; color: var(--muted); line-height: 1.55; text-transform: none; letter-spacing: 0; font-weight: 400; }
.check input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; accent-color: var(--ink); }
.check a { text-decoration: underline; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 8px; }
.form__submit small { color: var(--muted); font-size: 0.8rem; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.8rem; margin: 2.2em 0 0.6em; }
.prose h3 { margin: 1.6em 0 0.5em; }
.prose p, .prose li { color: #333b45; }
.prose a { text-decoration: underline; }
.prose ul { padding-left: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); padding: 88px 0 36px; font-size: 0.92rem; }
.footer__top { display: grid; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 56px; } }
.footer__brand img { height: 52px; width: auto; margin-bottom: 22px; }
.footer__brand p { max-width: 36ch; }
.site-footer h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 5px 0; }
.site-footer a:hover { color: var(--white); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 28px; font-size: 0.8rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.eho { display: inline-flex; align-items: center; gap: 8px; }
.eho svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; } .reveal-d2 { transition-delay: 0.16s; } .reveal-d3 { transition-delay: 0.24s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .center { text-align: center; }
.split-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Three-column variant of the client cards (About page principles) */
@media (min-width: 1100px) { .clients--3 { grid-template-columns: repeat(3, 1fr); } }
.text-link { white-space: nowrap; }
.text-link svg { width: 14px; height: 14px; flex: none; transition: transform 0.3s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }
figure { margin: 0; }
.field label.check { display: grid; margin: 0; font-size: 0.84rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }

/* ---------- Header phone ---------- */
.nav { gap: 30px; }
.nav__phone { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; color: rgba(255,255,255,0.82); white-space: nowrap; }
.nav__phone:hover { color: var(--white); }
@media (max-width: 1199px) { .nav__phone { display: none; } }
.phone-line { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.phone-line svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } .quote--lead { grid-column: 1 / -1; } }
.quote { margin: 0; padding: clamp(28px, 4vw, 44px); background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; }
.quote--lead { background: transparent; border: 0; border-top: 1px solid var(--line); padding: 44px 0 8px; }
.quote--lead blockquote { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.2; letter-spacing: -0.01em; max-width: 30ch; }
.quote__stars { color: var(--bronze); letter-spacing: 0.2em; font-size: 0.9rem; }
.quote figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 2px; font-size: 0.88rem; color: var(--muted); }
.quote figcaption strong { color: var(--text); font-weight: 600; font-size: 0.95rem; }
.quote__src { font-size: 0.76rem; letter-spacing: 0.06em; }
.quote__src a { text-decoration: underline; }

/* ---------- Insights ---------- */
.insights { display: grid; gap: 40px 32px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .insights { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .insights { grid-template-columns: repeat(3, 1fr); } }
.insight a { display: flex; flex-direction: column; height: 100%; }
.insight__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone-2); margin-bottom: 22px; }
.insight__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.insight a:hover .insight__img img { transform: scale(1.04); }
.insight__meta { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.06em; margin-bottom: 12px; }
.insight__meta span { color: var(--bronze); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-right: 12px; }
.insight h3 { font-family: var(--serif); font-weight: 400; font-size: 1.65rem; line-height: 1.18; letter-spacing: -0.01em; margin-bottom: 12px; }
.insight p { color: var(--muted); font-size: 0.96rem; }
.insight .text-link { margin-top: auto; align-self: flex-start; }
.insight a:hover h3 { color: var(--bronze); }

.article { display: grid; gap: 56px; }
@media (min-width: 1000px) { .article { grid-template-columns: minmax(0, 1fr) 300px; gap: 96px; } }
.article .prose { font-size: 1.08rem; }
.article .prose h2 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); }
.article .prose li { margin-bottom: 0.5em; }
.article .prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.95rem; }
.article .prose th, .article .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article .prose th { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.callout { border-left: 2px solid var(--bronze); background: var(--stone); padding: 22px 26px; margin: 2em 0; }
.callout p { margin: 0; }
.article__aside { align-self: start; position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 24px; }
.aside-card { background: var(--ink); color: var(--white); padding: 32px; }
.aside-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.2; margin-bottom: 14px; }
.aside-card p { color: var(--muted-dark); font-size: 0.94rem; margin-bottom: 22px; }
.article__byline { font-size: 0.86rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
.article__byline strong { color: var(--text); display: block; }
.article__note { font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 48px; padding-top: 20px; }

/* ---------- Private admin (visitor stats) ---------- */
.admin { min-height: 100vh; background: var(--paper); }
.admin__bar { background: var(--ink); color: var(--white); }
.admin__bar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; flex-wrap: wrap; }
.admin__bar img { height: 34px; width: auto; }
.admin__bar span { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bronze-light); }
.admin-login { max-width: 420px; margin: 12vh auto; padding: 0 var(--gutter); }
.admin-login h1 { font-size: 2.4rem; margin-bottom: 10px; }
.admin-login .form { display: grid; gap: 20px; margin-top: 28px; }
.admin-msg { min-height: 1.4em; color: #9b2c2c; font-size: 0.9rem; margin: 0; }
.admin-dash { padding: 40px 0 80px; }
.admin-dash.is-loading { opacity: 0.55; transition: opacity 0.2s; }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.admin-head h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.admin-head p { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; }
.admin-range { display: flex; gap: 6px; flex-wrap: wrap; }
.kpis { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(2, 1fr); margin-bottom: 24px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--white); padding: 24px 26px; }
.kpi span { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.kpi strong { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1; }
.kpi small { display: block; margin-top: 8px; font-size: 0.8rem; color: var(--muted); }
.panel { background: var(--white); border: 1px solid var(--line); padding: 24px 26px; }
.panel h2 { font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; line-height: 1.3; }
.panels { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 900px) { .panels { grid-template-columns: 1fr 1fr; } }
.chart { position: relative; }
.chart svg { display: block; overflow: visible; }
.chart .g { stroke: var(--line); stroke-width: 1; }
.chart .base { stroke: var(--muted); stroke-width: 1; }
.chart .ax { font: 500 11px var(--sans); fill: var(--muted); }
.chart .bar { fill: var(--ink); }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .hit:hover { fill: rgba(143, 112, 72, 0.12); }
.chart-tip { position: absolute; top: 0; transform: translate(-50%, -100%); background: var(--ink); color: var(--white); padding: 10px 14px; font-size: 0.8rem; line-height: 1.45; pointer-events: none; white-space: nowrap; display: grid; }
.chart-tip[hidden] { display: none; }
.panel ol { list-style: none; margin: 0; padding: 0; }
.panel li { position: relative; display: flex; justify-content: space-between; gap: 16px; padding: 9px 10px; font-size: 0.92rem; }
.panel li + li { margin-top: 2px; }
.admin-bar { position: absolute; inset: 0 auto 0 0; background: var(--stone); z-index: 0; }
.admin-name, .admin-count { position: relative; z-index: 1; }
.admin-name small { color: var(--muted); font-size: 0.78rem; margin-left: 6px; }
.admin-count { font-variant-numeric: tabular-nums; font-weight: 600; }
.admin-empty { color: var(--muted); font-size: 0.9rem; margin: 0; }
.admin details { margin-top: 18px; font-size: 0.9rem; }
.admin details summary { cursor: pointer; font-weight: 600; }
.admin details table { width: 100%; border-collapse: collapse; margin-top: 12px; font-variant-numeric: tabular-nums; }
.admin details th, .admin details td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.admin-foot { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; margin-top: 32px; font-size: 0.86rem; color: var(--muted); }
.admin-foot label { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; }
.admin-foot input { width: 18px; height: 18px; accent-color: var(--ink); }
.chart-wrap { position: relative; }
.chart-tip { top: -6px; }
.feed { margin-bottom: 48px; }

/* Live commercial MLS search (HomeASAP embed on properties.html) */
.live-search { margin-bottom: clamp(56px, 8vw, 96px); }
.live-search__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 28px; }
.live-search__head > div { max-width: 680px; }
.live-search__head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.12; margin-bottom: 12px; }
.live-search__head p:last-child { color: var(--muted); margin: 0; }
.live-search__bar { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 18px; }
.live-search__bar .filters { margin-bottom: 0; }
.live-search__bar .filters[hidden] { display: none; }
/* The frame is shifted up so HomeASAP's own header (agent name, search box,
   login, residential filters) sits out of view. --crop = pixels hidden. */
.live-search__frame { --crop: 110px; position: relative; height: 82vh; min-height: 640px; background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.live-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) { .live-search__frame { --crop: 122px; height: 76vh; min-height: 560px; } }

/* Office page: inquiries */
.admin-note { font-weight: 500; letter-spacing: 0.04em; text-transform: none; color: var(--muted); }
.inq { border-top: 1px solid var(--line); }
.inq:last-child { border-bottom: 1px solid var(--line); }
.inq summary { display: grid; grid-template-columns: 1fr; gap: 2px 20px; padding: 14px 4px; cursor: pointer; list-style: none; }
@media (min-width: 800px) { .inq summary { grid-template-columns: 200px 1fr auto; align-items: center; } }
.inq summary::-webkit-details-marker { display: none; }
.inq__who { font-weight: 600; }
.inq__subj { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inq__when { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.inq dl { display: grid; grid-template-columns: 130px 1fr; gap: 6px 16px; margin: 0 4px 14px; font-size: 0.9rem; }
.inq dt { color: var(--muted); }
.inq dd { margin: 0; }
.inq dd a { text-decoration: underline; }
.inq__msg { white-space: pre-wrap; background: var(--paper); padding: 16px 18px; margin: 0 4px 18px; font-size: 0.95rem; }
.tag-ok, .tag-warn { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 7px; margin-left: 8px; }
.tag-ok { background: var(--stone); color: var(--text); }
.tag-warn { background: #f6e3e0; color: #8a2a1f; }

/* Contact form status message */
.form-status { border-left: 2px solid #8a2a1f; background: #f6e3e0; color: #5c1d15; padding: 14px 18px; margin-bottom: 24px; font-size: 0.94rem; }
.form-status[hidden] { display: none; }
