/* hero-slider.css - homepage image slider (replaces Slider Revolution 5.4, VAPT V4) */
.hero-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: var(--hero-ratio, 1920 / 800);
    max-height: var(--hero-max, none);
    background: #1b1b1b;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s ease, visibility 0s linear .9s;
}
/* Before the script runs, show the first slide so the page never looks empty. */
.hero-slider:not(.is-ready) .hero-slide:first-child,
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity .9s ease;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--hero-pos, center center);
}
.hero-shade {
    position: absolute;
    inset: 0;
    background: var(--shade, rgba(0, 0, 0, .25));
}
.hero-caption {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 9%;
    text-align: center;
    color: #fff;
}
.hero-caption h1,
.hero-caption h2 {
    color: #fff;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
/* Text layers keep their original size (--fs, px at 1240px wide) and scale down with the screen. */
.hero-line {
    font-size: clamp(15px, calc(var(--fs, 40) * .0806vw), calc(var(--fs, 40) * 1px));
    font-weight: var(--fw, 400);
    line-height: 1.35;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
.hero-btn {
    display: inline-block;
    margin-top: 1.4em;
    padding: .85em 1.7em;
    font-size: 14px;
    line-height: 1;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    background: var(--btn-bg, rgba(0, 0, 0, .35));
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 3px;
    text-decoration: none;
}
a.hero-btn:hover,
a.hero-btn:focus {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.12);
}
.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 70px;
    height: 70px;
    margin-top: -35px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .5);
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s ease, background .2s ease;
}
.hero-prev { left: 20px; }
.hero-next { right: 20px; }
.hero-prev::before,
.hero-next::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
}
.hero-prev::before { transform: translate(-30%, -50%) rotate(-45deg); }
.hero-next::before { transform: translate(-70%, -50%) rotate(135deg); }
.hero-slider:hover .hero-prev,
.hero-slider:hover .hero-next,
.hero-prev:focus-visible,
.hero-next:focus-visible { opacity: 1; }
.hero-prev:hover,
.hero-next:hover { background: rgba(0, 0, 0, .75); }
@media (max-width: 767px) {
    .hero-prev,
    .hero-next { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slide.is-active { transition: none; }
}
