/*
 * Timed Video Banner frontend styles
 * Edit this file to customize the banner content styling.
 */

.tib-video-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    --tib-ratio: 16/9;
    aspect-ratio: var(--tib-ratio);
    background: #000;
    display: block;
    isolation: isolate;
}


.tib-video-banner__video,
.tib-video-banner__final-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tib-video-banner__video {
    z-index: 0;
    display: block;
    opacity: 1;
}

.tib-video-banner__final-image {
    z-index: 1;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.tib-video-banner__content {
    position: absolute;
    left: 5%;
    bottom: 8%;
    z-index: 2;
    width: min(620px, 88%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    color: #fff;
    display: none;
}

.tib-video-banner__content.is-visible {
    display: flex;
    animation: tib-content-in .65s ease forwards;
}

@keyframes tib-content-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tib-video-banner__content.is-visible.is-immediate {
    animation: none;
    opacity: 1;
    transform: none;
}

.tib-video-banner--final.has-final-image .tib-video-banner__video,
.tib-video-banner--repeat.has-final-image .tib-video-banner__video {
    opacity: 0;
}

.tib-video-banner--final.has-final-image .tib-video-banner__final-image,
.tib-video-banner--repeat.has-final-image .tib-video-banner__final-image {
    opacity: 1;
    visibility: visible;
}

/* Backward-compatible fallback when no Final Frame Image is supplied */
.tib-video-banner--repeat:not(.has-final-image) .tib-video-banner__video {
    opacity: 0;
}

.tib-video-banner--repeat:not(.has-final-image) .tib-video-banner__video.is-static-ready {
    opacity: 1;
}

.tib-video-banner__eyebrow {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.tib-video-banner__title {
    margin: 0;
    padding: 0;
    max-width: 620px;
    color: inherit;
    font-size: clamp(34px, 4.5vw, 72px);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.035em;
}

.tib-video-banner__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 24px;
    margin-top: 8px;
    border: 1px solid #fff;
    color: #fff;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease;
}

.tib-video-banner__button:hover,
.tib-video-banner__button:focus-visible {
    background: #fff;
    color: #000;
}

@media (max-width: 767px) {
    /*
     * Phone layout only. Desktop and tablet keep the configured desktop ratio.
     * The phone hero uses an explicit height so it does not collapse into a
     * shallow 16:9 strip on narrow screens.
     */
    .elementor .tib-video-banner,
    .tib-video-banner.tib-video-banner {
        width: 100% !important;
        height: var(--tib-mobile-height, 420px) !important;
        min-height: var(--tib-mobile-height, 420px) !important;
        max-height: none !important;
        aspect-ratio: auto !important;
        position: relative !important;
        overflow: hidden !important;
        display: block !important;
    }

    .elementor .tib-video-banner > .tib-video-banner__video,
    .elementor .tib-video-banner > .tib-video-banner__final-image,
    .tib-video-banner > .tib-video-banner__video,
    .tib-video-banner > .tib-video-banner__final-image {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .elementor .tib-video-banner > .tib-video-banner__content.is-visible,
    .tib-video-banner > .tib-video-banner__content.is-visible {
        display: flex !important;
    }

    .tib-video-banner__content {
        left: 30px;
        right: 30px;
        bottom: 44px;
        width: auto;
        gap: 10px;
    }

    .tib-video-banner__eyebrow {
        font-size: 11px;
    }

    .tib-video-banner__title {
        font-size: clamp(38px, 10vw, 52px);
        line-height: .98;
    }

    .tib-video-banner__button {
        min-height: 46px;
        padding: 12px 22px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tib-video-banner__content.is-visible {
        animation: none;
        opacity: 1;
        transform: none;
    }
}


/* =========================================================
   MOBILE SECTION FLOW FIX
   Applies only to phones and only to the product section that
   follows this banner. Desktop remains untouched.
========================================================= */
@media (max-width: 767px) {
    .tib-video-banner-host {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin-bottom: 0 !important;
        z-index: 2 !important;
    }

    .tib-after-banner-section {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin-top: 0 !important;
        padding-top: 42px !important;
        clear: both !important;
        z-index: 3 !important;
        background: #fff !important;
        overflow: hidden !important;
    }

    .tib-after-banner-section > .elementor-container,
    .tib-after-banner-section .elementor-widget-wrap {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
    }

    .tib-after-banner-section .elementor-widget-heading {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 0 0 26px !important;
        z-index: 6 !important;
    }

    .tib-after-banner-section .elementor-widget-heading .elementor-heading-title {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        color: #000 !important;
        margin: 0 !important;
    }

    .tib-after-banner-section .elementor-widget-bwp_product_list,
    .tib-after-banner-section .bwp_product_list,
    .tib-after-banner-section .list-product,
    .tib-after-banner-section .product-content,
    .tib-after-banner-section .content-product-list {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        margin-top: 0 !important;
    }
}
