.hero-slider {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden
}

.hero-slides {
    position: relative;
    height: var(--hero-height, 70vh);
    min-height: 460px;
    max-height: 860px
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .8s ease, transform .8s ease
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1)
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .52) 42%, rgba(0, 0, 0, .18) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .42), rgba(0, 0, 0, .3))
}

.hero-content {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center start;
    text-align: left;
    padding: var(--site-header-h, 80px) 2rem 0;
    color: #fff;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
}

@media (min-width:992px) {
    .hero-content {
        padding: var(--site-header-h, 80px) 4rem 0
    }
}

.hero-title {
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    margin: .2rem 0;
    font-size: 60px;
    line-height: 1.05;
    max-width: 15ch;
    color: #fff;
    text-shadow: 0 2px 22px rgba(0, 0, 0, .55);
}

.hero-subtitle {
    font-size: 21px;
    opacity: .96;
    margin: .6rem 0 1.2rem;
    max-width: 48ch;
    line-height: 1.55;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}

.hero-ctas {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .95rem 1.45rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
    transition: filter .2s ease, transform .05s ease, box-shadow .2s ease
}

.btn-hero:active {
    transform: translateY(1px)
}

.btn-wa {
    background: #00a651;
    color: #fff
}

.btn-ghost {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .45)
}

.btn-hero:hover {
    filter: brightness(.96);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .24);
}

.hero-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 18px;
    display: flex;
    gap: 10px;
    z-index: 2
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .5);
    cursor: pointer
}

.hero-dot.is-active {
    background: #fff
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2
}

.hero-nav:hover {
    background: rgba(0, 0, 0, .55)
}

.hero-nav.prev {
    left: 14px
}

.hero-nav.next {
    right: 14px
}

/* Text entrance */
.hero-slider[data-hero-animation="slide-up"] .hero-slide.is-active .hero-title {
    animation: fadeUp .6s ease .1s both
}

.hero-slider[data-hero-animation="slide-up"] .hero-slide.is-active .hero-subtitle {
    animation: fadeUp .6s ease .2s both
}

.hero-slider[data-hero-animation="slide-up"] .hero-slide.is-active .btn-hero {
    animation: fadeUp .6s ease .3s both
}

.hero-slider[data-hero-animation="fade"] .hero-slide.is-active .hero-title {
    animation: fadeOnly .6s ease .1s both
}

.hero-slider[data-hero-animation="fade"] .hero-slide.is-active .hero-subtitle {
    animation: fadeOnly .6s ease .2s both
}

.hero-slider[data-hero-animation="fade"] .hero-slide.is-active .btn-hero {
    animation: fadeOnly .6s ease .3s both
}

.hero-slider[data-hero-animation="none"] .hero-slide.is-active .hero-title,
.hero-slider[data-hero-animation="none"] .hero-slide.is-active .hero-subtitle,
.hero-slider[data-hero-animation="none"] .hero-slide.is-active .btn-hero {
    animation: none
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(250px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeOnly {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none
    }

    .hero-slide.is-active .hero-title,
    .hero-slide.is-active .hero-subtitle,
    .hero-slide.is-active .btn-hero {
        animation: none
    }
}

@media (max-width: 767px) {
    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .62) 100%),
            linear-gradient(180deg, rgba(0, 0, 0, .42), rgba(0, 0, 0, .35));
    }

    .hero-title {
        max-width: 12ch;
        font-size: 34px;
    }

    .hero-subtitle {
        font-size: 17px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hero-title {
        font-size: 46px;
    }

    .hero-subtitle {
        font-size: 19px;
    }
}
