/* Janelle Pryor Real Estate: KMG portfolio concept 2 (photo-only realtor).
   Warm and approachable: cream paper, brick red, deep slate ink, sturdy Libre Franklin type (yard-sign, local-paper feel).
   Signature motif: the doorway arch from the logo, reused as an image mask. */

:root {
  --paper: #FAF6EF;
  --cream: #F2EADD;
  --sand: #E6DAC6;
  --line: #E3D8C6;
  --ink: #1F2B2E;
  --ink-2: #3D4A4D;
  --muted: #69736F;
  --brick: #A8472F;
  --brick-deep: #8A3824;
  --sage: #5E7260;
  --porch: #E8B759;
  --white: #fff;

  --display: "Libre Franklin", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  --sans: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(31, 43, 46, .06), 0 8px 24px rgba(31, 43, 46, .08);
  --shadow-lg: 0 2px 4px rgba(31, 43, 46, .06), 0 24px 60px rgba(31, 43, 46, .16);
  --arch: 999px 999px var(--radius) var(--radius);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16.5px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -.015em; }
h2 { font-size: clamp(30px, 3.6vw, 46px); }
h3 { font-size: clamp(22px, 2vw, 27px); }
p { margin: 0 0 1em; }
em { font-style: italic; }
svg { flex: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 6px; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }

.eyebrow { font: 600 13px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brick); margin: 0 0 14px; }
.eyebrow--light { color: #F6D9A2; }

/* ---------- Portfolio banner (shared KMG convention) ---------- */
.portfolio-banner { background: #111; color: #ddd; font: 13px/1.4 var(--sans); text-align: center; padding: 8px 16px; }
.portfolio-banner a { color: #fff; margin-left: 8px; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--brick { background: var(--brick); color: #fff; }
.btn--brick:hover { background: var(--brick-deep); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #0f1719; }
.btn--ghost { border-color: rgba(255,255,255,.75); color: #fff; background: rgba(20, 28, 30, .18); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brick); text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Chips (listing status) ---------- */
.chip { display: inline-block; padding: 6px 11px; border-radius: 999px; background: var(--paper); color: var(--ink); font: 700 11.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.chip--new { background: var(--brick); color: #fff; }
.chip--pending { background: var(--porch); color: var(--ink); }
.chip--sold { background: var(--ink); color: var(--paper); }

/* ============ HEADER: utility bar + main bar ============ */
.site-header { position: sticky; top: 0; z-index: 50; }
.utility { background: var(--ink); color: #D9DED8; font-size: 13.5px; transition: margin-top .3s var(--ease); }
.utility-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 40px; }
.utility ul { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.utility li, .utility a { display: inline-flex; align-items: center; gap: 7px; }
.utility a { text-decoration: none; transition: color .2s; }
.utility a:hover { color: #fff; }
.utility svg { width: 15px; height: 15px; color: var(--porch); }
.utility-links > li + li:not(.utility-social) { padding-left: 22px; border-left: 1px solid rgba(255,255,255,.18); }
.utility-social { gap: 4px !important; padding-left: 10px; }
.utility-social a { width: 30px; height: 30px; justify-content: center; border-radius: 50%; }
.utility-social a:hover { background: rgba(255,255,255,.1); }
.utility-social svg { color: currentColor; width: 15px; height: 15px; }

.mainbar { background: rgba(250, 246, 239, .97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(8px); transition: box-shadow .3s; }
.mainbar-row { display: flex; align-items: center; gap: 28px; min-height: 84px; transition: min-height .3s var(--ease); }
.site-header.is-scrolled .utility { margin-top: -40px; }
.site-header.is-scrolled .mainbar { box-shadow: 0 6px 24px rgba(31, 43, 46, .08); }
.site-header.is-scrolled .mainbar-row { min-height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 44px; color: var(--brick); }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font: 700 24px/1 var(--display); letter-spacing: -.01em; }
.brand-sub { margin-top: 5px; font: 600 11px/1 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { position: relative; padding: 10px 12px; font-weight: 500; font-size: 15.5px; text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--brick); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.nav-cta { flex: none; }

.menu-btn { display: none; width: 46px; height: 46px; margin-left: auto; border: 0; border-radius: 50%; background: transparent; cursor: pointer; place-items: center; }
.menu-btn-bars, .menu-btn-bars::before, .menu-btn-bars::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease), background .2s; }
.menu-btn-bars { position: relative; }
.menu-btn-bars::before, .menu-btn-bars::after { content: ""; position: absolute; left: 0; }
.menu-btn-bars::before { top: -7px; }
.menu-btn-bars::after { top: 7px; width: 15px; }
.menu-btn.is-open .menu-btn-bars { background: transparent; }
.menu-btn.is-open .menu-btn-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-btn.is-open .menu-btn-bars::after { width: 22px; transform: translateY(-7px) rotate(-45deg); }

.drawer { position: fixed; inset: 0; z-index: 100; background: var(--paper); padding: 16px var(--gutter) 28px; display: flex; flex-direction: column; visibility: hidden; opacity: 0; transform: translateY(-12px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; }
.drawer.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.drawer-top .menu-btn { display: grid; margin: 0; }
.drawer nav { display: flex; flex-direction: column; margin: 28px 0; }
.drawer nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font: 700 24px/1.2 var(--display); text-decoration: none; }
.drawer-foot { margin-top: auto; }
.drawer-foot .btn { width: 100%; min-height: 54px; }

/* ============ HERO ============ */
.hero { position: relative; isolation: isolate; min-height: clamp(560px, calc(100svh - 160px), 860px); display: flex; flex-direction: column; justify-content: center; color: #fff; overflow: hidden; background: var(--ink); }
.hero-slides { position: absolute; inset: 0; z-index: -1; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 0s 1.1s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.1s ease; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(1.06); transition: transform 8s linear; }
.slide.is-active img { transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .slide img, .slide.is-active img { transform: none; transition: none; } }
/* Scrim: darker at left and bottom where the type sits */
.hero-slides::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(17, 25, 27, .72) 0%, rgba(17, 25, 27, .42) 42%, rgba(17, 25, 27, 0) 72%),
    linear-gradient(0deg, rgba(17, 25, 27, .6) 0%, rgba(17, 25, 27, 0) 38%); }

.hero-copy { padding-top: 56px; padding-bottom: 120px; }
.hero-copy > * { max-width: min(640px, 100% - 360px); }
.hero h1 { max-width: 14ch; font-size: clamp(40px, 5vw, 68px); line-height: 1.04; font-weight: 700; letter-spacing: -.025em; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero h1 em { font-style: italic; font-weight: 700; color: #F6D9A2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Caption: one per slide, a small frosted "yard sign" card above the controls */
.slide-cap { position: absolute; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); bottom: 150px; width: 330px; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: start; padding: 16px 20px 16px; border-radius: 12px; background: rgba(17, 25, 27, .52); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.slide-cap .chip { grid-column: 1 / -1; justify-self: start; margin-bottom: 10px; }
.slide-addr { font: 700 20px/1.2 var(--display); color: #fff; text-decoration: none; }
.slide-addr:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.slide-town { grid-column: 1 / -1; font-size: 14px; color: rgba(255,255,255,.78); }
.slide-facts { grid-column: 1 / -1; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.16); font-size: 14px; color: rgba(255,255,255,.88); }
.slide-facts strong { font-weight: 700; color: #fff; }
.slide-cap { opacity: 0; transform: translateY(10px); transition: opacity .6s ease .4s, transform .6s var(--ease) .4s; }
.slide.is-active .slide-cap { opacity: 1; transform: none; }

.hero-controls { position: absolute; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); bottom: 88px; width: 330px; display: flex; align-items: center; gap: 8px; }
.hero-controls[hidden] { display: none; }
.hero-count { margin-right: auto; font: 700 15px/1 var(--display); font-variant-numeric: tabular-nums; color: rgba(255,255,255,.85); }
.hero-count span { color: #fff; }
.ctl { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(17,25,27,.25); color: #fff; cursor: pointer; backdrop-filter: blur(4px); transition: background .2s, border-color .2s, color .2s; }
.ctl:hover { background: #fff; color: var(--ink); border-color: #fff; }
.ctl svg { width: 20px; height: 20px; }
.ctl .i-play { display: none; }
.ctl.is-paused .i-play { display: block; }
.ctl.is-paused .i-pause { display: none; }
.hero-progress { position: absolute; left: 0; right: 0; bottom: -14px; height: 2px; background: rgba(255,255,255,.25); border-radius: 2px; overflow: hidden; }
.hero-progress span { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }

/* ============ QUICK SEARCH (overlaps the hero) ============ */
.search-wrap { position: relative; z-index: 2; margin-top: -58px; background: linear-gradient(transparent 58px, var(--white) 58px); padding-bottom: clamp(56px, 6vw, 80px); }
.search { display: grid; grid-template-columns: 1.25fr 1fr 1fr .6fr .6fr auto; gap: 14px; align-items: end; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px 24px 24px; max-width: calc(var(--wrap) - 2 * var(--gutter)); }
.search-title { align-self: center; padding-right: 10px; border-right: 1px solid var(--line); }
.search-title .eyebrow { margin: 0 0 4px; }
.search-sub { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field select, .field input, .field textarea {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--paper); font-size: 15.5px; color: var(--ink); transition: border-color .2s, background .2s;
}
.field select { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%231F2B2E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; }
.field textarea { padding: 12px 14px; min-height: 110px; resize: vertical; }
.field select:hover, .field input:hover, .field textarea:hover { border-color: var(--sand); }
.field select:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--brick); background: #fff; }
.search-btn { min-height: 48px; border-radius: 8px; }


/* Stats: shadowed cards on white, icon on top */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0 auto; padding-top: clamp(44px, 5vw, 64px); list-style: none; }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 22px 32px; background: var(--white); border-radius: 4px; box-shadow: 0 2px 6px rgba(31, 43, 46, .06), 0 10px 30px rgba(31, 43, 46, .09); }
.stat-icon { width: 70px; height: 70px; margin-bottom: 18px; fill: none; stroke: var(--brick); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stat-num { display: inline-flex; align-items: center; gap: 6px; font: 700 40px/1 var(--display); letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.stat-star { width: 26px; height: 26px; color: var(--porch); }
.stat-label { margin-top: 10px; max-width: 18ch; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }

/* ============ Sections ============ */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; flex-wrap: wrap; }
.section-lede { margin: 16px 0 0; font-size: 18px; color: var(--ink-2); }

/* ---------- Homes ---------- */
.homes { padding-top: clamp(64px, 7vw, 96px); }
.tabs { display: inline-flex; padding: 5px; background: var(--cream); border-radius: 999px; }
.tabs button { min-height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: 15px; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(31,43,46,.12); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--cream); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-img img { transform: scale(1.04); }
.card-img .chip { position: absolute; left: 14px; top: 14px; }
.card-body { padding: 20px 22px 22px; }
.card-price { margin: 0 0 4px; font: 700 26px/1.1 var(--display); letter-spacing: -.015em; }
.card-addr { font: 600 16.5px/1.35 var(--sans); letter-spacing: 0; }
.card-addr a { text-decoration: none; }
.card-addr a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card-addr a:hover { color: var(--brick); }
.card-town { margin: 2px 0 14px; font-size: 15px; color: var(--muted); }
.card-facts { display: flex; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.card-facts span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 12px; border-radius: 50%; background: var(--sand); vertical-align: middle; }
.card-note { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.card--sold .card-img img { filter: saturate(.85); }
.homes-more { margin: 40px 0 0; text-align: center; }

/* ---------- About ---------- */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--arch); }
.about-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1; border: 1.5px solid var(--brick); border-radius: var(--arch); opacity: .5; }
.about-photo { isolation: isolate; }
.about-tag { position: absolute; left: -12px; bottom: 28px; margin: 0; padding: 14px 18px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.about-tag strong { display: block; font: 700 17px/1.25 var(--display); color: var(--ink); }
.about-copy h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 24px; }
.about-copy > p:not(.eyebrow) { color: var(--ink-2); max-width: 60ch; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0 34px; padding: 26px 0 0; list-style: none; border-top: 1px solid var(--sand); }
.about-facts li { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.about-facts strong { display: block; margin-bottom: 4px; font: 700 17px/1.25 var(--display); color: var(--brick); }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

/* ---------- Buy / Sell ---------- */
.buysell-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.panel-img { aspect-ratio: 16 / 9; overflow: hidden; }
.panel-img img { width: 100%; height: 100%; object-fit: cover; }
.panel-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 32px clamp(24px, 3vw, 40px) 36px; }
.panel h3 { font-size: clamp(26px, 2.4vw, 32px); margin-bottom: 22px; }
.steps { counter-reset: step; margin: 0 0 30px; padding: 0; list-style: none; flex: 1; }
.steps li { counter-increment: step; position: relative; padding: 0 0 16px 48px; color: var(--ink-2); font-size: 16px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--cream); color: var(--brick); font: 700 15px/1 var(--display); }
.steps strong { color: var(--ink); font-weight: 600; }

/* ---------- Neighborhoods ---------- */
.areas { background: var(--white); }
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 270px; gap: 20px; }
.area { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); color: #fff; text-decoration: none; background: var(--ink); isolation: isolate; }
.area--tall { grid-row: span 2; border-radius: var(--arch); }
.area--wide { grid-column: span 2; }
.area img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.area::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(17,25,27,.9) 0%, rgba(17,25,27,.62) 38%, rgba(17,25,27,.12) 68%, rgba(17,25,27,0) 85%); transition: opacity .3s; }
.area:hover img { transform: scale(1.05); }
.area-body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; padding: 22px 24px; }
.area-name { font: 700 24px/1.1 var(--display); text-shadow: 0 1px 12px rgba(0,0,0,.3); }
.area-line { margin-top: 6px; font-size: 14.5px; line-height: 1.4; color: rgba(255,255,255,.85); }
.area-price { align-self: flex-start; margin-top: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; }

/* ---------- Reviews ---------- */
.rating { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--ink-2); font-size: 15px; }
.stars { display: inline-flex; gap: 2px; color: var(--porch); }
.stars svg { width: 20px; height: 20px; }
.review-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 24px; }
.review { display: flex; flex-direction: column; justify-content: space-between; margin: 0; padding: 30px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.review blockquote { margin: 0 0 24px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.review figcaption { font-size: 14px; color: var(--muted); }
.review figcaption strong { display: block; color: var(--ink); font-size: 15.5px; }
.review:last-child:not(.review--feature) { grid-column: span 2; }
.review--feature { grid-row: span 2; background: var(--ink); color: var(--paper); padding: clamp(32px, 4vw, 48px); position: relative; overflow: hidden; }
.review--feature::before { content: "\201C"; display: block; height: 58px; font: 800 120px/1 var(--display); color: var(--brick); }
.review--feature blockquote { position: relative; font: 500 clamp(21px, 2vw, 26px)/1.45 var(--display); color: var(--paper); }
.review--feature figcaption { color: #B9C2BE; }
.review--feature figcaption strong { color: #fff; }

/* ---------- Home value ---------- */
.value { position: relative; isolation: isolate; padding: clamp(72px, 9vw, 120px) 0; color: #fff; overflow: hidden; }
.value-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.value::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 29, 31, .9) 0%, rgba(20, 29, 31, .78) 50%, rgba(20, 29, 31, .55) 100%); }
.value-grid { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: clamp(40px, 6vw, 88px); align-items: center; }
.value-copy h2 { margin-bottom: 20px; }
.value-copy p:not(.eyebrow) { max-width: 52ch; color: rgba(255,255,255,.85); font-size: 18px; }
.value-form, .contact-form { display: flex; flex-direction: column; gap: 16px; padding: clamp(26px, 3vw, 36px); background: var(--white); color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.value-form h3 { font-size: 24px; margin-bottom: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-done { display: none; margin: 0; padding: 14px 16px; border-radius: 8px; background: #EEF3EC; color: #2F4A33; font-size: 14.5px; }
.js-demo-form.is-sent .form-done { display: block; }
.js-demo-form.is-sent button[type="submit"] { display: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-copy h2 { font-size: clamp(38px, 4.4vw, 58px); margin-bottom: 20px; }
.contact-copy > p:not(.eyebrow) { color: var(--ink-2); max-width: 46ch; font-size: 18px; }
.contact-list { margin: 34px 0 0; padding: 0; list-style: none; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list svg { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--cream); color: var(--brick); }
.contact-list span { display: flex; flex-direction: column; font-size: 16px; color: var(--ink-2); }
.contact-list strong { font: 600 12px/1.6 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list a { color: var(--ink); font-weight: 500; text-decoration: none; }
.contact-list a:hover { color: var(--brick); }
.contact-form { box-shadow: var(--shadow); border: 1px solid var(--line); }
.choice { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choice legend { width: 100%; margin-bottom: 8px; padding: 0; font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 500; transition: all .2s; }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.choice input:focus-visible + span { outline: 2px solid var(--brick); outline-offset: 2px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #C4CCC8; padding: 72px 0 32px; font-size: 15px; }
.footer .brand { color: #fff; }
.footer .brand-mark { color: var(--brick); }
.footer .brand-sub { color: #97A29E; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin: 20px 0; max-width: 34ch; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; transition: background .2s, border-color .2s; }
.footer-social a:hover { background: var(--brick); border-color: var(--brick); color: #fff; }
.footer-social svg { width: 17px; height: 17px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 { margin-bottom: 6px; font: 600 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer-col a { text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-col p { margin: 0; }
.footer-towns { line-height: 1.8; }
.footer-legal { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; padding-top: 28px; font-size: 13px; color: #8F9A96; }
.footer-legal::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(255,255,255,.12); }
.footer-legal p { margin: 0; grid-column: 2; }
.footer-legal .eho { grid-column: 1; grid-row: 1 / span 2; display: flex; align-items: center; gap: 10px; color: #C4CCC8; font-weight: 600; }
.footer-legal .eho svg { width: 30px; height: 30px; }
.footer-legal a { color: #C4CCC8; }

.mobile-call { display: none; }

/* ============ LISTING PAGE ============ */
.crumbs { padding: 22px 0 18px; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brick); }
.crumbs span[aria-hidden] { margin: 0 8px; color: var(--sand); }

.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: clamp(340px, 60vh, 600px); }
.gallery button { position: relative; padding: 0; border: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--cream); cursor: zoom-in; }
.gallery button:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.gallery .chip { position: absolute; left: 18px; top: 18px; }
.gallery-count { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--white); color: var(--ink); font: 600 14px/1 var(--sans); box-shadow: var(--shadow); }
.gallery-count svg { width: 16px; height: 16px; }

.listing { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: clamp(36px, 5vw, 72px); padding: clamp(36px, 5vw, 56px) 0 clamp(72px, 9vw, 110px); align-items: start; }
.listing-head .eyebrow { margin-bottom: 10px; }
.listing-price { margin: 0; font: 800 clamp(40px, 4.6vw, 56px)/1 var(--display); letter-spacing: -.025em; }
.listing h1 { margin-top: 14px; font-size: clamp(26px, 2.6vw, 34px); }
.listing-town { margin: 6px 0 0; font-size: 17px; color: var(--muted); }
.listing-note { margin: 14px 0 0; font-size: 15px; color: var(--ink-2); }
.listing-note strong { color: var(--sage); }

.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 28px 0 0; }
.specs div { display: flex; flex-direction: column-reverse; padding: 18px 18px 16px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.specs dt { margin-top: 6px; font: 600 12px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 0; font: 700 30px/1 var(--display); letter-spacing: -.02em; }

.take { position: relative; margin: 36px 0 0; padding: 28px 30px 26px 30px; background: var(--cream); border-radius: var(--radius-lg); }
.take-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.take-head img { width: 52px; height: 60px; object-fit: cover; object-position: 50% 15%; border-radius: var(--arch); }
.take-head strong { display: block; font: 700 17px/1.2 var(--display); }
.take-head span { font-size: 13.5px; color: var(--muted); }
.take blockquote { margin: 0; font: 500 18.5px/1.55 var(--display); color: var(--ink); }

.block { padding-top: 44px; margin-top: 44px; border-top: 1px solid var(--line); }
.block h2 { font-size: clamp(26px, 2.4vw, 32px); margin-bottom: 22px; }
.desc { position: relative; max-height: 12.5em; overflow: hidden; transition: max-height .6s var(--ease); }
.desc p { color: var(--ink-2); }
.desc p:first-child { font-size: 19px; color: var(--ink); }
.desc::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5em; background: linear-gradient(rgba(250,246,239,0), var(--paper)); transition: opacity .4s; }
.desc.is-open { max-height: 80em; }
.desc.is-open::after { opacity: 0; }
.more-btn { margin-top: 6px; padding: 0; border: 0; background: none; font-size: 16px; cursor: pointer; }
.more-btn svg { transform: rotate(90deg); }
.more-btn[aria-expanded="true"] svg { transform: rotate(-90deg); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.features h3 { margin-bottom: 14px; font: 700 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brick); }
.features ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 15.5px; color: var(--ink-2); }
.features li { position: relative; padding-left: 26px; }
.features li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%23A8472F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 600; }

.map { overflow: hidden; aspect-ratio: 16 / 8; border-radius: var(--radius-lg); background: var(--cream); border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.nearby-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.nearby-list li { padding: 14px 16px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 14.5px; color: var(--ink-2); }
.nearby-list strong { display: block; font: 700 16px/1.3 var(--display); color: var(--ink); }
.area-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 28px; }
.area-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--arch); }
.area-card p { margin: 0; color: var(--ink-2); }
.area-card .eyebrow { margin-bottom: 8px; }
.area-card h3 { margin-bottom: 10px; }

.aside { display: grid; gap: 16px; }
/* Only follow the scroll when the whole card fits on screen, so the submit button is never cut off */
@media (min-width: 1025px) and (min-height: 1040px) { .aside { position: sticky; top: 104px; } }
.agent-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.agent-card img { width: 76px; height: 90px; object-fit: cover; object-position: 50% 15%; border-radius: var(--arch); }
.agent-card strong { display: block; font: 700 19px/1.2 var(--display); }
.agent-card p { margin: 2px 0 10px; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.agent-card .row { display: flex; gap: 16px; font-size: 14.5px; font-weight: 600; }
.agent-card .row a { color: var(--brick); text-decoration: none; }
.agent-card .row a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tour-form { display: flex; flex-direction: column; gap: 14px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.tour-form h2 { font-size: 26px; }
.tour-form > p { margin: -4px 0 4px; font-size: 15px; color: var(--ink-2); }
.tour-form .field-row { gap: 12px; }
.tour-form textarea { min-height: 90px; }
.open-house { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--ink); color: var(--paper); }
.open-house svg { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--brick); color: #fff; }
.open-house strong { display: block; font: 700 16px/1.2 var(--display); }
.open-house span { font-size: 14px; color: #C4CCC8; }

.more-homes { background: var(--cream); }

/* Photo lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #11191B; color: #fff; }
.lightbox::backdrop { background: #11191B; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gutter); }
.lb-count { font: 600 14px/1 var(--sans); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.lb-close, .lb-nav { display: grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(17,25,27,.4); color: #fff; cursor: pointer; transition: background .2s, color .2s; }
.lb-close:hover, .lb-nav:hover { background: #fff; color: var(--ink); }
.lb-close svg, .lb-nav svg { width: 20px; height: 20px; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(0px, 6vw, 96px); }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: var(--gutter); }
.lb-next { right: var(--gutter); }
.lb-caption { margin: 0; padding: 14px var(--gutter) 22px; text-align: center; font-size: 15px; color: rgba(255,255,255,.75); }

.listing-cta { display: none; }

/* ============ Responsive ============ */
@media (max-width: 1180px) {
  .nav a { padding: 10px 9px; font-size: 15px; }
  .hide-md { display: none !important; }
  .search { grid-template-columns: 1fr 1fr .7fr .7fr auto; }
  .search-title { display: none; }
}

@media (max-width: 1024px) {
  .nav, .nav-cta { display: none; }
  .menu-btn { display: grid; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .proof { grid-template-columns: repeat(2, 1fr); }
  .about-facts { grid-template-columns: 1fr; gap: 14px; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .area--wide { grid-column: span 2; }
  .review-grid { grid-template-columns: 1fr 1fr; }
  .review--feature { grid-column: 1 / -1; grid-row: auto; }
  .value-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .listing { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .hide-sm { display: none !important; }
  .utility-row { min-height: 36px; }
  .site-header.is-scrolled .utility { margin-top: -36px; }
  .mainbar-row { min-height: 68px; }
  .site-header.is-scrolled .mainbar-row { min-height: 62px; }
  .brand-name { font-size: 21px; }
  .brand-mark { width: 32px; height: 38px; }
  .brand-sub { font-size: 10px; letter-spacing: .12em; }

  .hero { min-height: 0; justify-content: flex-start; }
  .hero-copy { padding-top: 40px; padding-bottom: 250px; }
  .hero-copy > * { max-width: none; }
  .hero h1 { font-size: clamp(36px, 10vw, 46px); }
  .hero-actions { margin-top: 26px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-slides::after { background: linear-gradient(0deg, rgba(17,25,27,.75) 0%, rgba(17,25,27,.3) 40%, rgba(17,25,27,.6) 100%); }
  .slide-cap { left: var(--gutter); right: var(--gutter); width: auto; bottom: 54px; padding: 14px 16px; }
  .slide-cap .chip { margin-bottom: 8px; }
  .slide-addr { font-size: 19px; }
  .slide-facts { font-size: 13.5px; margin-top: 8px; padding-top: 8px; }
  .hero-controls { width: auto; right: calc(var(--gutter) + 12px); bottom: 150px; gap: 6px; }
  .hero-count, .hero-progress { display: none; }
  .ctl { width: 38px; height: 38px; }

  .search-wrap { margin-top: -30px; }
  .search { grid-template-columns: 1fr 1fr; padding: 18px; gap: 12px; margin: 0 var(--gutter); width: auto; }
  .search .field:first-of-type, .search .field:nth-of-type(2), .search-btn { grid-column: 1 / -1; }
  .proof { gap: 14px; padding-top: 36px; }
  .stat { padding: 24px 12px 22px; }
  .stat-icon { width: 46px; height: 46px; margin-bottom: 12px; }
  .stat-num { font-size: 30px; }
  .stat-star { width: 20px; height: 20px; }
  .stat-label { font-size: 14px; }

  .section-head { margin-bottom: 32px; }
  .cards, .buysell-grid { grid-template-columns: 1fr; gap: 20px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; margin: 0 auto 12px; width: calc(100% - 18px); }
  .about-tag { left: -6px; }
  .area-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; gap: 14px; }
  .area--tall { grid-row: span 1; border-radius: var(--radius-lg); }
  .area--wide { grid-column: auto; }
  .review-grid { grid-template-columns: 1fr; }
  .review:last-child:not(.review--feature) { grid-column: auto; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-legal { grid-template-columns: 1fr; }
  .footer-legal p, .footer-legal .eho { grid-column: 1; grid-row: auto; }

  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; gap: 8px; margin: 0 calc(var(--gutter) * -1); }
  .gallery button { border-radius: 0; }
  .gallery button:first-child { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .gallery button:not(:first-child) { aspect-ratio: 3 / 2; }
  .specs { grid-template-columns: 1fr 1fr; }
  .features, .facts, .nearby-list { grid-template-columns: 1fr; }
  .features { gap: 24px; }
  .area-card { grid-template-columns: 1fr; }
  .area-card img { max-width: 220px; }
  .map { aspect-ratio: 4 / 3; }
  .take { padding: 22px 20px; }
  .tour-form { padding: 22px 18px; }
  .lb-nav { top: auto; bottom: 8px; transform: none; }
  .lb-stage { padding-bottom: 64px; }

  .listing-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; gap: 8px; transition: transform .3s var(--ease); }
  .listing-cta.is-hidden { transform: translateY(140%); }
  .listing-cta .btn { min-height: 52px; box-shadow: 0 10px 30px rgba(31,43,46,.3); }
  .listing-cta .btn--brick { flex: 1; }
  .listing-cta .btn--ink { width: 52px; padding: 0; }

  .mobile-call { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 999px; background: var(--brick); color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 10px 30px rgba(31,43,46,.3); }
  .mobile-call svg { width: 18px; height: 18px; }
}
