/* Heritage Real Estate: one stylesheet, mobile first. Colours come from the logo
   (#950018) and the tan of the old footer badge strip (#cdbb8b). */
:root {
  --brand: #950018;
  --brand-dark: #6c0011;
  --tan: #cdbb8b;
  --tan-soft: #f5f0e3;
  --ink: #221c18;
  --muted: #5b524a;
  --line: #e2d9c6;
  --bg: #fffdf9;
  --white: #fff;
  --radius: 6px;
  --wrap: 72rem;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1.0625rem/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .15em; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid #1a5fb4; outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.45rem, 3.6vw, 2rem); margin: 2rem 0 .75rem; }
h3 { font-size: 1.25rem; margin: 1.5rem 0 .5rem; }
p, ul, ol { margin: 0 0 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; top: .5rem; }

.draft-banner { background: #fff3c4; color: #4a3b00; text-align: center; font-size: .875rem; padding: .35rem 1rem; border-bottom: 1px solid #e6d58a; }

/* Header */
.site-head { background: var(--white); border-bottom: 4px solid var(--brand); position: relative; z-index: 5; }
.head-row { display: flex; align-items: center; gap: .75rem; min-height: 80px; }
.brand img { width: 128px; height: auto; }
.head-call { margin-left: auto; font-weight: 600; text-decoration: none; white-space: nowrap; padding: .5rem .25rem; }
.nav-toggle { display: inline-flex; align-items: center; gap: .5rem; font: inherit; font-weight: 600; color: var(--white);
  background: var(--brand); border: 0; border-radius: var(--radius); padding: .55rem .8rem; min-height: 44px; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.site-nav { display: none; border-top: 1px solid var(--line); }
.site-nav.is-open { display: block; }
.nav-list, .nav-list ul { list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: .7rem 0; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.nav-list .sub a { font-weight: 400; padding-left: 1rem; }
.nav-list a[aria-current="page"] { color: var(--brand); }
/* no-JS: css/nojs.css (loaded from <noscript>) shows the menu and hides the toggle */

@media (min-width: 62em) {
  .brand img { width: 159px; }
  .head-row { min-height: 96px; }
  .nav-toggle { display: none; }
  .site-nav { display: block; border-top: 0; background: var(--brand); }
  .nav-list { display: flex; flex-wrap: wrap; }
  .nav-list > li { position: relative; }
  .nav-list > li > a { color: var(--white); border: 0; padding: .8rem .9rem; font-size: .975rem; }
  .nav-list > li > a:hover, .nav-list > li.is-active > a { background: var(--brand-dark); color: var(--white); }
  .nav-list > li > a[aria-current="page"] { color: var(--white); }
  .nav-list .sub { display: none; position: absolute; left: 0; top: 100%; min-width: 15rem; background: var(--white);
    border: 1px solid var(--line); border-top: 3px solid var(--brand); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
  .nav-list .sub a { padding: .6rem 1rem; }
  .nav-list li:hover > .sub, .nav-list li:focus-within > .sub { display: block; }
}

/* Hero (home) */
.hero { position: relative; color: var(--white); background: #2b2420; }
.hero picture, .hero img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,10,8,.78) 0%, rgba(20,10,8,.45) 60%, rgba(20,10,8,.2) 100%); }
.hero-inner { position: relative; z-index: 1; padding: 3.5rem 1rem 3rem; max-width: var(--wrap); margin: 0 auto; min-height: 26rem; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { color: var(--white); max-width: 18em; }
.hero p { font-size: 1.15rem; max-width: 34em; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.25rem; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; background: var(--brand); color: var(--white); border: 2px solid var(--brand); font-size: 1rem; cursor: pointer; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--brand); border-color: var(--white); }
.btn-light:hover { background: var(--tan-soft); color: var(--brand-dark); border-color: var(--tan-soft); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--tan-soft); color: var(--brand-dark); }

/* Page heading band (interior pages) */
.page-head { background: var(--tan-soft); border-bottom: 1px solid var(--line); padding: 2rem 0 1.5rem; }
.page-quote { font-family: var(--serif); font-style: italic; color: var(--brand); font-size: 1.15rem; margin: 0 0 .5rem; }

.section { padding: 2.5rem 0; }
.section-alt { background: var(--tan-soft); }
.lede { font-size: 1.15rem; color: var(--muted); }
.prose { max-width: 46rem; }
.split { display: grid; gap: 1.5rem; align-items: start; }
.split figure, figure { margin: 0; }
figcaption { font-size: .875rem; color: var(--muted); margin-top: .4rem; }
.photo { border-radius: var(--radius); }
@media (min-width: 48em) {
  .split { grid-template-columns: 1.6fr 1fr; gap: 2.5rem; }
  .split.reverse { grid-template-columns: 1fr 1.6fr; }
}

.tick-list { list-style: none; padding: 0; columns: 1; }
.tick-list li { padding: .3rem 0 .3rem 1.6rem; position: relative; break-inside: avoid; }
.tick-list li::before { content: ""; position: absolute; left: .2rem; top: .8rem; width: .55rem; height: .55rem; background: var(--brand); border-radius: 50%; }
@media (min-width: 40em) { .tick-list.cols { columns: 2; } }
@media (min-width: 62em) { .tick-list.cols-3 { columns: 3; } }

.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 40em) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; }
.card h2, .card h3 { margin-top: 0; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card-media { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: start; }
.card-media img { border-radius: var(--radius); }

.steps { counter-reset: none; padding: 0; list-style: none; }
.steps > li { border-left: 3px solid var(--tan); padding: .25rem 0 .25rem 1rem; margin-bottom: 1.25rem; }
.steps h3 { margin-top: 0; }

.brands-strip { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: center; }
.brands-strip img { width: 200px; }

.quote-band { background: var(--brand); color: var(--white); text-align: center; padding: 2.25rem 1rem; font-family: var(--serif); font-size: clamp(1.3rem, 3.4vw, 1.8rem); }
.quote-band p { margin: 0 auto; max-width: 40rem; }

/* Team */
.team { display: grid; gap: 1rem; grid-template-columns: 1fr; list-style: none; padding: 0; }
@media (min-width: 40em) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .team { grid-template-columns: repeat(3, 1fr); } }
.person { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: grid; grid-template-columns: 96px 1fr; gap: 1rem; }
.person img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; border: 3px solid var(--tan); }
.person h2 { font-size: 1.2rem; margin: 0; }
.person .role { color: var(--muted); margin: 0 0 .5rem; }
.person dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; font-size: .95rem; }
.person dt { color: var(--muted); }
.person dd { margin: 0; overflow-wrap: break-word; min-width: 0; }

/* Listings */
.listing-tools { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.chip { font: inherit; font-weight: 600; padding: .45rem .9rem; border-radius: 999px; border: 2px solid var(--brand); background: var(--white); color: var(--brand); cursor: pointer; min-height: 40px; }
.chip[aria-pressed="true"] { background: var(--brand); color: var(--white); }
.listings { display: grid; gap: 1rem; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 40em) { .listings { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .listings { grid-template-columns: repeat(3, 1fr); } }
.listing { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.listing-photo { position: relative; aspect-ratio: 4 / 3; background: var(--tan-soft); }
.listing-photo img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: .6rem; left: .6rem; background: var(--brand); color: var(--white); font-size: .8rem; font-weight: 700; padding: .2rem .55rem; border-radius: 4px; letter-spacing: .03em; }
.badge.sample { left: auto; right: .6rem; background: #4a3b00; }
.listing-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.listing-price { font-size: 1.4rem; font-weight: 700; color: var(--brand); margin: 0; }
.listing h3 { margin: 0; font-family: var(--sans); font-size: 1.05rem; font-weight: 700; }
.listing-facts { color: var(--muted); margin: 0; }
.listing-open { background: var(--tan-soft); border-radius: 4px; padding: .35rem .6rem; font-weight: 600; margin: .3rem 0 0; }
.listing-mls { font-size: .85rem; color: var(--muted); margin: auto 0 0; padding-top: .4rem; }
.empty { background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.5rem; text-align: center; color: var(--muted); }
.note { border-left: 4px solid var(--tan); background: var(--white); padding: .9rem 1rem; color: var(--muted); font-size: .95rem; }

/* Video facade */
.videos { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 48em) { .videos { grid-template-columns: repeat(2, 1fr); } }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.video-play span { width: 72px; height: 50px; border-radius: 12px; background: var(--brand); display: grid; place-items: center; }
.video-play span::after { content: ""; border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; margin-left: 4px; }

/* Form */
.form { display: grid; gap: 1rem; max-width: 40rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid #8f8478; border-radius: var(--radius); background: var(--white); color: var(--ink); min-height: 48px; }
.field textarea { min-height: 9rem; resize: vertical; }
.field .hint { font-size: .875rem; color: var(--muted); margin: .25rem 0 0; }
.req { color: var(--brand); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5rem; font-weight: 600; }
.form-status.ok { color: #1d6b2f; }
.form-status.err { color: var(--brand); }
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 62em) { .contact-grid { grid-template-columns: 1fr 1.4fr; } }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.contact-card p { margin-bottom: .6rem; }

/* Vendors */
.vendor { display: grid; gap: 1rem; grid-template-columns: 1fr; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.vendor img { width: 120px; border-radius: var(--radius); }
@media (min-width: 40em) { .vendor { grid-template-columns: 140px 1fr; } }
.vendor h2 { margin-top: 0; }

/* Footer */
.site-foot { background: #1f1916; color: #ece4d3; margin-top: 3rem; padding: 2.5rem 0 1.5rem; }
.site-foot a { color: #fff; }
.foot-quote { font-family: var(--serif); font-size: 1.35rem; text-align: center; color: var(--tan); margin-bottom: 1.5rem; }
.foot-brands { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: center; align-items: center; }
.foot-brands img { background: #fff; padding: 6px; border-radius: 4px; width: 160px; }
.foot-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 48em) { .foot-grid { grid-template-columns: repeat(3, 1fr); } }
.foot-h { font-family: var(--sans); font-size: .95rem; font-weight: 700; color: var(--tan); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .4rem; }
.badges { margin: 1.5rem auto 1rem; width: 100%; max-width: 650px; border-radius: 4px; }
.copy { text-align: center; font-size: .875rem; color: #bdb3a1; margin: 0; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
