/*
Theme Name: Advocacia Pro - Escritório
Theme URI: https://painel.adv.br
Description: Tema base para escritórios de advocacia clientes do Advocacia Pro. Personalizável via Painel > Aparência > Personalizar.
Author: SaySix
Version: 1.0.0
License: Proprietary
Text Domain: cliente-theme
Requires PHP: 8.0
*/

/* ============================
   VARIÁVEIS CSS (cores padrão)
   ============================ */
:root {
    --primary: #1e3a5f;
    --primary-light: #2d5a87;
    --accent: #c9a84c;
    --accent-light: #d4b96a;
    --text: #333;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --border: #e2e8f0;
    --success: #10b981;
    --danger: #ef4444;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ============================
   RESET & BASE
   ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================
   HEADER
   ============================ */
.site-header {
    background: var(--primary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}
.site-logo img {
    max-height: 50px;
    width: auto;
}
.site-logo-text {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.site-logo-text span { color: var(--accent); }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}
.nav-menu a {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-menu a:hover { color: #fff; }
.header-cta {
    background: var(--accent);
    color: var(--primary) !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.3s;
}
.header-cta:hover { background: var(--accent-light); }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: 0.3s;
}

/* ============================
   HERO
   ============================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 80px 0;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><rect fill="none" stroke="rgba(255,255,255,0.03)" width="80" height="80"/></svg>');
    pointer-events: none;
}
.hero-section h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}
.hero-section p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 32px;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--primary) !important;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ============================
   ÁREAS DE ATUAÇÃO
   ============================ */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}
.section-header p {
    color: var(--text-light);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.area-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.area-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.area-card .icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.area-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}
.area-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

/* ============================
   SOBRE / EQUIPE
   ============================ */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-text h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}
.about-text p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 12px;
    line-height: 1.8;
}
.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}
.team-card {
    text-align: center;
    padding: 20px;
}
.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 4px solid var(--accent);
}
.team-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.team-card .role {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}
.team-card p {
    color: var(--text-light);
    font-size: 13px;
}

/* ============================
   DIFERENCIAIS / NÚMEROS
   ============================ */
.stats-bar {
    background: var(--primary);
    padding: 50px 0;
    color: #fff;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}
.stat-item .number {
    font-size: 42px;
    font-weight: 800;
    color: var(--accent);
}
.stat-item .label {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 4px;
}

/* ============================
   CONTATO
   ============================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.contact-item .icon-box {
    width: 48px;
    height: 48px;
    background: var(--bg-alt);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.contact-item h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.contact-item p {
    color: var(--text-light);
    font-size: 14px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
    margin-bottom: 16px;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    outline: none;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button {
    background: var(--primary);
    color: #fff;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}
.contact-form button:hover { background: var(--primary-light); }

/* ============================
   WHATSAPP BUTTON
   ============================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* ============================
   FOOTER
   ============================ */
.site-footer {
    background: var(--primary);
    color: #fff;
    padding: 50px 0 24px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-about p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.8;
    margin-top: 12px;
}
.footer-links h4,
.footer-contact h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--accent);
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: color 0.3s;
}
.footer-links a:hover { color: #fff; }
.footer-contact p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 8px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

/* ============================
   RESPONSIVO
   ============================ */
@media (max-width: 992px) {
    .about-content { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .menu-toggle { display: block; }
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        padding: 20px;
        gap: 16px;
    }
    .hero-section h1 { font-size: 28px; }
    .hero-section { padding: 50px 0; }
    .section { padding: 50px 0; }
    .section-header h2 { font-size: 24px; }
    .areas-grid { grid-template-columns: 1fr; }
}
