/* Reset e Variáveis Globais */
:root {
    --primary-bg: #0d0d0d;
    --text-color: #f5f5f5;
    --accent-color: #bfa071;
    --card-bg: rgba(15, 15, 15, 0.85); 
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Lato', sans-serif;
    --bezier: cubic-bezier(0.16, 1, 0.3, 1);
    --wpp-color: #25D366; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* =========================================
   Barra de Progresso (Scroll)
   ========================================= */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background-color: var(--accent-color);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(191, 160, 113, 0.8);
}

/* =========================================
   Botão Flutuante WhatsApp
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: var(--wpp-color);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-wpp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-wpp {
    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); }
}

/* =========================================
   Fundos Parallax com Degradê entre as Seções
   ========================================= */
.parallax-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}
#hero { background-image: linear-gradient(to bottom, rgba(13, 13, 13, 0.6) 0%, rgba(13, 13, 13, 0.8) 80%, rgba(13, 13, 13, 1) 100%), url('img/fundo1.webp'); }
#sobre { background-image: linear-gradient(to bottom, rgba(13, 13, 13, 1) 0%, rgba(13, 13, 13, 0.65) 20%, rgba(13, 13, 13, 0.65) 80%, rgba(13, 13, 13, 1) 100%), url('img/fundo2.webp'); }
#atuacao { background-image: linear-gradient(to bottom, rgba(13, 13, 13, 1) 0%, rgba(13, 13, 13, 0.8) 30%, rgba(13, 13, 13, 0.8) 70%, rgba(13, 13, 13, 1) 100%), url('img/fundo3.webp'); }
#faq-sec { background-image: linear-gradient(to bottom, rgba(13, 13, 13, 1) 0%, rgba(13, 13, 13, 0.92) 50%, rgba(13, 13, 13, 1) 100%), url('img/fundo1.webp'); }

/* =========================================
   Animações Base
   ========================================= */
@keyframes slideUpFade { 0% { transform: translateY(40px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes slideDownFade { 0% { transform: translateY(-40px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }

/* Links Globais */
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
a:hover { color: var(--accent-color); }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =========================================
   Cabeçalho
   ========================================= */
header {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 25px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}
header.reveal-down { animation: slideDownFade 1s var(--bezier) forwards; }
header.scrolled { padding: 12px 0; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7); background: rgba(5, 5, 5, 0.95); }
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo-oab { display: flex; flex-direction: column; align-items: flex-start; }
.logo-oab h1 { font-family: var(--font-serif); font-size: 24px; font-weight: 600; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.logo-oab .oab { font-size: 12px; color: #aaa; letter-spacing: 1px; }
nav ul { display: flex; gap: 30px; }
nav ul li a { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700;}

/* =========================================
   Hero Section 
   ========================================= */
.hero { padding: 180px 0 100px; position: relative; min-height: 100vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; width: 100%; }

.hero-anim { opacity: 0; animation: slideUpFade 1.2s var(--bezier) forwards; }
.hero-anim.delay-1 { animation-delay: 0.2s; }
.hero-anim.delay-2 { animation-delay: 0.4s; }
.hero-anim.delay-3 { animation-delay: 0.6s; }
.hero-anim.delay-4 { animation-delay: 1.2s; }

.hero-content h2 { font-family: var(--font-serif); font-size: 56px; font-weight: 400; margin-bottom: 20px; line-height: 1.1; text-shadow: 0 4px 20px rgba(0,0,0,0.8); }
.hero-content p { font-size: 18px; margin-bottom: 40px; color: #e0e0e0; max-width: 500px; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.hero-image-wrapper { justify-self: end; width: 100%; max-width: 500px; position: relative; }
.hero-image { position: relative; animation: breathing 6s ease-in-out infinite alternate; }

@keyframes breathing { 0% { transform: translateY(0); } 100% { transform: translateY(-15px); } }

.hero-image img { width: 100%; border-radius: 10px; position: relative; z-index: 2; display: block; box-shadow: 0 30px 60px rgba(0,0,0,0.8); }
.hero-image::after { content: ''; position: absolute; top: 25px; left: 25px; right: -25px; bottom: -25px; border: 2px solid var(--accent-color); border-radius: 10px; z-index: 1; opacity: 0.6; transition: transform 0.6s var(--bezier); }
.hero-image:hover::after { transform: translate(-10px, -10px); }

.btn { display: inline-block; padding: 15px 35px; background-color: var(--accent-color); color: #fff; border-radius: 4px; font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(191, 160, 113, 0.3); transition: all 0.4s var(--bezier); }
.btn:hover { background-color: #c9af86; transform: translateY(-4px); box-shadow: 0 10px 25px rgba(191, 160, 113, 0.6); }

.scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0.8; }
.scroll-indicator span { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-color); text-shadow: 0 2px 5px rgba(0,0,0,0.8); }
.mouse { width: 24px; height: 36px; border: 2px solid var(--text-color); border-radius: 20px; position: relative; box-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.mouse::before { content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 4px; height: 6px; background-color: var(--text-color); border-radius: 2px; animation: scrollWheel 2s infinite ease-in-out; }

@keyframes scrollWheel { 0% { transform: translate(-50%, 0); opacity: 1; } 100% { transform: translate(-50%, 12px); opacity: 0; } }

/* =========================================
   Seções Gerais e Staggered Items
   ========================================= */
.section { padding: 120px 0; }
.section-title { font-family: var(--font-serif); font-size: 40px; margin-bottom: 60px; text-align: center; text-shadow: 0 4px 15px rgba(0,0,0,0.6); }
.section-title::after { content: ''; display: block; width: 60px; height: 2px; background-color: var(--accent-color); margin: 20px auto 0; }

.fade-element { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--bezier), transform 1s var(--bezier); }
.fade-element.visible { opacity: 1; transform: translateY(0); }
.stagger-item { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--bezier), transform 0.8s var(--bezier); }
.stagger-container.visible .stagger-item { opacity: 1; transform: translateY(0); }
.stagger-container.visible .stagger-item:nth-child(1) { transition-delay: 0.1s; }
.stagger-container.visible .stagger-item:nth-child(2) { transition-delay: 0.3s; }
.stagger-container.visible .stagger-item:nth-child(3) { transition-delay: 0.5s; }
.stagger-container.visible .stagger-item.delay-list { transition-delay: 0.4s; }

.stagger-item-inner { opacity: 0; transform: translateX(-20px); transition: opacity 0.6s var(--bezier), transform 0.6s var(--bezier); }
.stagger-container.visible .stagger-item-inner { opacity: 1; transform: translateX(0); }
.stagger-container.visible .stagger-item-inner:nth-child(1) { transition-delay: 0.5s; }
.stagger-container.visible .stagger-item-inner:nth-child(2) { transition-delay: 0.6s; }
.stagger-container.visible .stagger-item-inner:nth-child(3) { transition-delay: 0.7s; }
.stagger-container.visible .stagger-item-inner:nth-child(4) { transition-delay: 0.8s; }

/* Sobre Mim */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text p { margin-bottom: 20px; color: #e0e0e0; font-size: 17px; text-shadow: 0 2px 10px rgba(0,0,0,0.9); }
.about-highlight { font-family: var(--font-serif); font-size: 40px !important; line-height: 1.2; color: var(--accent-color) !important; margin-bottom: 30px !important; text-shadow: 0 4px 15px rgba(0,0,0,0.8); }

.credentials-list { display: flex; flex-direction: column; gap: 20px; background: var(--card-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); padding: 35px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08); border-top: 3px solid var(--accent-color); box-shadow: 0 20px 40px rgba(0,0,0,0.6); }
.credentials-list li { display: flex; align-items: center; gap: 15px; color: #f5f5f5; font-size: 16px; padding-bottom: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.credentials-list li:last-child { border-bottom: none; padding-bottom: 0; }
.credentials-list .icon { font-size: 22px; }

/* Áreas de Atuação */
.areas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.area-card { background: var(--card-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); padding: 45px 35px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08); border-top: 3px solid var(--accent-color); text-align: center; transition: transform 0.4s var(--bezier), box-shadow 0.4s var(--bezier), border-color 0.4s ease; box-shadow: 0 20px 40px rgba(0,0,0,0.6); }
.area-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(0,0,0,0.8); border-color: rgba(191, 160, 113, 0.5); }
.area-card .icon { font-size: 40px; color: var(--accent-color); margin-bottom: 20px; display: inline-block; transition: transform 0.4s var(--bezier); }
.area-card:hover .icon { transform: scale(1.15); }
.area-card h4 { font-size: 22px; margin-bottom: 15px; font-family: var(--font-serif); }
.area-card p { color: #e0e0e0; font-size: 16px; }

/* FAQ - Dúvidas Frequentes */
.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: var(--card-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; overflow: hidden; transition: all 0.3s ease; }
.faq-item.active { border-color: rgba(191, 160, 113, 0.4); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 25px 30px; font-size: 18px; font-family: var(--font-serif); color: var(--text-color); font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: color 0.3s ease; }
.faq-question:hover { color: var(--accent-color); }
.faq-question .arrow { font-size: 14px; transition: transform 0.4s var(--bezier); color: var(--accent-color); }
.faq-item.active .arrow { transform: rotate(-180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--bezier); background: rgba(0, 0, 0, 0.2); }
.faq-answer p { padding: 0 30px 25px 30px; color: #ccc; font-size: 16px; line-height: 1.6; }

/* Rodapé */
footer { padding: 60px 0; background-color: #050505; text-align: center; }
.footer-content { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.oab-footer { font-size: 14px; color: #888; }
.social-links a { transition: transform 0.3s ease, color 0.3s ease; display: inline-block; }
.social-links a:hover { transform: translateY(-3px); }

/* =========================================
   RESPONSIVIDADE (MOBILE / TABLET)
   ========================================= */
@media (max-width: 768px) {
    .parallax-bg { background-attachment: scroll; } 
    header .container { justify-content: center; }
    .logo-oab { align-items: center; text-align: center; }
    nav ul { display: none; }
    
    .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 25px; } 

    .section { padding: 80px 0; }
    .hero { min-height: auto; padding: 120px 0 60px; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    
    .hero-content h2 { font-size: 36px; }
    .section-title { font-size: 32px; margin-bottom: 40px; }
    .about-highlight { font-size: 30px !important; margin-bottom: 20px !important; }
    .hero-content p { font-size: 16px; margin: 0 auto 30px; }
    
    .scroll-indicator { display: none; }
    .about-grid, .areas-grid { grid-template-columns: 1fr; gap: 40px; }
    
    .area-card { padding: 30px 20px; }
    .credentials-list { padding: 25px 20px; }
    .faq-question { font-size: 16px; padding: 20px 15px; }
    .faq-answer p { padding: 0 15px 20px 15px; font-size: 15px; }
    
    .stagger-container.visible .stagger-item-inner:nth-child(n) { transition-delay: 0.1s; }
}