/* =========================
   HERO SECTION
========================= */

.hero-section {
    position: relative;

    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: calc(100vh - 100px);

    overflow: hidden;
}

/* =========================
   SWIPER BACKGROUND CAROUSEL
========================= */

.hero-background-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background-carousel .swiper-slide {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Ensure the active slide in fade mode is visible above others */
.hero-background-carousel.swiper-fade .swiper-slide {
    transition-property: opacity;
}

/*
 * Desktop: cover the hero section while maintaining aspect ratio.
 *
 * The section height is calc(100vh - header_height), so the hero
 * plus the fixed header exactly fills the viewport.  Pagination
 * dots (bottom: 30px) are visible without scrolling.
 *
 * HOME_BANNER_main  — embedded text at bottom of artwork.
 *                      Use 70% so the bottom portion is prominent.
 *
 * All others (TITAN, TITAN_X, TITAN_XTREME, SAHARA) — logos at top.
 *                      Use 15% so the top branding stays visible.
 */
@media (min-width: 1025px) {
    .hero-background-carousel .swiper-slide {
        background-size: cover;
    }

    .hero-background-carousel .swiper-slide.banner-main {
        background-position: center 70%;
    }
    .hero-background-carousel .swiper-slide.banner-titan,
    .hero-background-carousel .swiper-slide.banner-titan-x,
    .hero-background-carousel .swiper-slide.banner-titan-xtreme,
    .hero-background-carousel .swiper-slide.banner-sahara {
        background-position: center 15%;
    }
}

/* =========================
   TABLET (768px – 1024px)
========================= */

@media (min-width: 768px) and (max-width: 1024px) {
    .hero-section {
        height: auto;
        aspect-ratio: 2 / 1;
    }

    .hero-background-carousel .swiper-slide {
        background-size: cover;
    }

    .hero-background-carousel .swiper-slide.banner-main {
        background-position: center 70%;
    }
    .hero-background-carousel .swiper-slide.banner-titan,
    .hero-background-carousel .swiper-slide.banner-titan-x,
    .hero-background-carousel .swiper-slide.banner-titan-xtreme,
    .hero-background-carousel .swiper-slide.banner-sahara {
        background-position: center 15%;
    }

    .hero-content {
        bottom: 12%;
    }

    .hero-pagination {
        bottom: 20px;
    }

    .hero-pagination .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }
}

/* =========================
   CINEMATIC HERO OVERLAY
========================= */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    /* Subtle darkening only — artwork carries its own visual treatment */
    background: rgba(0, 0, 0, 0.08);

    /* Decorative layer must not block clicks on the clickable hero slides */
    pointer-events: none;
}


/* =========================
   CONTENT
========================= */
.hero-content {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
}

/* BUTTON */
.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-transform: uppercase;
    text-decoration: none;

    background-color: rgb(230, 171, 64);
    color: #fff;

    font-weight: 600;

    border: 1px solid rgb(230, 171, 64);
    border-radius: 5px;

    padding: clamp(8px, 1.5vw, 12px) clamp(14px, 2vw, 18px);
    font-size: clamp(0.75rem, 1.8vw, 0.9rem);

    letter-spacing: 0.5px;

    transition: all 0.25s ease;
}

.hero-btn:hover {
    background-color: transparent;
    border-color: rgb(230, 171, 64);
    color: #fff;

    transform: translateY(-2px);
}

/* =========================
   PAGINATION DOTS
========================= */

.hero-pagination {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    z-index: 3;

    display: flex;
    justify-content: center;
    gap: 10px;
}

.hero-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;

    background: rgba(255, 255, 255, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.8);

    opacity: 1;

    transition: background 0.3s ease, border-color 0.3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: rgb(230, 171, 64);
    border-color: rgb(230, 171, 64);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {

    .hero-section {
        height: auto;
        aspect-ratio: 2 / 1;
    }

    .hero-content {
        bottom: 18%;
    }

    .hero-background-carousel .swiper-slide {
        background-size: cover;
        background-position: center center;
    }

    .hero-btn {
        padding: clamp(6px, 2vw, 10px) clamp(12px, 3vw, 16px);
        font-size: clamp(0.65rem, 2.5vw, 0.8rem);
    }

    .hero-pagination {
        bottom: 15px;
    }

    .hero-pagination .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }

}
