/* ============================================================
   Fullscreen hero carousel (Swiper background + GSAP text)
   ============================================================ */

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

/* background swiper fills the section */
.hero-carousel .hero-carousel-swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-carousel .swiper-slide {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* darken the imagery so the text stays legible */
.hero-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.3) 55%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 5;
    pointer-events: none;
}

/* text overlay sits above the swiper; one stacked slide per banner */
.hero-carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

/* centered container that keeps the text aligned with the rest of the
   page on large screens and clear of the edge arrows on smaller ones */
.hero-slide-inner {
    width: 100%;
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    text-align: left;
}

/* each animated piece starts hidden; GSAP reveals it */
.hero-item {
    opacity: 0;
    will-change: transform, opacity;
}

.hero-item a {
    pointer-events: auto;
}

.hero-carousel hr.hero-item {
    border: none;
    border: 1px solid #f0f0f0;
    background-color: #f0f0f0;
    width: 5em;
    display: inline-block;
    margin: 0 0 1em 0;
}

.hero-item.hero-heading {
    margin-bottom: 1.5rem;
}

.hero-carousel .hero-heading h1 {
    font-size: 64px;
    margin-bottom: 0.2em;
    line-height: 1.05;
}

@media screen and (max-width: 992px) {
    .hero-carousel .hero-heading h1 {
        font-size: 45px;
    }
}

/* button matches the existing slider button look */
.hero-item .btn {
    background-color: #00adef;
    color: #f0f0f0;
    border-radius: 0;
    font-size: 1.4em;
    font-family: "corporate-s", serif;
    display: inline-block;
    padding: 1em;
    overflow: hidden;
    border: none;
    z-index: 1;
    position: relative;
}

.hero-item .btn:hover,
.hero-item .btn:focus {
    color: #f0f0f0;
}

.hero-item .btn:hover .skew-button {
    -webkit-transform: skewX(-20deg) translateX(-10%);
    -ms-transform: skewX(-20deg) translateX(-10%);
    transform: skewX(-20deg) translateX(-10%);
}

/* navigation arrows */
.hero-carousel-nav {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    z-index: 30;
    background: transparent;
    border: none;
    color: #d9d9d9;
    font-size: 2.4em;
    line-height: 1;
    cursor: pointer;
    padding: 0.3em;
    -webkit-transition: color 0.3s;
    transition: color 0.3s;
}

.hero-carousel-nav:hover,
.hero-carousel-nav:focus {
    color: #00adef;
    outline: none;
}

.hero-carousel-prev {
    left: 2%;
}

.hero-carousel-next {
    right: 2%;
}

.hero-carousel-nav.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

/* on narrower viewports the container spans most of the width, so inset
   the text further to keep it clear of the edge arrows */
@media screen and (max-width: 1300px) {
    .hero-slide-inner {
        padding-left: 100px;
        padding-right: 58px;
    }
}

@media screen and (max-width: 767px) {
    .hero-slide-inner {
        padding-left: 44px;
        padding-right: 44px;
        text-align: center;
    }
    .hero-carousel hr.hero-item {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
    .hero-carousel-nav {
        font-size: 1.8em;
    }
}
