/* --- VARIAVEIS E RESET --- */
:root {
    --bg-dark: #050505;
    --gold-primary: #C5A059;
    --gold-secondary: #E5C579;
    --gold-gradient: linear-gradient(135deg, #B89248 0%, #E5C579 50%, #B89248 100%);
    --text-white: #f5f5f5;
    --text-gray: #a0a0a0;
    --glass-bg: rgba(20, 20, 20, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; /* Essencial para evitar quebras */
}

html { 
    scroll-behavior: smooth; 
    overflow-x: hidden; /* TRAVA O SCROLL LATERAL NO HTML */
    width: 100%;
}

body {
    background-color: var(--bg-dark);
    font-family: var(--font-body);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden; /* TRAVA O SCROLL LATERAL NO BODY */
    width: 100%;
    position: relative;
    text-align: center;
}

/* --- CANVAS --- */
#neural-canvas { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -1; 
    opacity: 0.2; 
    pointer-events: none;
}

/* --- PRELOADER --- */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000;
    z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity 0.5s;
}
.loader-text { font-family: var(--font-heading); color: var(--gold-primary); font-size: 1.5rem; letter-spacing: 3px; animation: pulse 1.5s infinite; }

/* --- NAV --- */
.glass-nav {
    display: flex; justify-content: center; align-items: center; padding: 1.2rem 2rem;
    position: fixed; width: 100%; top: 0; z-index: 100; left: 0;
    background: rgba(5,5,5,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--glass-border);
}
.logo { font-family: var(--font-heading); font-size: 1.4rem; margin: 0 2rem; font-weight: 700; color: #fff; white-space: nowrap; }
.gold-dot { color: var(--gold-primary); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-white); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.nav-links a:hover, .highlight-link { color: var(--gold-primary); }
.menu-toggle { display: none; color: #fff; font-size: 1.5rem; position: absolute; right: 1.5rem; cursor: pointer; }

/* --- HERO --- */
.hero-section {
    min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 80px 1rem 0; /* Padding lateral reduzido */
    position: relative;
    width: 100%;
    background: radial-gradient(circle at center, rgba(197, 160, 89, 0.05) 0%, rgba(5,5,5,0) 70%);
}
.hero-content {
    width: 100%;
    max-width: 900px;
}
.badge {
    display: inline-block;
    padding: 8px 16px; border: 1px solid var(--gold-primary); color: var(--gold-primary);
    font-size: 0.7rem; letter-spacing: 3px; border-radius: 50px; margin-bottom: 1.5rem;
}
h1 {
    font-family: var(--font-heading); font-size: clamp(2rem, 8vw, 4.5rem); line-height: 1.1;
    margin-bottom: 1.5rem; background: linear-gradient(to bottom, #fff, #aaa); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    word-wrap: break-word; /* Evita que palavras longas estourem a tela */
}
.subtitle { color: var(--text-gray); max-width: 600px; margin: 0 auto 2.5rem; font-weight: 300; font-size: 1rem; padding: 0 10px; }

.primary-btn {
    padding: 1rem 2.5rem; background: var(--gold-gradient); border: none; color: #000;
    font-weight: 600; font-family: var(--font-body); cursor: pointer; letter-spacing: 1px;
    transition: 0.3s; position: relative; overflow: hidden; max-width: 100%;
}
.primary-btn:hover { box-shadow: 0 0 20px rgba(197, 160, 89, 0.4); transform: translateY(-2px); }

/* Scroll Mouse Animation */
.scroll-down { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); opacity: 0.7; }
.mouse { width: 26px; height: 40px; border: 2px solid #fff; border-radius: 20px; display: flex; justify-content: center; padding-top: 5px; }
.wheel { width: 4px; height: 8px; background: #fff; border-radius: 2px; animation: scrollWheel 2s infinite; }
@keyframes scrollWheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(15px); } }

/* --- NUMBERS STRIPE --- */
.numbers-stripe { background: #0a0a0a; border-top: 1px solid #222; border-bottom: 1px solid #222; padding: 2rem 1rem; width: 100%; }
.stats-row { display: flex; justify-content: center; align-items: center; gap: 2rem; flex-wrap: wrap; width: 100%; }
.stat-item .count { font-family: var(--font-heading); font-size: 2rem; color: var(--gold-primary); }
.stat-item p { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: #666; margin-top: 5px; }
.stat-line { width: 1px; height: 40px; background: #333; }

/* --- SECTIONS --- */
section { padding: 5rem 1rem; width: 100%; }
.container-center { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 10px; }
.section-header { margin-bottom: 3rem; width: 100%; }
.section-header h2 { font-family: var(--font-heading); font-size: clamp(1.8rem, 5vw, 2.5rem); margin-bottom: 1rem; color: #fff; }
.line-gold { width: 60px; height: 3px; background: var(--gold-primary); margin: 0 auto 1rem; }

/* --- ABOUT CARD --- */
.about-card {
    background: var(--glass-bg); padding: 3rem 1.5rem; border-radius: 20px;
    border: 1px solid var(--glass-border); width: 100%; max-width: 800px; margin: 0 auto;
}
.profile-img-container {
    position: relative; width: 140px; height: 140px; margin: 0 auto 2rem;
}
.profile-img-container img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
    border: 3px solid var(--gold-primary); padding: 4px;
}
.status-badge {
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    background: var(--gold-gradient); color: #000; font-size: 0.6rem; font-weight: bold;
    padding: 4px 8px; border-radius: 20px; white-space: nowrap;
}
.role { color: var(--gold-primary); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; margin-bottom: 2rem; }
.bio-text { font-size: 1rem; font-style: italic; color: #d0d0d0; max-width: 100%; margin: 0 auto 2rem; }
.signature { height: 50px; opacity: 0.7; filter: invert(1); max-width: 80%; }

/* --- PARALLAX SECTION --- */
.parallax-section {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1589829085413-56de8ae18c73?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-attachment: fixed; background-position: center; background-size: cover;
    padding: 6rem 1rem; text-align: center; width: 100%;
}
.parallax-content h2 { font-family: var(--font-heading); font-size: clamp(1.2rem, 4vw, 1.8rem); color: #fff; max-width: 800px; margin: 0 auto 2rem; line-height: 1.4; }
.parallax-content p { color: var(--gold-primary); font-size: 1rem; font-weight: 500; }

/* --- CARDS GRID --- */
.cards-grid-center { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; width: 100%; }
.tilt-card {
    flex: 1 1 280px; /* Garante que encolha se precisar */
    width: 100%;
    max-width: 350px; 
    background: #0f0f0f; padding: 2.5rem 1.5rem;
    border-radius: 12px; border: 1px solid #222; transition: 0.4s; position: relative;
    margin: 0 auto; /* Centraliza no mobile se ficar sozinho */
}
.tilt-card:hover { border-color: var(--gold-primary); transform: translateY(-10px); background: #141414; }
.card-icon { font-size: 2rem; color: var(--gold-primary); margin-bottom: 1.5rem; }
.tilt-card h3 { font-family: var(--font-heading); margin-bottom: 1rem; font-size: 1.3rem; }
.card-link { color: var(--gold-primary); text-decoration: none; font-size: 0.9rem; font-weight: 600; margin-top: 1.5rem; display: inline-block; transition: 0.3s; }

/* --- TESTIMONIALS SLIDER --- */
.testimonial-slider { max-width: 800px; width: 100%; margin: 0 auto; position: relative; min-height: 250px; padding: 0 10px; }
.testimonial-slide { display: none; animation: fadeEffect 1s; }
.testimonial-slide.active { display: block; }
.quote-icon { font-size: 2rem; color: var(--gold-primary); margin-bottom: 1.5rem; opacity: 0.5; }
.testimonial-text { font-size: 1.1rem; font-style: italic; margin-bottom: 2rem; color: #e0e0e0; }
.slider-dots { margin-top: 2rem; display: flex; justify-content: center; gap: 10px; }
.dot { height: 10px; width: 10px; background-color: #333; border-radius: 50%; display: inline-block; cursor: pointer; transition: 0.3s; }
.dot.active { background-color: var(--gold-primary); transform: scale(1.2); }
@keyframes fadeEffect { from {opacity: 0; transform: translateY(20px);} to {opacity: 1; transform: translateY(0);} }

/* --- FORM MONOLITH --- */
.form-monolith { 
    width: 100%;
    max-width: 600px; 
    margin: 0 auto; 
    background: #0e0e0e; 
    padding: 2.5rem 1.5rem; /* Padding reduzido */
    border-radius: 20px; 
    border: 1px solid #222; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.6); 
    position: relative; 
}
.security-badge { position: absolute; top: 1rem; right: 1rem; font-size: 0.6rem; color: #4caf50; display: flex; align-items: center; gap: 5px; opacity: 0.8; }
.form-header { margin-bottom: 2rem; }
.input-group { position: relative; margin-bottom: 2rem; width: 100%; }
.input-group input, .input-group select {
    width: 100%; padding: 12px 0; background: transparent; border: none; border-bottom: 1px solid #333;
    color: #fff; font-family: var(--font-body); outline: none; text-align: center; border-radius: 0;
}
.input-group label {
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%); color: #666; pointer-events: none; transition: 0.4s; font-size: 0.9rem; white-space: nowrap;
}
.input-group input:focus ~ label, .input-group input:valid ~ label, .input-group select:valid ~ label {
    top: -20px; color: var(--gold-primary); font-size: 0.75rem;
}
.submit-btn {
    width: 100%; padding: 1.2rem; background: var(--text-white); color: #000; font-weight: bold;
    border: none; cursor: pointer; transition: 0.3s; margin-top: 1rem; letter-spacing: 1px;
}
.submit-btn:hover { background: var(--gold-primary); }

.office-info { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.info-pill { background: #1a1a1a; padding: 8px 15px; border-radius: 50px; font-size: 0.7rem; color: #ccc; display: flex; align-items: center; gap: 8px; }

/* --- FOOTER --- */
footer { background: #020202; padding: 3rem 1rem; border-top: 1px solid #111; margin-top: 4rem; width: 100%; }
.footer-container { width: 100%; max-width: 1000px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; }
.footer-col { width: 100%; text-align: center; } /* Força centro no mobile */
.footer-col h3 { font-family: var(--font-heading); color: var(--gold-primary); margin-bottom: 5px; }
.footer-col p { font-size: 0.8rem; color: #666; }
.oab { border: 1px solid #333; padding: 5px 10px; display: inline-block; margin-top: 5px; border-radius: 4px; }

/* --- WHATSAPP --- */
.whatsapp-float {
    position: fixed; bottom: 20px; right: 20px; background: #25d366; color: white; width: 55px; height: 55px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5); z-index: 999; transition: transform 0.3s; text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* --- ANIMATIONS --- */
.pulse-btn { animation: pulseGold 2s infinite; }
@keyframes pulseGold { 0% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(197, 160, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); } }
.fade-up { opacity: 0; transform: translateY(30px); transition: 1s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; } .delay-2 { transition-delay: 0.4s; } .delay-3 { transition-delay: 0.6s; }

/* --- MOBILE & TABLET MEDIA QUERIES --- */
@media (min-width: 768px) {
    .footer-col { width: auto; text-align: left; }
    .hero-section { padding: 80px 1rem 0; }
}

@media (max-width: 992px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .logo { margin: 0; font-size: 1.2rem; }
    .stat-line { display: none; }
    .stats-row { flex-direction: column; gap: 2rem; }
    .parallax-section { background-attachment: scroll; } /* Corrige bug de parallax no iPhone */
    
    /* Ajustes Finos Mobile */
    h1 { font-size: 2.5rem; }
    .glass-nav { padding: 1rem; justify-content: center; }
    .hero-section { padding-top: 100px; }
    section { padding: 4rem 1rem; }
}

/* --- MOBILE MENU --- */
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #000;
    z-index: 2000; transform: translateY(-100%); transition: 0.4s; display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.mobile-menu-overlay.active { transform: translateY(0); }
.mobile-links { list-style: none; padding: 0; } .mobile-links li { margin: 1.5rem 0; }
.mobile-links a { color: #fff; font-size: 1.5rem; text-decoration: none; font-family: var(--font-heading); }
.close-menu { position: absolute; top: 2rem; right: 2rem; font-size: 2rem; color: #fff; cursor: pointer; }