/* =========================================
   CSTAS HERO SLIDER
   Independent responsive slider styles
========================================= */

.cstas-hero {
    --cstas-accent: #fa6f1c;
    --cstas-text: #ffffff;
    --cstas-dark: #18231f;

    position: relative;
    width: 100%;
    height: clamp(500px, 47vw, 690px);
    min-height: 500px;
    overflow: hidden;
    isolation: isolate;
    background: var(--cstas-dark);
    color: var(--cstas-text);
    font-family: inherit;
}

.cstas-hero *,
.cstas-hero *::before,
.cstas-hero *::after {
    box-sizing: border-box;
}

.cstas-hero__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.cstas-hero__slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 650ms ease,
        visibility 650ms ease;
}

.cstas-hero__slide--active {
    z-index: 1;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.cstas-hero__image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.035);
    transition: transform 6000ms ease;
}

.cstas-hero__slide--active .cstas-hero__image {
    transform: scale(1);
}

.cstas-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(
            90deg,
            rgba(15, 27, 23, 0.88) 0%,
            rgba(15, 27, 23, 0.72) 42%,
            rgba(15, 27, 23, 0.28) 100%
        );
}

.cstas-hero__container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 70px 100px 90px;
}

.cstas-hero__content {
    width: 100%;
    max-width: 760px;
    transform: translateY(18px);
    opacity: 0;
    transition:
        transform 650ms ease 150ms,
        opacity 650ms ease 150ms;
}

.cstas-hero__slide--active .cstas-hero__content {
    transform: translateY(0);
    opacity: 1;
}

.cstas-hero__eyebrow {
    display: inline-block;
    margin-bottom: 22px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cstas-hero__eyebrow::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 2px;
    margin: 0 12px 4px 0;
    background: var(--cstas-accent);
}

.cstas-hero__title {
    max-width: 760px;
    margin: 0 0 22px;
    color: #ffffff;
    font-family: inherit;
    font-size: clamp(36px, 4.3vw, 64px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -1.3px;
    text-transform: none;
    overflow-wrap: break-word;
}

.cstas-hero__title span {
    display: block;
    color: #ffffff;
}

.cstas-hero__description {
    max-width: 590px;
    margin: 0 0 32px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
}

.cstas-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.cstas-hero__btn {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition:
        background-color 200ms ease,
        border-color 200ms ease,
        color 200ms ease,
        transform 200ms ease;
}

.cstas-hero__btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.cstas-hero__btn--primary {
    color: #ffffff;
    background: var(--cstas-accent);
    border-color: var(--cstas-accent);
}

.cstas-hero__btn--primary:hover,
.cstas-hero__btn--primary:focus-visible {
    color: #ffffff;
    background: #df5b0c;
    border-color: #df5b0c;
}

.cstas-hero__btn--secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.75);
}

.cstas-hero__btn--secondary:hover,
.cstas-hero__btn--secondary:focus-visible {
    color: var(--cstas-dark);
    background: #ffffff;
    border-color: #ffffff;
}


/* Left and right arrows */

.cstas-hero__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(20, 30, 25, 0.28);
    font-family: Arial, sans-serif;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        background-color 200ms ease,
        border-color 200ms ease,
        transform 200ms ease;
}

.cstas-hero__arrow:hover,
.cstas-hero__arrow:focus-visible {
    color: #ffffff;
    background: var(--cstas-accent);
    border-color: var(--cstas-accent);
}

.cstas-hero__arrow--prev {
    left: 24px;
}

.cstas-hero__arrow--next {
    right: 24px;
}


/* Bottom dot navigation */

.cstas-hero__dots {
    position: absolute;
    right: 0;
    bottom: 27px;
    left: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 70px;
}

.cstas-hero__dot {
    display: block;
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid #ffffff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition:
        width 250ms ease,
        border-radius 250ms ease,
        background-color 250ms ease;
}

.cstas-hero__dot--active {
    width: 27px;
    border-color: var(--cstas-accent);
    border-radius: 8px;
    background: var(--cstas-accent);
}


/* Tablet */

@media (max-width: 991.98px) {
    .cstas-hero {
        height: 590px;
        min-height: 520px;
    }

    .cstas-hero__container {
        padding: 60px 82px 80px;
    }

    .cstas-hero__content {
        max-width: 650px;
    }

    .cstas-hero__title {
        font-size: clamp(36px, 5.5vw, 54px);
    }

    .cstas-hero__description {
        font-size: 16px;
    }

    .cstas-hero__arrow--prev {
        left: 16px;
    }

    .cstas-hero__arrow--next {
        right: 16px;
    }
}


/* Mobile */

@media (max-width: 575.98px) {
    .cstas-hero {
        height: 570px;
        min-height: 500px;
    }

    .cstas-hero__overlay {
        background:
            linear-gradient(
                90deg,
                rgba(15, 27, 23, 0.84) 0%,
                rgba(15, 27, 23, 0.67) 100%
            );
    }

    .cstas-hero__container {
        padding: 65px 27px 80px;
    }

    .cstas-hero__content {
        max-width: 100%;
    }

    .cstas-hero__eyebrow {
        margin-bottom: 17px;
        font-size: 11px;
        letter-spacing: 1.4px;
    }

    .cstas-hero__title {
        margin-bottom: 18px;
        font-size: clamp(34px, 9vw, 43px);
        line-height: 1.16;
        letter-spacing: -0.7px;
    }

    .cstas-hero__description {
        margin-bottom: 25px;
        font-size: 14px;
        line-height: 1.75;
    }

    .cstas-hero__actions {
        align-items: stretch;
        flex-direction: column;
        gap: 11px;
    }

    .cstas-hero__btn {
        width: 100%;
        min-height: 48px;
        padding: 12px 16px;
    }

    .cstas-hero__arrow {
        top: auto;
        bottom: 17px;
        width: 35px;
        height: 35px;
        font-size: 14px;
        transform: none;
    }

    .cstas-hero__arrow--prev {
        left: 16px;
    }

    .cstas-hero__arrow--next {
        right: 16px;
    }

    .cstas-hero__dots {
        bottom: 29px;
        gap: 8px;
        padding: 0 60px;
    }

    .cstas-hero__dot {
        width: 7px;
        height: 7px;
    }

    .cstas-hero__dot--active {
        width: 22px;
    }
}


/* Respect reduced-motion preference */

@media (prefers-reduced-motion: reduce) {
    .cstas-hero *,
    .cstas-hero *::before,
    .cstas-hero *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
