/* ---
Tabela de Conteúdos
================================
1.  CONFIGURAÇÃO GERAL
    - Variáveis de Cor e Fontes
    - Reset e Estilos Globais

2.  COMPONENTES REUTILIZÁVEIS
    - Botões
    - Títulos de Seção

3.  LAYOUT PRINCIPAL
    - Header (Cabeçalho)
    - Footer (Rodapé)

4.  ESTILOS DE PÁGINAS E SEÇÕES
    - Seção Hero (Banner Principal)
    - Seção Sobre (Homepage)
    - Seção Áreas de Atuação
    - Página Áreas de Atuação (Layout dos Cards)
    - Seção Showcase do Escritório
    - Banner CTA (Call to Action)
    - Seção e Páginas do Blog
    - Layout de Página de Serviço e Artigo (2 colunas)
    - Conteúdo Específico do Artigo
    - Conteúdo Específico da Página Sobre (Dedicada)
    - Títulos de Página Genéricos (Blog, 404)
    - Filtros e Tags de Categoria
    - Página de Contato e Formulário

5.  COMPONENTES FLUTUANTES E WIDGETS
    - Botão Flutuante do WhatsApp
    - Selo de Avaliações do Google
    - Ocultar Marca d'Água do Widget

6.  RESPONSIVIDADE (MEDIA QUERIES)
================================
--- */


/* --- 1. CONFIGURAÇÃO GERAL --- */
/* --- Variáveis de Cor e Fontes --- */
:root {
    --primary-color: #0088cc; /* Azul Profissional */
    --dark-bg: #1a1a1a;
    --dark-bg-secondary: #2c2c2c;
    --text-color: #cccccc;
    --text-color-dark: #333333;
    --white-color: #ffffff;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
}

/* --- Reset e Estilos Globais --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-primary); background-color: var(--white-color); color: var(--text-color-dark); line-height: 1.7; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--font-secondary); font-weight: 700; color: var(--text-color-dark); }
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1.2; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 20px; }
h3 { font-size: 1.5rem; }
a { text-decoration: none; color: var(--primary-color); transition: color 0.3s ease; }
a:hover { color: #005f8f; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a.practice-card-link { text-decoration: none; color: inherit; }


/* --- 2. COMPONENTES REUTILIZÁVEIS --- */
/* --- Botões --- */
.btn-primary { background-color: var(--primary-color); color: var(--white-color); padding: 15px 30px; border-radius: 5px; font-weight: 600; text-transform: uppercase; display: inline-block; transition: background-color 0.3s ease, transform 0.3s ease; border: none; cursor: pointer; }
.btn-primary:hover { background-color: #005f8f; color: var(--white-color); transform: translateY(-3px); }
.btn-primary-outline { border: 2px solid var(--primary-color); color: var(--primary-color); padding: 10px 20px; border-radius: 5px; font-weight: 600; }
.btn-primary-outline:hover { background-color: var(--primary-color); color: var(--white-color); }

/* --- Títulos de Seção --- */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title span { color: var(--primary-color); font-weight: 600; text-transform: uppercase; font-size: 0.9rem; display: block; }


/* --- 3. LAYOUT PRINCIPAL --- */
/* --- Header (Cabeçalho) --- */
.header { background-color: var(--dark-bg); color: var(--white-color); padding: 15px 0; position: sticky; top: 0; z-index: 1000; width: 100%; }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-secondary); font-size: 1.5rem; color: var(--white-color); line-height: 1; }
.logo span { font-family: var(--font-primary); font-size: 0.7rem; font-weight: 300; color: var(--primary-color); letter-spacing: 2px; }
.nav-list { display: flex; gap: 30px; align-items: center; }
.nav-list a { color: var(--white-color); font-weight: 400; position: relative; padding-bottom: 5px; }
.nav-list a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: width 0.3s ease; }
.nav-list a:hover::after { width: 100%; }
.hamburger { display: none; background: none; border: none; color: var(--white-color); font-size: 1.8rem; cursor: pointer; }

/* --- Footer (Rodapé) --- */
.footer { background-color: var(--dark-bg); color: var(--text-color); padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h3, .footer-col h4 { color: var(--white-color); font-family: var(--font-secondary); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a, .footer-col p { color: var(--text-color); }
.footer-col ul a:hover { color: var(--primary-color); padding-left: 5px; }
.social-links a { color: var(--white-color); font-size: 1.2rem; margin-right: 15px; }
.footer-bottom { border-top: 1px solid var(--dark-bg-secondary); padding-top: 20px; text-align: center; font-size: 0.9rem; }
.footer-bottom .fa-heart { color: var(--primary-color); }
.map-container { overflow: hidden; position: relative; height: 200px; }


/* --- 4. ESTILOS DE PÁGINAS E SEÇÕES ESPECÍFICAS --- */
/* --- Seção Hero --- */
.hero { 
    position: relative; 
    height: 90vh; 
    color: var(--white-color); 
    display: flex; 
    align-items: center; 
    background: url('../img/advogados-inicial-header.jpg') no-repeat center center/cover; 
}
.hero-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
}
.hero .container {
    position: relative;
    z-index: 2;
    text-align: left;
    background-color: rgba(0, 102, 153, 0.7); 
    padding: 40px 5%;
    border-radius: 0 8px 8px 0;
    max-width: 650px; 
    border-left: 4px solid var(--primary-color); 
    width: 100%;
    margin: 0; 
}
.hero h1 {
    color: var(--white-color);
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.1rem;
    max-width: 100%;
    margin: 0 0 30px 0;
    font-weight: 300;
    line-height: 1.6; 
}

/* --- Seção Sobre (Homepage) --- */
.about-us { padding: 80px 0; }
.about-us .container { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.about-image { flex: 1; min-width: 300px; }
.about-image img { border-radius: 8px; object-fit: cover; }
.about-content { flex: 1.2; min-width: 300px; }
.about-content .section-title { text-align: left; margin-bottom: 20px; }
.about-content ul { margin: 30px 0; }
.about-content ul li { margin-bottom: 15px; font-size: 1.1rem; }
.about-content ul i { color: var(--primary-color); margin-right: 10px; }

/* --- Seção Áreas de Atuação --- */
.practice-areas { padding: 80px 0; background-color: #f9f9f9; }
.practice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.practice-card { background-color: var(--white-color); padding: 40px; text-align: center; border: 1px solid #eee; border-radius: 8px; transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; }
.practice-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.practice-card i { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; }
.practice-card h3 { margin-bottom: 15px; }
.view-all-services-link { text-align: center; margin-top: 50px; }

/* --- Página Áreas de Atuação (Layout dos Cards) --- */
.practice-areas-page { padding: 80px 0; }
.practice-areas-page .practice-grid { align-items: stretch; }
.practice-areas-page .practice-card {
    display: flex;
    flex-direction: column;
}
.practice-areas-page .practice-card p {
    flex-grow: 1;
    margin-bottom: 30px;
}

/* --- Seção Showcase do Escritório --- */
.office-showcase {
    padding: 120px 0;
    position: relative;
    color: var(--white-color);
    text-align: center;
    background-image: url('../img/seu-escritorio.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.office-showcase-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}
.office-showcase .container {
    position: relative;
    z-index: 2;
}
.office-showcase-content {
    max-width: 750px;
    margin: 0 auto;
}
.office-showcase h3 {
    color: var(--white-color);
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.office-showcase p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}
.office-showcase .btn-primary-outline {
    color: var(--white-color);
    border-color: var(--white-color);
    background-color: transparent;
}
.office-showcase .btn-primary-outline:hover {
    background-color: var(--white-color);
    color: var(--text-color-dark);
}

/* --- Banner CTA --- */
.cta-banner { background-color: var(--dark-bg-secondary); color: var(--white-color); padding: 60px 0; text-align: center; }
.cta-banner h2 { color: var(--white-color); }
.cta-banner span { font-size: 1.5rem; color: var(--primary-color); font-weight: 600; display: block; margin-top: 15px; }

/* --- Seção e Páginas do Blog --- */
.blog-section { padding: 80px 0; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.blog-card { background: var(--white-color); border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-5px); }
.blog-card img { width: 100%; height: 220px; object-fit: cover; }
.blog-card-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card .card-meta { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; }
.blog-date { font-size: 0.8rem; color: #888; }
.blog-card h3 { margin-bottom: 10px; }
.blog-card h3 a { color: var(--text-color-dark); font-size: 1.3rem; }
.blog-card p { flex-grow: 1; margin-bottom: 20px; }
.read-more { font-weight: 600; font-size: 0.9rem; align-self: flex-start; }
.read-more i { margin-left: 5px; transition: margin-left 0.3s ease; }
.read-more:hover i { margin-left: 10px; }
.blog-view-all { text-align: center; margin-top: 50px; }

/* --- Layout de Página de Serviço e Artigo (2 colunas) --- */
.service-page-content { padding: 80px 0; }
.service-layout { display: flex; flex-wrap: wrap; gap: 50px; }
.service-main-content { flex: 2; min-width: 300px; }
.service-sidebar { flex: 1; min-width: 280px; position: sticky; top: 120px; align-self: flex-start;  }
.service-main-content h2 { font-size: 2.2rem; margin-bottom: 20px; }
.service-main-content p { margin-bottom: 20px; line-height: 1.8; }
.service-list-title { margin-top: 40px; margin-bottom: 20px; border-top: 1px solid #eee; padding-top: 30px; }
.service-accordion { border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.accordion-item { border-bottom: 1px solid #ddd; }
.accordion-item:last-child { border-bottom: none; }
.accordion-header { width: 100%; background-color: #f9f9f9; border: none; padding: 20px; font-size: 1.2rem; font-weight: 600; font-family: var(--font-primary); text-align: left; cursor: pointer; position: relative; transition: background-color 0.3s; }
.accordion-header::after { content: '\f078'; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; right: 20px; transition: transform 0.3s ease-in-out; }
.accordion-header.active::after { transform: rotate(180deg); }
.accordion-header:hover { background-color: #f1f1f1; }
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    background-color: #fff;
}
.accordion-content-inner {
    padding: 20px;
    border-top: 1px solid #eee;
}
.sidebar-widget { background-color: #f9f9f9; padding: 30px; border-radius: 8px; margin-bottom: 30px; }
.sidebar-widget h4 { font-size: 1.3rem; margin-bottom: 20px; }
.sidebar-widget ul li { margin-bottom: 15px; display: flex; align-items: flex-start; }
.sidebar-widget ul i { color: var(--primary-color); margin-right: 15px; margin-top: 5px; }
.sidebar-cta { background-color: var(--dark-bg); color: var(--white-color); text-align: center; }
.sidebar-cta h4 { color: var(--white-color); }
.sidebar-cta p { color: var(--text-color); margin-bottom: 25px; }
.sidebar-cta .btn-primary { width: 100%; }

/* --- Conteúdo Específico do Artigo --- */
.artigo-completo { max-width: 800px; margin: 0 auto; }
.artigo-header { text-align: center; margin-bottom: 40px; }
.artigo-imagem-destaque { width: 100%; height: auto; margin-bottom: 30px; border-radius: 8px; }
.artigo-completo h1 { margin-bottom: 20px; }
.meta-info { color: #666; display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 20px; margin-bottom: 40px; }
.conteudo-artigo { font-size: 1.1rem; line-height: 1.8; color: #444; }
.conteudo-artigo p, .conteudo-artigo h2, .conteudo-artigo ul, .conteudo-artigo h3 { margin-bottom: 20px; }
.cta-artigo-box { background-color: #f9f9f9; padding: 40px; border-radius: 8px; text-align: center; margin-top: 60px; border: 1px solid #eee; }
.cta-artigo-box h2 { font-size: 2rem; margin-bottom: 15px; }
.cta-artigo-box p { font-size: 1.1rem; max-width: 600px; margin: 0 auto 25px auto; color: #555; }
.voltar-link-wrapper { margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; text-align: center; }
.voltar-link { font-weight: 600; color: var(--text-color-dark); text-decoration: none; transition: color 0.3s ease; }
.voltar-link:hover { color: var(--primary-color); }

/* --- Conteúdo Específico da Página Sobre (Dedicada) --- */
.about-page-content { padding: 80px 0; }
.about-text-section { max-width: 800px; margin: 0 auto 80px auto; text-align: center; }
.about-text-section h2 { margin-bottom: 30px; }
.about-text-section p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 20px; }
.team-section h2 { text-align: center; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 50px; }
.team-card { background-color: #f9f9f9; border-radius: 8px; overflow: hidden; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05); display: flex; flex-direction: column; }
.team-card-photo img { width: 100%; height: 320px; object-fit: cover; object-position: center; filter: grayscale(80%); transition: filter 0.4s ease; }
.team-card:hover .team-card-photo img { filter: grayscale(0%); }
.team-card-info { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.team-card-info h3 { margin-bottom: 5px; }
.team-card-role { color: var(--primary-color); font-weight: 600; margin-bottom: 15px; }
.team-card-bio { font-size: 0.95rem; color: #666; margin-bottom: 20px; flex-grow: 1; }
.team-card-contact a { color: var(--text-color-dark); font-size: 1.3rem; margin: 0 10px; transition: color 0.3s ease; }
.team-card-contact a:hover { color: var(--primary-color); }

/* --- Títulos de Página Genéricos (Blog, 404) --- */
.page-title-section { padding: 80px 0; background: var(--dark-bg); color: var(--white-color); text-align: center; }
.page-title-section span { color: var(--primary-color); font-weight: 600; text-transform: uppercase; font-size: 0.9rem; display: block; }
.page-title-section h1 { color: var(--white-color); margin-top: 10px; }
.page-title-section p { font-size: 1.2rem; }

/* --- Categorias (Filtros e Tags) --- */
.category-filters { padding: 30px 0; background-color: #f1f1f1; text-align: center; }
.filter-button { display: inline-block; padding: 8px 18px; margin: 5px; background-color: #fff; color: var(--text-color-dark); border: 1px solid #ddd; border-radius: 20px; font-weight: 500; transition: all 0.3s ease; }
.filter-button:hover, .filter-button.active { background-color: var(--primary-color); color: var(--white-color); border-color: var(--primary-color); }
.category-tag { background-color: var(--primary-color); color: var(--white-color); padding: 3px 10px; border-radius: 15px; font-size: 0.8rem; font-weight: 500; display: inline-block; }
.category-tag:hover { color: var(--white-color); opacity: 0.8; }
.widget-list { list-style: none; padding: 0; }
.widget-list li { margin-bottom: 0; }
.widget-list li a { display: block; padding: 10px 0; color: var(--text-color-dark); text-decoration: none; border-bottom: 1px solid #eee; font-weight: 500; transition: all 0.2s ease; }
.widget-list li:last-child a { border-bottom: none; }
.widget-list li a:hover { color: var(--primary-color); padding-left: 10px; }

/* --- Página de Contato e Formulário --- */
.contact-form-wrapper h3 { font-size: 1.8rem; margin-bottom: 25px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 25px; }
.contact-info-item i { font-size: 1.5rem; color: var(--primary-color); margin-top: 5px; width: 25px; text-align: center; }
.contact-info-item strong { display: block; margin-bottom: 5px; }
.contact-info-item p { margin: 0; }
.contact-map-full-width { width: 100%; height: 450px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 8px; font-size: 0.95rem; color: #555; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-color-dark);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-form-wrapper .btn-primary { width: 100%; font-size: 1.1rem; padding: 18px 30px; }


/* --- 5. COMPONENTES FLUTUANTES E WIDGETS --- */
/* --- Botão Flutuante do WhatsApp --- */
.whatsapp-button { position: fixed; bottom: 25px; right: 25px; width: 60px; height: 60px; background-color: #25D366; color: #FFF; border-radius: 50%; text-align: center; font-size: 30px; line-height: 60px; box-shadow: 2px 2px 10px rgba(0,0,0,0.2); z-index: 100; transition: transform 0.3s ease; }
.whatsapp-button:hover { transform: scale(1.1); color: #FFF; }

/* --- Selo de Avaliações do Google --- */
.google-rating-seal { background-color: var(--dark-bg-secondary); padding: 15px; border-radius: 8px; text-align: center; }
.google-rating-seal p { font-size: 0.9rem; margin-bottom: 10px; color: var(--text-color); }
.google-rating-link { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; color: var(--white-color); transition: transform 0.2s ease; }
.google-rating-link:hover { transform: scale(1.05); color: var(--white-color); }
.google-rating-link img { width: 24px; height: 24px; }
.google-rating-link span { font-size: 0.8rem; color: var(--text-color); }

/* --- Ocultar Marca d'Água do Widget --- */
a[href*="elfsight"] {
    display: none !important;
}


/* --- 6. RESPONSIVIDADE (MEDIA QUERIES) --- */
@media (max-width: 768px) {
    /* --- Navegação Mobile --- */
    .hamburger { display: block; z-index: 1001;}
    .nav-main { position: fixed; top: 0; left: -100%; width: 80%; max-width: 300px; height: 100vh; background: var(--dark-bg-secondary); transition: left 0.3s ease-in-out; }
    .nav-list { flex-direction: column; align-items: flex-start; width: 100%; padding: 80px 30px 30px 30px; display: flex; }
    .nav-main.active { left: 0; }
    .nav-list li { margin: 15px 0; width: 100%; }
    .btn-primary-outline { border: none; padding: 10px 0; }
    
    /* --- Layouts de Página --- */
    .service-sidebar {
        position: static; /* Desativa a sidebar "grudenta" em telas menores */
    }

    .about-us .container {
        flex-direction: column;
    }

    /* --- Alinhamento do Hero para Telas Menores --- */
    .hero {
        background-image: none;
        background-color: var(--dark-bg);
        align-items: center;
        height: 80vh; /* Altura ajustada para mobile */
    }

    .hero .container {
        text-align: center; 
        background-color: transparent; 
        max-width: 90%; 
        margin: 0 auto;
        border-radius: 0;
        border-left: none;
        padding: 0;
    }

    .hero p {
        margin: 0 auto 30px auto;
    }
}
