/* Homepage sections added for the three designs (Classic, Modern, Luxury; Nov 2026).
   Colours and fonts come only from the team's tokens. Each design also sets a few style variables (defaults below),
   which is what the master admin's design editor changes:
     --bh-action / --bh-on-action   buttons and active controls (Luxury uses its accent: its main colour is near-black)
     --bh-section-space             vertical rhythm between sections
     --bh-img-radius                corner radius of photos and panels
     --bh-step-style                care plan numbering (decimal-leading-zero, upper-roman…)
     --bh-motion                    1 = slideshow zoom and scroll reveal on, 0 = off
   Motion always stops for people who ask their device to reduce it. */

.bh-site {
    position: relative; /* a header floating over a photo sits under any preview bar, not behind it */
    --bh-action: var(--bh-primary);
    --bh-on-action: var(--bh-on-primary);
    --bh-section-space: clamp(72px, 9vw, 112px);
    --bh-img-radius: calc(var(--bh-radius) + 4px);
    --bh-step-style: decimal-leading-zero;
    --bh-motion: 1;
}

/* ---------- reveal on scroll (CSS only; browsers without scroll timelines just show everything) ---------- */
@keyframes bh-rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
    .bh-site:not([data-motion="off"]) .bh-reveal { animation: bh-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
}

/* ---------- hero slideshow ---------- */
@keyframes bh-slow-zoom { from { transform: scale(1.02); } to { transform: scale(1.14); } }
.bh-hero__slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.bh-hero__slide { opacity: 0; transition: opacity 1.6s ease; }
.bh-hero__slide.is-on { opacity: 1; }
.bh-site:not([data-motion="off"]) .bh-hero__slide.is-on { animation: bh-slow-zoom 14s ease-out both; }

/* ---------- neighbourhood ticker ---------- */
@keyframes bh-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.bh-ticker { background: var(--bh-primary); color: var(--bh-on-primary); overflow: hidden; white-space: nowrap; padding: 16px 0; }
.bh-ticker__track { display: inline-flex; gap: 48px; padding-left: 48px; font-family: var(--bh-font-quote); font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-style: italic; }
.bh-site:not([data-motion="off"]) .bh-ticker__track { animation: bh-marquee 40s linear infinite; }
.bh-ticker__mark { color: var(--bh-accent); font-style: normal; }

/* ---------- photo panels (Selling / Buying) ---------- */
.bh-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 28px; padding-block: calc(var(--bh-section-space) * .6) 0; }
.bh-panel {
    position: relative; min-height: clamp(360px, 48vw, 560px); border-radius: var(--bh-img-radius); overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: clamp(24px, 3vw, 40px);
    text-decoration: none; color: var(--bh-on-primary); background: var(--bh-primary-deep);
}
.bh-panel__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.bh-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, color-mix(in srgb, var(--bh-primary-deep) 88%, transparent) 100%); }
.bh-panel--plain { background: linear-gradient(160deg, var(--bh-primary) 0%, var(--bh-primary-deep) 100%); }
.bh-panel:hover .bh-panel__img { transform: scale(1.06); }
.bh-panel:focus-visible { outline: 3px solid var(--bh-accent); outline-offset: 3px; }
.bh-panel__eyebrow { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; opacity: .85; }
.bh-panel__title { font-family: var(--bh-font-heading); font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.08; }
.bh-panel__link { font-weight: 600; }
/* Design previews only: says the photo is the design's sample, not the team's. */
.bh-panel__sample { position: absolute; top: 14px; right: 14px; font-size: .75rem; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--bh-primary-deep) 80%, transparent); color: var(--bh-on-primary); }

/* ---------- featured listing (showcase) ---------- */
.bh-showcase__head { align-items: flex-end; margin-bottom: 32px; }
.bh-showcase__head h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.05; }
.bh-showcase__aside { margin: 0; font-family: var(--bh-font-heading); font-size: clamp(1.5rem, 3vw, 2.1rem); font-variant-numeric: tabular-nums; }
.bh-showcase__grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(160px, 20vw, 280px); }
.bh-showcase__photo { margin: 0; position: relative; border-radius: var(--bh-img-radius); overflow: hidden; }
.bh-showcase__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.bh-showcase__photo:hover img { transform: scale(1.06); }
/* Magazine layout: the lead photo is large, the rest fill around it. */
.bh-showcase__photo:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bh-showcase__photo:nth-child(2) { grid-column: span 2; }
.bh-showcase__grid--6 .bh-showcase__photo:nth-child(5) { grid-column: span 3; }
.bh-showcase__grid--1 .bh-showcase__photo:nth-child(1) { grid-column: 1 / -1; }
.bh-showcase__foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--bh-hairline); align-items: center; }
.bh-showcase__facts { margin: 0; color: var(--bh-ink-muted); word-spacing: .3em; }
@media (max-width: 720px) {
    .bh-showcase__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bh-showcase__photo:nth-child(n) { grid-column: span 1; grid-row: span 1; }
    .bh-showcase__photo:nth-child(1) { grid-column: 1 / -1; grid-row: span 2; }
}

/* ---------- first-year care plan ---------- */
.bh-careplan { background: color-mix(in srgb, var(--bh-primary) 6%, var(--bh-surface)); }
.bh-careplan__intro { max-width: 760px; margin-bottom: 48px; }
.bh-careplan__intro h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.04; }
.bh-careplan__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; counter-reset: bh-step; }
.bh-careplan__step {
    counter-increment: bh-step; display: flex; flex-direction: column; gap: 10px; padding: 32px 28px;
    background: var(--bh-surface-raised); color: var(--bh-ink); border-radius: var(--bh-img-radius);
}
.bh-careplan__step::before { content: counter(bh-step, var(--bh-step-style)); font-family: var(--bh-font-heading); font-size: 3.4rem; line-height: 1; color: var(--bh-action); }
.bh-careplan__step:last-child { background: var(--bh-primary-deep); color: var(--bh-on-primary); }
.bh-careplan__step:last-child::before, .bh-careplan__step:last-child .bh-careplan__when { color: var(--bh-accent); }
.bh-careplan__when { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--bh-ink-muted); }
.bh-careplan__title { font-family: var(--bh-font-heading); font-size: 1.6rem; line-height: 1.15; }
.bh-careplan__detail { font-size: .95rem; opacity: .85; }

/* ---------- calculator section ---------- */
.bh-calcblock { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.bh-calcblock__copy { flex: 1 1 340px; min-width: 0; }
.bh-calcblock__copy h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.04; }
.bh-calcblock__tool { flex: 1 1 480px; min-width: 0; }

/* ---------- contact over a photo ---------- */
.bh-contact-wrap--photo { position: relative; isolation: isolate; color: var(--bh-on-primary); }
.bh-contact-wrap__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.bh-contact-wrap--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--bh-primary-deep) 80%, transparent); }
.bh-contact-wrap--photo h2 { color: var(--bh-on-primary); }
.bh-contact-wrap--photo form { background: var(--bh-surface); color: var(--bh-ink); border-radius: var(--bh-img-radius); padding: clamp(20px, 3vw, 36px); }

/* ---------- headings: **words** highlighted in serif designs read as italics ---------- */
.bh-careplan__intro h2 strong, .bh-calcblock__copy h2 strong, .bh-showcase__head h2 strong { font-weight: inherit; font-style: italic; }

@media (prefers-reduced-motion: reduce) {
    .bh-reveal, .bh-hero__slide.is-on, .bh-ticker__track { animation: none !important; }
    .bh-hero__slide { transition: none; }
    .bh-panel__img, .bh-showcase__photo img { transition: none; }
}

/* ---------- design template sections (Nov 19, 2026): designs restyle these to match their templates ---------- */
/* Design previews only: says a photo is the design's sample, not the team's. */
.bh-sample-chip { position: absolute; right: 12px; bottom: 12px; z-index: 3; font-size: .72rem; line-height: 1.4; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--bh-primary-deep) 78%, transparent); color: var(--bh-on-primary); pointer-events: none; font-style: normal; letter-spacing: 0; text-transform: none; }
.bh-showcase__grid, .bh-careplan__media { position: relative; }
.bh-showcase__cap { display: none; }
.bh-hero__cue { display: none; }
.bh-header__cta { white-space: nowrap; }

/* care plan beside a photo */
.bh-careplan--media .bh-careplan__inner { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); align-items: center; }
.bh-careplan__media { flex: 1 1 440px; min-width: 0; height: clamp(360px, 44vw, 640px); overflow: hidden; margin: 0; border-radius: var(--bh-img-radius); }
.bh-careplan__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bh-careplan--media .bh-careplan__body { flex: 1 1 480px; min-width: 0; }
.bh-careplan--media .bh-careplan__steps { grid-template-columns: 1fr; }

/* private collection */
.bh-private { background: var(--bh-surface-raised); }
.bh-private__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; }
.bh-private__intro { max-width: 680px; }
.bh-private__intro h2 { font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: 1; }
.bh-private__intro h2 strong { font-weight: inherit; font-style: italic; }
.bh-private__count { margin: 0; font-family: var(--bh-font-quote); font-size: 1.35rem; font-style: italic; color: var(--bh-ink-muted); }
.bh-private__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.bh-private__lot-pick { display: block; cursor: pointer; }
.bh-private__lot { display: flex; flex-direction: column; height: 100%; background: var(--bh-surface); border: 1px solid var(--bh-hairline); border-radius: var(--bh-img-radius); overflow: hidden; }
.bh-private__lot-pick:has(:checked) .bh-private__lot { border-color: var(--bh-accent); }
.bh-private__lot-pick:has(:focus-visible) .bh-private__lot { outline: 3px solid var(--bh-accent); outline-offset: 2px; }
.bh-private__veil { position: relative; display: block; height: 300px; overflow: hidden; background: var(--bh-primary-deep); }
.bh-private__veil img { width: 100%; height: 100%; object-fit: cover; display: block; filter: blur(14px) brightness(.6); transform: scale(1.15); }
.bh-private__lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--bh-on-primary); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
.bh-private__meta { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; }
.bh-private__title { font-family: var(--bh-font-heading); font-size: 1.75rem; line-height: 1.1; }
.bh-private__facts { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--bh-ink-muted); }
.bh-private__request { margin-top: 32px; border: 1px solid var(--bh-hairline); border-radius: var(--bh-img-radius); padding: clamp(20px, 3vw, 36px); display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; }
.bh-private__ask { margin: 0; flex: 1 1 100%; font-family: var(--bh-font-heading); font-size: 1.6rem; }
.bh-private__ask em { color: var(--bh-accent); }
.bh-private__for { display: none; }
.bh-private form:has(.bh-private__grid > :nth-child(1) :checked) .bh-private__for--0,
.bh-private form:has(.bh-private__grid > :nth-child(2) :checked) .bh-private__for--1,
.bh-private form:has(.bh-private__grid > :nth-child(3) :checked) .bh-private__for--2,
.bh-private form:has(.bh-private__grid > :nth-child(4) :checked) .bh-private__for--3,
.bh-private form:has(.bh-private__grid > :nth-child(5) :checked) .bh-private__for--4,
.bh-private form:has(.bh-private__grid > :nth-child(6) :checked) .bh-private__for--5 { display: inline; }
.bh-private__field { flex: 1 1 240px; display: flex; flex-direction: column; gap: 8px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--bh-ink-muted); }
.bh-private__field input { font: inherit; font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--bh-ink); background: transparent; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--bh-ink) 33%, transparent); padding: 10px 0; min-height: 44px; }
.bh-private__thanks { justify-content: space-between; align-items: center; }

/* neighbourhood guides */
.bh-areas > h2 { text-align: center; }
.bh-areas__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); border-top: 1px solid var(--bh-hairline); margin-top: 32px; }
.bh-areas__item { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 28px 32px 28px 0; border-bottom: 1px solid var(--bh-hairline); text-decoration: none; color: inherit; font-family: var(--bh-font-heading); font-size: clamp(1.5rem, 2.5vw, 2.25rem); line-height: 1.2; }
.bh-areas__go { font-family: var(--bh-font-body); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--bh-accent); white-space: nowrap; }

/* short contact form */
.bh-contact-form--short { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.bh-contact-form__wide, .bh-contact-form--short .bh-hp { grid-column: 1 / -1; }
.bh-contact-form__send { grid-column: 1 / -1; justify-self: start; }

/* a design template's menu: the team's own pages under "More" (no JavaScript: a details element) */
.bh-nav__more { position: relative; }
.bh-nav__more > summary { list-style: none; cursor: pointer; }
.bh-nav__more > summary::-webkit-details-marker { display: none; }
.bh-nav__more > summary::after { content: " ▾"; font-size: .8em; }
.bh-nav__menu { position: absolute; top: calc(100% + 12px); left: 0; z-index: 30; min-width: 200px; display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; background: var(--bh-primary-deep); color: var(--bh-on-primary); border: 1px solid color-mix(in srgb, var(--bh-accent) 35%, transparent); }
.bh-nav__menu a { padding: 6px 0; color: inherit; text-decoration: none; }
.bh-contact-wrap--photo { overflow: hidden; }
.bh-header__end { display: flex; align-items: center; gap: 24px; }
.bh-header__end .bh-nav__menu { left: auto; right: 0; }
.bh-nav__mobile { display: none; }
@media (max-width: 760px) { .bh-nav__mobile { display: block; } }
.bh-nav__sm-only { display: none; }
@media (max-width: 760px) { .bh-nav__menu .bh-nav__sm-only { display: block; } }

/* card tiles: eyebrow and link wording */
.bh-card__eyebrow { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--bh-ink-muted); margin-bottom: 8px; }
.bh-card__link { display: block; font-weight: 600; margin-top: 8px; }
.bh-review__cap-stars { display: none; }

/* featured listing: boxed figures, and the sideways strip */
.bh-showcase__factbox { display: flex; flex-wrap: wrap; margin: 0; border: 1px solid var(--bh-ink); }
.bh-showcase__factbox > div { padding: 12px 20px; border-right: 1px solid var(--bh-ink); }
.bh-showcase__factbox > div:last-child { border-right: 0; }
.bh-showcase__factbox dt { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--bh-ink-muted); }
.bh-showcase__factbox dd { margin: 0; font-family: var(--bh-font-heading); font-size: 22px; font-weight: 700; }
.bh-showcase--strip .bh-showcase__grid { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 20px; grid-template-columns: none; grid-auto-rows: auto; }
.bh-showcase--strip .bh-showcase__photo { flex: 0 0 auto; width: 560px; max-width: 86vw; height: auto; border-radius: 0; overflow: visible; scroll-snap-align: start; }
.bh-showcase--strip .bh-showcase__photo:nth-child(n) { grid-column: auto; grid-row: auto; }
.bh-showcase--strip .bh-showcase__photo img { height: 520px; }
.bh-showcase--strip .bh-showcase__photo:nth-child(1), .bh-showcase--strip .bh-showcase__photo:nth-child(5), .bh-showcase--strip .bh-showcase__photo:nth-child(6) { width: 720px; }
.bh-showcase--strip .bh-showcase__cap { display: block; padding-top: 10px; font-family: var(--bh-font-heading); font-size: 14px; }

/* building directory */
.bh-buildings__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.bh-buildings__head h2 { margin: 0; }
.bh-buildings__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.bh-buildings__filters button { font: inherit; font-size: 14px; font-weight: 600; min-height: 44px; padding: 10px 16px; cursor: pointer; border: 1px solid var(--bh-ink); background: var(--bh-surface); color: var(--bh-ink); }
.bh-buildings__filters button[aria-pressed="true"] { background: var(--bh-accent); }
.bh-buildings__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); border-top: 1px solid var(--bh-ink); border-left: 1px solid var(--bh-ink); }
.bh-buildings__tile { display: flex; flex-direction: column; gap: 14px; padding: 20px; text-decoration: none; color: inherit; border-right: 1px solid var(--bh-ink); border-bottom: 1px solid var(--bh-ink); transition: background .25s ease; }
.bh-buildings__tile[hidden] { display: none; }
.bh-buildings__tile:hover { background: var(--bh-surface-raised); }
.bh-buildings__photo { position: relative; display: block; height: 180px; overflow: hidden; }
.bh-buildings__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bh-buildings__photo--none { display: flex; align-items: flex-end; padding: 12px; font-size: 12px; color: var(--bh-ink-muted); background: color-mix(in srgb, var(--bh-ink) 7%, var(--bh-surface)); }
.bh-buildings__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bh-buildings__name { font-family: var(--bh-font-heading); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.bh-buildings__hood { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; background: var(--bh-accent); color: var(--bh-ink); padding: 2px 8px; white-space: nowrap; }
.bh-buildings__figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 13px; color: var(--bh-ink-muted); }
.bh-buildings__figures strong { display: block; font-family: var(--bh-font-heading); font-size: 16px; color: var(--bh-ink); }

/* text beside a photo (an agent's bio) */
.bh-text-media__inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.bh-text-media__figure { flex: 0 1 380px; height: 460px; margin: 0; overflow: hidden; border-radius: var(--bh-img-radius); background: color-mix(in srgb, var(--bh-primary) 12%, var(--bh-surface)); display: flex; align-items: center; justify-content: center; }
.bh-text-media__figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bh-text-media__placeholder { font-size: 14px; color: var(--bh-ink-muted); }
.bh-text-media__copy { flex: 1 1 420px; min-width: 0; }

/* the condo calculator section */
.bh-calcblock-wrap--condo { background: var(--bh-surface-raised); }

/* the name over a small line in the header */
.bh-brand__stack { display: flex; flex-direction: column; line-height: 1.1; }
.bh-brand__line { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.bh-showcase__facts span + span::before { content: " · "; }

/* ---------- homes for sale (listings section) ---------- */
.bh-listing__media { position: relative; }
.bh-listing__price { margin: 4px 0 2px; font-family: var(--bh-font-heading); }
.bh-listing__sample { margin: 10px 0 0; font-size: .78rem; color: var(--bh-ink-muted); font-style: italic; }
