/* Homepage hero slider — loaded only when active banners exist. */
.hero.hero-has-slider {
    padding-top: 0;
}
.hero-slider {
    --hero-h: var(--hero-h-m, 78vw);
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: var(--brand-dark, #0B5649);
    touch-action: pan-y;
}
.hero-slider-viewport {
    position: relative;
    height: var(--hero-h);
    max-height: min(90vh, 900px);
}
.hero-slider-track {
    display: flex;
    height: 100%;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.hero-slider-track::-webkit-scrollbar { display: none; }
.hero-slider[data-transition="fade"] .hero-slider-track {
    display: grid;
    overflow: hidden;
    scroll-snap-type: none;
}
.hero-slider[data-transition="fade"] .hero-slide {
    grid-area: 1 / 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--hero-duration, 450ms) ease;
}
.hero-slider[data-transition="fade"] .hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}
.hero-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
}
.hero-slide-hit {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
}
.hero-slide-media {
    position: absolute;
    inset: 0;
}
.hero-slide-media picture,
.hero-slide-media img {
    width: 100%;
    height: 100%;
    display: block;
}
.hero-slide-media img {
    object-fit: cover;
    object-position: var(--focal-x, 50%) var(--focal-y, 50%);
}
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 40, 34, .15), rgba(8, 40, 34, .72));
    pointer-events: none;
}
.hero-slide-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    padding-block: 1.4rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
}
.hero-slide-content.is-center { justify-content: center; text-align: center; }
.hero-slide-content.is-start { justify-content: flex-start; text-align: start; }
.hero-slide-content.is-end { justify-content: flex-end; text-align: end; }
.hero-slide-copy {
    max-width: min(36rem, 100%);
    pointer-events: auto;
}
.hero-slide-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: .55rem;
    padding: .28rem .7rem;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
    font-size: .78rem;
    font-weight: 700;
}
.hero-slide-title {
    margin: 0 0 .45rem;
    font-size: clamp(1.45rem, 4.5vw, 2.8rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.02em;
    text-shadow: 0 2px 18px rgba(0,0,0,.25);
}
.hero-slide-subtitle {
    margin: 0 0 .35rem;
    font-size: clamp(1rem, 2.4vw, 1.35rem);
    font-weight: 700;
    opacity: .95;
}
.hero-slide-body {
    margin: 0 0 .95rem;
    font-size: .95rem;
    line-height: 1.55;
    opacity: .92;
    max-width: 32rem;
}
.hero-slide-content.is-center .hero-slide-body { margin-inline: auto; }
.hero-slide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}
.hero-slide-content.is-center .hero-slide-actions { justify-content: center; }
.hero-slide-btn {
    min-height: 44px;
    pointer-events: auto;
}
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: var(--ink, #16332E);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 107, 91, .14);
}
.hero-slider-arrow svg { width: 20px; height: 20px; display: block; }
.hero-slider-arrow.is-prev { inset-inline-start: .75rem; }
.hero-slider-arrow.is-next { inset-inline-end: .75rem; }
.hero-slider-chrome {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-top: .75rem;
    min-height: 44px;
}
.hero-slider-toggle {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--brand, #0F6B5B);
    border: 1px solid var(--line, #d7e5e1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.hero-slider-toggle svg { width: 14px; height: 14px; }
.hero-slider-toggle .icon-play { display: none; }
.hero-slider.is-paused .hero-slider-toggle .icon-pause { display: none; }
.hero-slider.is-paused .hero-slider-toggle .icon-play { display: block; }
.hero-slider-dots {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex: 1 1 auto;
    min-width: 0;
}
.hero-slider-dot {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.hero-slider-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 107, 91, .28);
    transition: width .2s ease, background .2s ease;
}
.hero-slider-dot.is-active::before {
    width: 22px;
    background: var(--brand, #0F6B5B);
}
.hero-slider-progress {
    flex: 0 1 7rem;
    height: 4px;
    border-radius: 999px;
    background: rgba(15, 107, 91, .15);
    overflow: hidden;
}
.hero-slider-progress > span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--brand, #0F6B5B);
    transform-origin: inline-start;
}
.hero-has-slider .hero-search {
    margin-top: 1rem;
}
.hero-slider-arrow:focus-visible,
.hero-slider-toggle:focus-visible,
.hero-slider-dot:focus-visible,
.hero-slide-btn:focus-visible,
.hero-slide-hit:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 639px) {
    .hero-slide-actions { flex-direction: column; }
    .hero-slide-btn { width: 100%; justify-content: center; }
    .hero-slide-title { font-size: 1.55rem; }
}
@media (min-width: 640px) {
    .hero-slider { --hero-h: var(--hero-h-t, 42vw); }
}
@media (min-width: 1024px) {
    .hero-slider { --hero-h: var(--hero-h-d, 36.5vw); }
    .hero-slider:not([data-single="1"]) .hero-slider-arrow { display: inline-flex; }
    .hero-slide-content {
        align-items: center;
        padding-block: 2rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .hero-slider-track { scroll-behavior: auto; }
    .hero-slider[data-transition="fade"] .hero-slide { transition: none; }
    .hero-slider-progress > span { transition: none !important; }
}
