/* ==========================================================================
   Beth Lowry — Warm Texas Modern
   ========================================================================== */

:root {
  --cream: #f7f2ea;
  --cream-2: #efe6d8;
  --sand: #e2d3bd;
  --paper: #fffcf7;
  --sage: #8b9a7c;
  --sage-deep: #4e5c45;
  --sage-ink: #34402e;
  --wood: #a86d42;
  --wood-deep: #8a5532;
  --ink: #2a2520;
  --ink-soft: #5d544a;
  --line: rgba(42, 37, 32, 0.12);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --font-script: "Mrs Saint Delafield", cursive;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(42, 37, 32, 0.06), 0 12px 32px -12px rgba(42, 37, 32, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(42, 37, 32, 0.35);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sage); color: var(--paper); }

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

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-variation-settings: "SOFT" 100, "opsz" 120;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--wood); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sage-deep); margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.script { font-family: var(--font-script); font-weight: 400; line-height: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 0.95em 1.6em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 0.92rem; letter-spacing: 0.04em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.05em; height: 1.05em; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--wood); color: var(--paper); box-shadow: 0 10px 24px -10px rgba(168, 109, 66, 0.7); }
.btn-primary:hover { background: var(--wood-deep); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--sage-ink); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--cream-2); }
.btn-block { width: 100%; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em; font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.04em; text-decoration: none; color: var(--wood-deep);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s, box-shadow 0.4s, color 0.4s, padding 0.4s;
  color: var(--paper); padding: 22px 0;
}
.site-header.is-solid, .site-header.is-light {
  background: rgba(247, 242, 234, 0.92);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  color: var(--ink); box-shadow: 0 1px 0 var(--line); padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid currentColor;
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.05rem;
  letter-spacing: 0.02em; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; line-height: 1; letter-spacing: 0.01em; font-weight: 500; }
.brand-sub { font-size: 0.62rem; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 700; margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a, .brand-sub { white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 981px) { .nav-phone { display: none; } .nav { gap: 22px; } }
.nav a {
  text-decoration: none; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; position: relative; padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 0.8em 1.3em; letter-spacing: 0.1em; font-size: 0.74rem; }
.nav-phone { opacity: 0.9; }

.menu-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit;
}
.menu-toggle span { display: block; width: 26px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform 0.3s, 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 (max-width: 980px) {
  .menu-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; background: var(--cream); color: var(--ink);
    flex-direction: column; justify-content: center; gap: 26px;
    opacity: 0; pointer-events: none; transition: opacity 0.4s;
  }
  .nav a { font-size: 1rem; }
  .menu-open .nav { opacity: 1; pointer-events: auto; }
  .menu-open .site-header { color: var(--ink); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--paper); overflow: hidden; padding: 190px 0 72px;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(30, 24, 18, 0.55) 0%, rgba(30, 24, 18, 0.1) 30%, rgba(30, 24, 18, 0.25) 55%, rgba(30, 24, 18, 0.82) 100%),
    linear-gradient(90deg, rgba(52, 64, 46, 0.35), transparent 60%);
}
.hero-signature { font-family: var(--font-body); font-size: 0.85rem; font-weight: 800; letter-spacing: 0.32em; text-transform: uppercase; color: var(--sand); margin-bottom: 1.2rem; display: block; }
.hero-signature::before { content: ""; display: inline-block; vertical-align: middle; width: 36px; height: 1px; background: currentColor; margin-right: 0.8em; }
.hero h1 { max-width: 15ch; color: var(--paper); text-shadow: 0 2px 30px rgba(0, 0, 0, 0.2); }
.hero h1 em { color: var(--sand); }
.hero .lead { color: rgba(255, 252, 247, 0.88); }

.hero-search {
  margin-top: 36px; background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 8px; display: grid;
  grid-template-columns: 1fr 1fr 1fr auto; gap: 0; box-shadow: var(--shadow-lg); max-width: 900px;
}
.hero-search .field { padding: 8px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.hero-search .field:nth-child(3) { border-right: 0; }
.hero-search label { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 800; color: var(--sage-deep); }
.hero-search select { border: 0; background: transparent; padding: 2px 0; font-weight: 600; cursor: pointer; outline: none; appearance: none; -webkit-appearance: none; }
.hero-search .btn { padding: 1.1em 1.8em; }
@media (max-width: 760px) {
  .hero-search { grid-template-columns: 1fr; border-radius: var(--radius); padding: 10px; }
  .hero-search .field { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; }
  .hero-search .btn { margin-top: 8px; }
}

.hero-meta { display: flex; gap: 32px; margin-top: 30px; flex-wrap: wrap; font-size: 0.85rem; color: rgba(255, 252, 247, 0.85); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--sand); }

.page-hero { position: relative; color: var(--paper); padding: 220px 0 90px; overflow: hidden; }
@media (max-width: 980px) { .page-hero { padding-top: 160px; } .hero { padding-top: 140px; } }
.page-hero .hero-media img { animation: none; transform: none; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(30, 24, 18, 0.6), rgba(30, 24, 18, 0.75));
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); max-width: 18ch; }
.page-hero .lead { color: rgba(255, 252, 247, 0.85); }
.page-hero .eyebrow { color: var(--sand); }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-sm { padding: clamp(56px, 7vw, 90px) 0; }
.bg-paper { background: var(--paper); }
.bg-sand { background: var(--cream-2); }
.bg-sage { background: var(--sage-ink); color: var(--cream); }
.bg-sage .eyebrow { color: var(--sand); }
.bg-sage .lead { color: rgba(247, 242, 234, 0.78); }
.bg-sage h2 em, .bg-sage h3 em { color: var(--sand); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 16ch; }
.section-head .lead { margin: 0; max-width: 46ch; }

.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0 0.2 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Trust strip ---------- */
.trust { background: var(--sage-ink); color: var(--cream); padding: 34px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item svg { width: 28px; height: 28px; color: var(--sand); flex-shrink: 0; margin-top: 2px; }
.trust-item strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }
.trust-item span { font-size: 0.86rem; opacity: 0.75; line-height: 1.45; display: block; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- Why agent ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.photo-stack { position: relative; aspect-ratio: 4/5; }
.photo-stack img { position: absolute; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.photo-stack img:first-child { inset: 0 18% 14% 0; width: 82%; height: 86%; }
.photo-stack img:nth-child(2) { width: 52%; height: 46%; right: 0; bottom: 0; border: 8px solid var(--cream); }
.photo-badge {
  position: absolute; left: -12px; bottom: 22%; background: var(--paper); border-radius: var(--radius-sm);
  padding: 16px 20px; box-shadow: var(--shadow); max-width: 230px; font-size: 0.86rem; line-height: 1.4;
}
.photo-badge strong { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; color: var(--wood); display: block; }

.feature-list { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 22px; }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.feature-list .ico {
  width: 44px; height: 44px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; color: var(--sage-deep);
}
.feature-list .ico svg { width: 20px; height: 20px; }
.feature-list h4 { font-size: 1.15rem; margin: 0 0 4px; }
.feature-list p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

.callout {
  background: var(--paper); border-left: 3px solid var(--wood); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px; font-size: 0.96rem; box-shadow: var(--shadow);
}
.callout strong { color: var(--wood-deep); }

/* ---------- Community cards ---------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 0.55em 1.15em;
  font-size: 0.84rem; font-weight: 700; cursor: pointer; transition: all 0.25s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.c-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; text-decoration: none;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.c-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.c-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.c-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.c-card:hover .c-card-media img { transform: scale(1.06); }
.c-card-badge {
  position: absolute; top: 14px; left: 14px; background: rgba(255, 252, 247, 0.94); color: var(--ink);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
}
.c-card-county {
  position: absolute; top: 14px; right: 14px; background: var(--sage-ink); color: var(--cream);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
}
.c-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.c-card-city { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 800; color: var(--sage-deep); }
.c-card h3 { margin: 6px 0 8px; }
.c-card p { color: var(--ink-soft); font-size: 0.93rem; margin-bottom: 18px; }
.c-card-foot {
  margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 0.88rem;
}
.c-card-price { font-family: var(--font-display); font-size: 1.2rem; }
.c-card-builders { color: var(--ink-soft); font-size: 0.8rem; text-align: right; }

/* ---------- Paths (first-time / relocating) ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } }
.path {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 560px; color: var(--paper);
  display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 4vw, 48px);
  isolation: isolate;
}
.path > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.path:hover > img { transform: scale(1.04); }
.path::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30, 24, 18, 0.15) 0%, rgba(30, 24, 18, 0.55) 35%, rgba(30, 24, 18, 0.92) 75%); }
.path h3 em { color: var(--sand); }
.path h3, .path li { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.path .eyebrow { color: var(--sand); }
.path h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.path ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.path li { display: flex; gap: 10px; font-size: 0.96rem; opacity: 0.92; }
.path li::before { content: ""; width: 18px; height: 18px; flex-shrink: 0; margin-top: 4px; border-radius: 50%; background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334402e' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 27px; left: 4%; right: 4%; height: 1px; background: rgba(247, 242, 234, 0.25); }
.step { padding: 0 16px; position: relative; }
.step-num {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-ink);
  border: 1px solid rgba(247, 242, 234, 0.35); font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 22px; position: relative;
  transition: background 0.3s, color 0.3s;
}
.step:hover .step-num { background: var(--sand); color: var(--ink); }
.step h4 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; opacity: 0.75; margin: 0; }
@media (max-width: 1000px) {
  .process { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .process::before { display: none; }
}
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ---------- Quiz teaser / CTA band ---------- */
.cta-band {
  border-radius: calc(var(--radius) * 1.4); background: var(--wood); color: var(--paper);
  padding: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(255, 252, 247, 0.2); box-shadow: 0 0 0 60px rgba(255, 252, 247, 0.04), 0 0 0 120px rgba(255, 252, 247, 0.03);
}
.cta-band h2 em { color: var(--sand); }
.cta-band p { opacity: 0.88; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 1; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band .actions { justify-content: flex-start; } }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.calc-inputs { padding: clamp(28px, 4vw, 48px); display: grid; gap: 24px; }
.calc-row label { display: flex; justify-content: space-between; font-size: 0.86rem; font-weight: 700; margin-bottom: 10px; }
.calc-row output { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; color: var(--wood-deep); }
input[type="range"] { width: 100%; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: var(--sand); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 2px solid var(--wood); cursor: grab; box-shadow: var(--shadow); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 2px solid var(--wood); cursor: grab; }
.calc-result { background: var(--sage-ink); color: var(--cream); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.calc-total { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 4.4rem); line-height: 1; margin: 6px 0 4px; }
.calc-total small { font-size: 1rem; opacity: 0.7; font-family: var(--font-body); }
.calc-break { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 10px; font-size: 0.92rem; }
.calc-break li { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(247, 242, 234, 0.14); padding-bottom: 10px; }
.calc-break li span:first-child { display: inline-flex; align-items: center; gap: 10px; opacity: 0.8; }
.calc-break i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.calc-bar { display: flex; height: 10px; border-radius: 10px; overflow: hidden; margin-top: 14px; }
.calc-bar div { transition: width 0.5s var(--ease); }
.calc-note { font-size: 0.78rem; opacity: 0.6; margin: 0; }

/* ---------- About ---------- */
.about-photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--sand); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo .placeholder-tag {
  position: absolute; left: 16px; bottom: 16px; background: rgba(255, 252, 247, 0.92); font-size: 0.72rem; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; letter-spacing: 0.08em; text-transform: uppercase;
}
.signature { font-size: 3.6rem; color: var(--wood); margin-top: 10px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; line-height: 1; color: var(--sage-deep); }
.stats span { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Guide lead magnet ---------- */
.guide { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
@media (max-width: 900px) { .guide { grid-template-columns: 1fr; } }
.guide-cover {
  aspect-ratio: 3/4; max-width: 380px; margin: 0 auto; border-radius: 6px 16px 16px 6px; position: relative;
  background: var(--sage-ink); color: var(--cream); padding: 40px 34px; display: flex; flex-direction: column;
  box-shadow: -14px 0 0 -6px var(--sand), var(--shadow-lg); transform: rotate(-3deg); transition: transform 0.6s var(--ease);
  overflow: hidden;
}
.guide-cover:hover { transform: rotate(0); }
.guide-cover::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 1px; background: rgba(247, 242, 234, 0.2); }
.guide-cover .eyebrow { color: var(--sand); font-size: 0.66rem; }
.guide-cover h3 { font-size: 2.2rem; margin-top: auto; }
.guide-cover h3 em { color: var(--sand); }
.guide-cover small { opacity: 0.7; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.guide-cover .house-line { position: absolute; right: -30px; top: 60px; width: 260px; opacity: 0.18; color: var(--sand); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group label { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; color: var(--ink-soft); }
.input, .form select, .form textarea {
  width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius-sm);
  padding: 0.9em 1em; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d544a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.input:focus, .form select:focus, .form textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 4px rgba(139, 154, 124, 0.2); }
.form textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.78rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.form-success {
  display: none; text-align: center; padding: 40px 20px;
}
.form-success .check { width: 64px; height: 64px; border-radius: 50%; background: var(--sage); color: var(--paper); display: grid; place-items: center; margin: 0 auto 18px; }
.form-success .check svg { width: 30px; height: 30px; }
.is-sent .form { display: none; }
.is-sent .form-success { display: block; animation: fadeUp 0.6s var(--ease); }
.check-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.check-grid label { cursor: pointer; }
.check-grid input { position: absolute; opacity: 0; pointer-events: none; }
.check-grid span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 0.5em 1em; font-size: 0.86rem; font-weight: 600; background: var(--paper); transition: all 0.2s; }
.check-grid input:checked + span { background: var(--sage-deep); color: var(--paper); border-color: var(--sage-deep); }
.check-grid input:focus-visible + span { box-shadow: 0 0 0 3px rgba(139, 154, 124, 0.4); }

.form-card { background: var(--paper); border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow); }
.on-dark .form-card { color: var(--ink); }

/* ---------- Directory ---------- */
.filters {
  position: sticky; top: 70px; z-index: 20; background: rgba(247, 242, 234, 0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); padding: 16px 0;
}
.filters-inner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.filters select, .filters .input { width: auto; min-width: 150px; padding: 0.7em 2.4em 0.7em 1em; border-radius: 999px; font-size: 0.88rem; font-weight: 600; }
.filters .count { margin-left: auto; font-size: 0.88rem; color: var(--ink-soft); }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--paper); }
.view-toggle button { border: 0; background: transparent; border-radius: 999px; padding: 0.45em 1em; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.view-toggle button.is-active { background: var(--ink); color: var(--paper); }
.map { height: 560px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); z-index: 1; background: var(--cream-2); }
.empty { text-align: center; padding: 80px 20px; color: var(--ink-soft); grid-column: 1 / -1; }

.leaflet-popup-content-wrapper { border-radius: 12px !important; font-family: var(--font-body); }
.leaflet-popup-content { margin: 0 !important; width: 240px !important; }
.map-pop img { width: 100%; height: 120px; object-fit: cover; border-radius: 12px 12px 0 0; }
.map-pop div { padding: 12px 14px; }
.map-pop strong { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; display: block; }
.map-pop a { color: var(--wood-deep); font-weight: 700; font-size: 0.82rem; }
.warm-tiles { filter: sepia(0.35) saturate(0.7) brightness(1.03) contrast(0.95); }
.map-pin { width: 18px; height: 18px; background: var(--wood); border: 3px solid var(--paper); border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }

/* ---------- Community detail ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: -60px; position: relative; z-index: 2; }
.fact { padding: 24px 26px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact span { display: block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800; color: var(--sage-deep); margin-bottom: 4px; }
.fact strong { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } .fact:nth-child(2) { border-right: 0; } .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

.detail { display: grid; grid-template-columns: 1fr 400px; gap: clamp(40px, 5vw, 80px); align-items: start; }
@media (max-width: 1000px) { .detail { grid-template-columns: 1fr; } }
.detail aside { position: sticky; top: 100px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; height: 420px; margin: 40px 0; }
.gallery img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: var(--radius-sm); }
.gallery img:first-child { grid-row: span 2; }
@media (max-width: 600px) { .gallery { height: 300px; } }
.info-table { width: 100%; border-collapse: collapse; margin: 10px 0 40px; }
.info-table td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table td:first-child { color: var(--ink-soft); width: 42%; font-size: 0.92rem; }
.info-table td:last-child { font-weight: 600; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 40px; }
.pill-list li { background: var(--cream-2); border-radius: 999px; padding: 0.45em 1em; font-size: 0.88rem; font-weight: 600; }
.builder-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; padding: 0; margin: 0 0 40px; }
.builder-list li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; display: flex; align-items: center; gap: 12px; font-weight: 600; }
.builder-list li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sage); flex-shrink: 0; }
@media (max-width: 520px) { .builder-list { grid-template-columns: 1fr; } }
.detail h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 0; }
.small-map { height: 320px; border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; z-index: 1; }

/* ---------- Quiz ---------- */
.quiz { max-width: 820px; margin: 0 auto; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.quiz.is-results { max-width: 1180px; }
.quiz-progress { height: 4px; background: var(--cream-2); }
.quiz-progress div { height: 100%; background: var(--wood); transition: width 0.5s var(--ease); }
.quiz-body { padding: clamp(28px, 5vw, 56px); min-height: 440px; }
.quiz-step { display: none; animation: fadeUp 0.5s var(--ease); }
.quiz-step.is-active { display: block; }
.quiz-step h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.quiz-count { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800; color: var(--sage-deep); margin-bottom: 10px; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0; }
@media (max-width: 560px) { .options { grid-template-columns: 1fr; } }
.option { cursor: pointer; position: relative; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option-box { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; transition: all 0.25s; height: 100%; }
.option-box svg { width: 26px; height: 26px; color: var(--sage-deep); flex-shrink: 0; }
.option-box strong { display: block; font-size: 1rem; }
.option-box small { color: var(--ink-soft); font-size: 0.84rem; line-height: 1.4; display: block; margin-top: 2px; }
.option:hover .option-box { border-color: var(--sage); }
.option input:checked + .option-box { border-color: var(--wood); background: rgba(168, 109, 66, 0.06); box-shadow: 0 0 0 3px rgba(168, 109, 66, 0.12); }
.option input:focus-visible + .option-box { box-shadow: 0 0 0 3px rgba(139, 154, 124, 0.45); }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.quiz-back { background: none; border: 0; font-weight: 700; cursor: pointer; color: var(--ink-soft); padding: 8px 0; }
.quiz-back[hidden] { visibility: hidden; display: block; }
.match-score { position: absolute; bottom: 14px; left: 14px; background: var(--wood); color: var(--paper); font-weight: 800; font-size: 0.78rem; padding: 6px 12px; border-radius: 999px; letter-spacing: 0.06em; }
.match-reasons { list-style: none; padding: 0; margin: 0 0 16px; font-size: 0.86rem; color: var(--ink-soft); display: grid; gap: 4px; }
.match-reasons li::before { content: "✓ "; color: var(--sage-deep); font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; gap: 20px;
  font-family: var(--font-display); font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-size: 1.6rem; line-height: 1; transition: transform 0.3s; color: var(--wood); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 24px; margin: 0; max-width: 70ch; }

/* ---------- Guide page ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); }
.prose h2:first-of-type { border-top: 0; margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose .callout { margin: 28px 0; }
.toc { background: var(--paper); border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow); margin-bottom: 60px; }
.toc ol { margin: 0; columns: 2; column-gap: 40px; }
.toc a { text-decoration: none; font-weight: 600; }
.toc a:hover { color: var(--wood); }
@media (max-width: 600px) { .toc ol { columns: 1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(247, 242, 234, 0.75); padding: 90px 0 30px; font-size: 0.92rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(247, 242, 234, 0.12); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.site-footer .brand { color: var(--cream); margin-bottom: 18px; }
.site-footer h5 { color: var(--cream); font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--sand); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; font-size: 0.8rem; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
.eho { display: inline-flex; align-items: center; gap: 8px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(247, 242, 234, 0.25); display: grid; place-items: center; }
.socials a:hover { background: var(--sand); color: var(--ink); border-color: var(--sand); }
.socials svg { width: 17px; height: 17px; }

/* ---------- Floating CTA (mobile) ---------- */
.float-cta { display: none; }
@media (max-width: 760px) {
  .float-cta {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; gap: 8px;
    transform: translateY(140%); transition: transform 0.4s var(--ease);
  }
  .float-cta.is-visible { transform: none; }
  .float-cta .btn { flex: 1; box-shadow: var(--shadow-lg); }
}

/* ---------- Demo banner ---------- */
.demo-note { font-size: 0.78rem; background: var(--cream-2); border-radius: 8px; padding: 10px 14px; color: var(--ink-soft); margin-top: 12px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; } .reveal-d2 { transition-delay: 0.2s; } .reveal-d3 { transition-delay: 0.3s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

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

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; }

@media print {
  .site-header, .site-footer, .float-cta, .no-print { display: none !important; }
  .page-hero { color: var(--ink); padding: 0 0 20px; }
  .page-hero::before, .page-hero .hero-media { display: none; }
  body { background: #fff; }
}

@media (max-width: 900px) {
  .filters { position: static; }
  .filters-inner { gap: 8px; }
  .filters select { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .filters .count { margin-left: 0; }
  .map { height: 440px; }
}

/* ---------- Logos ---------- */
.logo { display: inline-flex; align-items: center; }
.logo img { width: auto; max-width: none; display: block; }
.header-logos { flex-shrink: 0; }
.logo-dark { display: none !important; }
.is-solid .logo-white, .is-light .logo-white { display: none !important; }
.is-solid .logo-dark, .is-light .logo-dark { display: block !important; }
.header-top { overflow: hidden; max-height: 80px; transition: max-height 0.4s var(--ease), opacity 0.3s, margin 0.4s, padding 0.4s; border-bottom: 1px solid rgba(255, 252, 247, 0.18); padding-bottom: 12px; margin-bottom: 14px; }
.header-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header-logos { display: flex; align-items: center; gap: 18px; }
.header-logos .logo img { height: 26px; }
.header-logos .logo + .logo { padding-left: 18px; border-left: 1px solid rgba(255, 252, 247, 0.35); }
.header-top-right { display: flex; align-items: center; gap: 18px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; }
.header-top-right a { text-decoration: none; }
.header-social { display: inline-flex; gap: 12px; }
.header-social svg { width: 16px; height: 16px; display: block; }
.header-social a:hover, .header-top-right > a:hover { color: var(--sand); }
.is-solid .header-top, .is-light .header-top { max-height: 0; opacity: 0; padding-bottom: 0; margin-bottom: 0; border-bottom-color: transparent; }
@media (min-width: 981px) { .nav-phone { display: none; } }
@media (max-width: 980px) { .header-top { display: none; } }
.footer-logos { display: flex; gap: 36px; align-items: center; padding: 30px 0; border-bottom: 1px solid rgba(247, 242, 234, 0.12); flex-wrap: wrap; }
.footer-logos img { height: 46px; }
.footer-logos .logo + .logo { padding-left: 36px; border-left: 1px solid rgba(247, 242, 234, 0.25); }

/* ---------- Area guides ---------- */
.c-card-known { font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); max-width: 60%; line-height: 1.35; }
.c-card-foot .link-arrow { font-size: 0.8rem; }
.c-card-badge { letter-spacing: 0.08em; }
.fact small { display: block; font-family: var(--font-body); font-size: 0.78rem; color: var(--ink-soft); margin-top: 2px; }
.check-list { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 600; font-size: 0.95rem; }
.check-list li::before { content: ""; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fffcf7' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; margin-top: 1px; }
@media (max-width: 560px) { .check-list { grid-template-columns: 1fr; } }
.filter-note { display: flex; gap: 12px; align-items: center; justify-content: center; margin-bottom: 32px; font-size: 0.92rem; color: var(--ink-soft); }
.filter-note[hidden] { display: none; }
.fair-housing { font-size: 0.76rem; line-height: 1.6; opacity: 0.6; margin: 22px 0 0; max-width: 110ch; }

@media (max-width: 600px) { .brand-sub-extra { display: none; } .header-inner { gap: 12px; } }

/* ---------- About page ---------- */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .values-grid { grid-template-columns: 1fr; } }
.credentials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.credentials strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; line-height: 1.25; }
.credentials small { display: block; opacity: 0.7; font-size: 0.85rem; margin-top: 4px; }
.credentials .eyebrow { margin-bottom: 0.6rem; }
@media (max-width: 900px) { .credentials { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .credentials { grid-template-columns: 1fr; } }
.credential-logos { display: flex; gap: 36px; align-items: center; flex-wrap: wrap; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(247, 242, 234, 0.15); }
.credential-logos img { height: 44px; width: auto; max-width: none; }
.credential-logos img + img { padding-left: 36px; border-left: 1px solid rgba(247, 242, 234, 0.25); }
.social-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .social-cards { grid-template-columns: 1fr; } }
.social-card { display: flex; align-items: center; gap: 16px; background: var(--paper); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); text-decoration: none; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.social-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.social-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--sage-ink); color: var(--sand); display: grid; place-items: center; flex-shrink: 0; }
.social-icon svg { width: 22px; height: 22px; }
.social-card strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; }
.social-card small { color: var(--ink-soft); font-size: 0.88rem; }
@media (min-width: 981px) and (max-width: 1240px) {
  .nav { gap: 18px; }
  .nav a { font-size: 0.72rem; letter-spacing: 0.1em; }
  .brand-sub-extra { display: none; }
}
