﻿/* =====================================
   HERO SECTION
   ===================================== */

.hero-section {
    width: 100vw;
    height: 90vh;
    margin-left: calc(-50vw + 50%);
    position: relative;
    overflow: hidden;
}

/* slider */

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

/* slide */

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    .hero-slide.active {
        opacity: 1;
        z-index: 2;
    }

    /* dark overlay */

    .hero-slide::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient( to right, rgba(0,0,0,0.8), rgba(0,0,0,0.55), rgba(0,0,0,0.35) );
        z-index: 1;
    }

/* hero text */

.hero-content {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    color: #fff;
    max-width: 650px;
    z-index: 2;
}

    .hero-content h1 {
        font-size: 52px;
        color: #fff;
        margin-bottom: 18px;
    }

    .hero-content p {
        font-size: 18px;
        line-height: 1.6;
        margin-bottom: 25px;
        color: #fff;
    }

/* buttons */

.hero-buttons a {
    display: inline-block;
    margin-right: 10px;
    padding: 12px 26px;
    border-radius: 5px;
    font-weight: 600;
}

/* secondary button */

.btn-secondary {
    background: #fff;
    color: #333;
}

    .btn-secondary:hover {
        background: #eaeaea;
    }

/* =====================================
   MOBILE
   ===================================== */

@media(max-width:768px) {

    .hero-section {
        height: 70vh;
    }

    .hero-content {
        left: 5%;
        right: 5%;
        text-align: center;
    }

        .hero-content h1 {
            font-size: 30px;
        }

        .hero-content p {
            font-size: 15px;
        }

    .hero-buttons a {
        display: block;
        margin-bottom: 10px;
    }
}
.hero-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}