* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    margin: 0;
    padding: 0;
    font-weight: normal;
    line-height: 1.6;
    background-color: #f7f7f7;
}

header {
    display: flex; /* Define o layout flexbox */
    justify-content: space-between; /* Espaça os itens (h1 e nav) */
    align-items: center; /* Alinha os itens verticalmente */
    padding: 15px 150px; /* Adiciona espaçamento interno */
    background-color: transparent; /* Cor de fundo do header */
}

header h1 {
    margin: 0; /* Remove margens do h1 */
    font-size: 24px; /* Tamanho da fonte do título */
    font-weight: normal;
}

nav ul {
    list-style: none; /* Remove os marcadores da lista */
    align-items: center;
    padding: 0;
    margin: 0;
    display: flex; /* Define os itens da lista em linha */
}

nav ul li {
    margin-left: 30px; /* Espaçamento entre os itens */
}

nav ul li a {
    text-decoration: none; /* Remove o sublinhado dos links */
    color: #000; /* Define a cor do texto */
}

section {
    margin: 120px 150px;
    line-height: normal;
}

section h1 {
    font-size: 3.5em;
    font-weight: 500;
    max-width: 500px;
    margin-bottom: 10px; /* Reduz o espaço abaixo do h1 */
}

section h3 {
    color: #1845c0;
    font-weight: normal;
    margin-top: 0; /* Remove o espaço acima do h3 */
}

section h4 {
    color: #868686;
    font-weight: normal;
    max-width: 550px;
}

section p {
    margin-top: 20px; /* Adiciona espaço acima do parágrafo */
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 30px 50px;
    position: relative;
    border-top-style: solid;
    border: 1.5px solid #d2d2d2ab;
}

footer h2 {
    font-size: 15px;
    font-weight: 500;
}

footer h3 {
    color: #868686;
    font-size: 12px;
    font-weight: normal;
}

.button {
    display: inline-block; /* Torna o link semelhante a um botão */
    background-color: #2256e4; /* Cor de fundo */
    color: #fff; /* Cor do texto */
    padding: 5px 18px; /* Espaçamento interno */
    cursor: pointer;
    border-radius: 15px; /* Bordas arredondadas */
    text-decoration: none; /* Remove o sublinhado */
    transition: background-color 0.3s ease; /* Animação suave ao passar o mouse */
}

.button:hover {
    background-color: #133a9b; /* Cor de fundo ao passar o mouse */
}

.services {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 400px;
    margin-bottom: 25px;
    white-space: nowrap;
}

.services p {
    background-color: #4a9af5b5;
    color: #ffffff;
}

.button-large {
    display: inline-block; /* Torna o link semelhante a um botão */
    background-color: #2256e4; /* Cor de fundo */
    color: #fff; /* Cor do texto */
    padding: 15px 30px; /* Espaçamento interno */
    border-radius: 15px; /* Bordas arredondadas */
    cursor: pointer;
    font-size: 0.95em;
    text-decoration: none; /* Remove o sublinhado */
    transition: background-color 0.3s ease; /* Animação suave ao passar o mouse */
}

.button-large:hover {
    background-color: #133a9b; /* Cor de fundo ao passar o mouse */
}

.hero {
    display: flex;
    align-items: center;
}

.hero-image {
    width: 500px;
    height: auto;
    margin-left: auto; /* direita no desktop */
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
}

.card {
    background-color: #fff;
    border: 2.35px solid #d2d2d2ab;
    border-radius: 20px;
    max-width: 420px;
    overflow: hidden;
}

.section-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.card-text {
    padding: 15px;
}

.card h2 {
    font-size: 1.5vw;
    font-weight: 600;
    margin-bottom: 5px;
}

.card h4 {
    font-size: 1vw;
}

.card img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 800px) {
    header {
        display: flex;
        justify-content: center;
        align-items: center; /* Alinha os itens verticalmente */
        padding: 15px 25px; /* Adiciona espaçamento interno */
        background-color: transparent; /* Cor de fundo do header */
    }

    header h1 {
        font-size: 5vw;
        align-items: center;
    }

    section {
        margin: 50px 25px;
    }

    section h1 {
        font-size: 13vw;
    }

    section h3 {
        font-size: 4.5vw;
    }

    section h4 {
        font-size: 4vw;
    }

    .hero, .hero2 {
        display: flex;
        flex-direction: column;
        text-align: left;
        align-items: center;
    }

    .hero-image {
        max-width: 100%;

        height: auto;
        margin: 30px auto 0; /* centraliza */
    }
    
    .hero-image img {
        width: 100%;
        max-width: 500px; /* opcional, para não ficar gigante */
        height: auto;
        border-radius: 15px;
        display: block;
        margin: 0 auto; /* centraliza a imagem */
    }

    .services {
        display: flex;
        align-items: center;
    }

    .services p {
        font-size: 3.5vw; /* Reduz o tamanho da fonte para telas menores */
    }

    nav {
        display: none;
    }

    .button-large {
        width: 100%;
    }

    .card {
        background-color: #fff;
        height: auto;
        border-color: #d2d2d2ab;
        border-style: solid;
        border-radius: 20px;
        border-width: 2.35px;
        margin-top: 20px;
    }
    
    .card-text {
        padding: 10px;
    }
    
    .card h2 {
        font-size: 4.5vw;
        font-weight: 600;
        margin-bottom: 5px;
    }
    
    .card h4 {
        font-size: 3.5vw;
    }
    
    .card img {
        max-width: 100%;
        height: auto;
        border-top-right-radius: 15px;
        border-top-left-radius: 15px;
    }

    footer {
        display: block;
        align-items: center;
        text-align: center;
        padding: 20px;
        position: relative;
        border-top-style: solid;
        border: 1.5px solid #d2d2d2ab;
    }
    
    footer h2 {
        font-size: 15px;
        font-weight: 500;
    }
    
    footer h3 {
        color: #868686;
        font-size: 12px;
        font-weight: normal;
    }
}