/* ============================================================
   A1 CASH & CARRY
   HERO SECTION
   DESKTOP + TABLET + MOBILE
============================================================ */

.hero-section {
    position: relative;
    width: 100%;
    min-height: 480px;
    overflow: hidden;
    display: flex;
    align-items: center;
    isolation: isolate;
    background: #003b12;
}


/* ============================================================
   BACKGROUND
============================================================ */

.hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -3;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0;

    transform:
        scale(1.08)
        translateX(5%);

    transition:
        opacity 1s ease-in-out,
        transform 5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;

    transform:
        scale(1.08)
        translateX(0);
}


/* ============================================================
   OVERLAY
============================================================ */

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(0, 35, 12, 0.88),
            rgba(0, 90, 25, 0.55),
            rgba(0, 0, 0, 0.20)
        );
}


/* ============================================================
   CONTENT
============================================================ */

.hero-content {
    position: relative;
    z-index: 5;

    width: min(1400px, 94%);
    margin: auto;

    padding: 70px 0;

    color: #ffffff;
}


/* ============================================================
   SMALL TITLE
============================================================ */

.hero-small {
    display: inline-block;

    margin-bottom: 10px;

    color: #d9ffdf;

    font-size: 15px;
    font-weight: 700;

    letter-spacing: 3px;
}


/* ============================================================
   MAIN TITLE
============================================================ */

.hero-content h1 {
    margin: 0 0 10px;

    font-size: clamp(38px, 5vw, 70px);

    font-weight: 900;

    letter-spacing: 1px;

    line-height: 1.1;

    color: #ffffff;

    text-shadow:
        3px 4px 0 rgba(0, 0, 0, 0.25),
        0 4px 15px rgba(0, 0, 0, 0.25);
}


/* ============================================================
   SECOND TITLE
============================================================ */

.hero-content h2 {
    margin: 0 0 18px;

    font-size: clamp(28px, 4vw, 52px);

    line-height: 1.15;

    font-weight: 800;

    color: #ffffff;

    text-shadow:
        2px 3px 8px rgba(0, 0, 0, 0.40);
}


/* ============================================================
   DESCRIPTION
============================================================ */

.hero-content p {
    max-width: 650px;

    margin: 0 0 30px;

    font-size: 18px;

    line-height: 1.7;

    font-weight: 500;

    color: #f1fff3;

    text-shadow:
        1px 2px 5px rgba(0, 0, 0, 0.45);
}


/* ============================================================
   BUTTONS
============================================================ */

.hero-buttons {
    display: flex;

    align-items: center;

    gap: 15px;

    flex-wrap: wrap;
}

.hero-buttons .btn-secondary {
    background: #ffffff;
    color: var(--primary);
}


/* ============================================================
   ARROWS
============================================================ */

.hero-arrow {
    position: absolute;

    top: 50%;

    transform:
        translateY(-50%);

    z-index: 10;

    width: 48px;
    height: 48px;

    border: none;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.90);

    color: var(--primary);

    font-size: 18px;

    cursor: pointer;

    transition: all 0.3s ease;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.20);
}

.hero-arrow:hover {
    background: var(--primary);

    color: #ffffff;

    transform:
        translateY(-50%)
        scale(1.08);
}

.hero-prev {
    left: 25px;
}

.hero-next {
    right: 25px;
}


/* ============================================================
   DOTS
============================================================ */

.hero-dots {
    position: absolute;

    bottom: 20px;

    left: 50%;

    transform:
        translateX(-50%);

    z-index: 10;

    display: flex;

    align-items: center;

    gap: 8px;
}

.hero-dot {
    width: 9px;
    height: 9px;

    padding: 0;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.60);

    cursor: pointer;

    transition:
        all 0.3s ease;
}

.hero-dot.active {
    width: 28px;

    border-radius: 10px;

    background: #ffffff;
}

.hero-dot:hover {
    background: #ffffff;
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 1024px) {

    .hero-section {
        min-height: 450px;
    }

    .hero-content {
        width: 90%;
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 50px;
    }

    .hero-content h2 {
        font-size: 36px;
    }

    .hero-content p {
        max-width: 550px;
        font-size: 15px;
    }

    .hero-arrow {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }

    .hero-prev {
        left: 15px;
    }

    .hero-next {
        right: 15px;
    }
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 768px) {

    .hero-section {
        min-height: 460px;

        align-items: center;
    }

    .hero-background {
        min-height: 460px;
    }

    .hero-slide {
        background-position: center center;

        transform:
            scale(1.06)
            translateX(3%);
    }

    .hero-slide.active {
        transform:
            scale(1.06)
            translateX(0);
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(0, 25, 8, 0.88),
                rgba(0, 70, 20, 0.65),
                rgba(0, 0, 0, 0.45)
            );
    }

    .hero-content {
        width: 88%;

        padding: 55px 0;

        text-align: center;
    }

    .hero-small {
        font-size: 12px;

        letter-spacing: 2px;

        margin-bottom: 8px;
    }

    .hero-content h1 {
        font-size: 40px;

        line-height: 1.12;
    }

    .hero-content h2 {
        font-size: 28px;

        line-height: 1.2;
    }

    .hero-content p {
        max-width: 520px;

        margin-left: auto;
        margin-right: auto;

        font-size: 14px;

        line-height: 1.6;
    }

    .hero-buttons {
        justify-content: center;

        gap: 10px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        padding: 11px 18px;

        font-size: 12px;
    }

    .hero-arrow {
        width: 38px;
        height: 38px;

        font-size: 14px;
    }

    .hero-prev {
        left: 10px;
    }

    .hero-next {
        right: 10px;
    }

    .hero-dots {
        bottom: 15px;
    }
}


/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 480px) {

    .hero-section {
        min-height: 420px;
    }

    .hero-background {
        min-height: 420px;
    }

    .hero-content {
        width: 84%;

        padding: 45px 0;
    }

    .hero-small {
        font-size: 10px;

        letter-spacing: 1.8px;
    }

    .hero-content h1 {
        font-size: 29px;

        letter-spacing: .5px;
    }

    .hero-content h2 {
        font-size: 21px;

        line-height: 1.25;
    }

    .hero-content p {
        font-size: 11px;

        line-height: 1.6;

        margin-bottom: 20px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: center;

        width: 100%;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: auto;

        min-width: 145px;

        justify-content: center;

        padding: 10px 15px;

        font-size: 11px;
    }

    .hero-arrow {
        width: 32px;
        height: 32px;

        font-size: 11px;
    }

    .hero-prev {
        left: 7px;
    }

    .hero-next {
        right: 7px;
    }

    .hero-dots {
        bottom: 12px;

        gap: 6px;
    }

    .hero-dot {
        width: 7px;
        height: 7px;
    }

    .hero-dot.active {
        width: 22px;
    }
}


/* ============================================================
   EXTRA SMALL MOBILE
============================================================ */

@media (max-width: 360px) {

    .hero-section {
        min-height: 390px;
    }

    .hero-background {
        min-height: 390px;
    }

    .hero-content {
        width: 82%;
        padding: 38px 0;
    }

    .hero-small {
        font-size: 9px;
    }

    .hero-content h1 {
        font-size: 25px;
    }

    .hero-content h2 {
        font-size: 18px;
    }

    .hero-content p {
        font-size: 10px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        min-width: 130px;

        padding: 9px 12px;

        font-size: 10px;
    }

    .hero-arrow {
        width: 28px;
        height: 28px;
    }
}


/* ============================================================
   TOUCH DEVICES
============================================================ */

@media (hover: none) and (pointer: coarse) {

    .hero-arrow:hover {
        transform:
            translateY(-50%);
    }

}