/*
Theme Name: David Guimarães & Côvolo Advogados
Theme URI: https://advocacia-godoi.com.br
Description: Landing Page profissional, compacta e centralizada.
Version: 4.5 - Center & Close Edition
Author: Manus Agency
License: GPL v2 or later
Text Domain: advocacia-godoi
*/

/* --- 1. RESET E VARIAVEIS --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

:root {
    --primary: #00bcd4;
    --primary-hover: #00a8c4;
    --bg: #121212;
    --card-bg: #1e1e1e;
    --text: #f5f5f5;
    --text-muted: #a0a0a0;
    --border: rgba(255, 255, 255, 0.08);
}

html { scroll-behavior: smooth; }

body { 
    background-color: var(--bg); 
    color: var(--text); 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
    line-height: 1.4; 
}

/* --- 2. LAYOUT --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section { 
    padding: 40px 0; 
    text-align: center; /* Centraliza tudo dentro das seções */
}

/* --- 3. HEADER (MANTIDO ORIGINAL) --- */
header.site-header {
    background: rgba(18, 18, 18, 0.98);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left; /* Garante que o header não centralize a logo */
}

.site-branding img, .custom-logo {
    max-height: 50px !important;
    width: auto !important;
}

.site-navigation { display: none !important; }

/* --- 4. HERO (TEXTO CENTRALIZADO E PERTO) --- */
.hero {
    position: relative;
    min-height: 60vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 { 
    font-size: clamp(2rem, 5vw, 3rem); 
    font-weight: 800; 
    margin-bottom: 5px; /* Título bem perto do texto */
}

.hero p { 
    font-size: 1.2rem; 
    color: #e0e0e0; 
    margin-top: 0;
    margin-bottom: 25px;
}

/* --- 5. TITULOS DE SEÇÃO (CENTRALIZADOS E PERTO) --- */
section h2 { 
    font-size: 1.8rem; 
    color: var(--primary); 
    font-weight: 700;
    margin-bottom: 5px; /* Título grudado no subtítulo */
    text-align: center;
}

/* Subtítulo da seção */
section h2 + p {
    margin-top: 0;
    margin-bottom: 30px; /* Espaço apenas para os cards abaixo */
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- 6. CARDS E GRIDS --- */
.grid-icons, .grid-2, .grid-3 {
    display: grid;
    gap: 15px;
    text-align: left; /* Texto dentro do card continua alinhado à esquerda */
}

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

.card-icon-text {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
}

.card-icon-text:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.icon-box {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--primary);
}

.card-icon-text p { margin: 0; font-size: 0.95rem; line-height: 1.3; }

/* --- 7. ADVOGADOS (BIO) --- */
.advogados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.advogado-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
}

.advogado-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    margin-bottom: 12px;
    object-fit: cover;
}

.oab { color: var(--primary); font-weight: 700; font-size: 0.85rem; display: block; margin-bottom: 5px; }

/* --- 8. BOTÕES --- */
.btn-whatsapp {
    background: var(--primary);
    color: #fff;
    padding: 10px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-whatsapp:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

/* --- 9. FOOTER --- */
footer {
    padding: 30px 0;
    background: #000;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- 10. RESPONSIVIDADE --- */
@media (max-width: 768px) {
    section { padding: 30px 0; }
    .hero { min-height: 50vh; background-attachment: scroll; }
    .grid-icons { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
    .btn-whatsapp { width: 100%; justify-content: center; }
}