/* Home page sections. Each widget is surface-aware (.hb-section--light/--dark)
 * and reuses the brand primitives (heading group, CTA, product card). */

/* ===================== Hero ===================== */
.hb-hero {
    position: relative;
    min-height: min(92vh, 820px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    /* charcoal gradient carries the section until video/poster lands */
    background: radial-gradient(120% 120% at 50% 0%, #2c2729 0%, var(--hb-charcoal) 60%, #17131400 100%), var(--hb-charcoal);
}
.hb-hero__media { position: absolute; inset: 0; z-index: 0; }
.hb-hero__poster,
.hb-hero__video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.hb-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(35,31,32,.55) 0%, rgba(35,31,32,.35) 45%, rgba(35,31,32,.78) 100%);
}
.hb-hero__inner {
    position: relative; z-index: 1;
    max-width: 880px;
    padding: var(--sp-8) var(--gutter);
    display: flex; flex-direction: column; align-items: center; gap: var(--sp-4);
}
.hb-hero__eyebrow {
    font-family: var(--font-script);
    font-size: var(--fs-script);
    color: var(--hb-gold-light);
    line-height: 1;
}
.hb-hero__title { color: var(--hb-cream); margin: 0; }
.hb-hero__sub {
    font-size: var(--fs-h4);
    color: var(--hb-gold-light);
    letter-spacing: .02em;
}
.hb-hero__ctas { display: flex; gap: var(--sp-4); flex-wrap: wrap; justify-content: center; margin-block-start: var(--sp-3); }
.hb-hero__chips {
    display: flex; gap: var(--sp-3) var(--sp-5); flex-wrap: wrap; justify-content: center;
    margin-block-start: var(--sp-5);
    list-style: none;
}
.hb-hero__chip {
    font-size: var(--fs-small);
    color: var(--hb-grey-300);
    display: inline-flex; align-items: center; gap: var(--sp-2);
}
.hb-hero__chip:not(:last-child)::after { content: "·"; margin-inline-start: var(--sp-5); color: var(--hb-gold-deep); }
.hb-hero__chip a { color: var(--hb-gold-light); }
.hb-hero__cue {
    position: absolute; inset-block-end: var(--sp-5); inset-inline-start: 50%;
    transform: translateX(-50%); z-index: 1;
    width: 28px; height: 44px; border: 2px solid var(--hb-gold-light); border-radius: var(--radius-pill);
    display: flex; justify-content: center; padding-block-start: 8px;
}
.hb-hero__cue-arrow { width: 4px; height: 8px; background: var(--hb-gold-light); border-radius: 2px; animation: hb-cue 1.6s var(--ease-in-out) infinite; }
@keyframes hb-cue { 0%,100% { transform: translateY(0); opacity: .3; } 50% { transform: translateY(8px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hb-hero__cue-arrow { animation: none; } }
@media (max-width: 768px) { .hb-hero { min-height: 80vh; } }

/* ===================== Category grid ===================== */
.hb-cat-grid__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
}
@media (max-width: 1024px) { .hb-cat-grid__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px)  { .hb-cat-grid__grid { grid-template-columns: repeat(2, 1fr); } }
.hb-cat-card {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--hb-charcoal);
}
.hb-cat-card__media { position: absolute; inset: 0; }
.hb-cat-card__img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur) var(--ease-out); }
.hb-cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(35,31,32,.85) 100%); }
.hb-cat-card:hover .hb-cat-card__img { transform: scale(1.06); opacity: 1; }
.hb-cat-card__body { position: absolute; inset-block-end: 0; inset-inline: 0; z-index: 1; padding: var(--sp-4); display: flex; flex-direction: column; gap: 2px; }
.hb-cat-card__name { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--hb-cream); }
.hb-cat-card__count { font-size: var(--fs-small); color: var(--hb-gold-light); }

/* ===================== Kits ===================== */
.hb-kits__lead { text-align: center; max-width: var(--container-narrow); margin: calc(-1 * var(--sp-4)) auto var(--sp-7); color: var(--surface-text-muted); }
.hb-kits__more { text-align: center; margin-block-start: var(--sp-6); }

/* ===================== Trust strip ===================== */
.hb-trust__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); list-style: none; }
@media (max-width: 768px) { .hb-trust__row { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6) var(--sp-4); } }
.hb-trust__item { display: flex; align-items: center; gap: var(--sp-3); justify-content: center; text-align: start; }
.hb-trust__icon { flex: none; width: 44px; height: 44px; color: var(--hb-gold-light); }
.hb-trust__icon svg { width: 100%; height: 100%; }
.hb-trust__text { display: flex; flex-direction: column; }
.hb-trust__t { font-weight: var(--fw-bold); color: var(--surface-text); }
.hb-trust__s { font-size: var(--fs-small); color: var(--surface-text-muted); }

/* ===================== How to order ===================== */
.hb-steps__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); list-style: none; counter-reset: none; }
@media (max-width: 768px) { .hb-steps__list { grid-template-columns: 1fr; } }
.hb-steps__item { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); }
.hb-steps__num {
    width: 56px; height: 56px; display: grid; place-items: center;
    font-family: var(--font-display); font-size: var(--fs-h3);
    color: var(--hb-charcoal); background: var(--hb-gold); border-radius: var(--radius-pill);
    margin-block-end: var(--sp-2);
}
.hb-steps__t { font-size: var(--fs-h3); }
.hb-steps__s { color: var(--surface-text-muted); max-width: 30ch; }
.hb-steps__cta { text-align: center; margin-block-start: var(--sp-7); }

/* ===================== Visit & delivery ===================== */
.hb-visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: center; }
@media (max-width: 880px) { .hb-visit__grid { grid-template-columns: 1fr; } }
.hb-visit__addr { font-size: var(--fs-h4); margin-block: var(--sp-3); }
.hb-visit__hours { list-style: none; margin-block: var(--sp-4); max-width: 320px; }
.hb-visit__hours li { display: flex; justify-content: space-between; padding-block: var(--sp-2); border-bottom: 1px solid var(--surface-border); }
.hb-visit__hours li span:first-child { color: var(--surface-text-muted); }
.hb-visit__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-block-start: var(--sp-5); }
.hb-visit__map { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 18px 40px -24px rgba(0,0,0,.4); }
.hb-visit__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===================== Testimonials ===================== */
.hb-tns__carousel { margin-block-start: var(--sp-6); }
.hb-tn { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-6); background: var(--surface-bg-alt); border: 1px solid var(--surface-border); border-radius: var(--radius-lg); height: auto; }
.hb-tn__quote { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--surface-text); }
.hb-tn__quote::before { content: "“"; font-family: var(--font-display); font-size: 2.4em; line-height: 0; color: var(--surface-accent-2); margin-inline-end: 4px; vertical-align: -0.35em; }
.hb-tn__author { display: flex; align-items: center; gap: var(--sp-3); margin-block-start: auto; }
.hb-tn__avatar { width: 48px; height: 48px; border-radius: var(--radius-pill); object-fit: cover; }
.hb-tn__name { font-weight: var(--fw-bold); font-style: normal; color: var(--surface-text); }
/* graceful pre-init fallback: show as horizontal scroll if Splide never mounts */
.hb-tns__carousel:not(.is-splide-init) .splide__list { display: flex; gap: var(--sp-4); overflow-x: auto; }
.hb-tns__carousel:not(.is-splide-init) .splide__slide { flex: 0 0 min(360px, 85%); }
.splide__arrow { background: var(--hb-gold); }
.splide__pagination__page.is-active { background: var(--hb-gold); }

/* ===================== Blog teasers ===================== */
.hb-teasers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
@media (max-width: 880px) { .hb-teasers__grid { grid-template-columns: 1fr; } }
.hb-teaser { display: flex; flex-direction: column; background: var(--surface-bg-alt); border: 1px solid var(--surface-border); border-radius: var(--radius-lg); overflow: hidden; }
.hb-teaser__media { display: block; aspect-ratio: 16 / 10; background: var(--surface-bg); overflow: hidden; }
.hb-teaser__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.hb-teaser:hover .hb-teaser__media img { transform: scale(1.05); }
.hb-teaser__body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.hb-teaser__title { font-size: var(--fs-h3); line-height: var(--lh-heading); }
.hb-teaser__title a { color: var(--surface-text); }
.hb-teaser__title a:hover { color: var(--surface-accent); }
.hb-teaser__excerpt { color: var(--surface-text-muted); font-size: var(--fs-small); }
.hb-teaser__more { margin-block-start: auto; color: var(--surface-accent); font-weight: var(--fw-medium); }

/* ===================== Final CTA ===================== */
.hb-final-cta { text-align: center; }
.hb-final-cta__inner { display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); max-width: var(--container-narrow); margin-inline: auto; }
.hb-final-cta__sub { font-size: var(--fs-h4); color: var(--hb-gold-light); }
.hb-final-cta__actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; justify-content: center; margin-block-start: var(--sp-3); }
