/*
GERAL
*/

body {
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    color: #4d4d4d;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Roboto Slab", Helvetica, Arial, sans-serif;
    font-weight: 700;
}

.botao {
    color: #f1f1f1;
    text-decoration: none;
    padding: 10px 30px;
    background-color: #229bff;
    font-size: .9em;
    border-radius: 5px;
}

/*
NAVEGAÇÃO
*/

nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #c4d7fa;
}

nav>a>img {
    width: 100px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

nav ul li {
    text-align: center;
    width: 100%;
}

nav ul li a {
    display: inline-block;
    padding: 10px 0;
    width: 100%;
    text-decoration: none;
    font-weight: bold;
    color: #229bff;
}


/*
CABEÇALHO
*/

header {
    background-image: url('../img/fundo_5_new.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #229bff;
    display: flex;
    flex-direction: column;
    font-size: 140%;
    align-items: center;
    text-align: center;
    padding: 20px;
}

header h1 {
    font-size: 250%;
    letter-spacing: 2px;
    text-shadow: 2px 2px 3px rgb(220, 220, 220);
}

header p {
    margin-bottom: 2em;
    font-size: 140%;
    color: #229bff;
    text-shadow: 2px 2px 3px rgb(220, 220, 220);
}

/*
SOBRE
*/

#sobre {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px 20px;
    background-color: #229bff;
    color: #f1f1f1;
}

#sobre p {
    margin-bottom: 1.5em;
    max-width: 1000px;
}

#sobre .botao {
    background-color: #f1f1f1;
    color: #4d4d4d;
}

/*
SERVIÇOS
*/

#servicos {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#servicos img {
    width: 80px;
    filter: invert(0.35);
}

#servicos div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 220px;
    margin: 30px 10px 0 10px;
}

/*
PORTFOLIO
*/

#portfolio {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

#portfolio h2 {
    margin-bottom: 20px;
}

#portfolio img {
    width: 100%;
}

/*
CONTATO
*/
#contato {
    background-color: #f1f1f1;
}

#contato>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

#contato img {
    width: 50px;
    filter: invert(0.35);
}

/*
FOOTER
*/

footer {
    text-align: center;
    padding: 10px;
    background-color: #757575;
    color: #f1f1f1;
}

/*
MEDIA QUERIES
*/

@media screen and (min-width: 768px) {

    /*
    NAVEGAÇÃO
    */
    nav {
        flex-direction: row;
        justify-content: space-around;
    }

    nav ul {
        flex-direction: row;
        width: 70%;
    }

    /*
    CABEÇALHO
    */

    header {
        height: 600px;
        height: 60vh;
        justify-content: center;
    }

    /*
    SOBRE
    */

    #sobre {
        height: 610px;
        height: 65vh;
        justify-content: center;
        min-height: 610px;
    }

    /*
    SERVIÇOS
    */

    #servicos {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        max-width: 1000px;
        margin: 0 auto;
    }

    #servicos h2 {
        padding-top: 20px;
        text-align: center;
        width: 100%;
    }

    #servicos div {
        flex-grow: 1;
        flex-basis: 150px;
        padding: 0 10px;
    }

    /*
    PORTFOLIO
    */

    #portfolio {
        flex-direction: row;
        flex-wrap: wrap;
    }

    #portfolio h2 {
        width: 100%;
        padding-top: 20px;
        text-align: center;
    }

    #portfolio img {
        width: 33.3333333333%;
    }

    /*
    CONTATO
    */

    #contato>div {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        max-width: 500px;
        margin: 0 auto;
    }

    #contato h2 {
        padding-top: 20px;
    }

    #contato p {
        width: 100%;
    }

}