/* Hero visual layouts */
.hero-visual {
    position: relative;
}

.hero-carousel {
    display: none;
}

.hero-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

.hero-stack-image {
    margin: 0;
    min-height: 100vh;
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: var(--hero-placeholder, #000);
}

.hero-scroll {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.hero-scroll:active {
    cursor: grabbing;
}

.hero-scroll::-webkit-scrollbar {
    display: none;
}

.hero-scroll-track {
    height: 100%;
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: center;
    will-change: transform;
}

.hero-stack-img {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    clip: rect(0 0 0 0);
}

@supports (height: 100dvh) {
    .hero-stack-image {
        min-height: 100dvh;
        height: 100dvh;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .hero-stack {
        padding-top: 120px;
    }

    .hero-stack-image {
        min-height: calc(100vh - 120px);
        height: calc(100vh - 120px);
    }

    @supports (height: 100dvh) {
        .hero-stack-image {
            min-height: calc(100dvh - 120px);
            height: calc(100dvh - 120px);
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-scroll {
        scroll-behavior: auto;
    }
}

@media (min-width: 992px) {
    .hero-stack {
        display: none;
    }

    .hero-carousel {
        display: block;
        position: relative;
        width: 100%;
        min-height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    .hero-carousel .carousel-slide {
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0.45;
        transition: transform 0.85s cubic-bezier(0.4, 0.15, 0.1, 0.99), opacity 0.6s ease;
        transform: translateX(100%);
        will-change: transform, opacity;
        pointer-events: none;
    }

    .hero-carousel .carousel-slide.active {
        opacity: 1;
        z-index: 2;
        pointer-events: auto;
    }

    .carousel-backdrop {
        position: absolute;
        inset: 0;
        background: linear-gradient(120deg, rgba(0, 0, 0, 0.8), rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.75));
        z-index: 1;
    }

    .carousel-indicators {
        position: absolute;
        bottom: 2.5rem;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 0.75rem;
        z-index: 4;
    }

    .carousel-dot {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.6);
        background: transparent;
        cursor: pointer;
        transition: all 0.2s ease;
        padding: 0;
        appearance: none;
    }

    .carousel-dot.active {
        background: rgba(255, 255, 255, 0.9);
        transform: scale(1.25);
    }

    .carousel-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 56px;
        height: 56px;
        border-radius: 50%;
        border: none;
        background: rgba(0, 0, 0, 0.35);
        color: var(--primary-white);
        z-index: 4;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s ease, transform 0.3s ease;
    }

    .carousel-nav:hover {
        background: rgba(0, 0, 0, 0.6);
        transform: translateY(-50%) scale(1.05);
    }

    .carousel-nav.prev {
        left: 2rem;
    }

    .carousel-nav.next {
        right: 2rem;
    }
}
