* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    color: #616160;
}

html, body {
    height: 100%;
    background-color: #be9d7b;
    font-size: 16px; 
    overflow-x: hidden; /* Evita a rolagem horizontal */
}

/* Wrapper para garantir que o conteúdo ocupe toda a altura da página */
.content-wrapper {
    min-height: calc(100vh - 150px - 100px); 
    display: flex;
    flex-direction: column;
}

/* Faixa branca para o menu */
.faixa-branca {
    width: 100%;
    background-color: white;
    padding: 1rem 0;
}

/* Centraliza e ajusta a largura máxima do container */
.center {
    display: flex;
    flex-wrap: wrap;
    max-width: 68.75rem;
    margin: 0 auto;
    padding: 0 2%; 
    align-items: center;
    justify-content: space-between;
}

/* Estilo para a logo */
.logo {
    margin-right: 0.625rem; 
}

.logo img {
    max-height: 5rem;
    width: auto;
}

/* Estilo para o menu */
.menu {
    display: flex;
    gap: 0.9375rem; /* 15px em rem */
    margin-left: auto;
}

.menu a {
    text-decoration: none;
    color: #333;
    padding: 0.625rem 0.9375rem; /* Usando rem para padding */
    font-weight: 700;
    transition: background-color 0.3s;
}

.menu a:hover {
    background-color: #f1f1f1;
    border-radius: 5px;
}

/* Estilo para o texto grande na seção hero */
.hero-text {
    background-image: url('Assets/cartorio2.png');
    background-size: cover;
    background-position: center;
    background-color: #be9d7b; /* Background color de fallback */
    color: white;
    padding: 15.125rem 0; /* 50px em rem */
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
}

.hero-text .center {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3rem; /* 48px em rem */
    font-weight: 700;
    margin-bottom: 0.625rem; /* 10px em rem */
    color: white;
}

.hero-text h2 {
    font-size: 2.25rem; /* 36px em rem */
    font-weight: 600;
    color: white;
}

/* Estilos para as seções sobre, serviços e contato */
section.about, section.QF, section.services, section.contact {
    background-image: url('Assets/section.png');
    background-size: cover;
    background-position: center;
    color: #333;
    padding: 4rem 0;
    border-top: 1px solid #be9d7b;
    border-bottom: 1px solid #be9d7b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

section.about .content-wrapper, section.QF .content-wrapper, section.services .content-wrapper, section.contact .content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    width: 100%;
    gap: 2rem;
}

section.about h3, section.QF h3,section.services h3, section.contact h3 {
    font-size: 2.25rem; /* 36px em rem */
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 2rem; /* 32px em rem */
    width: 100%;
    text-align: left;
}

section.about h5, section.QF h5,section.services h5, section.contact h5 {
    font-size: 2.25rem; /* 36px em rem */
    font-weight: 700;
    margin-top: 0rem;
    margin-bottom: 2rem; /* 32px em rem */
    width: 57%;
    text-align: left;
}

section.about h4, section.QF h4,section.services h4, section.contact h4 {
    font-size: 1.55rem; /* 36px em rem */
    font-weight: 600;
    margin-bottom: 0.75rem; /* 32px em rem */
    margin-top: 0.75rem;
    width: 100%;
    text-align: left;
}

section.about p,section.QF p, section.services p, section.contact p {
    font-size: 1.5rem; /* 24px em rem */
    line-height: 1.8;
    max-width: 60rem; /* 960px em rem */
    margin-top: 1.5rem;
    text-align: left;
    width: 100%;
}

/* Footer style */
footer {
    background-color: #333;
    color: white;
    padding: 1.25rem 0; /* 20px em rem */
    margin-top: 0;
}

footer .center {
    justify-content: space-between;
}

footer p {
    margin: 0;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1rem; /* 16px em rem */
}

.social-links a {
    display: flex;
    align-items: center;
    color: white; /* Cor do texto */
    text-decoration: none;
    font-weight: 700; /* Negrito para o texto "Instagram" */
}

.social-links a img {
    width: 1.5rem; /* 24px em rem */
    height: auto;
    margin-right: 0.5rem; /* Espaço entre o ícone e o texto */
}

.social-links a span {
    font-size: 1rem; /* Tamanho da fonte para o texto "Instagram" */
}

/* Responsividade */
@media (max-width: 768px) {
    body {
        font-size: 14px; /* Reduz o tamanho base da fonte */
    }

    .menu {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.3rem; /* Espaço menor entre os itens */
    }

    .menu a {
        padding: 0.5rem; /* Ajuste de padding */
        font-size: 0.9rem; /* Tamanho da fonte do menu menor */
    }

    .logo img {
        max-height: 4rem; /* Reduz o tamanho da logo */
        
    }

    .hero-text {
        padding: 7rem 0; /* Reduz o padding para mobile */
        margin-top: 0rem;
    }

    .hero-text h1 {
        font-size: 1.5rem; /* Reduz o tamanho do título */
    }

    .hero-text h2 {
        font-size: 1.5rem; /* Reduz o tamanho do subtítulo */
    }

    section.about p, section.services p, section.contact p {
        font-size: 1.5rem; /* Tamanho de fonte ajustado para dispositivos móveis */
        margin-top: 0rem;
        margin-bottom: 0.2rem;
    }

    section.about h3, section.services h3, section.contact h3 {
        font-size: 1.5rem; /* Reduz o tamanho dos títulos das seções */
    }

    section.about h4, section.services h4, section.contact h4 {
        font-size: 1.5rem; /* Reduz o tamanho dos títulos das seções */
        margin-bottom: 0.2rem;
        margin-top: 1.3rem;
    }

    footer .center {
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }

    /* Garantir que nada transborde da tela */
    body, html {
        overflow-x: hidden;
    }

    /* Ajuste específico para a seção de contatos */
    section.contact1 {
        padding: 2rem 1rem; /* Reduz o padding para a seção de contatos */
        word-wrap: break-word; /* Quebra de linha para evitar estouro de conteúdo */
    }

    .contact1 h3, .contact1 h4, .contact1 p {
        margin: 0.5rem 0; /* Reduz margens verticais dentro da seção de contatos */
    }

    section.about1, section.QF1, section.services1, section.contact1 {
        padding: 2rem 1rem; /* Ajuste de padding para se adequar ao mobile */
        word-wrap: break-word; /* Quebra de linha para evitar estouro de conteúdo */
        max-width: 100%; /* Garante que a seção não ultrapasse a largura da tela */
    }

    section.about1 p, section.QF1 p, section.services1 p, section.contact1 p {
        font-size: 1rem; /* Ajusta o tamanho do texto para mobile */
        margin-top: 1rem; /* Ajusta margens para mobile */
        line-height: 1.5; /* Melhora a legibilidade em telas menores */
    }

    section.about1 h3, section.QF1 h3,section.services1 h3, section.contact1 h3 {
        font-size: 1.75rem; /* Reduz o tamanho dos títulos para mobile */
        margin-top: 0.5rem;
        margin-bottom: 1.5rem;
    }
}

.cab {  
    background-size: cover;
    background-position: center;
    background-color: #be9d7b; /* Background color de fallback */
    color: white;
    padding: 2.525rem 0; /* 50px em rem */
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
}

.cab h1 {
    font-size: 2.5rem; /* 48px em rem */
    font-weight: 700;
    margin-bottom: 0.25rem; /* 10px em rem */
    margin-left: 7.0rem;
    color: white;
}

/* Estilos para as seções sobre, serviços e contato */
section.about1, section.QF1, section.services1, section.contact1 {
    background-color: whitesmoke;
    background-size: cover;
    background-position: center;
    color: #333;
    padding: 4rem 0;
    border-top: 1px solid #be9d7b;
    border-bottom: 1px solid #be9d7b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

section.about1 .content-wrapper, section.QF1 .content-wrapper, section.services1 .content-wrapper, section.contact1 .content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align items horizontally */
    text-align: center; /* Ensure text is centered */
    width: 100%;
    gap: 2rem;
}

section.about1 h3, section.QF1 h3,section.services1 h3, section.contact1 h3 {
    font-size: 2.25rem; /* 36px em rem */
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    width: 100%;
    text-align: center;
}

section.about1 h5, section.QF1 h5,section.services1 h5, section.contact1 h5 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-top: 0rem;
    margin-bottom: 2rem;
    width: 100%;
    text-align:center;
}

section.about1 h4, section.QF1 h4,section.services1 h4, section.contact1 h4 {
    font-size: 1.55rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 0.75rem;
    width: 100%;
    text-align: center;
}

section.about1 p,section.QF1 p, section.services1 p, section.contact1 p {
    font-size: 1.5rem;
    line-height: 1.8;
    max-width: 60rem;
    margin-top: 3rem;
    text-align: center;
    width: 100%;
}

/* Estilo para copiar texto */
.copy-text {
    display: inline-block;
    border-bottom: 1px dashed #616160;
    cursor: pointer;
    padding-bottom: 2px;
    transition: border-color 0.3s ease;
    text-align: center; /* Ensure text is centered */
}

.copy-text:hover {
    border-color: #333;
}

.about1 .center, .QF1 .center, .services1 .center, .contact1 .center {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align items horizontally */
    text-align: center; /* Ensure text is centered */
}

.about1 p, .QF1 p, .services1 p, .contact1 p {
    margin: 0.5rem 0; /* Add margin for spacing between paragraphs */
}

.about1 h3, .QF1 h3, .services1 h3, .contact1 h3,
.about1 h4, .QF1 h4, .services1 h4, .contact1 h4,
.about1 h5, .QF1 h5, .services1 h5, .contact1 h5 {
    text-align: center; /* Ensure all headings are centered */
}
