/* ==========================================================================
   CSS DESIGN SYSTEM - MOBILE-FIRST & SEO OPTIMIZED (LUXURY LEGAL TEMPLATE)
   ========================================================================== */

/* 1. VARIÁVEIS DE DESIGN E CORES */
:root {
    --color-primary: #0b132b;        /* Azul Marinho Profundo */
    --color-primary-light: #1c2541;  /* Azul Marinho Médio */
    --color-accent: #d4af37;         /* Dourado Nobre */
    --color-accent-hover: #b59226;   
    --color-whatsapp: #25d366;       /* Verde WhatsApp */
    --color-whatsapp-dark: #1da851;
    --color-text-main: #1e293b;      /* Grafite Escuro */
    --color-text-muted: #64748b;     /* Cinza Secundário */
    --color-bg-light: #f8fafc;       /* Fundo Claro */
    --color-bg-card: #ffffff;        /* Branco Puro */
    --color-border: #e2e8f0;         /* Linha sutil */
    
    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 20px rgba(11, 19, 43, 0.1);
    --shadow-lg: 0 16px 36px rgba(11, 19, 43, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. RESET E BASE MOBILE-FIRST */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 75px; /* Espaço para botão flutuante mobile */
}

/* LAYOUT CONTAINER */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* 3. NAVEGAÇÃO E CABEÇALHO (100% TRANSPARENTE E FLUTUANTE - SEM BARRA DEMARCADA) */
.site-header {
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: none;
    padding: 1.25rem 0;
    border-bottom: none;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.navbar-rn-svg-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.adv-name {
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.adv-oab {
    font-size: 0.72rem;
    color: var(--color-accent);
    font-weight: 600;
}

/* Esconder menu de texto no mobile para dar foco aos CTAs */
.main-nav {
    display: none;
}

.btn-cta-header {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--color-whatsapp);
    color: #ffffff;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-cta-header:hover {
    background-color: var(--color-whatsapp-dark);
    transform: translateY(-1px);
}

/* 4. HERO SECTION (COM MARCA D'ÁGUA DOURADA RN DE ALTA CONVERSÃO) */
.hero-section {
    background: linear-gradient(180deg, #0b132b 0%, #0e1c3e 100%);
    color: #ffffff;
    padding: 6.5rem 0 3.5rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* MARCA D'ÁGUA VETORIAL PURA DO RN NO FUNDO AZUL (SEM NENHUMA CAIXA OU BORDA) */
.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    max-width: 90vw;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ctext x='50%25' y='46%25' dominant-baseline='central' text-anchor='middle' fill='%23ffffff' font-family='sans-serif' font-weight='900' font-size='100' letter-spacing='-4'%3ERN%3C/text%3E%3Ctext x='50%25' y='78%25' dominant-baseline='central' text-anchor='middle' fill='%23d4af37' font-family='sans-serif' font-weight='800' font-size='18' letter-spacing='4'%3EADVOCACIA%3C/text%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.05; /* Transparência sutilíssima de 5% sem nenhuma caixa */
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
}

.hero-brand-badge {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.hero-logo-img {
    max-width: 260px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,0.7));
    border-radius: var(--radius-sm);
}

.badge-urgencia {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: rgba(212, 175, 55, 0.18);
    color: var(--color-accent);
    border: 1px solid rgba(212, 175, 55, 0.45);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: 1rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
    line-height: 1.65;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle strong {
    color: var(--color-accent);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 480px;
    background-color: var(--color-whatsapp);
    color: #ffffff;
    padding: 1.15rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.25);
}

.btn-cta-primary:hover {
    background-color: var(--color-whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55);
}

.cta-microcopy {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.65rem;
    text-align: center;
}

.hero-trust-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    width: 100%;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #cbd5e1;
    font-weight: 500;
}

.trust-icon {
    color: var(--color-accent);
    font-weight: bold;
}

/* Esconder bloco de mídia duplicado no mobile para o hero ficar limpo */
.hero-media {
    display: none;
}

/* 5. SEÇÕES GERAIS E CARDS DE CONTEÚDO */
section {
    padding: 3.5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.section-description {
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.card-item {
    background-color: var(--color-bg-card);
    padding: 1.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.6rem;
}

.card-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* 6. PASSO A PASSO (TIMELINE) */
.section-passos {
    background-color: #ffffff;
}

.steps-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.step-card {
    background-color: var(--color-bg-light);
    padding: 1.75rem;
    border-radius: var(--radius-md);
    position: relative;
    border-left: 4px solid var(--color-accent);
}

.step-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.step-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.cta-mid-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #ffffff;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.cta-mid-banner h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.cta-mid-banner p {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta-secondary {
    display: inline-block;
    background-color: var(--color-whatsapp);
    color: #ffffff;
    padding: 1rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.btn-cta-secondary:hover {
    background-color: var(--color-whatsapp-dark);
    transform: translateY(-2px);
}

/* 7. SOBRE O ADVOGADO (COM A FOTO OFICIAL DO DR. RICARDO NECCHI) */
.section-sobre {
    background-color: #ffffff;
}

.sobre-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.sobre-media {
    width: 100%;
    max-width: 440px;
    display: flex;
    justify-content: center;
}

.sobre-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    border: 3px solid var(--color-accent);
}

.sobre-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sobre-text {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.sobre-text strong {
    color: var(--color-primary);
}

.sobre-highlights {
    list-style: none;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background-color: var(--color-bg-light);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.sobre-highlights li {
    font-size: 0.95rem;
    color: var(--color-primary);
}

/* 8. FAQ ACCORDION (SEMÂNTICO) */
.section-faq {
    background-color: var(--color-bg-light);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: #ffffff;
    transition: var(--transition);
}

.faq-item[open] {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 1.25rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '➕';
    font-size: 0.9rem;
    transition: var(--transition);
}

.faq-item[open] .faq-question::after {
    content: '➖';
}

.faq-answer {
    padding: 0 1.25rem 1.25rem 1.25rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 9. RODAPÉ */
.site-footer {
    background-color: var(--color-primary);
    color: #94a3b8;
    padding: 3rem 0 1.5rem 0;
    font-size: 0.85rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-rn-svg-logo {
    width: 38px;
    height: 38px;
    margin-bottom: 0.5rem;
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.footer-oab {
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.footer-ethics {
    font-size: 0.8rem;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    text-align: center;
}

/* 10. BOTÃO FLUTUANTE DO WHATSAPP (OTIMIZADO PARA MOBILE-FIRST) */
.wsp-float-btn {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    background-color: var(--color-whatsapp);
    color: #ffffff;
    padding: 0.85rem 1.25rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.wsp-float-btn:hover {
    background-color: var(--color-whatsapp-dark);
    transform: scale(1.05);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   MEDIA QUERIES (DESKTOP PROGRESSIVE ENHANCEMENT)
   ========================================================================== */

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .hero-trust-badges {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-timeline {
        grid-template-columns: repeat(3, 1fr);
    }

    .btn-cta-primary {
        width: auto;
        padding: 1.15rem 2.5rem;
    }
}

@media (min-width: 1024px) {
    .main-nav {
        display: block;
    }

    .nav-list {
        display: flex;
        gap: 1.75rem;
        list-style: none;
    }

    .nav-list a {
        color: #ffffff;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95rem;
        transition: var(--transition);
    }

    .nav-list a:hover {
        color: var(--color-accent);
    }

    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .sobre-container {
        flex-direction: row;
        align-items: center;
        gap: 3.5rem;
    }

    .sobre-media, .sobre-content {
        flex: 1;
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Remove a barra e a badge do Netlify */
netlify-drawer,
net-lify-drawer,
#netlify-drawer-iframe,
#netlify-badge-content,
[id*="netlify"],
[class*="netlify-drawer"],
iframe[src*="netlify"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
