/* Visual Impact — standalone hero slider (no Owl / theme animation-slider) */

.vi-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.vi-hero__media--shared {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.vi-hero__viewport {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    min-height: 420px;
}

.vi-hero__track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Instant cut between slides — no crossfade, no slide transform */
.vi-hero__slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.vi-hero__slide.is-active {
    z-index: 1;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.vi-hero__media {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.vi-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.38);
    pointer-events: none;
}

.vi-hero__media video {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    display: block;
    max-width: none !important;
    max-height: none !important;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Default cover before JS measures intrinsic size */
.vi-hero__media video:not(.vi-hero__video--fitted) {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
}

.vi-hero__media--image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.vi-hero__media img {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    max-width: none !important;
    max-height: none !important;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.vi-hero__panel {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.vi-hero__panel .btn,
.vi-hero__panel a {
    pointer-events: auto;
}

/* Centered video-slide copy */
.vi-hero__content--center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 1.5rem;
    box-sizing: border-box;
    text-align: center;
}

.vi-hero__subtitle {
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.vi-hero__copy {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}

.vi-hero__logo-wrap {
    margin-left: auto;
    margin-right: auto;
}

.vi-hero__logo {
    max-width: min(640px, 90vw);
    height: auto;
    display: block;
    margin: 0 auto;
}

.vi-hero__tagline {
    font-size: 2rem;
    letter-spacing: 0.05em;
}

/* Image slides — intro-slide1/2 rules from demo15.min.css apply via those classes */
.vi-hero__slide .banner-content {
    pointer-events: auto;
}

.vi-hero .banner-subtitle {
    font-size: clamp(1.25rem, 4.5vw, 3em);
}

.vi-hero .banner-title {
    font-size: clamp(2rem, 9vw, 5em);
    line-height: 1.05;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

@media (max-width: 575px) {
    .vi-hero .banner-title {
        font-size: clamp(1.75rem, 11vw, 2.75rem);
        line-height: 1.1;
        max-width: 100%;
    }
}

.vi-hero .banner-tagline {
    margin: 0 0 1rem;
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.3;
}

/* Text entrance — isolated from theme .slide-animate */
@keyframes viRevealLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes viRevealRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes viRevealUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vi-hero .vi-reveal {
    opacity: 0;
}

.vi-hero__slide.is-active .vi-reveal.is-visible.vi-reveal--left {
    animation: viRevealLeft 0.7s ease both;
}

.vi-hero__slide.is-active .vi-reveal.is-visible.vi-reveal--right {
    animation: viRevealRight 0.7s ease both;
}

.vi-hero__slide.is-active .vi-reveal.is-visible.vi-reveal--up {
    animation: viRevealUp 0.9s ease both;
}

.vi-hero__slide.is-active .vi-reveal.is-visible.vi-reveal--up-slow {
    animation: viRevealUp 1.1s ease both;
}

/* Static video slide — copy always visible */
.vi-hero__slide[data-slide-type="video-static"] .vi-reveal {
    opacity: 1;
}

/* Content slides: show copy as soon as slide is active (incl. first paint with is-active in HTML) */
.vi-hero__slide[data-slide-type="content"].is-active {
    visibility: visible;
    opacity: 1;
}

.vi-hero__slide[data-slide-type="content"].is-active .vi-reveal {
    opacity: 1;
}

/* Nav */
.vi-hero__arrow {
    position: absolute;
    top: 52%;
    z-index: 10;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.vi-hero__arrow:hover {
    background: rgba(0, 0, 0, 0.55);
}

.vi-hero__arrow--prev {
    left: 5%;
}

.vi-hero__arrow--next {
    right: 5%;
}

.vi-hero__dots {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.vi-hero__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.vi-hero__dot.is-active {
    background: #fff;
}

@media (min-width: 992px) {
    .vi-hero__arrow {
        display: flex;
    }

    .vi-hero__dots {
        display: none;
    }
}

@media (max-width: 991px) {
    .intro-slide1 .banner-content {
        right: 20px;
        left: 20px;
    }
}
