﻿/* ===============================
   Hero slider
   =============================== */

.hero-slider {
    position: relative;
    width: 100%;
    height: min(570px, 70vh);
    /*min-height: 600px;*/
    overflow: hidden;
    /*background: #111;*/
    --section-margin: 16px;
    --section-radius: 10px;
    width: calc(100% - (var(--section-margin) * 2));
    margin-inline: var(--section-margin);
    border-radius: var(--section-radius);
    border: 0px solid rgba(255, 255, 255, 0.2);
}


/* Slides */

.hero-slider__slides {
    position: relative;
    /*width: 100%;*/
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 700ms ease, visibility 700ms ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}


/* Optional dark overlay */

.hero-slide__overlay {
    position: absolute;
    inset: 0;
    /*background: linear-gradient( 90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.15) 100% );*/
}


/* Inner container */

.hero-slide__container {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 100px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    /*gap: clamp(30px, 5vw, 80px);*/
}


/* Content */

.hero-slide__content {
    flex: 2;
    min-width: 0;
    color: #fff;
}

.hero-slide.active .hero-slide__content {
    transform: translateY(0);
    opacity: 1;
}


/* Title */

.hero-slide__title {
    margin: 0 0 24px;
    /*font-family: Inter, Arial, sans-serif;
    font-size: clamp(3rem, 5vw, 5.5rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.04em;*/
    font-family: "aptos", sans-serif;
    font-weight: 700;
    font-style: normal;
    color: #000;
    font-size: 20px;
    line-height: 25px;
    color: #FFF;
}


/* Text */

.hero-slide__text {
    max-width: 550px;
    margin: 0 0 32px;
    /*font-family: Inter, Arial, sans-serif;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.86);*/
    font-family: "aptos-display", sans-serif;
    font-weight: 300;
    font-style: normal;
    /*color: #000;*/
    font-size: 20px;
    line-height: 25px;
    color: #FFF;
}


/* Button */

.hero-slide__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /*min-height: 52px;
    padding: 0 28px;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-family: Inter, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;*/
    text-decoration: none;
    transition: background 200ms ease, color 200ms ease, transform 200ms ease;
    border: 1px solid #FFFFFF;
    border-radius: 8px;
    font-size: 15px;
    line-height: 26px;
    font-weight: bold;
    color: #FFFFFF;
    padding-top: 10px;
    padding-right: 18px;
    padding-bottom: 10px;
    padding-left: 18px;
    cursor: pointer;
}

    .hero-slide__button:hover {
        background: #111;
        color: #fff;
        transform: translateY(-2px);
    }


/* Foreground image */

.hero-slide__image {
    /*flex: 1;*/
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-right: 40px;
}

.hero-slide.active .hero-slide__image {
    opacity: 1;
    transform: translateX(0);
}

.hero-slide__image img {
    display: block;
    width: 100%;
    max-width: 248px;
    max-height: 277px;
    object-fit: contain;
}


/* ===============================
   Navigation arrows
   =============================== */

.hero-slider__arrow {
    position: absolute;
    z-index: 10;
    top: 45%;
    /*width: 52px;
    height: 52px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /*border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    color: #fff;*/
    cursor: pointer;
    /*transform: translateY(-50%);
    transition: background 200ms ease, transform 200ms ease;*/
}

.hero-slider__arrow:hover {
    /*background: #fff;
    color: #111;*/
}

.hero-slider__arrow--prev {
    left: 0px;
}

.hero-slider__arrow--next {
    right: 0px;
}

.hero-slider__arrow svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ===============================
   Pagination dots
   =============================== */

.hero-slider__pagination {
    position: absolute;
    z-index: 10;
    bottom: 30px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-slider__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 250ms ease, border-radius 250ms ease, background 250ms ease;
}

    .hero-slider__dot:hover {
        background: rgba(255, 255, 255, 0.75);
    }

    .hero-slider__dot.active {
        width: 28px;
        border-radius: 10px;
        background: #fff;
    }


/* ===============================
   Responsive
   =============================== */

@media (max-width: 900px) {

    .hero-slide__container {
        flex-direction: column;
        gap: 40px;
    }

    .hero-slide__image,
    .hero-slide__content {
        flex: none;
        width: 100%;
        margin-right: 0px;
    }

    .hero-slide__image {
        justify-content: center;
    }

    .hero-slide__content {
        text-align: center;
    }
}

/*@media (max-width: 900px) {

    .hero-slider {
        min-height: 700px;
        height: auto;
    }

    .hero-slide {
        min-height: 700px;
    }

    .hero-slide__container {
        width: min(100% - 60px, 700px);
        flex-direction: column;
        justify-content: center;
        padding: 80px 0;
        gap: 40px;
    }

    .hero-slide__content {
        flex: none;
        max-width: 100%;
        text-align: center;
    }

    .hero-slide__text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-slide__image {
        flex: none;
        justify-content: center;
    }

        .hero-slide__image img {
            max-width: 380px;
            max-height: 320px;
        }
}*/


@media (max-width: 600px) {

    .hero-slider {
        min-height: 680px;
    }

    .hero-slide {
        min-height: 680px;
    }

    .hero-slide__container {
        width: calc(100% - 48px);
    }

    /*.hero-slide__title {
        font-size: clamp(2.5rem, 12vw, 4rem);
        line-height: 12vw;
    }*/

    .hero-slider__arrow {
        width: 25px;
        height: 58px;
    }

    .hero-slider__arrow--prev {
        left: 0px;
    }

    .hero-slider__arrow--next {
        right: 0px;
    }
}
