/* ==================== 1. VARIÁVEIS E CONFIGURAÇÕES ==================== */
:root {
    --cor-azul-noite: #010326;
    --cor-dourado: #A6935B;
    --cor-marrom-cafe: #593B02;
    --cor-preto-natural: #0D0807;
    --cor-cinza-urbano: #737373;
    --cor-branco: #FFFFFF;
    --cor-branco-off: #E1E1E1;
    --cor-whatsapp: #25D366;
    --fonte-principal: 'Montserrat', sans-serif;
    --header-height: 4.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fonte-principal);
    background-color: var(--cor-branco);
    color: var(--cor-cinza-urbano);
    line-height: 1.6;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ==================== 2. COMPONENTES GERAIS ==================== */
.container {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.section { padding: 6rem 0; }

.section-title {
    font-size: 2.25rem;
    color: var(--cor-azul-noite);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--cor-dourado);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
}

.grid { display: grid; gap: 2rem; }

.button {
    display: inline-block;
    background-color: var(--cor-dourado);
    color: var(--cor-branco);
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background-color: var(--cor-marrom-cafe);
    transform: translateY(-2px);
}

/* ==================== 3. HEADER E NAVEGAÇÃO (DESKTOP) ==================== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--cor-azul-noite);
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.nav {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--cor-branco-off);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover { color: var(--cor-dourado); }

.nav-button {
    background-color: var(--cor-dourado);
    color: var(--cor-branco);
}

/* Esconde o hambúrguer no computador */
.nav-toggle { display: none; }

/* ==================== 4. HERO (INÍCIO) ==================== */
.split-hero-section {
    background-color: var(--cor-azul-noite);
    text-align: center;
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 5rem;
}

.hero-columns-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding-bottom: 3.5rem;
}

.hero-column {
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.hero-column-content { max-width: 500px; }

.hero-column-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--cor-dourado);
}

.hero-column-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--cor-branco);
}

.hero-column-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: var(--cor-branco-off);
}

.hero-central-button-wrapper { text-align: center; }

.button.hero-central-button {
    background-color: var(--cor-dourado);
    color: var(--cor-branco);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    gap: 0.75rem;
    display: inline-flex;
    align-items: center;
}

.button.hero-central-button i { font-size: 1.4rem; }

/* ==================== 5. SEÇÕES DE CONTEÚDO ==================== */
/* Sobre */
.sobre.section { background-color: var(--cor-branco); }
.sobre .grid { grid-template-columns: repeat(2, 1fr); align-items: center; }
.dif-box { margin-bottom: 1.5rem; display: flex; gap: 1rem; }
.dif-icon { font-size: 1.5rem; color: var(--cor-dourado); margin-top: 5px; flex-shrink: 0; }
.dif-texto h3 { color: var(--cor-preto-natural); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.25rem; }

/* Áreas */
.areas.section { background-color: #f7f7f7; text-align: center; }
.areas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 3rem; }
.area-card { background-color: var(--cor-branco); padding: 2.5rem 1.5rem; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); transition: transform 0.3s ease; }
.area-card:hover { transform: translateY(-8px); }
.area-icon { font-size: 2.5rem; color: var(--cor-dourado); margin-bottom: 1rem; }
.area-title { font-size: 1.25rem; color: var(--cor-azul-noite); margin-bottom: 0.5rem; }

/* Equipe */
.equipe.section { background-color: var(--cor-branco); text-align: center; }
.equipe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.membro-card { background-color: #f7f7f7; padding: 2rem; border-radius: 8px; text-align: center; transition: all 0.4s ease-out; position: relative; z-index: 1; cursor: pointer; }
.membro-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); z-index: 5; }
.membro-foto { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin-bottom: 1.5rem; border: 4px solid var(--cor-dourado); }
.membro-nome { font-size: 1.25rem; color: var(--cor-azul-noite); margin-bottom: 0.25rem; }
.membro-cargo { display: block; font-weight: 500; color: var(--cor-dourado); margin-bottom: 0.25rem; }
.membro-oab { display: block; font-size: 0.8rem; color: var(--cor-cinza-urbano); margin-bottom: 1rem; }
.membro-bio { font-size: 0.9rem; display: none; } /* Esconde bio no card */

/* Avaliações */
.avaliacoes.section { background-color: #f7f7f7; text-align: center; }
.sk-ww-google-reviews, .elfsight-app { margin-top: 3rem; max-width: 100%; }

/* Rodapé */
.footer { background-color: var(--cor-preto-natural); color: var(--cor-cinza-urbano); padding: 3rem 0; text-align: center; }
.footer-logo { color: var(--cor-branco); font-size: 1.5rem; margin-bottom: 1rem; }

/* ==================== 6. MODAL (POPUP) ==================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7); display: none; justify-content: center; align-items: center; z-index: 998; opacity: 0; transition: opacity 0.3s ease;
}
.modal-content {
    background-color: var(--cor-branco); padding: 3rem; border-radius: 8px; width: 90%; max-width: 600px; text-align: center; position: relative; z-index: 999; transform: translateY(-50px); transition: transform 0.3s ease; max-height: 90vh; overflow-y: auto;
}
.modal-close { position: absolute; top: 10px; right: 20px; font-size: 2.5rem; font-weight: bold; cursor: pointer; }
.modal-foto { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; margin-bottom: 1.5rem; border: 4px solid var(--cor-dourado); }
.modal-bio { font-size: 1rem; color: var(--cor-cinza-urbano); text-align: left; line-height: 1.7; }
.modal-bio p { margin-bottom: 1.25rem; text-align: left; }
.modal-bio h4 { font-size: 1.1rem; color: var(--cor-preto-natural); font-weight: 700; margin-top: 2rem; margin-bottom: 1rem; text-align: left; }
.modal-bio ul { list-style-type: disc; padding-left: 25px; margin-bottom: 2rem; text-align: left; }
.modal-bio li { margin-bottom: 0.75rem; line-height: 1.6; }
.modal-bio blockquote { font-style: italic; font-weight: 500; font-size: 1.1rem; color: var(--cor-azul-noite); padding-left: 1.5rem; border-left: 4px solid var(--cor-dourado); margin: 2rem 0; text-align: left; }


/* ==================== 7. WIDGET WHATSAPP (PARA TODOS OS DISPOSITIVOS) ==================== */
.whatsapp-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999 !important; /* Garante que apareça sobre tudo */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.wa-float-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.wa-float-btn:hover { transform: scale(1.1); }
.wa-notification-dot { position: absolute; top: 0; right: 0; background-color: red; color: white; font-size: 12px; width: 20px; height: 20px; border-radius: 50%; display: flex; justify-content: center; align-items: center; border: 2px solid white; }

/* Janela do Chat */
.wa-chat-box {
    width: 300px;
    background-color: #f0f2f5;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    overflow: hidden;
    margin-bottom: 15px;
    display: none; opacity: 0; transform: translateY(20px); transition: opacity 0.3s ease, transform 0.3s ease;
}
.wa-chat-box.active { display: block; opacity: 1; transform: translateY(0); }
.wa-chat-header { background-color: #00a884; color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.wa-header-info { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.wa-close-btn { cursor: pointer; font-size: 1.5rem; }
.wa-chat-body { padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.wa-message-bubble { background-color: white; padding: 10px 15px; border-radius: 0 15px 15px 15px; color: #111b21; font-size: 0.95rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); position: relative; align-self: flex-start; }
.wa-message-bubble::before { content: ''; position: absolute; top: 0; left: -10px; width: 0; height: 0; border-top: 10px solid white; border-left: 10px solid transparent; }
.wa-chat-btn { background-color: #25D366; color: white; text-align: center; padding: 10px 20px; border-radius: 25px; font-weight: 600; display: flex; justify-content: center; align-items: center; gap: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }


/* ========================================================== */
/* 8. MODO MOBILE (CELULAR) - SOBRESCREVE REGRAS ACIMA        */
/* ========================================================== */
@media (max-width: 768px) {

    /* --- Header Fixo --- */
    .header {
        height: 70px !important;
        padding: 0 1rem !important;
        justify-content: space-between;
    }
    
    /* Logo na Esquerda */
    .nav-logo { order: 1; position: static !important; transform: none !important; }
    .nav-logo img { height: 35px !important; }

    /* Hambúrguer na Direita */
    .nav-toggle { order: 2; display: block !important; font-size: 1.5rem; color: var(--cor-branco); cursor: pointer; }

    /* Botão Fale Conosco Desktop (ESCONDIDO) */
    .desktop-only { display: none !important; }

    /* --- Menu Dropdown (Escondido) --- */
    .nav-menu {
        display: none; /* Garante que comece invisível */
        position: fixed !important;
        top: 70px !important;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--cor-azul-noite);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 3rem;
        z-index: 99;
    }
    .nav-menu.show-menu { display: flex !important; } /* JS ativa isso */
    .nav-list { flex-direction: column; gap: 2rem; text-align: center; }
    .nav-link { font-size: 1.5rem; color: var(--cor-branco); display: block; }

    /* --- Layout do Site --- */
    .split-hero-section { padding-top: 100px !important; }
    .hero-columns-container, .areas-grid, .equipe-grid, .sobre .grid { grid-template-columns: 1fr !important; }
    .dif-box { flex-direction: column; text-align: center; }
    
    /* --- Widget WhatsApp Mobile --- */
.whatsapp-widget-container {
        position: fixed !important;
        bottom: 15px !important;
        right: 15px !important;
        z-index: 9999 !important; /* Garante que fique sobre tudo */
        display: flex !important; /* Força aparecer */
        flex-direction: column;
        align-items: flex-end;
    }
    
    .wa-float-btn {
        width: 50px !important;
        height: 50px !important;
        font-size: 28px !important;
        display: flex !important; /* Força aparecer */
    }

    .wa-chat-box {
        width: 280px !important;
        margin-right: 0 !important;
        /* Se estava display: none no desktop, o JS cuida de mostrar */
    }
}

/* ==================== CORREÇÃO: WIDGET WHATSAPP (FORÇADO) ==================== */

.whatsapp-widget-container {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 99999 !important; /* Valor altíssimo para garantir */
    display: flex !important;
    flex-direction: column;
    align-items: flex-end;
    background: transparent !important; /* Garante que o container não tenha fundo */
}

.wa-float-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    position: relative;
}

.wa-notification-dot {
    position: absolute;
    top: 0;
    right: 0;
    background-color: red;
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    border: 2px solid white;
}

.wa-chat-box {
    width: 300px;
    background-color: #f0f2f5;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    overflow: hidden;
    margin-bottom: 15px;
    display: none; /* Começa escondido */
}

/* Quando ativo, aparece */
.wa-chat-box.active {
    display: block !important;
}

.wa-chat-header {
    background-color: #00a884;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa-chat-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wa-message-bubble {
    background-color: white;
    padding: 10px 15px;
    border-radius: 0 15px 15px 15px;
    color: #111b21;
    font-size: 0.95rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    align-self: flex-start;
    text-align: left;
}

.wa-chat-btn {
    background-color: #25D366;
    color: white;
    text-align: center;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* AJUSTE ESPECÍFICO PARA CELULAR */
@media (max-width: 768px) {
    .whatsapp-widget-container {
        bottom: 15px !important;
        right: 15px !important;
    }
    .wa-chat-box {
        width: 280px;
    }
}