@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lobster&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Changa+One:ital@0;1&family=Lobster&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


* {
    box-sizing: border-box;
}

body {
    position: relative;
    font-family: "Roboto", sans-serif;
    margin: 0;
    background-image: linear-gradient(black, gray);
}

.navbar {
    display: flex;
    flex-flow: row wrap;
    height: 100px;
    border-bottom: 2px solid gray;
    justify-content: center;
    align-items: center;
}

.logo {
    margin-left: 10%;
    font-family: 'Changa One', sans-serif;
    flex: 20%;
    color: white;
    text-align: left;
}

.links {
    flex: 70%;
    
    text-align: right;
    padding: 20px;
}

.links a {
    color: white;
    text-decoration: none;
    padding: 20px;
}

.links a:hover {
    
    border-top: 2px solid white;
}

#botao {
    background-color: gray;
    color: white;
    border-radius: 5px;
    margin-left: 50px;
    padding: 10px 25px;
    border: 2px solid white;
}

#botao:hover {
    border: none;
    background-color: white;
    color: gray;
    border: 2px solid white;
}

.header {
    display: flex;
    flex-flow: row wrap;
    height: 600px;
    justify-content: center;
    align-items: center;
}

.headline {
    margin-left: 10%;
    flex: 40%;
}

.headline h2 {
    padding: 0;
    margin: 0;
    color: white;
}

.img-headline {
  background: #0f172a;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 12px;
  font-family: monospace;
  font-size: 14px;
  flex: 30%;
  margin-right: 5%;
}

.headline a {
    border: 2px solid white;
    background-color: gray;
    border-radius: 5px;
    padding: 10px;
    text-decoration: none;
    color: white;
    text-transform: uppercase;
}

.headline a:hover {
    background-color: white;
    color: gray;
}

.section {
    width: 90%;
    display: inline-block;
    margin-top: 5px;
    margin-right: 5%;
    margin-left: 5%;
    height: 800px;
    text-align: center;
}

.section h2 {
    padding: 5%;
    font-family: 'Changa One', sans-serif;
    font-size: 60px;
    font-weight: bold;
    color: white;
}

.servicos {
    display: inline-block;
}

.card {
    margin-bottom: 50px;
    display: inline-block;
    padding: 20px;
    width: 30%;
    border: 1px solid white;
    border-radius: 5px;
    margin: 1%;
    color: white;
    height: 320px;
}

.card a {
    background-color: gray;
    color: white;
    border-radius: 5px;
    padding: 5px 15px;
    border: 2px solid white;
    text-decoration: none;
}

.card a:hover {
    background-color: white;
    color: gray;
}

.footer {
    margin-top: 5px;
    border-top: 5px solid white;
    background-color: #221f22;
    text-align: center;
    height: 450px;
}

.titulo-agencia {
    font-family: 'Changa One', sans-serif;
}

.footer h2 {
    color: white;
}

.footer h3 {
    margin: 0;
    color: white;
}

.rodape {
    padding: 120px;
}

.footer b {
    color: white;
    bottom: 0;
}

@media only screen and (max-width: 768px) {
    /* Ajustes na Navegação */
    .navbar {
        height: auto; /* Deixa a altura livre para o conteúdo empilhar */
        flex-direction: column;
        padding: 20px 0;
    }

    .logo, .links {
        flex: 100%;
        text-align: center;
        margin-left: 0;
        padding: 10px;
    }

    .links a {
        display: block; /* Links um embaixo do outro no mobile */
        padding: 10px;
    }

    #botao {
        margin-left: 0;
        margin-top: 10px;
        display: inline-block;
    }

    /* Ajustes no Header/Headline */
    .header {
        flex-direction: column;
        height: auto;
        padding: 40px 0;
    }

    .headline {
        margin-left: 0;
        flex: 100%;
        text-align: center;
        padding: 20px;
    }

    .img-headline {
        flex: 90%;
        margin: 20px auto;
    }

    /* Ajustes na Seção de Serviços e Cards */
    .section {
        height: auto; /* Importante para não cortar o conteúdo */
        padding-bottom: 50px;
    }

    .section h2 {
        font-size: 35px; /* Diminui o título para não quebrar */
    }

    .card {
        width: 90%; /* Card ocupa quase a largura toda */
        display: block;
        margin: 20px auto;
    }

    /* Ajustes no Footer */
    .footer {
        height: auto;
        padding: 40px 20px;
    }

    .rodape {
        padding: 20px;
    }
}






