/**
 * Homepage full-screen Swiper slider.
 * Loaded after swiper-bundle.min.css. See template-parts/homepage-swiper.php.
 */

.home-swiper {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh; /* avoids mobile browser-chrome jump where supported */
    overflow: hidden;
    background: #000;
}

.home-swiper .swiper,
.home-swiper__slide {
    width: 100%;
    height: 100%;
}

.home-swiper__slide {
    position: relative;
}

.home-swiper__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Content overlay */
.home-swiper__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.35);
}

.home-swiper__content {
    max-width: 800px;
    color: #fff;
}

.home-swiper__tagline {
    margin: 0 0 1.25rem;
    color: #fff;
    font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
    font-weight: 800;
    font-size: 54px;
    line-height: 50px;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.home-swiper__cta {
    display: inline-block;
    padding: 0 25px;
    border: 0;
    border-radius: 0;
    background-color: #ff1000;
    color: #fff;
    font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 40px;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.home-swiper__cta:hover,
.home-swiper__cta:focus {
    background-color: #d40d00;
    color: #fff;
    text-decoration: none;
    outline: none;
}

/* Prev / next arrows */
.home-swiper__nav {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #222;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.home-swiper__nav:hover,
.home-swiper__nav:focus {
    background: #fff;
    outline: none;
}

.home-swiper__nav--prev {
    left: 24px;
}

.home-swiper__nav--next {
    right: 24px;
}

.home-swiper__nav--disabled {
    opacity: 0.35;
    cursor: default;
}

@media (max-width: 767px) {
    .home-swiper__tagline {
        font-size: 30px;
        line-height: 1.2;
        white-space: normal;
    }

    .home-swiper__nav {
        width: 40px;
        height: 40px;
    }

    .home-swiper__nav--prev {
        left: 10px;
    }

    .home-swiper__nav--next {
        right: 10px;
    }
}
