/* ============================================================
   DESIGN SYSTEM — COMMENALE ADVOGADOS · LUXURY BRUTALIST
   Palette: Onyx Black · Deep Gold · White
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,700&display=swap');

:root {
    /* Colors */
    --black-base: #000000;
    --black-soft: #030303;
    --black-mid: #080808;
    --black-border: #111111;
    
    --gold-glow: #F1D592;
    --gold-base: #E5C374;
    --gold-dark: #B8860B;
    
    --white: #ffffff;
    --white-soft: rgba(255, 255, 255, 0.9);
    --white-dim: rgba(255, 255, 255, 0.05);
    
    /* Fonts */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Spacing & Transitions */
    --radius: 0px; 
    --transition-base: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-slow: all 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 0. Luxury Orbs & Gold Glows */
body::before, body::after {
    content: '';
    position: fixed;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229, 195, 116, 0.04) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    animation: pulseGlow 15s infinite alternate ease-in-out;
}

body::before { top: -15%; right: -10%; animation-delay: -2s; }
body::after { bottom: -10%; left: -15%; animation-delay: -5s; }

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.3; }
    50% { transform: scale(1.1) translate(20px, 20px); opacity: 0.6; }
    100% { transform: scale(0.9) translate(-10px, -20px); opacity: 0.4; }
}

/* 1. Base Setup */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black-base);
    color: var(--white-soft);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

body.loaded {
    opacity: 1;
}

/* 2. Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.1;
    color: var(--white);
    letter-spacing: -0.01em;
}

.text-gold-gradient {
    background: linear-gradient(135deg, #B8860B 0%, #E5C374 50%, #B8860B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-base);
    display: block;
    margin-bottom: 1.5rem;
}

.section-header {
    text-align: center;
    margin: 0 auto 70px;
    max-width: 800px;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--white-soft);
    opacity: 0.7;
    max-width: 650px;
    margin: 1.5rem auto 0;
}

/* 3. Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }
}

section {
    padding: 100px 0;
    position: relative;
}

/* 4. Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--white-dim);
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(0,0,0,0.95);
    padding: 15px 0;
}

.nav-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--white);
    text-decoration: none;
    opacity: 0.6;
    transition: var(--transition-base);
    font-weight: 500;
}

.nav-link:hover {
    opacity: 1;
    color: var(--gold-base);
}

/* 5. Buttons */
.btn-premium-outer {
    display: inline-flex;
    padding: 4px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--white-dim);
    border-radius: 4px;
    transition: var(--transition-base);
    text-decoration: none;
}

.btn-premium-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 44px;
    background: linear-gradient(135deg, #B8860B 0%, #E5C374 50%, #B8860B 100%);
    background-size: 200% auto;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 4px;
    transition: var(--transition-base);
    box-shadow: 0 10px 30px rgba(184, 134, 11, 0.2);
}

.btn-premium-outer:hover {
    border-color: rgba(229, 195, 116, 0.3);
    transform: translateY(-2px);
}

.btn-premium-outer:hover .btn-premium-inner {
    background-position: right center;
    box-shadow: 0 15px 45px rgba(184, 134, 11, 0.4);
}

/* 6. Hero Section */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 180px;
    padding-bottom: 80px;
    background-image: url('../img/backg01.webp');
    background-size: cover;
    background-position: center;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--white-soft);
    opacity: 0.8;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.news-dot.active {
    background: var(--gold-base);
    width: 2.5rem;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: linear-gradient(135deg, var(--black-mid), var(--black-base)) padding-box,
                linear-gradient(135deg, var(--black-border), var(--white-dim), var(--black-border)) border-box;
    padding: 60px 40px;
    border: 1px solid transparent;
    border-radius: 4px;
    position: relative;
    transition: var(--transition-base);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(229, 195, 116, 0.4);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.step-number {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    font-family: var(--font-serif);
    opacity: 0.05;
    color: var(--gold-base);
    line-height: 1;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
}

.service-card:hover .card-title {
    color: var(--gold-base);
}

.card-text {
    font-size: 0.95rem;
    color: var(--white-soft);
    opacity: 0.6;
    line-height: 1.8;
}

/* 8. FAQ Accordion */
.faq-grid {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--black-mid);
    border: 1px solid var(--white-dim);
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition-base);
}

.faq-summary {
    padding: 25px 40px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-serif);
    font-size: 1.25rem;
}

.faq-summary::-webkit-details-marker { display: none; }

.faq-content {
    padding: 0 40px 30px 40px;
    color: var(--white-soft);
    opacity: 0.7;
    font-size: 1rem;
    line-height: 1.8;
}

.faq-item[open] {
    border-color: var(--gold-base);
    background: var(--black-soft);
}

/* 9. Footer */
footer {
    padding: 100px 0 50px;
    background: var(--black-soft);
    border-top: 1px solid var(--white-dim);
}

.footer-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold-base);
    margin-bottom: 2rem;
    display: block;
}

/* 10. Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* WhatsApp Floating */
#wa-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.wa-balloon {
    background: white;
    padding: 12px 20px;
    border-radius: 12px 12px 2px 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    max-width: 280px;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom right;
}

#wa-float:hover .wa-balloon {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.wa-profile-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--black-base);
    flex-shrink: 0;
    border: 2px solid var(--gold-base);
}

.wa-msg {
    color: #333;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.wa-btn-circle {
    width: 65px;
    height: 65px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    border: 4px solid rgba(255,255,255,0.1);
}

.wa-btn-circle:hover {
    transform: scale(1.05) rotate(10deg);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    .hero-title { 
        font-size: 1.6rem !important; 
    }
    .hero-description {
        font-size: 1rem !important;
    }
    #home {
        background-image: url('../img/backgtrab01mobile.webp') !important;
    }
    .navbar img {
        height: 35px !important;
    }
    .btn-premium-inner {
        padding: 14px 24px !important;
        font-size: 0.7rem !important;
        white-space: nowrap !important;
    }
}
