/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5f7f;
    --secondary-color: #4a9fb5;
    --accent-color: #f39c12;
    --dark-color: #1a1a1a;
    --light-color: #f5f5f5;
    --text-color: #333;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header e Navegação */
.header {
    background-color: #ffffff; /* Fundo Branco */
    color: #2c5f7f;           /* Cor do texto padrão (Azul) */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar {
    position: relative; /* Adiciona posição relativa para o menu absoluto */
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c5f7f; /* Azul */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #2c5f7f; /* Azul */
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.nav-link:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #2c5f7f; /* Azul */
    margin: 3px 0;
    transition: var(--transition);
}

/* Animação do Hamburger para 'X' */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 95, 127, 0.7), rgba(44, 95, 127, 0.7)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23e8f4f8" width="1200" height="600"/><circle cx="100" cy="100" r="80" fill="%234a9fb5" opacity="0.1"/><circle cx="1100" cy="500" r="120" fill="%234a9fb5" opacity="0.1"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 20px;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Seção Proposta */
.proposta {
    padding: 80px 20px;
    background-color: var(--light-color);
}

.proposta .container {
    max-width: 800px;
}

.proposta h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
}

.proposta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
}

.proposta p strong {
    color: var(--secondary-color);
    font-size: 1.3rem;
}

/* Tipos de Divórcio */
.tipos-divorcio {
    padding: 80px 20px;
    background-color: white;
}

.tipos-divorcio h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    text-align: center;
}

.tipos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tipo-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-left: 5px solid var(--secondary-color);
}

.tipo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tipo-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.tipo-card ul {
    list-style: none;
}

.tipo-card li {
    padding: 0.8rem 0;
    color: var(--text-color);
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tipo-card li:last-child {
    border-bottom: none;
}

/* Formulário */
.formulario-section {
    padding: 80px 20px;
    background-color: var(--light-color);
}

.formulario-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    text-align: center;
}

.divorce-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(74, 159, 181, 0.3);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Resultado da Consulta */
.resultado-consulta {
    max-width: 600px;
    margin: 2rem auto;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--accent-color);
}

.resultado-consulta h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

#resultadoContent {
    line-height: 1.8;
    color: var(--text-color);
}

#resultadoContent p {
    margin-bottom: 1rem;
}

#resultadoContent strong {
    color: var(--secondary-color);
}

/* Seção Contato */
.contato {
    padding: 80px 20px;
    background-color: white;
}

.contato h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    text-align: center;
}

.contato-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contato-card {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.contato-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.contato-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contato-card p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.whatsapp-btn {
    display: inline-block;
    background-color: #25d366;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    margin-top: 1rem;
    transition: var(--transition);
    border: 2px solid #25d366;
}

.whatsapp-btn:hover {
    background-color: #1ebe57;
    border-color: #1ebe57;
    transform: scale(1.05);
}

.whatsapp-icon {
    margin-right: 0.5rem;
}

/* Botão WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    z-index: 99;
    animation: pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer .social-links {
    margin-bottom: 15px;
}

.footer .social-links a {
    margin: 0 10px;
    color: #fff;
    text-decoration: none;
    display: inline-block;
}

.footer .social-links img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    filter: invert(100%); /* Para ícones pretos em fundo escuro */
}
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem;
}

.footer p {
    margin: 0.5rem 0;
}

/* Botão Voltar ao Topo */
#myBtn {
    display: none; /* Escondido por padrão */
    position: fixed; /* Posição fixa */
    bottom: 100px; /* Distância do fundo (acima do botão do WhatsApp) */
    right: 30px; /* Distância da direita */
    z-index: 99; /* Garante que fique acima de outros elementos */
    border: none; /* Remove a borda */
    outline: none; /* Remove o contorno */
    background-color: var(--secondary-color); /* Cor de fundo */
    color: white; /* Cor do texto/ícone */
    cursor: pointer; /* Adiciona um cursor de clique */
    padding: 15px; /* Espaçamento interno */
    border-radius: 50%; /* Torna o botão redondo */
    font-size: 18px; /* Tamanho da fonte */
    line-height: 1; /* Alinhamento vertical */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    width: 50px; /* Garante que seja um círculo perfeito */
    height: 50px; /* Garante que seja um círculo perfeito */
}

#myBtn:hover {
    background-color: var(--primary-color); /* Cor de fundo ao passar o mouse */
    transform: scale(1.05);
}

/* Responsivo */
@media (max-width: 768px) {
    .hero {
        padding: 100px 20px;
    }

    .proposta, .tipos-divorcio, .formulario-section, .contato {
        padding: 60px 20px;
    }

    .proposta h2, .tipos-divorcio h2, .formulario-section h2, .contato h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .tipos-grid, .contato-grid {
        grid-template-columns: 1fr; /* Força uma coluna em telas menores */
    }

    .divorce-form {
        padding: 1.5rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }

    .footer {
        padding: 1.5rem;
    }

    .footer p {
        font-size: 0.9rem;
    }
.nav-menu {
    display: none;
    position: absolute;
    top: 100%; /* Posiciona abaixo do header */
    right: 0; /* Alinha à direita */
    width: 100%; /* Ocupa toda a largura */
    background-color: var(--primary-color);
    flex-direction: column;
    gap: 0;
    padding: 0; /* Remove padding superior/inferior */
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);
}

.nav-menu.active {
    display: flex;
}

.nav-menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu li:last-child {
    border-bottom: none;
}

.nav-link {
    display: block; /* Faz o link ocupar toda a largura do li */
    padding: 1rem;
    border-radius: 0;
    color: white;
}

    .hamburger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .proposta h2,
    .tipos-divorcio h2,
    .formulario-section h2,
    .contato h2 {
        font-size: 2rem;
    }

    .tipos-grid {
        grid-template-columns: 1fr;
    }

    .contato-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .proposta h2, .tipos-divorcio h2, .formulario-section h2, .contato h2 {
        font-size: 1.8rem;
    }

    .proposta p {
        font-size: 1rem;
    }

    .tipo-card h3 {
        font-size: 1.3rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input, .form-group select {
        padding: 10px;
        font-size: 0.9rem;
    }

    .submit-btn {
        padding: 12px;
        font-size: 1rem;
    }

    .contato-card h3 {
        font-size: 1.3rem;
    }

    .whatsapp-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .proposta h2,
    .tipos-divorcio h2,
    .formulario-section h2,
    .contato h2 {
        font-size: 2.0rem;
    }

    .proposta p {
        font-size: 1rem;
    }

    .divorce-form {
        padding: 1.5rem;
    }

    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
}



.whatsapp-btn-resultado {
    display: inline-block;
    background-color: #25d366;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    margin-top: 1rem;
    transition: var(--transition);
    border: 2px solid #25d366;
}

.whatsapp-btn-resultado:hover {
    background-color: #1ebe57;
    border-color: #1ebe57;
    transform: scale(1.05);
}


/* Botão Voltar ao Topo */
#myBtn {
    display: none; 
    position: fixed; 
    bottom: 90px; 
    right: 30px; 
    z-index: 99; 
    border: none; 
    outline: none; 
    background-color: var(--primary-color); 
    color: white; 
    cursor: pointer; 
    padding: 15px; 
    border-radius: 50%; 
    font-size: 20px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

#myBtn:hover {
    background-color: var(--secondary-color); /* Cor de fundo mais escura ao passar o mouse (usando variável) */
}

/* Ajuste para não sobrepor o botão do WhatsApp */
@media (max-width: 768px) {
    #myBtn {
        right: 90px; /* Move o botão para a esquerda para não colidir com o WhatsApp */
    }
}

@media (max-width: 480px) {
    #myBtn {
        right: 30px; /* Ajuste menor para telas muito pequenas */
        padding: 20px;
        font-size: 16px;
    }
}


/* Seção Dúvidas - FAQ */
.duvidas {
    padding: 80px 20px;
    background-color: var(--light-color);
}

.duvidas h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    text-align: center;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    background-color: #f9f9f9;
    border-left: 5px solid var(--secondary-color);
    transition: var(--transition);
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0;
    flex: 1;
    text-align: left;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: bold;
    min-width: 30px;
    text-align: center;
    transition: var(--transition);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Responsivo para FAQ */
@media (max-width: 768px) {
    .duvidas {
        padding: 60px 20px;
    }

    .duvidas h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-question {
        padding: 1.2rem;
    }

    .faq-answer {
        padding: 0 1.2rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.2rem 1.2rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .duvidas h2 {
        font-size: 1.8rem;
    }

    .faq-question h3 {
        font-size: 0.95rem;
    }

    .faq-toggle {
        font-size: 1.3rem;
    }

    .faq-question {
        padding: 1rem;
    }

    .faq-answer p {
        font-size: 0.95rem;
    }
}
