/*
COLORS:

Light green: #7ed56f
Medium green: #55c57a
Dark green: #28b485

*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
}

body {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #777;
    padding: clamp(12px, 4vw, 30px);
}

.header {
    height: 95vh;
    background-image: linear-gradient(
        to right bottom,
        #6fced5d3, 
        #2836b498),
    url(../img/hero.jpg);
    background-size: cover;
    background-position: top;
    position: relative;

    clip-path: polygon(0 0, 100% 0, 100% 75vh, 0 100%);
}

.logo-box {
    position: absolute;
    top: clamp(20px, 5vw, 40px);
    left: clamp(20px, 5vw, 40px);
}

.logo {
    height: clamp(28px, 8vw, 35px);
}

.text-box {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90%, 720px);
    text-align: center;
}

.header-primary {
    color: #FFF;
    text-transform: uppercase;
    backface-visibility: hidden;
}

.header-primary-main {
    display: block;
    font-size: clamp(28px, 8vw, 52px);
    font-weight: 400;
    letter-spacing: clamp(4px, 2.8vw, 15px);
    line-height: 1.15;

    animation: moveInLeft 2.5s ease-out;
}

.header-primary-secondary {
    display: block;
    margin-top: 12px;
    font-size: clamp(12px, 3.4vw, 18px);
    font-weight: 700;
    letter-spacing: clamp(2px, 1.5vw, 10.5px);
    line-height: 1.35;

    animation: moveInRight 2.5s ease-out;
}

@media (max-width: 700px) {
    .header {
        height: 92vh;
        background-image: linear-gradient(
            to right bottom,
            #6fced5d3,
            #2836b498),
        url(../img/hero-small.jpg);
        clip-path: polygon(0 0, 100% 0, 100% 82vh, 0 100%);
    }

    .text-box {
        top: 46%;
    }
}

@media (max-width: 420px) {
    .header-primary-main {
        letter-spacing: 3px;
    }

    .header-primary-secondary {
        letter-spacing: 1.5px;
    }
}

@keyframes moveInLeft {

    0% {
        opacity: 0;
        transform: translateX(-50%);
    }

    75% {
        transform: translateX(10px);
    }

    100% {
        opacity: 1;
        transform: translate(0);
    }
    
}

@keyframes moveInRight {

    0% {
        opacity: 0;
        transform: translateX(50%);
    }

    75% {
        transform: translateX(-10px);
    }

    100% {
        opacity: 1;
        transform: translate(0);
    }
    
}
