
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');


/* ==========================================
   HERO BANNER
========================================== */

.hero {
    position: relative;

    width: 100%;
    max-width: 100%;
    height: 90vh;
    min-height: 650px;

    overflow: hidden;
    isolation: isolate;

    background: #111;

    margin: 0;
    padding: 0;
}


/* ==========================================
   BACKGROUND SLIDES
========================================== */

.slides {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;
    z-index: 0;
}

.slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 1.5s ease-in-out,
        visibility 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}


/* BACKGROUND IMAGES */

.slide-1 {
    background-image: url('../images/banner1.jpg');
}

.slide-2 {
    background-image: url('../images/banner2.jpg');
}

.slide-3 {
    background-image: url('../images/banner3.jpg');
}


/* ==========================================
   GRADIENT OVERLAY
========================================== */

.hero-overlay {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.75) 20%,
        rgba(0, 0, 0, 0.50) 40%,
        rgba(0, 0, 0, 0.20) 60%,
        rgba(0, 0, 0, 0.05) 100%
    );

    z-index: 1;
    pointer-events: none;
}


/* ==========================================
   HERO CONTENT
========================================== */

.hero-content {
    position: absolute;

    top: 50%;

    left: max(
        var(--gutter, 30px),
        calc((100% - var(--container, 1600px)) / 2 + var(--gutter, 30px))
    );

    right: 30px;

    transform: translateY(-50%);

    width: calc(100% - 60px);
    max-width: 780px;

    color: #ffffff;
    z-index: 5;
}

.hero-subtitle {
    font-family: "Manrope", sans-serif;

    display: inline-flex;
    align-items: center;
    gap: 12px;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.85);

    margin-bottom: 18px;
}

.hero-subtitle::before {
    content: "";

    width: 34px;
    height: 2px;

    background: var(--accent-light);
}

.hero-title {
    font-family: "Manrope", sans-serif;

    font-size: clamp(42px, 4.6vw, 76px);

    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -2.5px;

    margin: 0;
}

.hero-title span {
    display: block;
}

.hero-text {
    font-family: "Manrope", sans-serif;

    margin-top: 22px;

    max-width: 520px;

    font-size: 17px;
    line-height: 1.65;

    color: rgba(255, 255, 255, 0.85);
}


/* ==========================================
   HERO BUTTONS
========================================== */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;
    margin-top: 34px;
}

.btn {
    font-family: "Manrope", sans-serif;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 16px 30px;

    border-radius: 50px;

    font-size: 14px;
    font-weight: 800;

    transition: all .3s var(--ease);
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
}

.btn-primary:hover {
    background: #ffffff;
    color: var(--primary);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
}


/* ==========================================
   LARGE LAPTOP
========================================== */

@media (max-width: 1280px) {

    .hero {
        height: 85vh;
        min-height: 600px;
    }

    .hero-content {
        left: 40px;
    }

}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 991px) {

    .hero {
        width: 100%;
        height: 80vh;
        min-height: 600px;
    }

    .hero-content {
        top: 50%;

        left: 30px;
        right: 30px;

        width: calc(100% - 60px);
        max-width: 700px;
    }

    .hero-title {
        font-size: clamp(38px, 7vw, 58px);
        line-height: 1.08;
        letter-spacing: -1.8px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.70) 45%,
            rgba(0, 0, 0, 0.35) 100%
        );
    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 576px) {

    .hero {
        width: 100%;
        height: 75vh;
        min-height: 580px;
    }

    .slide {
        background-position: 60% center;
    }

    .hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.70) 50%,
            rgba(0, 0, 0, 0.40) 100%
        );
    }

    .hero-content {
        top: 50%;

        left: 20px;
        right: 20px;

        width: calc(100% - 40px);
        max-width: none;
    }

    .hero-subtitle {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .hero-title {
        font-size: clamp(34px, 9vw, 46px);
        letter-spacing: -1.5px;
        line-height: 1.12;
    }

    .hero-text {
        font-size: 14px;
        line-height: 1.7;
        margin-top: 18px;
    }

    .hero-buttons {
        gap: 12px;
        margin-top: 25px;
    }

    .btn {
        padding: 13px 20px;
        font-size: 12px;
    }

}


/* ==========================================
   EXTRA SMALL MOBILE
========================================== */

@media (max-width: 360px) {

    .hero-content {
        left: 16px;
        right: 16px;
        width: calc(100% - 32px);
    }

    .hero-title {
        font-size: 34px;
    }

}


/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {

    .slide {
        transition: opacity .3s ease;
    }

}
