* {
    box-sizing: border-box;
}
body {
    color: #404040;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

img:hover {
    filter: grayscale(50%);
}

/* ==================
    Typography
===================== */

a {
    color: #000;
    font-weight: 600;
    text-decoration: none;
}

a:hover,
a:focus {
    opacity: .6;
}

h1, h2, strong {
    font-weight: 700;
}

.accent-color,
.span-highlight {
    color: #e29837;
}

.page-title,
.subtitle {
    color: #000;
    text-align: center;
    font-weight: 700;
}

.page-title {
    font-size: 3rem;
    margin-bottom: .5em;
    justify-self: center;
}

.page-title::after {
    background: #e29837;
    content: "";
    display: block;
    height: 30px;
    width: 100%;
    margin-top: -30px;
    margin-left: 20px;
}

.subtitle {
    font-size: 1.125rem;
    margin: 0 0 3em;
}

.hero-title {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-top: 30vh;
    margin-bottom: 0;
}

.section-title {
    color: #000;
    font-size: 1.125rem;
    margin-top: 1.25em;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin: 10px 0 0;
    background: #e29837;
}

.section-title:first-child {
    margin-top: 0;
}

.section-title-center::after {
    margin: 10px auto;
}

.section-title.section-title-center {
    margin-top: 1.25em;
    text-align: center;
}

/* buttons */

.btn {
    border: 0;
    padding: .75em 1.75em;
    font-weight: 700;
    font-size: 1em;
    margin-top: .5em;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover,
.btn:focus {
    opacity: .7;
}

.btn-primary {
    background: #e29837;
    color: #fff;
    justify-self: start;
}

.btn-form {
    justify-self: end;
}

/* LAYOUT */

/* ==================
    general layout
===================== */

.main-grid {
    display: grid;
    grid-gap: 0 2em;
    grid-template-columns: minmax(1em, 1fr) minmax(0px, 500px) minmax(1em, 1fr);
}

@media (min-width: 600px) {
    .main-grid {
        grid-template-columns: minmax(1em, 1fr) repeat(3, minmax(150px, 320px)) minmax(1em, 1fr);
    }
}

/* navigation */

.header {
    background: black;
}

.header-home {
    background: transparent;
    position: absolute;
    width: 100%;
}

.header-content {
    display: flex;
    grid-column: 2 / -2;
    justify-content: space-between;
}

.logo-link {
    color: #000;
    background-color: #e29837;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 0;
    padding: 1em 1em 0;
}

.logo-link:hover,
.logo-link:focus {
    opacity: .9;
}

.nav {
    position: fixed;
    background: #000;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 100%;
    transform: translateX(0);
    transition: transform 250ms;
}

.navigation-open {
    transform: translateX(-100%);
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
}

.open-nav,
.close-nav {
    border: 0;
    background: 0;
    font-weight: 700;
    cursor: pointer;
    padding: .5em 0;
}

.open-nav {
    color: #fff;
    font-size: 1.5rem;
}

.close-nav {
    color: #e29837;
    font-size: 3rem;
    position: absolute;
    right: 1em;
}

.current-page {
    border-bottom: 4px solid #e29837;
}

.current-page:hover,
.current-page:focus {
    color: #fff;
    opacity: 1;
    cursor: initial;
}

@media (min-width: 600px) {
    .header-home nav {
        background: transparent;
    }

    .open-nav,
    .close-nav {
        display: none;
    }
    
    .nav {
        position: initial;
    }
    
    .nav-list {
        flex-direction: row;
        justify-content: flex-end;
    }
    
    .nav-item {
        margin-left: 2em;
    }
    
    .nav-link {
        font-size: 1rem;
    }
}

/* footer */

.footer {
    background: #ebebeb;
    padding: 4em 0;
    text-align: center;
    grid-template-areas: 
        ". social ."
        ". attribution ."
        ". main .";
}

.footer-main {
    grid-area: main;
    opacity: .6;
}

.footer-main p:first-child {
    margin-top: 0;
}

.footer-fineprint,
.footer-attribution {
    font-size: .75rem;
}

.footer-main,
.footer-attribution {
    margin-top: 4em;
}

.social-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    grid-area: social;
}

.social-link {
    font-size: 1.75rem;
    margin: 0 .5em;
}

.footer-attribution {
    grid-area: attribution;
}

@media (min-width: 600px) {
    .footer {
        grid-template-areas: 
          ". main main social ."
          ". main main attribution .";
    }

    .footer-main {
        text-align: left;
    }

    .footer-main,
    .footer-attribution {
        margin-top: 0;
    }
    .social-list {
        justify-content: flex-end;
        align-content: center;
    }
}

/* ==================
    hero area
===================== */

.hero {
    height: 100vh;
    background-color: #404040;
    background-image: url(../img/hero02.jpg);
    background-blend-mode: multiply;
    background-position: center;
    background-size: cover;
    color: #fff;
    padding: 10em 0 4em;
}

.hero > * {
    grid-column: 2 / -2;
}


@media (min-width: 600px) {
    .hero {
        padding: 10em 0 6em;
    }

    .hero > * {
        grid-column: 2 / span 2;
    }

}

/* ==================
    info section
===================== */

.info {
    padding: 4em 0;
    text-align: center;
}

.col {
    grid-column: 2 / -2;
}

@media (min-width: 600px) {
    .col {
        grid-column: span 1;
    }

    .col:first-child {
        grid-column: 2;
    }
}

/* ==================
    roadmap
===================== */

.roadmap {
    background: linear-gradient(135deg, #e29837 10%, #ebebeb);
}

.roadmap .section-title {
    color: #fff;
    opacity: .8;
}

.roadmap .section-title::after {
    background: #fff;
    opacity: .9;
}

.roadmap-icons {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.roadmap-icons i {
    color: #000;
    padding: 1.5rem;
    font-size: 7em;
    opacity: .8;
}

.roadmap-icons i:last-child {
    align-self: center;
}

.roadmap p {
    text-align: center;
}

.roadmap-icons p::after {
    color: #000;
    content: "▼";
    display: block;
    font-size: 2em;
    opacity: .5;
    max-height: 50px;
}

.roadmap-icons p:last-child::after {
    display: none;
}

.desktop-only {
    display: none;
}

.icon-service {
    max-width: 64px;
    margin: auto;
}

@media (min-width: 600px) {
    .roadmap-icons {
        flex-direction: row;
        flex-wrap: wrap;
        font-size: .5rem;
    }

    .roadmap-icons p {
        font-size: 1rem;
    }

    .roadmap-icons p i {
        font-size: 3rem;
    }

    .roadmap-icons p::after {
        display: none;
    }

    .roadmap-icons .desktop-only {
        display: inline;
        margin: auto 0;
        font-size: 2em;
    }
}


/* ==================
    page template
===================== */

.main-template {
    padding: 4em 0;
}

.main-template > * {
    grid-column: 2 / -2;
}

.main-image {
    margin-bottom: 3em;
    box-shadow: 0 0 15px rgba(0,0,0, .3);
}

@media (min-width: 600px) {
    .main-image,
    .secondary-text {
        grid-column: 2;
    }

    .main-text {
        grid-column: 3 / -2;
        grid-row: span 2;
    }

    .secondary-text {
        order: 2;
    }
}


/* ==================
    form
===================== */

.contact-form {
    display: grid;
}

label {
    font-weight: 700;
}

input,
textarea {
    margin-bottom: .75em;
    padding: .4em;
    font-family: inherit;
    font-size: inherit;
}

textarea {
    resize: none;
    height: 150px;
}

@media (min-width: 820px) {
    .contact-form {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-flow: dense;
        grid-gap: 0 1em;
    }

    .fname-label,
    .fname-input {
        grid-column: 1;
    }

    .lname-label,
    .lname-input {
        grid-column: 2;
    }

    .message-label,
    .message-textarea {
        grid-column: 1 / span 2;
    }

    .btn-form {
        grid-column: 2;
    }
}
