﻿/* =====================================
   BEROIMMO - HERO SLIDER
===================================== */

/* Slider layout */
#headerSlider {
    width: 100%;
    overflow: hidden;
}

    #headerSlider .swiper-container,
    #headerSlider .swiper-wrapper,
    #headerSlider .swiper-slide {
        height: auto;
    }

    #headerSlider .swiper-slide {
        position: relative;
        display: block;
        min-height: 0;
        overflow: hidden;
        isolation: isolate;
    }

        /* Original image dimensions and aspect ratio */
        #headerSlider .swiper-slide > img {
            position: relative;
            display: block;
            width: 100%;
            height: auto !important;
            max-width: 100%;
            min-height: 0;
            margin: 0;
            padding: 0;
            object-fit: initial;
            object-position: initial;
        }

        /* Remove any image overlay */
        #headerSlider .swiper-slide::before,
        #headerSlider .swiper-slide::after {
            display: none !important;
            content: none !important;
        }

    /* =====================================
   HERO CONTENT
===================================== */

    /* Content positioning */
    #headerSlider .swiperContentWrapper {
        position: absolute;
        inset: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        box-sizing: border-box;
        width: 100%;
        max-width: var(--StandardMainContainerWidth, 1230px);
        height: 100%;
        margin: 0 auto;
        padding: 30px var(--DefaultMainContainerLeftRightPadding, 25px);
        text-align: left;
        pointer-events: none;
    }

    /* Dark blue content box */
    #headerSlider .swiperContent {
        box-sizing: border-box;
        width: 100%;
        max-width: 440px;
        padding: 32px 36px;
        border: 1px solid rgba(255, 255, 255, .2);
        border-radius: 4px;
        background: rgba(25, 48, 112, .95);
        box-shadow: 0 8px 30px rgba(0, 0, 0, .13);
        color: #fff;
        font-family: 'Barlow', sans-serif;
        font-size: 17px;
        line-height: 1.55;
        text-shadow: none;
        pointer-events: auto;
    }

        /* Hero headings */
        #headerSlider .swiperContent h1,
        #headerSlider .swiperContent h2,
        #headerSlider .swiperContent h3,
        #headerSlider .swiperContent h4 {
            margin: 0 0 16px;
            padding: 0;
            color: #fff;
            font-weight: 600;
            line-height: 1.2;
            text-shadow: none;
        }

        #headerSlider .swiperContent h1 {
            font-size: 32px;
        }

        #headerSlider .swiperContent h2 {
            font-size: 28px;
        }

        /* Hero paragraphs */
        #headerSlider .swiperContent p {
            margin: 0 0 12px;
            padding: 0;
            color: #fff;
            font-size: 17px;
            font-weight: 400;
            line-height: 1.5;
        }

            #headerSlider .swiperContent p:last-child {
                margin-bottom: 0;
            }

        /* Optional subtitle */
        #headerSlider .swiperContent .hero-subtitle {
            margin: 0 0 16px;
            color: #fff;
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 1.5px;
            text-transform: uppercase;
        }

    /* =====================================
   HERO BUTTONS
===================================== */

    #headerSlider .hero-buttons {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
        margin-top: 24px;
    }

    #headerSlider .swiperContent .hero-buttons .button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        margin: 0;
        padding: 12px 18px;
        border-radius: 4px;
        font-family: inherit;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.3;
        text-align: center;
        text-decoration: none;
        text-shadow: none;
        transition: background-color .2s ease, border-color .2s ease, color .2s ease;
    }

    /* Primary button */
    #headerSlider .swiperContent .button-primary,
    #headerSlider .swiperContent .button-primary:visited {
        background: #fff;
        border: 2px solid #fff;
        color: #1f3070;
    }

    /* Secondary button */
    #headerSlider .swiperContent .button-secondary,
    #headerSlider .swiperContent .button-secondary:visited {
        background: transparent;
        border: 2px solid #fff;
        color: #fff;
    }

    /* Button hover */
    #headerSlider .swiperContent .button-primary:hover {
        background: #e7edf6;
        border-color: #e7edf6;
        color: #1f3070;
    }

    #headerSlider .swiperContent .button-secondary:hover {
        background: #fff;
        border-color: #fff;
        color: #1f3070;
    }

    /* Slider navigation */
    #headerSlider .swiper-button-next,
    #headerSlider .swiper-button-prev {
        color: #1f3070 !important;
    }

/* =====================================
   SMALL DESKTOP / TABLET
===================================== */

@media screen and (min-width: 768px) and (max-width: 1279.9px) {
    #headerSlider .swiperContentWrapper {
        padding: 20px 35px;
    }

    #headerSlider .swiperContent {
        max-width: 390px;
        padding: 24px 28px;
    }

        #headerSlider .swiperContent h1 {
            font-size: 27px;
            margin-bottom: 12px;
        }

        #headerSlider .swiperContent h2 {
            font-size: 24px;
        }

        #headerSlider .swiperContent p {
            font-size: 16px;
            margin-bottom: 8px;
        }

    #headerSlider .hero-buttons {
        margin-top: 16px;
    }
}

/* =====================================
   MOBILE - ORIGINAL IMAGE ONLY
===================================== */

@media screen and (max-width: 767.9px) {
    #headerSlider,
    #headerSlider .swiper-container,
    #headerSlider .swiper-wrapper,
    #headerSlider .swiper-slide {
        height: auto !important;
        min-height: 0 !important;
    }

        /* Keep the entire image visible */
        #headerSlider .swiper-slide > img {
            position: relative;
            display: block;
            width: 100%;
            height: auto !important;
            min-height: 0;
            max-width: 100%;
            object-fit: initial;
        }

        /* Hide all hero text and buttons */
        #headerSlider .swiperContentWrapper {
            display: none !important;
        }

        /* Hide slider navigation */
        #headerSlider .swiper-button-next,
        #headerSlider .swiper-button-prev {
            display: none !important;
        }
}

/* =====================================
   REDUCED MOTION
===================================== */

@media (prefers-reduced-motion: reduce) {
    #headerSlider .swiperContent .hero-buttons .button {
        transition: none;
    }
}
