/* --- RESET E VARIÁVEIS --- */
:root {
    --primary-color: #0f224a;   
    --primary-dark: #050f26;    
    --secondary-color: #c5a059; 
    --secondary-light: #e6c88a; 
    --text-dark: #2c3e50;       
    --text-gray: #596275;       
    --text-light: #f1f2f6;      
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-dark); line-height: 1.6; background-color: var(--white); overflow-x: hidden; }

h1, h2, h3, h4, h5 { font-family: var(--font-heading); margin-bottom: 15px; color: var(--primary-color); }
a { text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1150px; margin: 0 auto; padding: 0 20px; }

/* --- UTILITÁRIOS DE ANIMAÇÃO (Scroll Reveal) --- */
.reveal {
    opacity: 0;
    transition: all 0.8s ease-out;
}

/* Tipos de entrada */
.fade-bottom { transform: translateY(50px); }
.fade-left { transform: translateX(-50px); }
.fade-right { transform: translateX(50px); }

/* Estado Ativo (controlado por JS) */
.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- HEADER --- */
.header {
    background: linear-gradient(to bottom, rgba(5, 15, 38, 0.6), transparent);
    padding: 20px 0;
    position: fixed; width: 100%; top: 0; z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(15, 34, 74, 0.95);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo-img { height: 60px; transition: var(--transition); }
.header.scrolled .logo-img { height: 45px; }

.nav-menu ul { display: flex; gap: 30px; align-items: center; }
.nav-menu a {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    position: relative;
    padding-bottom: 5px;
}

/* Indicador de Link Ativo */
.nav-menu a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: 0; left: 0; background-color: var(--secondary-color);
    transition: width 0.3s;
}
.nav-menu a:hover::after, .nav-menu a.active-link::after { width: 100%; }
.nav-menu a:hover, .nav-menu a.active-link { color: var(--secondary-color); }

.btn-nav {
    border: 1px solid var(--secondary-color);
    padding: 8px 20px;
    color: var(--secondary-color) !important;
    border-radius: 2px;
}
.btn-nav:hover { background-color: var(--secondary-color); color: var(--primary-dark) !important; }
.btn-nav::after { display: none !important; }

/* --- HERO SECTION --- */
.hero {
    height: 100vh; position: relative; display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}

.hero-video-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(5, 15, 38, 0.94) 0%, rgba(15, 34, 74, 0.7) 100%);
    z-index: -1;
}

.hero-content { text-align: center; color: var(--white); max-width: 900px; z-index: 10; padding-top: 60px; }

/* Typewriter Cursor Effect */
#typewriter-text {
    font-size: 3.5rem; color: var(--secondary-color); font-weight: 400;
    line-height: 1.2; margin-bottom: 25px; min-height: 130px; /* Evita pulo de layout */
    text-shadow: 0px 4px 15px rgba(0,0,0,0.4);
    border-right: 3px solid var(--secondary-color); /* O cursor */
    display: inline-block;
    padding-right: 5px;
    animation: blinkCursor 0.7s infinite;
}

@keyframes blinkCursor { from { border-right-color: var(--secondary-color); } to { border-right-color: transparent; } }

.hero-content p { font-size: 1.3rem; margin-bottom: 45px; font-weight: 300; opacity: 0.9; }

.btn-cta {
    display: inline-block; /* Volta para inline-block original */
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    padding: 18px 45px; /* Volta para o tamanho original maior */
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    border: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    /* Removemos o gap e flex que eu tinha adicionado */
}

.btn-cta:hover { 
    background-color: var(--secondary-light); 
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.4);
}

.scroll-indicator {
    position: absolute; 
    bottom: 30px; 
    left: 50%; 
    transform: translateX(-50%);
    
    /* MUDANÇA AQUI: De volta para a cor dourada */
    color: var(--secondary-color); 
    
    font-size: 2rem; /* Aumentei um pouco para destacar mais (era 1.5rem) */
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 20; /* Garante que fique acima de qualquer camada do vídeo */
}

/* --- SEÇÕES GERAIS --- */
.section { padding: 100px 0; }
.bg-light { background-color: #f8f9fa; }
.section-header { text-align: center; margin-bottom: 70px; }
.section-header h3 { font-size: 2.4rem; position: relative; display: inline-block; padding-bottom: 15px; }
.section-header h3::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 80px; height: 3px; background-color: var(--secondary-color);
}
.section-subtitle { color: var(--text-gray); font-size: 1.1rem; max-width: 600px; margin: 15px auto 0; }

/* Sobre */
.about-wrapper { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.about-text p { font-size: 1.1rem; color: var(--text-gray); margin-bottom: 25px; text-align: justify; }
.link-arrow { color: var(--primary-color); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.link-arrow:hover { gap: 12px; color: var(--secondary-color); }
.about-img img { border-radius: 4px; box-shadow: -20px 20px 0px rgba(15, 34, 74, 0.1); }

/* --- ESTATÍSTICAS (NOVO) --- */
.stats-section {
    background: var(--primary-color);
    padding: 80px 0;
    color: var(--white);
    position: relative;
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.stat-item i { font-size: 2.5rem; color: var(--secondary-color); margin-bottom: 15px; }
.stat-item h4 { font-size: 3rem; color: var(--white); margin: 0; line-height: 1; }
.stat-item p { color: rgba(255,255,255,0.7); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; }

/* --- ÁREAS DE ATUAÇÃO --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.area-card {
    position: relative; height: 350px; overflow: hidden; border-radius: 4px; cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.area-bg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s; }
.area-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(5, 15, 38, 0.95), transparent);
    transition: 0.4s;
}
.area-content {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; z-index: 2;
    transform: translateY(20px); transition: 0.4s;
}
.area-icon { font-size: 2rem; color: var(--secondary-color); margin-bottom: 15px; display: block; }
.area-card h4 { color: var(--white); font-size: 1.5rem; margin: 0; position: relative; display: inline-block; }
.area-card h4::after {
    content: ''; display: block; width: 0; height: 2px; background: var(--secondary-color);
    margin-top: 10px; transition: width 0.3s;
}
.area-desc { color: #ccc; font-size: 0.95rem; margin-top: 0; height: 0; opacity: 0; overflow: hidden; transition: 0.4s; }

/* Hover Effects Areas */
.area-card:hover .area-bg { transform: scale(1.1); }
.area-card:hover .area-overlay { background: rgba(15, 34, 74, 0.95); }
.area-card:hover .area-content { transform: translateY(-10px); }
.area-card:hover h4::after { width: 50px; }
.area-card:hover .area-desc { height: auto; opacity: 1; margin-top: 15px; }

/* --- EQUIPE --- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; justify-content: center; }
.team-card {
    position: relative; height: 480px; border-radius: 4px; overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); group: pointer;
}
.team-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: 0.6s; filter: grayscale(0%); }

.lawyer-name-bar {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 2; transition: 0.4s;
}
.lawyer-name-bar h4 { color: var(--white); margin: 0; border-bottom: 2px solid var(--secondary-color); display: inline-block; }

.team-details {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 34, 74, 0.96); padding: 40px 30px;
    display: flex; flex-direction: column; justify-content: center;
    transform: translateY(100%); transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-img { transform: scale(1.05); filter: grayscale(0%); }
.team-card:hover .lawyer-name-bar { opacity: 0; }
.team-card:hover .team-details { transform: translateY(0); }

.team-details h4 { color: var(--white); font-size: 1.8rem; border-bottom: 2px solid var(--secondary-color); display: inline-block; margin-bottom: 5px; }
.lawyer-oab { color: var(--secondary-color); font-weight: 700; display: block; margin-bottom: 20px; font-size: 0.9rem; }
.lawyer-bio { color: #ddd; margin-bottom: 30px; }
.btn-profile { 
    color: var(--secondary-color); border: 1px solid var(--secondary-color); 
    padding: 10px 20px; align-self: flex-start; text-transform: uppercase; font-size: 0.8rem; 
}
.btn-profile:hover { background: var(--secondary-color); color: var(--primary-dark); }

/* --- FAQ ACCORDION (CORREÇÃO DEFINITIVA) --- */
.faq-container { max-width: 800px; margin: 0 auto; }

.faq-item {
    background: var(--white); 
    border-bottom: 1px solid #eee; 
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    cursor: pointer; /* Indica que é clicável */
}

.faq-question {
    padding: 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    font-weight: 700; 
    color: var(--primary-color);
    transition: 0.3s;
}

.faq-question i { color: var(--secondary-color); transition: 0.3s; }

.faq-answer {
    /* ESTADO INICIAL: FECHADO */
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    opacity: 0;
    transition: all 0.4s ease-in-out; /* Animação suave */
    color: var(--text-gray);
    background-color: #fafafa;
}

/* --- ESTADO ABERTO (Usando a nova classe .expanded) --- */
.faq-item.expanded .faq-answer {
    max-height: 500px; /* Altura suficiente para texto grande */
    padding: 20px;     /* Espaçamento interno */
    padding-top: 0;    /* Ajuste visual */
    opacity: 1;        /* Texto visível */
}

.faq-item.expanded .faq-question {
    color: var(--secondary-color); /* Título fica dourado */
}

.faq-item.expanded .faq-question i {
    transform: rotate(180deg); /* Ícone gira */
}

/* --- FOOTER & CTA --- */
.cta-section { background-color: var(--primary-color); padding: 70px 0; text-align: center; color: var(--white); }
.cta-section .btn-cta { margin-top: 35px; }
.cta-section h4 { font-size: 2rem; color: var(--secondary-color); }

footer { background-color: var(--primary-dark); color: #ccc; padding-top: 80px; border-top: 4px solid var(--secondary-color); }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; padding-bottom: 60px; }
.footer-col h5 { color: var(--secondary-color); font-size: 1.2rem; margin-bottom: 25px; }
.footer-col p { margin-bottom: 12px; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.social-links a { color: #ccc; font-size: 1.3rem; margin-right: 15px; }
.social-links a:hover, .map-link:hover { color: var(--secondary-color); }
.footer-bottom { background-color: #020612; padding: 20px; text-align: center; font-size: 0.85rem; }

.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px;
    background-color: #25d366; color: #FFF; border-radius: 50px; 
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 100;
    transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* --- MOBILE --- */
@media (max-width: 768px) {
    .mobile-menu-icon { display: block; font-size: 1.8rem; color: var(--secondary-color); cursor: pointer; z-index: 2000; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background-color: var(--primary-dark);
        display: flex; flex-direction: column; justify-content: center; align-items: center;
        transition: 0.4s ease; z-index: 1500;
    }
    .nav-menu.active { right: 0; }
    .nav-menu ul { flex-direction: column; text-align: center; }
    .nav-menu a { font-size: 1.5rem; color: var(--white); }
    
    #typewriter-text { font-size: 2.2rem; min-height: auto; }
    .hero-content h2 { font-size: 2.2rem; }
    .about-wrapper { grid-template-columns: 1fr; }
    .about-img { display: none; }
    .team-card { height: 450px; }
}
@media (min-width: 769px) { .mobile-menu-icon { display: none; } }

@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);} 40% {transform: translateX(-50%) translateY(-10px);} 60% {transform: translateX(-50%) translateY(-5px);} }