/* Variáveis de Cores e Estilos Modernos */
:root {
    --primary-color: #1a365d; 
    --secondary-color: #c5a059; 
    --secondary-hover: #b38f4a;
    --text-color: #4a5568; 
    --text-dark: #2d3748;
    --bg-white: #ffffff;
    --bg-light: #f4f7f6; 
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
    --radius-md: 12px;
    --radius-pill: 50px;
    --transition: all 0.3s ease;
}

/* Reset Básico e Trava Horizontal */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    overflow-x: hidden; 
    width: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--bg-white);
}

h1, h2, h3, h4, .logo {
    font-family: 'Merriweather', serif;
    color: var(--text-dark);
}

.text-gold { color: var(--secondary-color); }

/* Tipografia e Utilidades */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); border-top: 1px solid rgba(0,0,0,0.03); border-bottom: 1px solid rgba(0,0,0,0.03); }

/* Seções mais bem definidas */
.section { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; color: var(--primary-color); font-weight: 700; }
.underline { width: 80px; height: 4px; background: var(--secondary-color); margin: 15px auto 0; border-radius: 2px; }

/* Botões Modernizados */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary { 
    background: linear-gradient(135deg, var(--secondary-color), #a88444); 
    color: var(--bg-white); 
}
.btn-primary:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4); 
}

.btn-secondary { 
    background: rgba(255,255,255,0.1); 
    color: var(--bg-white); 
    border: 2px solid var(--bg-white); 
    backdrop-filter: blur(5px);
}
.btn-secondary:hover { 
    background: var(--bg-white); 
    color: var(--primary-color); 
    transform: translateY(-3px);
}
.btn-block { width: 100%; margin-top: 20px; }

/* Navegação */
.navbar {
    background: var(--primary-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 85px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.logo { color: var(--bg-white); font-size: 1.6rem; text-decoration: none; font-weight: 700; display: flex; align-items: center; gap: 10px;}
.logo span { color: var(--secondary-color); }
.nav-menu { display: flex; list-style: none; align-items: center; gap: 5px; }
.nav-links { color: var(--bg-white); text-decoration: none; padding: 0.5rem 1rem; transition: var(--transition); font-size: 0.95rem; font-weight: 600; }
.nav-links:hover { color: var(--secondary-color); }
.btn-nav { background: var(--secondary-color); border-radius: var(--radius-pill); padding: 10px 20px; margin-left: 15px; box-shadow: none; }
.btn-nav:hover { background: var(--secondary-hover); color: var(--bg-white); transform: translateY(-2px); }

/* Menu Mobile Hamburger */
.menu-toggle { display: none; cursor: pointer; z-index: 1000; position: relative; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: var(--bg-white); border-radius: 3px; }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.45) 0%, rgba(26, 54, 93, 0.75) 100%), 
                url('advocacia.png') center/cover fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-white);
    padding-top: 85px; 
    position: relative; 
}
.hero-content { max-width: 850px; padding: 20px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 25px; line-height: 1.3; color: var(--bg-white); }
.hero p { font-size: 1.25rem; margin-bottom: 40px; font-weight: 400; opacity: 0.9; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* Sobre */
.sobre-content { max-width: 900px; margin: 0 auto; font-size: 1.15rem; line-height: 1.8; }

/* ÁREAS DE ATUAÇÃO */
#atuacao .container { max-width: 1400px; }
.cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.card {
    background: var(--bg-white);
    padding: 50px 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border-top: 5px solid var(--secondary-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    width: 100%; 
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.card-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; opacity: 0.1; position: absolute; top: 20px; right: 20px; }
.card h3 { color: var(--primary-color); margin-bottom: 25px; font-size: 1.6rem; }
.card ul { list-style: none; }
.card ul li { margin-bottom: 18px; display: flex; gap: 12px; align-items: center; white-space: nowrap; font-size: 1.05rem; }
.card ul li i { font-size: 0.9rem; flex-shrink: 0; }

/* FAQ */
.faq-list { max-width: 850px; margin: 0 auto; }
.faq-item { background: var(--bg-white); margin-bottom: 20px; padding: 30px; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); transition: var(--transition); border-left: 4px solid var(--secondary-color); }
.faq-item:hover { transform: translateX(5px); box-shadow: var(--shadow-hover); }
.faq-item h4 { color: var(--primary-color); margin-bottom: 15px; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }

/* Footer & Contato */
.footer { background: var(--primary-color); color: var(--bg-white); padding: 80px 0 20px; }
.footer-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-info h3 { color: var(--bg-white); margin-bottom: 25px; font-size: 1.8rem; }
.footer-info p { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; font-size: 1.05rem; opacity: 0.9; }
.footer-info a { color: var(--bg-white); text-decoration: none; transition: var(--transition); }
.footer-info a:hover { color: var(--secondary-color); }
.footer-form h3 { margin-bottom: 25px; color: var(--bg-white); }
.footer-form input, .footer-form select { width: 100%; padding: 16px; margin-bottom: 20px; border: none; border-radius: var(--radius-md); font-family: inherit; font-size: 1rem; background: rgba(255,255,255,0.95); outline: none; transition: var(--transition); }
.footer-form input:focus, .footer-form select:focus { background: var(--bg-white); box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.5); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.95rem; opacity: 0.7; }

/* WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px; 
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%; 
    width: 60px; 
    height: 60px; 
    display: flex;
    align-items: center;
    justify-content: center; 
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}
.whatsapp-float i { font-size: 2rem; margin: 0; }
.whatsapp-float:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6); color: #ffffff; }

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Animações e Scroll Reveal */
.btn:active, .nav-links:active, .whatsapp-float:active { transform: scale(0.95) !important; transition: transform 0.1s; }
.reveal { opacity: 0; transform: translateY(60px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.card:nth-child(1).reveal { transition-delay: 0.1s; }
.card:nth-child(2).reveal { transition-delay: 0.3s; }

/* =========================================
   RESPONSIVIDADE (Layouts para Celular e Tablet)
   ========================================= */
@media screen and (max-width: 1200px) {
    .cards-grid { grid-template-columns: 1fr; }
    #atuacao .container { max-width: 900px; }
}

@media screen and (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
}

@media screen and (max-width: 768px) {
    .section { padding: 60px 0; }
    .section-title h2 { font-size: 2rem; }
    
    /* Menu Hamburguer Ativo */
    .menu-toggle { display: block; }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    /* Menu Fullscreen Glassmorphism */
    .nav-menu { 
        flex-direction: column; 
        justify-content: center; 
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100%; 
        height: 100vh; 
        background: rgba(26, 54, 93, 0.98); 
        backdrop-filter: blur(10px); 
        transform: translateY(-100%); 
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1); 
        padding: 0; 
        z-index: 999;
    }
    .nav-menu.active { transform: translateY(0); }
    .nav-links { padding: 20px; font-size: 1.5rem; display: block; text-align: center; width: 100%; }
    .btn-nav { margin: 20px auto; width: max-content; font-size: 1.2rem; }

    /* Botões Hero */
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; margin: 0 0 15px 0; }
    
    /* Ajuste de Cards para não vazar a tela */
    .card { padding: 30px 20px; width: 100%; }
    .card ul li { white-space: normal; align-items: flex-start; font-size: 1rem; }
    .card ul li i { margin-top: 5px; } 
    
    /* WhatsApp */
    .whatsapp-float { bottom: 20px; right: 20px; width: 55px; height: 55px; }
    .whatsapp-float i { font-size: 1.8rem; }
}