* {
    box-sizing: border-box;
    outline: none;
}

.page {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    color: #222;
    font-family: "Open Sans";
    font-weight: 300;
    text-align: center;
    animation: fadeIn 1s forwards linear;
}

.page::before {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-size: cover;
    background-position: top center;
    background-image: url("images/hero_bg.jpg");
    content: '';
    z-index: -10;
}

header {
    height: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    width: 100%;
    background-color: #fff;
}

.header-logo {
    width: 10rem;
}

header nav a {
    display: inline-block;
    padding-left: 1.5em;
    color: #555;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.5s;
}

header nav a:hover {
    color: #459764;
}

.header-logo img {
    width: 100%;
}

.mobile-menu-button {
    display: none;
    width: 2rem;
    height: 2rem;
    border: 0;
    background-color: transparent;
    background-image: url('images/menu_green.svg');
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
}

.hero-logo {
    width: 60%;
    max-width: 20rem;
    margin: 5rem 0 3rem;
}

.hero-logo img {
    width: 100%;
}

h1 {
    padding: 0 2rem;
    margin: 0;
    color: #719549;
    font-size: 2.5rem;
    font-weight: normal;
    line-height: 1.2;
}

.hero-text {
    max-width: 35rem;
    padding: 0 2rem;
    font-size: 1.4rem;
    line-height: 1.4;
}

.hero-text a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.hero-action {
    padding: 0 2rem 5rem 2rem;
}

.hero-action a {
    display: inline-block;
    padding: 1rem 3rem;
    color: #fff;
    background-color: #719549;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: background-color 0.5s;
}

.hero-action a:hover {
    background-color: #527c23;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media screen and (max-width: 1000px) {
    .page::before {
        opacity: 0.5;
    }

    .header-logo {
        width: 7rem;
    }

    .mobile-menu-button {
        display: block;
    }

    h1 {
        font-size: 2rem;
    }

    header nav {
        position: fixed;
        left: 0;
        right: 0;
        height: calc(100vh - 5rem);
        top: 5rem;
        padding: 2rem;
        background-color: #fff;
        overflow-y: scroll;
        display: none;
    }

    header nav a {
        width: 100%;
        padding: 2rem 0;
        font-size: 1rem;
    }

    .mobile-menu-visible {
        overflow: hidden;
    }

    .mobile-menu-visible .mobile-menu-button {
        background-image: url('images/cross_green.svg');
        background-size: 80%;
    }

    .mobile-menu-visible header nav {
        display: block;
    }
}
