/* ==========================================================================
   1. CONFIGURAÇÕES TÉCNICAS E CORES
   ========================================================================== */
   :root {
    --preto: #0c0c0c;
    --branco: #ffffff;
    --dourado: #c5a059;
    --dourado-dark: #a68549;
    --azul-marinho: #002244;
    --cinza-claro: #f8f9fa;
    --texto: #333333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; line-height: 1.6; color: var(--texto); }
h1, h2, h3 { font-family: 'Playfair Display', serif; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.text-justify { text-align: justify !important; text-justify: inter-word; }
.gold-text { color: var(--dourado); }

/* ==========================================================================
   2. CABEÇALHO (LOGO GIGANTE E MENU)
   ========================================================================== */
header {
    background-color: var(--preto);
    padding: 40px 0 0 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--dourado);
}

.header-flex-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.logo-hero {
    height: 180px; /* Logo em destaque máximo */
    width: auto;
}

.nav-main {
    width: 100%;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    padding: 20px 0;
}

.nav-links-center {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 40px;
}

.nav-links-center li a {
    text-decoration: none;
    color: var(--branco);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
}

.nav-links-center li a:hover { color: var(--dourado); }

/* ==========================================================================
   3. HERO SECTION (IMAGEM DE BACKGROUND RESTAURADA)
   ========================================================================== */
.hero-bg {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('https://images.unsplash.com/photo-1505664194779-8beaceb93744?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--branco);
    text-align: center;
}

.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; }
.divider-gold { width: 100px; height: 3px; background: var(--dourado); margin: 0 auto 20px; }

/* ==========================================================================
   4. QUEM SOMOS
   ========================================================================== */
.title-large { font-size: 2.8rem; margin-bottom: 15px; }
.divider-gold-center { width: 80px; height: 3px; background: var(--dourado); margin: 20px auto 40px; }

.about-grid-new {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.stat-card {
    background: var(--preto);
    padding: 30px;
    border: 1px solid var(--dourado);
    text-align: center;
    margin-bottom: 20px;
}

.stat-number { display: block; font-size: 2.5rem; color: var(--dourado); }
.stat-desc { color: var(--branco); text-transform: uppercase; font-size: 0.7rem; }

/* ==========================================================================
   5. ÁREAS DE ATUAÇÃO (LADO A LADO)
   ========================================================================== */
.grid-areas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.area-card {
    background: #1a1a1a;
    padding: 40px;
    border-bottom: 5px solid transparent;
    transition: 0.3s;
}

.area-card:hover { border-bottom: 5px solid var(--dourado); transform: translateY(-5px); }
.area-card h3 { color: var(--dourado); margin-bottom: 15px; }
.area-card p { color: #ccc; font-size: 0.9rem; }

/* ==========================================================================
   6. CASES (RESTAURADO)
   ========================================================================== */
.grid-cases {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.case-card {
    background: var(--cinza-claro);
    padding: 40px;
    border-left: 5px solid var(--azul-marinho);
}

/* ==========================================================================
   7. EQUIPE E BIOGRAFIAS
   ========================================================================== */
.lawyer-row { display: flex; gap: 80px; margin-bottom: 100px; align-items: flex-start; }
.lawyer-row.reverse { flex-direction: row-reverse; }
.lawyer-img-area { flex: 1; max-width: 350px; position: relative; }
.lawyer-img-area::after {
    content: ''; position: absolute; top: 15px; left: 15px; width: 100%; height: 100%;
    border: 2px solid var(--dourado); z-index: 1;
}
.lawyer-photo { width: 100%; position: relative; z-index: 2; }
.lawyer-text-area { flex: 2; }
.role { color: var(--dourado); text-transform: uppercase; font-weight: bold; display: block; margin-bottom: 10px; }

/* ==========================================================================
   8. FORMULÁRIO DE CONTATO (COERENTE)
   ========================================================================== */
.grid-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    font-family: inherit;
}

.btn-navy {
    background: var(--azul-marinho);
    color: white;
    padding: 18px;
    width: 100%;
    border: none;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

/* ==========================================================================
   9. WHATSAPP E FOOTER
   ========================================================================== */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    background: var(--azul-marinho); border: 2px solid var(--dourado);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    z-index: 1000;
}

footer { background: var(--preto); color: white; padding: 40px 0; text-align: center; }

/* ==========================================================================
   10. RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 900px) {
    .grid-areas, .grid-cases, .grid-contact, .about-grid-new, .lawyer-row, .lawyer-row.reverse {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    .hero-content h1 { font-size: 2.2rem; }
}

/* ==========================================================================
   11. BOTÃO AGENDAR CONSULTA (NOVO - CANTO DIREITO)
   ========================================================================== */
   .btn-agendar-header {
    background-color: var(--dourado);
    color: var(--preto);
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.4s ease;
    margin-left: 50px; /* Separa do último item do menu */
}

.btn-agendar-header:hover {
    background-color: var(--azul-marinho);
    color: var(--branco);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}