/* estilo dos grupos body, header, main, footer */

*{
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}

body{
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    color: #333;
}

header{
    background: #123c5a;
    color: white;
    padding: 25px;
    text-align: center;
}

header h1{
    margin: 0;
    font-size: 36px;
}

header p{
    margin: 8px 0 0 0;
}

nav{
    background-color: #0d2f46;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px;
}

nav a{
    color: white;
    text-decoration: none;    
    font-size: 16px;
}

nav a:hover{
    text-decoration: underline;
}

.principal{
    max-width: 1100px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
}

.principal h2{
    font-size: 32px;
    color: #123c5a;
    margin-bottom: 15px;
}

.principal p{
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
}

.cards{
    display:flex;
 /*   flex-direction: column; */
    gap: 25px;
    justify-content: center;
    margin-top: 45px;
}

.card{
    background: lavender;
    width: 280px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.10);
}

.card h3{
    color: #123c5a;
    margin-top: 0;
}

.card p{
    line-height: 1.5;
}

.sobre{
    background-color: white;
    padding: 50px 20px;
    text-align: center;
}

.sobre h2{
    color: #123c5a;
}

.sobre p{
    max-width: 700px;
    margin: auto;
    line-height: 1.6;
}

footer{    
    padding: 25px;
    background: #123c5a;
    color: white;
    text-align: center;
}

/* responsividade - sera utilizada quando a tela tiver ate 700 pixels de largura */

@media (max-width: 700px){
 
    header h1{
        font-size: 28px;
    }

    nav{
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .principal{
        margin: 30px auto;
    }

    .principal h2{
        font-size: 26px;
    }

    .cards{
        flex-direction: column;
        align-items: center;
    }

    .card{
        width: 90%;
        max-width: 350px;
    }

}