
/* =====================================================================
   HERO SLIDER – FULLY RESPONSIVE
   File: css/sections/hero-slider.css

   Desktop, Tablet and Mobile
   Desktop banner + Mobile portrait background image
   ===================================================================== */

/* ---------------------------------------------------------------------
   MAIN SLIDER
   --------------------------------------------------------------------- */

.car {
    position: relative;
    width: 100%;
    height: clamp(260px, 24vw, 390px);
    overflow: hidden;
    background: #222;
}

/* ---------------------------------------------------------------------
   SLIDES
   --------------------------------------------------------------------- */

.sl1 {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease;
}

.sl1.on {
    opacity: 1;
    visibility: visible;
}

/* ---------------------------------------------------------------------
   IMAGE / PICTURE
   --------------------------------------------------------------------- */

.sl1 picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.sl1 picture img,
.sl1 > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

/* ---------------------------------------------------------------------
   DARK OVERLAY
   --------------------------------------------------------------------- */

.sl1::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, .60) 0%,
        rgba(0, 0, 0, .38) 45%,
        rgba(0, 0, 0, .12) 100%
    );
}

/* ---------------------------------------------------------------------
   TEXT CONTENT
   --------------------------------------------------------------------- */

.sl1 .tx {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 100%;
    height: 100%;

    color: #fff;
    padding: 20px clamp(20px, 4vw, 60px);
}

.tx > div {
    width: 100%;
    max-width: 620px;
}

.tx h1,
.tx h2 {
    color: #fff;
    font-size: clamp(24px, 3.5vw, 44px);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 12px;
}

.tx p {
    font-size: clamp(13px, 1.2vw, 16px);
    line-height: 1.65;
    max-width: 540px;
    margin: 0 0 18px;
    color: #fff;
}

/* ---------------------------------------------------------------------
   BUTTONS
   --------------------------------------------------------------------- */

.tx .b {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tx .b .bt {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 10px 22px;

    font-size: 13px;
    text-align: center;
    text-decoration: none;
}

/* ---------------------------------------------------------------------
   SLIDER ARROWS
   --------------------------------------------------------------------- */

.ar {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    background: rgba(0, 0, 0, .45);
    color: #fff;
    border: 0;
    border-radius: 50%;

    z-index: 5;
    font-size: 20px;
    cursor: pointer;
    transition: background .2s ease;
}

.ar:hover {
    background: rgba(0, 0, 0, .8);
}

.ar.l {
    left: 14px;
}

.ar.rr {
    right: 14px;
}

/* ---------------------------------------------------------------------
   DOTS
   --------------------------------------------------------------------- */

.dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 9px;

    z-index: 5;
}

.dots button {
    width: 11px;
    height: 11px;

    padding: 0;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;

    cursor: pointer;
}

.dots button.on {
    background: #fff;
}

/* =====================================================================
   LARGE DESKTOP
   ===================================================================== */

@media (min-width: 1200px) {

    .car {
        height: 350px;
    }

    .sl1 picture img,
    .sl1 > img {
        object-position: center 20%;
    }

}

/* =====================================================================
   TABLET
   768px to 1023px
   ===================================================================== */

@media (max-width: 1023px) {

    .car {
        height: clamp(260px, 34vw, 340px);
    }

    .sl1 picture img,
    .sl1 > img {
        object-position: center 18%;
    }

    .sl1 .tx {
        padding: 20px 35px;
    }

    .tx > div {
        max-width: 520px;
    }

    .tx h1,
    .tx h2 {
        font-size: clamp(25px, 4vw, 36px);
    }

    .tx p {
        font-size: 15px;
        max-width: 460px;
        margin-bottom: 16px;
    }

    .ar {
        width: 38px;
        height: 38px;
    }

}

/* =====================================================================
   MOBILE
   Maximum 767px
   ===================================================================== */

@media (max-width: 767px) {

    .car {
        height: 360px;
        min-height: 0;
    }

    /* MOBILE IMAGE */

    .sl1 picture img,
    .sl1 > img {
        object-fit: cover;
        object-position: center top;
    }

    /* MOBILE OVERLAY */

    .sl1::after {
        background: rgba(0, 0, 0, .48);
    }

    /* MOBILE TEXT */

    .sl1 .tx {
        justify-content: center;
        align-items: center;
        text-align: center;

        padding: 20px 16px 42px;
    }

    .tx > div {
        max-width: 100%;
    }

    .tx h1,
    .tx h2 {
        font-size: clamp(23px, 6vw, 31px);
        line-height: 1.35;
        margin-bottom: 10px;
    }

    .tx p {
        font-size: 14px;
        line-height: 1.6;
        max-width: 100%;
        margin-bottom: 15px;
    }

    /* MOBILE BUTTONS */

    .tx .b {
        justify-content: center;
        gap: 8px;
    }

    .tx .b .bt {
        min-height: 38px;
        padding: 9px 14px;
        font-size: 12px;
    }

    /* MOBILE ARROWS HIDE */

    .ar {
        display: none;
    }

    /* MOBILE DOTS */

    .dots {
        bottom: 12px;
        gap: 7px;
    }

    .dots button {
        width: 9px;
        height: 9px;
    }

}

/* =====================================================================
   SMALL MOBILE
   Maximum 480px
   ===================================================================== */

@media (max-width: 480px) {

    .car {
        height: 340px;
    }

    .sl1 picture img,
    .sl1 > img {
        object-position: center top;
    }

    .sl1 .tx {
        padding: 16px 15px 38px;
    }

    .tx h1,
    .tx h2 {
        font-size: 24px;
        line-height: 1.35;
    }

    .tx p {
        font-size: 13px;
        line-height: 1.55;
    }

    .tx .b .bt {
        padding: 8px 12px;
        font-size: 11px;
    }

}

/* =====================================================================
   EXTRA SMALL MOBILE
   Maximum 360px
   ===================================================================== */

@media (max-width: 360px) {

    .car {
        height: 320px;
    }

    .sl1 .tx {
        padding: 14px 12px 36px;
    }

    .tx h1,
    .tx h2 {
        font-size: 21px;
    }

    .tx p {
        font-size: 12px;
        line-height: 1.5;
    }

    .tx .b {
        gap: 6px;
    }

    .tx .b .bt {
        padding: 8px 10px;
    }

}
