/**
 * Home hero (index.php)
 * Desktop (992px+): wide banner slider with overlaid heading + buttons (original look).
 * Tablet & mobile (≤991px): stacked banner image + button bar (no overlap, no duplicate text).
 */

/* Visually hidden — kept for screen readers / SEO */
.hero.hero--home .hero-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Desktop & laptop (992px+) ===== */
@media (min-width: 992px) {
    .hero.hero--home {
        aspect-ratio: 1904 / 720;
        max-width: none;
        width: 100%;
        overflow: hidden;
    }

    .hero.hero--home .hero-slider {
        height: 100%;
    }

    .hero.hero--home .hero-slide.hero-slide--banner {
        display: block;
    }

    .hero.hero--home .hero-slide__media {
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
    }

    .hero.hero--home .hero-slide__scrim {
        display: none;
    }

    .hero.hero--home .hero-slide.hero-slide--banner .hero-slide__banner-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-height: none;
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
        object-position: center bottom;
    }

    .hero.hero--home .hero-slide.hero-slide--banner:not(.hero-slide--glr-banner) .hero-slide__media {
        overflow: hidden;
        background-color: #0c1528;
    }

    /* Slide 3: full-bleed image + same centered title/buttons as slides 1–2 */
    .hero.hero--home .hero-slide--glr-banner .hero-slide__media {
        overflow: hidden;
        background-color: #7a5c3e;
    }

    .hero.hero--home .hero-slide--glr-banner .hero-slide__banner-img,
    .hero.hero--home .hero-slide--glr-banner.hero-slide--banner .hero-slide__banner-img {
        width: 100%;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
        object-position: center bottom;
    }

    .hero.hero--home .hero-content {
        position: relative;
        z-index: 2;
        height: 100%;
        min-height: 0;
        padding: 40px 20px;
        animation: heroContentFadeInUp 0.85s 0.2s var(--ease-out-quint) forwards;
    }

    .hero.hero--home .hero-content__inner {
        max-width: 900px;
    }

    .hero.hero--home .hero-subheading {
        display: none;
    }

    .hero.hero--home .hero-heading {
        display: block;
        margin: 0 0 16px;
        font-size: clamp(1.8rem, 4vw, 3rem);
        color: #ffcc00;
        line-height: 1.2;
        text-shadow:
            0 1px 2px rgba(15, 23, 42, 0.55),
            0 2px 18px rgba(0, 0, 0, 0.35);
    }

    .hero.hero--home .hero-prev,
    .hero.hero--home .hero-next {
        top: 50%;
        transform: translateY(-50%);
    }

    .hero.hero--home .hero-dots {
        bottom: 28px;
    }

    .hero.hero--home.hero--slide-glr .hero-next {
        right: 24px;
        top: 50%;
    }

    .hero.hero--home.hero--slide-glr .hero-dots {
        bottom: 28px;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (min-width: 992px) and (prefers-reduced-motion: reduce) {
    .hero.hero--home .hero-content {
        animation: none;
        opacity: 1;
    }
}

/* ===== Tablet & mobile (≤991px) — stacked layout ===== */
@media (max-width: 991px) {
    .hero.hero--home {
        aspect-ratio: auto;
        max-width: none;
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: hidden;
        background-color: #0f172a;
    }

    .hero.hero--home .hero-slider {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 0;
    }

    .hero.hero--home .hero-slide.hero-slide--banner {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.6s ease, visibility 0.6s ease;
        display: flex;
        flex-direction: column;
    }

    .hero.hero--home .hero-slide.hero-slide--banner.active {
        position: relative;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        z-index: 1;
    }

    /* Full banner image on top — no crop */
    .hero.hero--home .hero-slide__media {
        position: relative;
        flex: 0 0 auto;
        width: 100%;
        line-height: 0;
        background: #0f172a;
    }

    .hero.hero--home .hero-slide.hero-slide--banner .hero-slide__banner-img {
        position: static;
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
        object-position: center top;
    }

    .hero.hero--home .hero-slide--glr-banner .hero-slide__banner-img {
        min-width: 100%;
        object-fit: cover;
        object-position: center top;
    }

    .hero.hero--home .hero-slide__scrim {
        display: none;
    }

    /* Text is already in banner artwork — hide duplicate HTML copy */
    .hero.hero--home .hero-heading,
    .hero.hero--home .hero-subheading {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    /* Button bar below image */
    .hero.hero--home .hero-content {
        position: relative;
        z-index: 2;
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        min-height: 0;
        margin: 0;
        max-width: none;
        padding: 20px 20px 28px;
        background: #0f172a;
        animation: none;
        opacity: 1;
        justify-content: center;
    }

    .hero.hero--home .hero-content__inner {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    .hero.hero--home .hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        width: 100%;
    }

    .hero.hero--home .hero-buttons .btn {
        flex: 1 1 auto;
        min-width: 140px;
        max-width: 200px;
        font-size: 14px;
        padding: 12px 20px;
    }

    .hero.hero--home .hero-prev,
    .hero.hero--home .hero-next {
        top: var(--hero-nav-top, 28%);
        transform: translateY(-50%);
        width: 42px;
        height: 42px;
        font-size: 18px;
        z-index: 12;
    }

    .hero.hero--home .hero-prev {
        left: 8px;
    }

    .hero.hero--home .hero-next {
        right: 8px;
    }

    .hero.hero--home .hero-dots {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 72px;
        top: auto;
        z-index: 12;
    }
}

@media (max-width: 767px) {
    .hero.hero--home .hero-content {
        padding: 16px 16px 24px;
    }

    .hero.hero--home .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero.hero--home .hero-buttons .btn {
        width: 100%;
        max-width: none;
        min-width: 0;
        padding: 14px 24px;
    }

    .hero.hero--home .hero-prev,
    .hero.hero--home .hero-next {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 991px) and (prefers-reduced-motion: reduce) {
    .hero.hero--home .hero-slide.hero-slide--banner {
        transition: none;
    }

    .hero.hero--home .hero-content {
        opacity: 1;
    }
}
