/* ===== COLORS: change the whole palette here ===== */
:root {
    --green: #0b3d2e;
    /* deep green */
    --green-2: #14624a;
    /* lighter green for gradients */
    --blue: #3eb900;
    /* electric blue (buttons, accents) */
    --blue-hover: #8cffb3;
    --white: #ffffff;
    --overlay: rgba(5, 24, 18, .62);
    /* dark overlay on images: raise the last number for darker */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}



/* ===== SLIDER ===== */
.hero {
    position: relative;
    width: 100%;
    height: clamp(460px, 78vh, 720px);
    overflow: hidden;
    background: var(--green)
}

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s ease, visibility .9s;
    /* transition speed */
    background:
        linear-gradient(90deg, var(--overlay) 0%, rgba(5, 24, 18, .25) 100%),
        var(--img),
        linear-gradient(135deg, var(--green), var(--green-2));
    background-size: cover;
    background-position: center
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1
}


.s1 {
    --img: url("images/banner/slider/2.png?auto=format&fit=crop&w=1800&q=70")
}

.s2 {
    --img: url("images/banner/slider/1.png?auto=format&fit=crop&w=1800&q=70")
}

.s3 {
    --img: url("images/banner/slider/3.png?auto=format&fit=crop&w=1800&q=70")
}

.s4 {
    --img: url("images/banner/slider/4.png?auto=format&fit=crop&w=1800&q=70")
}

.content {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 clamp(64px, 8vw, 110px)
}

.content h1 {
    font-size: clamp(2.2rem, 6.2vw, 4.8rem);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -.02em;
    max-width: 15ch
}

.content p {
    margin-top: 1.1rem;
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.55;
    max-width: 46ch;
    color: rgba(255, 255, 255, .9)
}

.btn {
    display: inline-block;
    margin-top: 1.8rem;
    padding: .95rem 1.9rem;
    border-radius: 999px;
    background: var(--blue);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background .2s, transform .2s
}

.btn:hover {
    background: var(--blue-hover);
    transform: translateY(-2px)
}

/* Text animation: runs once when a slide becomes active */
.slide.active h1,
.slide.active p,
.slide.active .btn {
    animation: rise .8s cubic-bezier(.2, .7, .2, 1) both
}

.slide.active p {
    animation-delay: .12s
}

.slide.active .btn {
    animation-delay: .24s
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(22px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

/* ===== ARROWS ===== */
.arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .7);
    background: rgba(5, 24, 18, .35);
    color: var(--white);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .2s
}

.arrow:hover {
    background: var(--blue);
    border-color: var(--blue)
}

.arrow svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round
}

.prev {
    left: clamp(10px, 2vw, 28px)
}

.next {
    right: clamp(10px, 2vw, 28px)
}

/* ===== DOTS + AUTOPLAY PROGRESS BAR ===== */
.dots {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 28px;
    display: flex;
    gap: 10px;
    justify-content: center
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    padding: 0;
    transition: all .3s
}

.dot.active {
    background: var(--white);
    width: 34px;
    border-radius: 8px
}

.progress {
    position: absolute;
    z-index: 3;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 0;
    background: var(--blue)
}

:focus-visible {
    outline: 3px solid var(--blue-hover);
    outline-offset: 3px
}

/* ===== STATS STRIP: edit the numbers in the HTML below ===== */
.stats {
    background: var(--green);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
    text-align: center
}

.stat {
    padding: 1.5rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, .18)
}

.stat:last-child {
    border-right: 0
}

.stat strong {
    display: block;
    font-size: clamp(1.5rem, 3.6vw, 2.4rem);
    font-weight: 800;
    color:white;
}

.stat span {
    font-size: clamp(.8rem, 1.6vw, 1rem);
    color: rgba(255, 255, 255, .8)
}

/* ===== RESPONSIVE ===== */
@media (max-width:600px) {
    .arrow {
        width: 38px;
        height: 38px;
        top: auto;
        bottom: 18px;
        transform: none
    }

    .prev {
        left: 12px
    }

    .next {
        right: 12px
    }

    .content {
        padding: 0 24px 40px
    }

    .dots {
        bottom: 34px
    }
}

@media (prefers-reduced-motion:reduce) {
    .slide {
        transition: none
    }

    .slide.active h1,
    .slide.active p,
    .slide.active .btn {
        animation: none
    }
}