/**
 * Home hero (index.php)
 * Desktop: full banner artwork with overlaid HTML title.
 * Mobile: product photo crop + readable HTML title/subtitle + CTAs.
 */

.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 (992px+) ===== */
@media (min-width: 992px) {
    .hero.hero--home {
        aspect-ratio: 1904 / 720;
        max-width: none;
        width: 100%;
        overflow: hidden;
        background-color: transparent;
    }

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

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

    .hero.hero--home .hero-slide__media {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        overflow: hidden;
        pointer-events: none;
        background-color: transparent;
    }

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

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

    .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;
    }
}

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

/* ===== Mobile & tablet (≤991px) ===== */
@media (max-width: 991px) {
    .hero.hero--home {
        aspect-ratio: auto !important;
        width: 100% !important;
        height: auto !important;
        overflow: hidden;
        background: #0f172a !important;
    }

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

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

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

    /* Product photo only — crop away baked-in text panel on the right */
    .hero.hero--home .hero-slide__media {
        position: relative !important;
        flex: 0 0 auto;
        width: 100% !important;
        aspect-ratio: 16 / 10;
        min-height: 200px;
        max-height: 42vh;
        overflow: hidden;
        background: #0b1220 !important;
        line-height: 0;
    }

    .hero.hero--home .hero-slide.hero-slide--banner .hero-slide__banner-img,
    .hero.hero--home .hero-slide--glr-banner .hero-slide__banner-img {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        min-width: 100% !important;
        min-height: 100% !important;
        object-fit: cover !important;
        object-position: 18% center !important;
        display: block !important;
    }

    .hero.hero--home .hero-slide--glr-banner .hero-slide__banner-img {
        object-position: 22% center !important;
    }

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

    /* Readable text panel under photo */
    .hero.hero--home .hero-content {
        position: relative !important;
        z-index: 2;
        flex: 0 0 auto;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        max-width: none !important;
        padding: 16px 16px 14px !important;
        background: #0f172a;
        animation: none !important;
        opacity: 1 !important;
        filter: none !important;
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        text-align: left;
    }

    .hero.hero--home .hero-content__inner {
        width: 100%;
        max-width: none;
        margin: 0;
        text-align: left;
    }

    .hero.hero--home .hero-heading {
        display: block !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        margin: 0 0 6px !important;
        padding: 0 !important;
        clip: auto !important;
        overflow: visible !important;
        white-space: normal !important;
        font-size: 1.35rem !important;
        font-weight: 700;
        line-height: 1.25;
        color: #ffcc00 !important;
        text-shadow: none;
    }

    .hero.hero--home .hero-subheading {
        display: block !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        margin: 0 0 14px !important;
        padding: 0 !important;
        clip: auto !important;
        overflow: visible !important;
        white-space: normal !important;
        font-size: 0.92rem !important;
        line-height: 1.45;
        color: rgba(255, 255, 255, 0.88) !important;
        text-shadow: none;
    }

    .hero.hero--home .hero-buttons {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px;
        width: 100%;
        margin: 0;
        justify-content: stretch;
    }

    .hero.hero--home .hero-buttons .btn {
        flex: 1 1 50%;
        min-width: 0 !important;
        max-width: none !important;
        font-size: 13px;
        font-weight: 600;
        padding: 11px 8px !important;
        text-align: center;
        justify-content: center;
        border-radius: 6px;
        white-space: nowrap;
    }

    .hero.hero--home .hero-buttons .btn-secondary {
        color: #fff;
        border-color: rgba(255, 255, 255, 0.55);
        background: transparent;
    }

    /* No arrows on mobile — avoid covering photo */
    .hero.hero--home .hero-prev,
    .hero.hero--home .hero-next {
        display: none !important;
    }

    /* Dots on the photo */
    .hero.hero--home .hero-dots {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 12;
        display: flex;
        gap: 7px;
        padding: 5px 10px;
        border-radius: 999px;
        background: rgba(15, 23, 42, 0.4);
    }

    .hero.hero--home .hero-dot {
        width: 7px;
        height: 7px;
    }
}

@media (max-width: 767px) {
    .hero.hero--home .hero-slide__media {
        aspect-ratio: 4 / 3;
        min-height: 210px;
        max-height: 46vh;
    }

    .hero.hero--home .hero-content {
        padding: 14px 14px 12px !important;
    }

    .hero.hero--home .hero-heading {
        font-size: 1.25rem !important;
    }

    .hero.hero--home .hero-subheading {
        font-size: 0.875rem !important;
        margin-bottom: 12px !important;
    }

    .hero.hero--home .hero-buttons .btn {
        font-size: 12.5px;
        padding: 10px 6px !important;
    }
}

@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 !important;
    }
}
