/* =========================================================
   Arek Manakyan | Charleston Realtor
   Palette borrowed from Charleston itself:
   Charleston green shutters, haint blue porch ceilings,
   oyster-shell white and a soft champagne gold.
   Edit the tokens below to restyle the whole site.
   ========================================================= */
:root {
  --green: #17241f;        /* Charleston green */
  --green-2: #22332c;
  --green-3: #2e443a;
  --haint: #c9dfdc;        /* haint blue */
  --haint-soft: #eaf2f0;
  --oyster: #f5f5f1;       /* page background */
  --white: #ffffff;
  --gold: #c2a161;         /* champagne gold */
  --gold-light: #d8bf8a;
  --ink: #18201c;
  --muted: #5a6560;
  --line: #dde2dd;
  --on-dark: #d5e0db;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 128px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--oyster);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 { font-size: 1.35rem; font-weight: 500; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.section { padding: var(--section) 0; }
.tint { background: var(--haint-soft); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.125rem; margin: 0; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head.row > div { max-width: 640px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block; font: 600 .98rem/1 var(--sans); letter-spacing: .01em;
  padding: 17px 28px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-gold { background: var(--gold); color: var(--green); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.text-link { color: var(--green); font-weight: 600; text-underline-offset: 5px; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; }
.text-link:hover { color: var(--green-3); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--green); color: var(--white); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.2; flex-shrink: 0; }
.brand-name { font-family: var(--serif); font-size: 1.5rem; }
.brand-sub { font-size: .74rem; color: var(--haint); letter-spacing: .01em; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: .94rem; color: var(--on-dark); white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 8px; text-decoration-thickness: 1.5px; }
.nav-call { border: 1.5px solid var(--gold); padding: 9px 16px; border-radius: 999px; color: var(--gold) !important; }
.nav-call:hover { background: var(--gold); color: var(--green) !important; }
.menu-toggle { display: none; }

/* ---------- Home hero ---------- */
.hero { background: var(--green); color: var(--white); padding: clamp(40px, 6vw, 88px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.hero-copy { padding-bottom: clamp(48px, 7vw, 104px); }
.hero h1 { font-size: clamp(2.7rem, 5.8vw, 4.9rem); font-weight: 300; line-height: 1.02; letter-spacing: -0.025em; margin-bottom: 28px; }
.lede { font-size: 1.15rem; color: var(--on-dark); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 22px; }
.hero-text-note { font-size: .96rem; color: var(--haint); margin: 0; }
.hero-text-note a { color: var(--white); font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: 4px; }
/* The arch: a nod to Charleston's arched doorways and piazza screens */
.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% center;
  border-radius: 999px 999px 0 0; border: 1px solid var(--gold); border-bottom: 0; padding: 10px 10px 0;
}

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--green); color: var(--white); padding: clamp(40px, 6vw, 80px) 0 clamp(44px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: clamp(24px, 6vw, 96px); top: 36px; bottom: -2px;
  width: clamp(140px, 20vw, 260px);
  border: 1px solid rgba(194,161,97,.55); border-bottom: 0; border-radius: 999px 999px 0 0;
}
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 300; letter-spacing: -0.02em; max-width: 16em; }
.page-intro { font-size: 1.15rem; color: var(--on-dark); max-width: 38em; margin: 0; }
.crumbs { font-size: .88rem; color: var(--haint); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--haint); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.crumbs a:last-child { color: var(--white); }
.crumbs span { opacity: .5; }

/* ---------- Short answer box (for search and AI answers) ---------- */
.answer { border-left: 2px solid var(--gold); background: var(--white); padding: 24px 28px; margin: 0 0 40px; }
.answer-label { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--muted); margin-bottom: 6px; }
.answer p:last-child { margin: 0; font-size: 1.08rem; }

/* ---------- Proof strip ---------- */
.proof { background: var(--haint); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { padding: 38px 24px 34px 0; }
.proof-item + .proof-item { padding-left: 28px; border-left: 1px solid rgba(23,36,31,.16); }
.proof-big { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1; margin-bottom: 10px; color: var(--green); }
.proof-item p:last-child { margin: 0; color: #34433c; font-size: .96rem; }

/* ---------- Sell / buy paths ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.path { display: grid; grid-template-rows: auto 1fr; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s; }
.path:hover { border-color: var(--gold); }
.path img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.path > div { padding: 28px 30px 32px; }
.path p { color: var(--muted); }
.area-more { font-weight: 600; color: var(--green); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; text-decoration-thickness: 1.5px; }

/* ---------- Listings ---------- */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.listing { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.listing[hidden] { display: none; }
.listing-photo { position: relative; }
.listing-photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.photo-note { position: absolute; left: 12px; bottom: 12px; background: rgba(23,36,31,.82); color: var(--white); font-size: .78rem; padding: 4px 10px; border-radius: 999px; }
.listing-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.listing-body > p:not([class]) { color: var(--muted); font-size: .98rem; }
.listing-price { font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--green); margin-bottom: 12px; }
.listing h3 { margin-bottom: 4px; }
.listing-place { color: var(--muted); font-size: .94rem; margin-bottom: 14px; }
.listing-facts { list-style: none; padding: 12px 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.listing-by { font-size: .84rem; color: var(--muted); margin-top: auto; padding-top: 4px; }
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip { font: 600 .94rem var(--sans); padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.chip span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--white); }
.chip[aria-pressed="true"] span { color: var(--haint); }

/* ---------- Area cards ---------- */
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--green); }
.area-card { padding: 28px 28px 30px 0; text-decoration: none; display: flex; flex-direction: column; }
.area-card + .area-card { padding-left: 28px; border-left: 1px solid var(--line); }
.area-card p { color: var(--muted); font-size: 1rem; flex: 1; }
.area-card:hover h3 { color: var(--green-3); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.county + .county { margin-top: 56px; }
.county h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.area-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.area-row { background: var(--white); padding: 24px 24px 22px; text-decoration: none; }
.area-row p { color: var(--muted); font-size: .96rem; margin: 0; }
.area-row:hover { background: #fbfbf8; }
.area-row:hover h3 { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.county.soon p { color: var(--muted); max-width: 44em; }

/* ---------- Area page ---------- */
.area-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(40px, 5vw, 72px); align-items: start; }
.area-main h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 48px; }
.area-main h2:first-of-type { margin-top: 0; }
.area-main p { max-width: 40em; }
.area-facts { display: flex; flex-wrap: wrap; gap: 12px 48px; margin: 0 0 48px; }
.area-facts dt { font-size: .86rem; color: var(--muted); }
.area-facts dd { margin: 0; font-family: var(--serif); font-size: 1.25rem; }
.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 8px 16px; font-size: .95rem; }
.area-nearby { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; }
.area-nearby span { color: var(--muted); font-size: .92rem; }
.area-nearby a { color: var(--green); font-weight: 600; text-underline-offset: 5px; text-decoration-color: var(--gold); }
.area-aside { position: sticky; top: 104px; }
.aside-card { background: var(--green); color: var(--white); padding: 30px 28px; border-radius: var(--radius); }
.aside-card h2 { font-size: 1.6rem; margin: 0 0 8px; }
.aside-card > p { color: var(--on-dark); font-size: 1rem; }
.aside-card .lead-form { padding: 22px; }

/* ---------- Steps ---------- */
.sell-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.sell-photo { margin: 0; }
.sell-photo img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.sell-photo.top img { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); }
.sell-photo figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 30px 68px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -4px;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.3rem; color: var(--green); border: 1px solid var(--gold); background: var(--white);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 46px; bottom: 6px; width: 1px; background: var(--line); }
.steps h3 { font-size: 1.25rem; margin-bottom: 4px; }
.steps p { color: var(--muted); margin: 0; }
.steps-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; margin-top: 40px; }
.steps-row li { padding: 64px 0 0; }
.steps-row li::after { display: none; }

/* ---------- Checks ---------- */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 14px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 7px; border: solid var(--gold); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.checks a { color: var(--green); font-weight: 600; text-underline-offset: 4px; text-decoration-color: var(--gold); }

/* ---------- Forms ---------- */
.form-band { background: var(--green); color: var(--white); }
.form-band h2 { font-weight: 300; }
.form-band .form-grid > div > p { color: var(--on-dark); font-size: 1.125rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.lead-form { background: var(--white); color: var(--ink); padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius); display: grid; gap: 16px; }
.section:not(.form-band) .lead-form:not(.on-dark) { border: 1px solid var(--line); }
.lead-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.lead-form input:not([type=checkbox]), .lead-form select, .lead-form textarea {
  font: 400 1rem var(--sans); color: var(--ink); padding: 13px 14px;
  border: 1px solid #cfd6d1; border-radius: var(--radius); background: var(--white); width: 100%;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--haint); }
.lead-form .btn { justify-self: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.area-picker { border: 1px solid #cfd6d1; border-radius: var(--radius); padding: 12px 14px; }
.area-picker summary { font-weight: 600; font-size: .92rem; cursor: pointer; }
.areas { border: 0; padding: 12px 0 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.areas legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lead-form .check { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: .94rem; }
.check input { width: 17px; height: 17px; accent-color: var(--green); }
.form-note { font-size: .84rem; color: var(--muted); margin: -4px 0 0; }
.form-status { margin: 0; font-weight: 600; color: var(--green); }
.form-status:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border: solid var(--gold); border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); padding: 0 44px 22px 0; margin: 0; max-width: 46em; }

/* ---------- Prose (relocation) ---------- */
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 52px; }
.prose p { color: #33403a; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; background: var(--green); outline: 1px solid var(--gold); outline-offset: 10px; margin: 10px; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.portrait-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-weight: 300; font-size: clamp(4rem, 9vw, 7rem); color: var(--haint); }
.about-copy { max-width: 36em; }
.about-copy p { font-size: 1.1rem; }
.about-sign { font-family: var(--serif); font-style: italic; font-size: 1.25rem !important; color: var(--green); margin-top: 24px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 32px; }
.why-grid > div { border-top: 1px solid var(--gold); padding-top: 20px; }
.why-grid p { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-item { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.contact-item span { color: var(--muted); }
.contact-item strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.2rem, 2.4vw, 1.6rem); word-break: break-word; text-align: right; }
.contact-item:hover strong { color: var(--green-3); }
.contact-firm { margin-top: 28px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green-2); color: var(--white); padding: clamp(56px, 7vw, 88px) 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-weight: 300; margin-bottom: 8px; }
.cta-band p { color: var(--on-dark); margin: 0; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #101a16; color: #aebbb5; padding: 64px 0 104px; font-size: .92rem; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1.6fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-h { color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.footer-areas { list-style: none; margin: 0; padding: 0; }
.footer-hoods.multi .footer-areas { columns: 2; column-gap: 24px; }
.footer-areas li { margin-bottom: 6px; break-inside: avoid; }
.site-footer a { color: #e3eae6; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-name { color: var(--white); font-family: var(--serif); font-size: 1.3rem; margin-bottom: 8px; }
.footer-legal { padding-top: 28px; font-size: .84rem; max-width: 60em; }
.eho { width: 18px; height: 18px; fill: currentColor; vertical-align: -3px; margin-right: 4px; }

.sticky-text { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .menu-toggle {
    display: inline-block; background: none; color: var(--white);
    border: 1.5px solid rgba(255,255,255,.45); border-radius: 999px;
    font: 600 .95rem var(--sans); padding: 9px 18px; cursor: pointer;
  }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--green); padding: 8px var(--gutter) 22px; border-top: 1px solid rgba(255,255,255,.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.02rem; }
  .site-nav a[aria-current="page"] { text-decoration: none; color: var(--gold-light); }
  .site-nav .nav-call { margin-top: 16px; text-align: center; border-bottom: 1.5px solid var(--gold); }
}

@media (max-width: 980px) {
  .listing-grid, .area-list { grid-template-columns: 1fr 1fr; }
  .proof-grid, .area-grid, .why-grid { grid-template-columns: 1fr 1fr; }
  .proof-item:nth-child(3), .area-card:nth-child(3) { padding-left: 0; border-left: 0; }
  .proof-item:nth-child(n+3), .area-card:nth-child(n+3) { border-top: 1px solid rgba(23,36,31,.14); }
  .steps-row { grid-template-columns: 1fr 1fr; }
  .area-layout { grid-template-columns: 1fr; }
  .area-aside { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-hoods { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .brand-sub { display: none; }
  .hero-grid, .sell-grid, .form-grid, .about-grid, .paths { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-photo img { aspect-ratio: 1 / 1; }
  .about-grid .portrait { max-width: 320px; }
  .sell-photo.top { max-width: 420px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .listing-grid, .area-list, .area-grid, .why-grid, .steps-row { grid-template-columns: 1fr; }
  .proof-item { padding: 24px 12px 22px 0; }
  .proof-item + .proof-item { padding-left: 16px; }
  .proof-item:nth-child(3) { padding-left: 0; }
  .area-card, .area-card + .area-card { padding: 22px 0; border-left: 0; }
  .area-card + .area-card { border-top: 1px solid var(--line); }
  .field-row, .areas { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; text-align: center; }
  .lead-form .btn { justify-self: stretch; text-align: center; }
  .footer-top { grid-template-columns: 1fr; }
  .contact-item { flex-direction: column; gap: 2px; }
  .contact-item strong { text-align: left; }
  .answer { padding: 20px; }
  .faq summary { font-size: 1.15rem; }
  .page-hero::after { display: none; }

  .sticky-text {
    display: block; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
    background: var(--gold); color: var(--green); text-align: center; text-decoration: none;
    font-weight: 700; padding: 15px; border-radius: 999px; box-shadow: 0 8px 24px rgba(16,26,22,.35);
  }
}

/* ---------- Fair housing, REALTOR and MLS badges ---------- */
.footer-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; padding-top: 32px; }
.footer-badges img { height: 64px; width: auto; opacity: .92; }
.badge { display: inline-flex; align-items: center; }
.badge-text { display: none; }
.badge.nofile .badge-text {
  display: inline-grid; place-items: center; height: 64px; min-width: 64px; padding: 0 16px;
  border: 2px solid #e3eae6; color: #e3eae6; font: 700 1.05rem/1 Arial, Helvetica, sans-serif; letter-spacing: .04em;
}

/* ---------- Home hero: full-width listing photo slider ---------- */
.hero--slider {
  position: relative; isolation: isolate;
  min-height: clamp(560px, calc(100svh - 76px), 920px);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(56px, 8vw, 112px) 0 clamp(88px, 9vw, 120px);
}
.hero--slider > .wrap { width: 100%; }
.hero--slider .hero-grid { grid-template-columns: minmax(0, 700px); justify-content: start; position: relative; z-index: 2; }
.hero--slider .hero-copy { padding-bottom: 0; }
.hero--slider h1,
.hero--slider .lede { text-shadow: 0 1px 2px rgba(0,0,0,.35), 0 2px 18px rgba(0,0,0,.35); }
.hero--slider .lede { color: var(--white); max-width: 38em; }
.hero--slider .hero-text-note { color: var(--on-dark); }
.hero--slider .btn-ghost { background: rgba(23,36,31,.35); border-color: rgba(255,255,255,.75);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

.hero-slides { position: absolute; inset: 0; z-index: -2; margin: 0; overflow: hidden; background: var(--green); }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.hero-slide.is-active img { animation: hero-drift 9s ease-out both; }
@keyframes hero-drift { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Charleston-green scrim: heaviest behind the text, lighter on the right so the home shows */
.hero-scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(23,36,31,.90) 0%, rgba(23,36,31,.74) 38%, rgba(23,36,31,.30) 72%, rgba(23,36,31,.12) 100%),
    linear-gradient(0deg, rgba(23,36,31,.70) 0%, rgba(23,36,31,0) 30%); }

.hero-slide figcaption {
  position: absolute; right: var(--gutter); bottom: 76px; z-index: 3;
  font: 500 .76rem/1.3 var(--sans); letter-spacing: .02em; color: var(--white);
  background: rgba(23,36,31,.72); padding: 6px 12px; border-radius: 999px;
  max-width: calc(100% - 2 * var(--gutter)); }

.hero-controls { position: absolute; left: 0; right: 0; bottom: 20px; z-index: 3;
  display: flex; align-items: center; gap: 14px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.hero-dots button::before { content: ""; position: absolute; left: 4px; right: 4px; top: 13px; height: 2px;
  background: rgba(255,255,255,.45); transition: background-color .3s; }
.hero-dots button[aria-current="true"]::before { background: var(--gold); }
.hero-pause { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55);
  background: rgba(23,36,31,.35); cursor: pointer; display: grid; place-items: center; padding: 0; }
.hero-pause span { width: 8px; height: 10px; border-left: 2.5px solid #fff; border-right: 2.5px solid #fff; }
.hero-pause[aria-pressed="true"] span { width: 0; height: 0; border: 0;
  border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.hero-pause:hover, .hero-dots button:hover::before { border-color: var(--gold); }
.hero-controls:not(.is-ready) { display: none; }

@media (max-width: 860px) {
  .hero-scrim { background: linear-gradient(180deg, rgba(23,36,31,.72) 0%, rgba(23,36,31,.80) 55%, rgba(23,36,31,.90) 100%); }
  .hero--slider { padding-bottom: 0; justify-content: flex-start; }
  .hero-controls { position: relative; bottom: auto; margin-top: 28px; padding-bottom: 76px; }
  .hero-slide figcaption { left: var(--gutter); right: auto; bottom: 24px; }
}
@media (max-width: 640px) {
  .hero-controls { padding-bottom: 128px; }
  .hero-slide figcaption { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active img { animation: none; }
  .hero-slide { transition: opacity .4s ease; }
}

/* ---------- Selling / Buying card photo sliders ---------- */
.path > .path-slides { padding: 0; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--green-2); }
.path-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.path-slide.is-active { opacity: 1; }
.path-slide img { width: 100%; height: 100%; max-width: none; aspect-ratio: auto; object-fit: cover; transition: transform 6s ease-out; }
.path-slide.is-active img { transform: scale(1.04); }
.path-slide figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px);
  font: 500 .72rem/1.3 var(--sans); letter-spacing: .02em; color: var(--white);
  background: rgba(23,36,31,.72); padding: 5px 10px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) {
  .path-slide img { transition: none; } .path-slide.is-active img { transform: none; }
}

/* ---------- Listing card photo sliders ---------- */
.listing-slider { position: relative; overflow: hidden; background: var(--green-2); }
.ls-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; aspect-ratio: 4 / 3; }
.ls-track::-webkit-scrollbar { display: none; }
.ls-track:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.ls-track img { flex: 0 0 100%; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; scroll-snap-align: start; }
.ls-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(23,36,31,.62); cursor: pointer; display: grid; place-items: center; padding: 0;
  opacity: .9; transition: opacity .2s, background-color .2s; }
.ls-btn:hover { background: rgba(23,36,31,.85); }
.ls-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ls-btn span { width: 9px; height: 9px; border-top: 2px solid #fff; border-right: 2px solid #fff; }
.ls-prev { left: 10px; } .ls-prev span { transform: rotate(-135deg); margin-left: 4px; }
.ls-next { right: 10px; } .ls-next span { transform: rotate(45deg); margin-right: 4px; }
.ls-btn[disabled] { opacity: 0; pointer-events: none; }
.ls-count { position: absolute; right: 10px; bottom: 10px; font: 600 .74rem/1 var(--sans); color: var(--white);
  background: rgba(23,36,31,.72); padding: 6px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (min-width: 641px) {
  .listing-slider .ls-btn { opacity: 0; }
  .listing-slider:hover .ls-btn, .listing-slider:focus-within .ls-btn { opacity: .9; }
  .listing-slider .ls-btn[disabled] { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .ls-track { scroll-behavior: auto; } }
.ls-track .ls-slide { flex: 0 0 100%; width: 100%; height: 100%; margin: 0; position: relative; scroll-snap-align: start; }
.ls-track .ls-slide img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.ls-slide .photo-note { left: 10px; bottom: 10px; font-size: .72rem; }
