/* ============================================
   JC ADVOCACIA — Identidade Corporativa
   Paleta: Preto + Dourado (fiel à logo oficial)
   ============================================ */

:root {
    --bg-dark: #0A0A0A;
    --bg-section: #111111;
    --bg-card: #1A1A1A;
    --gold: #C6A355;
    --gold-light: #D4AF37;
    --gold-gradient: linear-gradient(135deg, #C6A355 0%, #8B7332 100%);
    --gold-metallic: linear-gradient(to bottom, #462523 0%, #cb9b51 22%, #f6e27a 45%, #f6f2c0 50%, #f6e27a 55%, #cb9b51 78%, #462523 100%);
    --text-primary: #F5F0E8;
    --text-secondary: #9A9A9A;
    --text-muted: #6B6B6B;
    --border-subtle: rgba(198, 163, 85, 0.15);
    --whatsapp: #25D366;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
.container { width: 90%; max-width: 1100px; margin: 0 auto; position: relative; }

/* ---- Navegação Fixa ---- */
.main-nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 999;
    background: transparent;
    backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    padding: 14px 0;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}
.main-nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.3rem; font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
}
.nav-links { list-style: none; display: flex; gap: 32px; }
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--gold); }

/* ---- Hero Section (Limpo, sem imagem pesada) ---- */
.hero-section {
    background: radial-gradient(ellipse at 50% 0%, rgba(198,163,85,0.07) 0%, var(--bg-dark) 70%);
    color: var(--text-primary);
    padding: 180px 0 120px;
    text-align: center;
}
.brand-logo {
    max-width: 240px;
    margin-bottom: 40px;
    background: none;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    transition: opacity 0.3s;
}
.brand-logo:hover { opacity: 0.85; }

.hero-section h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}
.hero-section .subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 48px;
    font-weight: 300;
    line-height: 1.8;
}

/* ---- CTA Buttons (Corporativo, sem pulse, sem emoji) ---- */
.cta-button {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gold-gradient);
    color: var(--bg-dark);
    padding: 16px 38px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(198, 163, 85, 0.2);
    gap: 10px;
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(198, 163, 85, 0.35);
}

/* Selo OAB */
.oab-compliance {
    margin-top: 48px;
    font-size: 0.8rem;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 10px 28px;
    border-radius: 4px;
    display: inline-block;
    background: transparent;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ---- Sections ---- */
section { padding: 100px 0; }
h1, h2, h3, h4 {
    font-feature-settings: "liga" 1, "dlig" 1, "kern" 1;
    font-kerning: normal;
    text-wrap: balance;
}
section h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.6rem;
    color: var(--gold); /* Fallback */
    background: var(--gold-metallic);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
    line-height: 1.8;
}
.section-alt { background-color: var(--bg-section); }

/* ---- Bento Grid (Cards Sólidos) ---- */
.grid-container.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 40px 35px;
    border-radius: 10px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    animation: fade-in-up linear;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
}
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
    border-color: rgba(198, 163, 85, 0.3);
}
.card-primary { border-left: 3px solid var(--gold); }
.card-secondary { border-top: 3px solid rgba(198, 163, 85, 0.4); }
.card h3 {
    font-family: var(--font-heading);
    color: var(--gold);
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 700;
}
.card p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8; }
.card p strong { color: var(--text-primary); }

/* Desktop Bento */
@media (min-width: 992px) {
    .grid-container.bento-grid {
        grid-template-rows: repeat(2, minmax(180px, auto));
    }
    .card-primary {
        grid-column: 1 / 8; grid-row: 1 / 3;
        display: flex; flex-direction: column; justify-content: center;
    }
    .card-primary h3 { font-size: 2rem; }
    .card-secondary:nth-child(2) { grid-column: 8 / 13; grid-row: 1 / 2; }
    .card-secondary:nth-child(3) { grid-column: 8 / 13; grid-row: 2 / 3; }
}

/* ---- Metodologia / FAQ ---- */
.faq-item {
    background: var(--bg-card);
    margin-bottom: 20px;
    padding: 32px 36px;
    border-radius: 8px;
    border-left: 3px solid var(--gold);
    transition: transform 0.3s ease, border-color 0.3s ease;
    animation: fade-in-up linear;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
}
.faq-item:hover {
    transform: translateX(6px);
    border-color: var(--gold-light);
}
.faq-item h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.25rem;
    font-weight: 700;
}
.faq-item p { color: var(--text-secondary); font-size: 1rem; line-height: 1.8; }

/* ---- CTA Wrapper ---- */
.cta-wrapper { text-align: center; margin-top: 50px; }

/* ---- Elegibilidade ---- */
.split-layout { display: flex; align-items: center; gap: 60px; margin-top: 30px; }
.split-layout.reverse { flex-direction: row-reverse; }
.split-layout > div { flex: 1; }
.check-list { list-style: none; padding: 0; }
.check-list li {
    margin-bottom: 16px; font-size: 1.05rem;
    color: var(--text-primary);
    display: flex; align-items: flex-start; gap: 14px;
    background: var(--bg-card);
    padding: 16px 20px; border-radius: 8px;
    border-left: 3px solid var(--gold);
    transition: border-color 0.3s;
    animation: fade-in-up linear;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
}
.check-list li:hover { border-color: var(--gold-light); }
.check-icon { color: var(--gold); font-size: 1.2rem; font-weight: 700; line-height: 1.4; }
.glass-box {
    background: var(--bg-card);
    padding: 36px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
}
.glass-box h4 {
    font-family: var(--font-heading);
    color: var(--gold);
    margin-bottom: 14px;
    font-size: 1.35rem;
    font-weight: 700;
}
.glass-box p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8; }

/* ---- Especialista ---- */
.oab-tag {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 8px 22px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.bio-text { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.8; }
.center-shield { display: flex; justify-content: center; align-items: center; }
.shield-image { max-width: 260px; filter: drop-shadow(0 10px 30px rgba(198, 163, 85, 0.15)); }

/* ---- Footer ---- */
footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 60px 0 30px;
    text-align: center;
    font-size: 0.9rem;
}
footer p strong {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.4rem;
    display: block;
    margin-bottom: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
}
footer p { margin-bottom: 6px; }
footer .copyright {
    margin-top: 40px; padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    color: var(--text-muted);
}
footer a { color: var(--gold); text-decoration: none; transition: color 0.3s; }
footer a:hover { color: var(--gold-light); }
.footer-links { margin-top: 12px; }

/* ---- Botão WhatsApp Flutuante (ÚNICO elemento verde) ---- */
.whatsapp-float {
    position: fixed;
    bottom: 28px; right: 28px;
    background: var(--whatsapp);
    color: white;
    border-radius: 8px;
    padding: 14px 22px;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    display: flex; align-items: center; gap: 8px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: white;
}

/* ---- 8 Melhorias: Novos Componentes ---- */
/* Progress Bar (Melhoria 1) */
.reading-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 100%;
    background: var(--gold-gradient);
    transform-origin: left;
    z-index: 10000;
    animation: grow-progress auto linear;
    animation-timeline: scroll();
}
@keyframes grow-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Estatísticas (Melhoria 3) */
.stats-section {
    background-color: var(--bg-section);
    padding: 80px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}
.stat-card {
    padding: 20px;
}
.stat-card .counter {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold);
    display: inline-block;
    font-variant-numeric: tabular-nums;
}
.stat-card .stat-suffix {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--gold);
    font-weight: 700;
}
.stat-card p {
    margin-top: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

/* Pull Quote (Melhoria 4) */
.pull-quote {
    position: relative;
    padding: 3rem 3rem 2rem 4rem;
    margin: 3rem auto;
    max-width: 800px;
    background: var(--bg-card);
    border-left: 3px solid var(--gold);
    border-radius: 0 8px 8px 0;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--text-primary);
    text-wrap: balance;
}
.pull-quote::before {
    content: "\201C";
    position: absolute;
    top: -0.1em;
    left: 0.2em;
    font-family: var(--font-heading);
    font-size: 6rem;
    font-style: normal;
    color: rgba(198, 163, 85, 0.12);
    line-height: 1;
    pointer-events: none;
}
.pull-quote::after {
    content: "— " attr(data-author);
    display: block;
    margin-top: 1.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-style: normal;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    text-align: right;
}

/* Deadline Timer (Melhoria 5) */
.deadline-indicator {
    background: rgba(198, 163, 85, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-family: var(--font-body);
    margin-top: 24px;
}
.deadline-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}
.deadline-timer {
    display: flex;
    align-items: center;
    gap: 6px;
}
.deadline-timer span {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    min-width: 2ch;
    text-align: center;
}
.deadline-timer small {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-left: 2px;
    margin-right: 8px;
}
.deadline-indicator.is-urgent {
    background: rgba(198, 163, 85, 0.1);
    border-color: var(--gold);
}
.deadline-indicator.is-urgent .deadline-timer span {
    color: var(--gold);
}
.deadline-indicator.is-expired .deadline-timer {
    display: none;
}
.deadline-indicator.is-expired::after {
    content: "Prazo encerrado • Entre em contato para próximas datas";
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
    margin-left: 8px;
}

/* ---- Responsividade ---- */
@media (max-width: 768px) {
    .hero-section { padding: 140px 0 80px; }
    .hero-section h1 { font-size: 2rem; }
    .hero-section .subtitle { font-size: 1rem; }
    .cta-button { width: 100%; padding: 16px 20px; font-size: 0.85rem; }
    section { padding: 60px 0; }
    section h2 { font-size: 2rem; }
    .split-layout { flex-direction: column; gap: 30px; }
    .split-layout.reverse { flex-direction: column; }
    .bento-grid { display: flex; flex-direction: column; gap: 16px; }
    .card { padding: 28px 22px; }
    .nav-links { display: none; }
    .whatsapp-float { bottom: 20px; right: 20px; padding: 12px 18px; }
    .stats-grid { gap: 16px; }
    .stat-card .counter { font-size: 2.5rem; }
    .stat-card .stat-suffix { font-size: 1.8rem; }
    .pull-quote { padding: 2rem 1.5rem 1.5rem 2.5rem; margin: 2rem 0; font-size: 1.1rem; }
    .pull-quote::before { font-size: 4rem; }
    .deadline-indicator { flex-direction: column; gap: 8px; padding: 10px 16px; }
}

/* ---- Acessibilidade: Respeitar preferência de movimento reduzido ---- */
@media (prefers-reduced-motion: reduce) {
    .card, .faq-item, .check-list li {
        animation: none;
    }
    .reading-progress {
        animation: none;
        transform: scaleX(1);
    }
}

/* ---- Cookie Consent Banner (LGPD) ---- */
.cookie-banner {
    position: fixed;
    bottom: -250px; /* Hidden by default */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 24px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.is-visible {
    bottom: 30px;
}
.cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.cookie-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}
.cookie-link {
    color: var(--gold);
    text-decoration: underline;
    transition: color 0.3s;
}
.cookie-link:hover {
    color: var(--gold-light);
}
.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
.cookie-btn {
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}
.cookie-btn-primary {
    background: var(--gold-gradient);
    color: var(--bg-dark);
    border: none;
}
.cookie-btn-primary:hover {
    box-shadow: 0 4px 15px rgba(198, 163, 85, 0.3);
    transform: translateY(-1px);
}
.cookie-btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}
.cookie-btn-secondary:hover {
    border-color: var(--gold);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .cookie-banner.is-visible {
        bottom: 20px;
    }
    .cookie-banner-inner {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    .cookie-text {
        text-align: center;
    }
    .cookie-actions {
        flex-direction: column;
        gap: 8px;
    }
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}

