/**
 * Barbosa & Friederich Advocacia — Stylesheet
 * Identidade Grafite & Dourado | Mobile-First | Conversão | Performance
 */

/* ==========================================================================
   Design Tokens & CSS Variables (Linguagem Visual Premium V3)
   ========================================================================== */
:root {
    /* Color Palette: Grafite Profundo & Preto Base */
    --bg-base: #101114;
    --bg-surface: #15171C;
    --bg-surface-1: #15171C;
    --bg-surface-2: #1B1E25;
    --bg-surface-3: #22262F;
    --bg-surface-elevated: #1B1E25;
    --bg-surface-card: #16181F;
    --bg-surface-hover: #1E212A;
    --bg-glass-hero: rgba(16, 17, 20, 0.82);
    --bg-glass-card: rgba(22, 24, 30, 0.70);

    /* Text Colors (Hierarquia Quente V3) */
    --text-primary: #F7F5F0;
    --text-secondary: #9E9FA6;
    --text-muted: #6C6E76;
    --text-gold: #F0D78C;

    /* Dourado Nobre & Destaques Luminosos V3 */
    --accent-gold: #D6B45A;
    --accent-gold-light: #F0D78C;
    --accent-gold-dark: #C49D42;
    --accent-gold-glow: rgba(214, 180, 90, 0.28);
    --accent-gold-subtle: rgba(214, 180, 90, 0.12);
    --accent-gold-border: rgba(214, 180, 90, 0.30);

    /* Aliases para compatibilidade total com regras V4 existentes */
    --gold-primary: #D6B45A;
    --gold-light: #F0D78C;
    --gold-deep: #C49D42;
    --gold-subtle: rgba(214, 180, 90, 0.12);
    --gold-border: rgba(214, 180, 90, 0.28);
    --gold-glow: rgba(214, 180, 90, 0.28);

    /* Bordas & Linhas Finas Sofisticadas */
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-card: rgba(255, 255, 255, 0.09);
    --border-gold: rgba(214, 180, 90, 0.28);
    --border-hover: rgba(214, 180, 90, 0.60);

    /* Sombras & Profundidade V3 */
    --shadow-card: 0 14px 34px -10px rgba(0, 0, 0, 0.7);
    --shadow-gold-glow: 0 0 35px -8px rgba(214, 180, 90, 0.30);
    --shadow-gold-lg: 0 0 70px -15px rgba(214, 180, 90, 0.22);

    /* Semantic Colors */
    --color-success: #2ECC71;
    --color-warning: #F39C12;
    --color-danger: #E74C3C;
    --color-info: #3498DB;

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing & Layout */
    --container-max: 1240px;
    --header-height: 72px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Transitions (Curvas de Suavidade V3) */
    --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   CSS Reset & Base Rules (Mobile-First)
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    color-scheme: dark;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-base);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

/* Container Responsivo sem overflow */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 18px;
    padding-right: 18px;
}

@media (min-width: 480px) {
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* Acessibilidade */
:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.v4-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    background-color: rgba(16, 17, 20, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.v4-header.scrolled {
    background-color: rgba(16, 17, 20, 0.96);
    border-bottom-color: var(--gold-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.v4-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.v4-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
    flex-shrink: 0;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.v4-brand:hover,
.v4-brand:focus-visible {
    opacity: 0.95;
    transform: translateY(-1px);
}

/* Logomarca Oficial V4: Responsiva, mantendo proporção original 3:1 (2172x724), sem distorção nem fundo sólido */
.v4-brand-logo {
    display: block;
    height: clamp(30px, 3.5vw + 18px, 44px);
    width: auto;
    max-height: 44px;
    object-fit: contain;
    aspect-ratio: 2172 / 724;
}

/* Marca no Rodapé Institucional */
.v4-footer-brand {
    display: inline-block;
    margin-bottom: 12px;
}

.v4-footer-brand-logo {
    height: 48px;
    max-height: 48px;
    width: auto;
    max-width: 190px;
    aspect-ratio: 2172 / 724;
}

@media (min-width: 768px) {
    .v4-footer-brand-logo {
        height: 52px;
        max-height: 52px;
        max-width: 210px;
    }
}

/* Classes legadas de compatibilidade */
.v4-brand-mark,
.v4-brand-text {
    display: none;
}

/* Menu Desktop */
.v4-nav-menu {
    display: none;
    align-items: center;
    gap: 24px;
}

@media (min-width: 992px) {
    .v4-nav-menu {
        display: flex;
        margin-left: auto;
        margin-right: 28px;
    }
}

.v4-nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
    position: relative;
}

.v4-nav-link:hover {
    color: var(--text-primary);
}

.v4-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: width var(--transition-fast);
    border-radius: 2px;
}

.v4-nav-link:hover::after {
    width: 100%;
}

/* Item Blog no Menu V4.3: Contorno dourado fino, sutil destaque, estilo pill */
.v4-nav-blog-pill {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(212, 175, 55, 0.42);
    background: rgba(212, 175, 55, 0.05);
    color: var(--gold-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
    font-weight: 600;
    font-size: 0.88rem;
}

.v4-nav-blog-pill::after {
    display: none !important;
}

.v4-nav-blog-pill:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: var(--gold-primary);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.22);
}

.v4-nav-blog-pill svg {
    color: var(--gold-primary);
    opacity: 0.85;
    transition: transform var(--transition-fast);
}

.v4-nav-blog-pill:hover svg {
    transform: translate(1px, -1px);
    opacity: 1;
}

.v4-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 480px) {
    .v4-nav-actions {
        gap: 8px;
    }

    .v4-nav-actions .btn-v4-sm {
        padding: 8px 12px;
        font-size: 0.82rem;
        min-height: 40px;
    }
}

@media (max-width: 380px) {
    .v4-nav-actions .btn-v4-sm span {
        display: none;
    }

    .v4-nav-actions .btn-v4-sm {
        padding: 9px;
        width: 40px;
        height: 40px;
        min-height: 40px;
        justify-content: center;
    }
}

/* ==========================================================================
   Seletor de Idiomas V4.3 — Popover Compacto (Globo + Bandeira + Dropdown)
   ========================================================================== */
.v4-lang-popover-wrap {
    position: relative;
    display: none;
}

@media (min-width: 992px) {
    .v4-lang-popover-wrap {
        display: inline-block;
    }
}

.v4-lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 6px 12px;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

.v4-lang-trigger:hover,
.v4-lang-trigger.active,
.v4-lang-popover-wrap.open .v4-lang-trigger {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    color: #ffffff;
}

.v4-lang-trigger.active,
.v4-lang-popover-wrap.open .v4-lang-trigger {
    border-color: var(--gold-border);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.18);
}

.v4-lang-globe-icon {
    color: var(--gold-primary);
    flex-shrink: 0;
}

.v4-lang-trigger-flag {
    font-size: 0.95rem;
    line-height: 1;
}

.v4-lang-trigger-label {
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.v4-lang-chevron {
    color: var(--text-muted);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.v4-lang-trigger.active .v4-lang-chevron,
.v4-lang-popover-wrap.open .v4-lang-chevron {
    transform: rotate(180deg);
    color: var(--gold-light);
}

.v4-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 176px;
    background: #14161B;
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 6px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65), 0 0 16px rgba(212, 175, 55, 0.12);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.v4-lang-dropdown.open,
.v4-lang-popover-wrap.open .v4-lang-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.v4-lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.v4-lang-option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.v4-lang-option.active {
    background: var(--gold-subtle);
    color: var(--gold-light);
    font-weight: 600;
}

.v4-lang-flag {
    font-size: 1rem;
    line-height: 1;
}

.v4-lang-name {
    flex: 1;
}

.v4-lang-check {
    color: var(--gold-primary);
    flex-shrink: 0;
}

/* Mobile Toggle (Área de toque otimizada 44x44px) */
.v4-mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    gap: 5px;
    z-index: 1010;
}

@media (min-width: 992px) {
    .v4-mobile-toggle {
        display: none;
    }
}

.v4-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.v4-mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.v4-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.v4-mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.v4-mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 17, 20, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999;
    padding: 24px 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
    overflow-y: auto;
}

.v4-mobile-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.v4-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.v4-nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.v4-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v4-mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    min-height: 52px;
}

.v4-mobile-link:active {
    background: var(--gold-subtle);
    border-color: var(--gold-border);
}

.v4-mobile-link-blog {
    border-color: rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.05);
    color: var(--gold-light);
}

.v4-mobile-link-blog svg {
    color: var(--gold-primary);
}

/* Painel de Seleção de Idioma no Menu Mobile */
.v4-mobile-lang-box {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
}

.v4-mobile-lang-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.v4-mobile-lang-title svg {
    color: var(--gold-primary);
    flex-shrink: 0;
}

.v4-mobile-lang-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.v4-mobile-lang-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
    min-height: 48px;
    transition: all var(--transition-fast);
}

.v4-mobile-lang-btn:hover,
.v4-mobile-lang-btn:active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.v4-mobile-lang-btn.active {
    background: var(--gold-subtle);
    border-color: var(--gold-border);
    color: var(--gold-light);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

/* ==========================================================================
   Buttons & Badges (Touch-Friendly)
   ========================================================================== */
.btn-v4 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.96rem;
    line-height: 1.2;
    padding: 14px 24px;
    min-height: 48px; /* Target táctil padrão */
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-smooth);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-v4-primary {
    background: linear-gradient(135deg, #D6B45A 0%, #E8CB77 50%, #C49D42 100%);
    color: #101114;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(214, 180, 90, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-smooth);
}

.btn-v4-primary:hover {
    background: linear-gradient(135deg, #F0D78C 0%, #E8CB77 100%);
    box-shadow: 0 6px 26px rgba(214, 180, 90, 0.55);
    transform: translateY(-2px);
    color: #0A0B0D;
}

.btn-v4-primary:focus-visible {
    outline: 2px solid var(--accent-gold-light);
    outline-offset: 3px;
}

.btn-v4-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(214, 180, 90, 0.35);
}

.btn-v4-secondary {
    background: rgba(16, 17, 20, 0.7);
    color: var(--text-primary);
    border: 1px solid var(--accent-gold-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--transition-smooth);
}

.btn-v4-secondary:hover {
    background: rgba(214, 180, 90, 0.12);
    border-color: var(--accent-gold);
    color: var(--text-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.btn-v4-secondary:focus-visible {
    outline: 2px solid var(--accent-gold-border);
    outline-offset: 3px;
}

.btn-v4-sm {
    padding: 10px 18px;
    min-height: 40px;
    font-size: 0.86rem;
    border-radius: var(--radius-sm);
}

.btn-v4-lg {
    padding: 16px 28px;
    min-height: 54px;
    font-size: 1.02rem;
}

.btn-v4-full {
    width: 100%;
}

/* Badges & Sweep Shimmer V3 */
@keyframes goldSweep {
    0% { left: -100%; }
    40%, 100% { left: 200%; }
}

.v4-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    width: fit-content;
    max-width: fit-content;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(214, 180, 90, 0.10);
    border: 1px solid var(--accent-gold-border);
    color: var(--text-gold);
    position: relative;
    overflow: hidden;
}

.v4-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(240, 215, 140, 0.25), transparent);
    animation: goldSweep 4s ease-in-out infinite;
}

.v4-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-gold-light);
    box-shadow: 0 0 10px var(--accent-gold);
}

.v4-badge.badge-danger {
    background: rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.4);
    color: #FF7675;
}

.v4-badge.badge-warning {
    background: rgba(243, 156, 18, 0.15);
    border-color: rgba(243, 156, 18, 0.4);
    color: #FDCB6E;
}

.v4-badge.badge-success {
    background: rgba(46, 204, 113, 0.15);
    border-color: rgba(46, 204, 113, 0.4);
    color: #55EFC4;
}

.v4-badge.badge-info {
    background: rgba(52, 152, 219, 0.15);
    border-color: rgba(52, 152, 219, 0.4);
    color: #74B9FF;
}

/* Text Gradient V3 Style */
.v4-gold-text {
    background: linear-gradient(135deg, #F7F5F0 30%, #F0D78C 80%, #D6B45A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

/* ==========================================================================
   Hero Section V4.4 (Fotografia Institucional Integrada & Iluminação Nobre V3)
   ========================================================================== */
.v4-hero {
    position: relative;
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 48px;
    overflow: hidden;
    background-color: var(--bg-base);
}

/* Brilho Dourado Ambiente V3 no Canto Superior Esquerdo */
.v4-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 650px;
    height: 550px;
    background: radial-gradient(circle at 12% 22%, rgba(214, 180, 90, 0.08), transparent 60%);
    pointer-events: none;
    z-index: 1;
}

@media (min-width: 992px) {
    .v4-hero {
        min-height: 84vh;
        display: flex;
        align-items: center;
        padding-top: calc(var(--header-height) + 36px);
        padding-bottom: 48px;
        position: relative;
    }
}

.v4-hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.v4-hero-grid {
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .v4-hero-grid {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
}

.v4-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
    position: relative;
    z-index: 4;
}

@media (min-width: 992px) {
    .v4-hero-content {
        max-width: 630px;
    }
}

.v4-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.4vw, 3.75rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin-top: 16px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.v4-hero-description {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 26px;
    max-width: 610px;
}

/* Bloco Fotográfico Institucional Mobile (Aparece estritamente abaixo de 992px) */
.v4-hero-mobile-img-box {
    position: relative;
    width: 100%;
    height: clamp(260px, 68vw, 380px);
    margin: 20px 0 24px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #0d0e12;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

@media (min-width: 992px) {
    .v4-hero-mobile-img-box {
        display: none !important;
    }
}

.v4-hero-mobile-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 18%;
}

.v4-hero-mobile-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(214, 180, 90, 0.12) 0%, transparent 65%),
        linear-gradient(180deg, rgba(16, 17, 20, 0.65) 0%, transparent 16%, transparent 82%, rgba(16, 17, 20, 0.92) 100%),
        linear-gradient(90deg, rgba(16, 17, 20, 0.35) 0%, transparent 10%, transparent 90%, rgba(16, 17, 20, 0.35) 100%);
}

/* Desktop Hero Visual Wrapper (Confinado com posicionamento responsivo para ultrawide) */
.v4-hero-visual-wrap {
    display: none;
}

@media (min-width: 992px) {
    .v4-hero-visual-wrap {
        display: block;
        position: absolute;
        top: 0;
        right: max(0px, calc(50% - 660px));
        bottom: 0;
        width: 54%;
        max-width: 880px;
        height: 100%;
        overflow: hidden;
        pointer-events: none;
        z-index: 1;
        -webkit-mask-image: linear-gradient(to right, #000 0%, #000 90%, rgba(0, 0, 0, 0.97) 92.5%, rgba(0, 0, 0, 0.88) 94.5%, rgba(0, 0, 0, 0.65) 96.5%, rgba(0, 0, 0, 0.35) 98%, rgba(0, 0, 0, 0.12) 99.2%, transparent 100%);
        mask-image: linear-gradient(to right, #000 0%, #000 90%, rgba(0, 0, 0, 0.97) 92.5%, rgba(0, 0, 0, 0.88) 94.5%, rgba(0, 0, 0, 0.65) 96.5%, rgba(0, 0, 0, 0.35) 98%, rgba(0, 0, 0, 0.12) 99.2%, transparent 100%);
    }

    .v4-hero-visual-img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: 52% 24%;
        will-change: transform;
        transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .v4-hero-visual-overlay {
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 2;
        background:
            /* Gradiente horizontal da esquerda suavizado para não escurecer a advogada da esquerda */
            linear-gradient(90deg, #101114 0%, rgba(16, 17, 20, 0.96) 16%, rgba(16, 17, 20, 0.55) 30%, rgba(16, 17, 20, 0.08) 46%, transparent 62%),
            /* Vinheta superior e inferior para suavizar emendas com header e indicadores */
            linear-gradient(180deg, rgba(16, 17, 20, 0.85) 0%, transparent 18%, transparent 80%, #0B0C0E 100%),
            /* Vinheta ultrafina na extremidade direita sem sobrepor sombra à imagem */
            linear-gradient(270deg, rgba(16, 17, 20, 0.45) 0%, rgba(16, 17, 20, 0.12) 2%, transparent 5%),
            /* Halo dourado de iluminação de fundo */
            radial-gradient(ellipse at 60% 38%, rgba(214, 180, 90, 0.14) 0%, transparent 60%);
    }
}

/* Classes legadas de compatibilidade (para scripts ou estilizações herdadas) */
.v4-hero-visual-stage,
.v4-hero-bg-stage {
    display: none;
}

.v4-hero-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

@media (min-width: 480px) {
    .v4-hero-cta {
        flex-direction: row;
        align-items: center;
    }
}

.v4-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

.v4-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-muted);
}

.v4-trust-item svg {
    color: var(--gold-primary);
    flex-shrink: 0;
}

/* ==========================================================================
   Animações Suaves Inspiradas na Linguagem Visual Kentro
   ========================================================================== */
@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes heroImageReveal {
    0% {
        opacity: 0;
        transform: translate3d(24px, 0, 0) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes goldDotPulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(212, 175, 55, 0.35);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 16px rgba(212, 175, 55, 0.7);
        transform: scale(1.1);
    }
}

.hero-anim-1 {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-anim-2 {
    animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.hero-anim-3 {
    animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.36s both;
}

.hero-anim-4 {
    animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-anim-5 {
    animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}

.hero-anim-img {
    animation: heroImageReveal 1.25s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero-anim-metrics {
    animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.75s both;
}

.v4-badge-dot {
    animation: goldDotPulse 3.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .hero-anim-1,
    .hero-anim-2,
    .hero-anim-3,
    .hero-anim-4,
    .hero-anim-5,
    .hero-anim-img,
    .hero-anim-metrics,
    .v4-hero-img,
    .v4-badge-dot {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
}

/* ==========================================================================
   Indicadores Institucionais (Standalone Section V4.4 - V3 Impact)
   ========================================================================== */
.v4-indicators-section {
    background-color: #0B0C0E;
    border-top: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-subtle);
    padding: 48px 0;
    position: relative;
    z-index: 2;
}

.v4-indicators-section .v4-metrics-strip {
    margin-top: 0;
}

/* ==========================================================================
   Metrics & Authority Strip (Alto Impacto Visual V3 Style)
   ========================================================================== */
.v4-metrics-strip {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 576px) {
    .v4-metrics-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (min-width: 992px) {
    .v4-metrics-strip {
        grid-template-columns: repeat(4, 1fr);
        gap: 22px;
    }
}

.v4-metric-card {
    background: linear-gradient(180deg, #181A20 0%, #131418 100%);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

/* Linha Superior Dourada V3 */
.v4-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.55;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.v4-metric-card:hover {
    border-color: var(--accent-gold-border);
    box-shadow: var(--shadow-card), var(--shadow-gold-glow);
    transform: translateY(-4px);
}

.v4-metric-card:hover::before {
    opacity: 1;
    transform: scaleX(1.05);
}

.v4-metric-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.v4-metric-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(214, 180, 90, 0.12);
    border: 1px solid rgba(214, 180, 90, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.v4-metric-header svg {
    color: var(--accent-gold);
    flex-shrink: 0;
}

.v4-metric-pill {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-gold-light);
    background: var(--accent-gold-subtle);
    border: 1px solid var(--accent-gold-border);
    padding: 4px 11px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.v4-metric-number {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
    margin-top: 6px;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.v4-metric-text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #CBD5E1;
    margin-top: auto;
}

@media (max-width: 575px) {
    .v4-metrics-strip {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 24px;
    }
    .v4-metric-card {
        padding: 20px 18px;
    }
    .v4-metric-number {
        font-size: 1.30rem;
    }
    .v4-metric-text {
        font-size: 0.88rem;
        line-height: 1.5;
    }
}

/* ==========================================================================
   Sections Structure & Headers (Ritmo Visual V3)
   ========================================================================== */
.v4-section {
    padding-top: 64px;
    padding-bottom: 64px;
    position: relative;
}

@media (min-width: 992px) {
    .v4-section {
        padding-top: 92px;
        padding-bottom: 92px;
    }
}

.v4-section-alt {
    background-color: var(--bg-surface-1);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.v4-section-header {
    text-align: center;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 44px;
}

@media (min-width: 992px) {
    .v4-section-header {
        margin-bottom: 60px;
    }
}

.v4-section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.6vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-top: 14px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.v4-section-subtitle {
    font-size: clamp(0.96rem, 2vw, 1.08rem);
    line-height: 1.65;
    color: var(--text-secondary);
}

/* ==========================================================================
   Soluções & Serviços Especializados (7 Categorias & Filtro por Afinidade)
   ========================================================================== */
.v4-services-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    margin-bottom: 32px;
}

.v4-filter-chip {
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

.v4-filter-chip:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.08);
}

.v4-filter-chip.active {
    background: var(--gold-subtle);
    color: var(--gold-light);
    border-color: var(--gold-border);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.15);
}

.v4-solutions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 992px) {
    .v4-solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

.v4-solution-card {
    background: var(--bg-surface-1);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

/* Brilho Radial V3 no Topo Direito do Card */
.v4-solution-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(214, 180, 90, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
}

.v4-solution-card.v4-card-hidden {
    display: none !important;
}

@media (min-width: 480px) {
    .v4-solution-card {
        padding: 34px 30px;
    }
}

.v4-solution-card:hover {
    border-color: var(--accent-gold-border);
    box-shadow: var(--shadow-card), var(--shadow-gold-glow);
    transform: translateY(-5px);
}

.v4-solution-card:hover::before {
    opacity: 1;
}

.v4-card-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.v4-solution-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--accent-gold-subtle);
    border: 1px solid var(--accent-gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold-light);
    transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.v4-solution-card:hover .v4-solution-icon-wrap {
    transform: scale(1.06);
    background: rgba(214, 180, 90, 0.20);
    border-color: var(--accent-gold);
}

.v4-solution-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.v4-solution-description {
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.v4-solution-bullets {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 26px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.v4-solution-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.v4-solution-bullets li svg {
    color: var(--gold-primary);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 3px;
}

.v4-solution-cta-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: auto;
}

/* ==========================================================================
   Quadro Comparativo: Saída Definitiva vs. Irregularidade (Estilo Banner V3)
   ========================================================================== */
.v4-highlight-banner {
    background: linear-gradient(135deg, rgba(22, 24, 30, 0.96) 0%, rgba(16, 17, 20, 0.98) 100%);
    border: 1px solid var(--accent-gold-border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    box-shadow: var(--shadow-card), var(--shadow-gold-lg);
    position: relative;
    overflow: hidden;
}

.v4-highlight-banner::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(214, 180, 90, 0.16), transparent 70%);
    pointer-events: none;
}

@media (min-width: 768px) {
    .v4-highlight-banner {
        padding: 44px 36px;
    }
}

.v4-highlight-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 992px) {
    .v4-highlight-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 48px;
        align-items: center;
    }
}

.v4-comparison-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.v4-comp-item {
    padding: 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.v4-comp-danger {
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.25);
    color: #FFB8B8;
}

.v4-comp-danger svg {
    color: #E74C3C;
    flex-shrink: 0;
    margin-top: 2px;
}

.v4-comp-success {
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.25);
    color: #D1F2D9;
}

.v4-comp-success svg {
    color: #2ECC71;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==========================================================================
   Metodologia em 4 Etapas
   ========================================================================== */
.v4-process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .v4-process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .v4-process-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.v4-process-card {
    background: var(--bg-surface-1);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    position: relative;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.v4-process-card:hover {
    border-color: var(--accent-gold-border);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card), var(--shadow-gold-glow);
}

.v4-step-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--accent-gold-light), #C49D42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.v4-process-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.v4-process-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

/* ==========================================================================
   Prova Social Editorial: “Histórias de quem parou de perder dinheiro.” (V3 Style)
   ========================================================================== */
.v4-stories-editorial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 36px;
}

@media (min-width: 992px) {
    .v4-stories-editorial-grid {
        grid-template-columns: 1.25fr 1fr;
        align-items: stretch;
        gap: 28px;
    }
}

.v4-story-featured-card {
    background: linear-gradient(135deg, rgba(25, 28, 35, 0.96) 0%, rgba(18, 20, 25, 0.98) 100%);
    border: 1px solid var(--accent-gold-border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-card), var(--shadow-gold-glow);
    position: relative;
    overflow: hidden;
}

.v4-story-featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(214, 180, 90, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.v4-story-featured-badge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.v4-story-quote {
    font-family: var(--font-heading);
    font-size: clamp(1.08rem, 2.2vw, 1.28rem);
    font-weight: 500;
    line-height: 1.55;
    color: var(--text-primary);
    margin: 0 0 24px 0;
    font-style: italic;
    position: relative;
}

.v4-story-featured-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

@media (min-width: 576px) {
    .v4-story-featured-meta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.v4-story-author-info strong {
    display: block;
    font-size: 0.96rem;
    color: var(--text-primary);
}

.v4-story-author-info span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.v4-story-result-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.35);
    color: #55EFC4;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.v4-stories-secondary-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.v4-stories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .v4-stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

.v4-story-card {
    background: var(--bg-surface-1);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

@media (min-width: 480px) {
    .v4-story-card {
        padding: 28px 24px;
    }
}

.v4-story-card:hover {
    border-color: var(--accent-gold-border);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card), var(--shadow-gold-glow);
}

.v4-story-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.v4-story-location {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-gold-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.v4-story-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.v4-story-title {
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.v4-story-detail {
    margin-bottom: 12px;
}

.v4-story-detail strong {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 3px;
}

.v4-story-challenge strong {
    color: #FF7675;
}

.v4-story-solution strong {
    color: var(--accent-gold-light);
}

.v4-story-result {
    background: rgba(46, 204, 113, 0.08);
    border-left: 3px solid #2ECC71;
    padding: 10px 12px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: 14px;
}

.v4-story-result strong {
    color: #55EFC4;
    font-size: 0.78rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.v4-story-result p {
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text-primary);
}

.v4-disclaimer-box {
    margin-top: 32px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: center;
}

/* ==========================================================================
   Simulador Interativo Preliminar (Kentro Calculator / Padrão Visual V3)
   ========================================================================== */
.v4-kentro-calculator {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 36px;
}

@media (min-width: 992px) {
    .v4-kentro-calculator {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 36px;
        align-items: start;
    }
}

.v4-calc-panel-left {
    background: var(--bg-surface-1);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
    .v4-calc-panel-left {
        padding: 36px 32px;
    }
}

.v4-calc-panel-right {
    position: relative;
}

@media (min-width: 992px) {
    .v4-calc-panel-right {
        position: sticky;
        top: calc(var(--header-height) + 24px);
    }
}

.v4-live-assessment-card {
    background: linear-gradient(135deg, rgba(25, 28, 35, 0.96) 0%, rgba(18, 20, 25, 0.98) 100%);
    border: 1px solid var(--accent-gold-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-card), 0 0 32px rgba(214, 180, 90, 0.15);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.v4-live-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 14px;
}

.v4-live-pulse-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-gold-light);
}

.v4-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-gold-light);
    box-shadow: 0 0 10px var(--accent-gold);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.5;
    }
}

.v4-live-title {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.v4-live-criteria-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.v4-tag-item {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.v4-tag-item.highlight {
    background: var(--accent-gold-subtle);
    border-color: var(--accent-gold-border);
    color: var(--accent-gold-light);
}

.v4-live-findings {
    background: rgba(16, 17, 20, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    min-height: 110px;
}

.v4-live-findings ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.v4-live-findings li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.v4-live-findings li svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--accent-gold-light);
}

.v4-sim-wrapper {
    background: var(--bg-surface-1);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 24px 18px;
    box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
    .v4-sim-wrapper {
        padding: 40px 36px;
    }
}

.sim-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 12px;
}

.sim-progress-fill {
    height: 100%;
    width: 20%;
    background: linear-gradient(90deg, var(--accent-gold-dark), var(--accent-gold-light));
    border-radius: var(--radius-full);
    transition: width var(--transition-smooth);
}

.sim-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-gold-light);
    margin-bottom: 24px;
}

.sim-step {
    display: none;
}

.sim-step.active {
    display: block;
    animation: fadeIn var(--transition-smooth);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.sim-question-title {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 3.2vw, 1.55rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.sim-question-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.sim-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

@media (min-width: 480px) {
    .sim-options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.sim-opt-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 40px 14px 18px;
    min-height: 52px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    font-family: var(--font-body);
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
    transition: all var(--transition-fast);
    position: relative;
    cursor: pointer;
}

.sim-opt-btn:hover {
    border-color: var(--accent-gold-border);
    background: rgba(214, 180, 90, 0.06);
    transform: translateY(-1px);
}

.sim-opt-btn.selected {
    background: var(--accent-gold-subtle);
    border-color: var(--accent-gold);
    color: var(--accent-gold-light);
    font-weight: 700;
    box-shadow: 0 0 16px rgba(214, 180, 90, 0.22);
}

.sim-opt-btn.selected::after {
    content: '✓';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--accent-gold-light);
}

.sim-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

/* Resultado do Simulador */
.sim-result {
    display: none;
}

.sim-result.active {
    display: block;
    animation: fadeIn var(--transition-smooth);
}

.sim-result-box {
    background: var(--bg-surface-1);
    border: 1px solid var(--accent-gold-border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card), var(--shadow-gold-glow);
}

@media (min-width: 480px) {
    .sim-result-box {
        padding: 32px 28px;
    }
}

.sim-result-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
    margin-top: 14px;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.sim-result-findings {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.sim-result-findings li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.sim-result-findings li svg {
    color: var(--accent-gold);
    flex-shrink: 0;
    margin-top: 3px;
}

.sim-legal-notice {
    font-size: 0.74rem;
    line-height: 1.5;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.25);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--accent-gold-border);
}

/* ==========================================================================
   Seção de Evidências: “Não prometemos. Comprovamos.” (5 Provas V3 Style)
   ========================================================================= */
.v4-five-proof-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 36px;
}

@media (min-width: 576px) {
    .v4-five-proof-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .v4-five-proof-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 14px;
    }
}

.v4-proof-card {
    background: var(--bg-surface-1);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: all var(--transition-smooth);
}

.v4-proof-card:hover {
    border-color: var(--accent-gold-border);
    transform: translateY(-4px);
    background: var(--bg-surface-2);
    box-shadow: var(--shadow-card), var(--shadow-gold-glow);
}

.v4-proof-card-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-gold-light);
}

.v4-proof-card-title {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0;
}

.v4-proof-card-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

/* ==========================================================================
   FAQ Section (Accordion Acessível V3 Style)
   ========================================================================== */
.v4-faq-container {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.v4-faq-item {
    background: var(--bg-surface-1);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.v4-faq-item.active {
    border-color: var(--accent-gold-border);
    box-shadow: var(--shadow-card), 0 0 20px rgba(214, 180, 90, 0.12);
}

.v4-faq-button {
    width: 100%;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-primary);
    min-height: 54px;
    transition: color var(--transition-fast);
}

.v4-faq-button:hover {
    color: var(--accent-gold-light);
}

.v4-faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform var(--transition-smooth), color var(--transition-fast);
}

.v4-faq-item.active .v4-faq-icon {
    transform: rotate(180deg);
    color: var(--accent-gold);
}

.v4-faq-content {
    display: none;
    padding: 0 22px 22px;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.v4-faq-item.active .v4-faq-content {
    display: block;
    animation: fadeIn var(--transition-fast);
}

/* ==========================================================================
   Final CTA Box (V3 High Impact Style)
   ========================================================================== */
.v4-cta-section {
    padding-top: 72px;
    padding-bottom: 84px;
    position: relative;
}

@media (min-width: 992px) {
    .v4-cta-section {
        padding-top: 88px;
        padding-bottom: 96px;
    }
}

.v4-cta-box {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, rgba(22, 24, 30, 0.95) 0%, rgba(214, 180, 90, 0.15) 100%);
    border: 1px solid var(--accent-gold-border);
    border-radius: var(--radius-lg);
    padding: 36px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-gold-lg);
}

@media (min-width: 768px) {
    .v4-cta-box {
        padding: 64px 48px;
    }
}

.v4-cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 180px;
    background: radial-gradient(circle, rgba(214, 180, 90, 0.25), transparent 70%);
    pointer-events: none;
}

.v4-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4.2vw, 2.7rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.v4-cta-desc {
    font-size: clamp(0.98rem, 2vw, 1.12rem);
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
}

.v4-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
}

@media (min-width: 480px) {
    .v4-cta-actions {
        flex-direction: row;
        align-items: center;
    }
}

/* ==========================================================================
   Scroll Reveal Fade-Up (V3 Pattern)
   ========================================================================== */
.v4-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.v4-fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .v4-fade-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   Rodapé Institucional
   ========================================================================== */
.v4-footer {
    background-color: #0B0C0E;
    border-top: 1px solid var(--border-subtle);
    padding-top: 60px;
    padding-bottom: 36px;
}

.v4-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 44px;
}

@media (min-width: 576px) {
    .v4-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (min-width: 992px) {
    .v4-footer-grid {
        grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr;
        gap: 36px;
    }
}

.v4-footer-desc {
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 340px;
}

.v4-footer-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.v4-footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.v4-footer-link {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.v4-footer-link:hover {
    color: var(--gold-light);
}

/* Aviso de Conformidade Ética OAB */
.v4-oab-disclaimer {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    margin-bottom: 24px;
    font-size: 0.78rem;
    line-height: 1.6;
    color: #6C7080;
    text-align: justify;
}

.v4-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    font-size: 0.8rem;
    color: #555866;
    text-align: center;
}

@media (min-width: 768px) {
    .v4-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.v4-footer-affection {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.v4-footer-heart {
    color: #e74c3c;
    font-size: 0.95rem;
    display: inline-block;
    transition: transform var(--transition-fast);
}

.v4-footer-affection:hover .v4-footer-heart {
    transform: scale(1.2);
}

.v4-footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.v4-social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-subtle);
    color: var(--gold-light);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.v4-social-icon-btn:hover {
    background: var(--gold-subtle);
    border-color: var(--accent-gold-border);
    color: var(--gold-primary);
    transform: translateY(-2px);
}

.v4-footer-bottom-links {
    display: flex;
    gap: 20px;
}


/* ==========================================================================
   Aviso de Cookies e Gerenciador de Privacidade V4 (Design Premium V3/V4)
   ========================================================================== */

/* Bloqueio de rolagem quando modal está ativo */
body.v4-cookie-modal-open {
    overflow: hidden;
}

/* Painel Flutuante Inferior */
.v4-cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 980px;
    z-index: 99999;
    background: rgba(16, 17, 20, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(214, 180, 90, 0.28);
    border-radius: 20px;
    box-shadow: 0 16px 48px -8px rgba(0, 0, 0, 0.8), 0 0 35px -8px rgba(214, 180, 90, 0.15);
    padding: 22px 26px;
    color: var(--text-primary);
    animation: v4CookieSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}

.v4-cookie-banner.v4-cookie-closing {
    animation: v4CookieSlideDown 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: none;
}

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

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

.v4-cookie-inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.v4-cookie-header-row {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.v4-cookie-icon-wrapper {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: rgba(214, 180, 90, 0.12);
    border: 1px solid rgba(214, 180, 90, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.v4-cookie-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.v4-cookie-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.01em;
    margin: 0;
}

.v4-cookie-text {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #C5C7D0;
    margin: 0;
}

.v4-cookie-link {
    color: var(--accent-gold-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color var(--transition-fast);
    margin-left: 4px;
    white-space: nowrap;
}

.v4-cookie-link:hover {
    color: #FFFFFF;
}

.v4-cookie-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

/* Botões do Sistema de Consentimento */
.v4-cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1.25;
    white-space: nowrap;
}

.v4-cookie-btn-pref {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
    color: #E0E2EC;
}

.v4-cookie-btn-pref:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(214, 180, 90, 0.45);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.v4-cookie-btn-reject {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
}

.v4-cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.v4-cookie-btn-save {
    background: rgba(214, 180, 90, 0.16);
    border-color: rgba(214, 180, 90, 0.45);
    color: #F0D78C;
}

.v4-cookie-btn-save:hover {
    background: rgba(214, 180, 90, 0.26);
    border-color: #D6B45A;
    color: #FFFFFF;
    transform: translateY(-1px);
}

.v4-cookie-btn-accept {
    background: linear-gradient(135deg, #F0D78C 0%, #D6B45A 50%, #C49D42 100%);
    border-color: rgba(240, 215, 140, 0.6);
    color: #101114;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(214, 180, 90, 0.28);
}

.v4-cookie-btn-accept:hover {
    box-shadow: 0 6px 24px rgba(214, 180, 90, 0.42);
    transform: translateY(-1px);
    color: #0A0A0C;
}

/* Modal de Preferências */
.v4-cookie-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 9, 12, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: v4FadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.v4-cookie-modal-backdrop.v4-modal-closing {
    animation: v4FadeOut 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: none;
}

@keyframes v4FadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes v4FadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.v4-cookie-modal {
    background: #14161C;
    border: 1px solid rgba(214, 180, 90, 0.32);
    border-radius: 20px;
    width: 100%;
    max-width: 660px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.85), 0 0 40px -10px rgba(214, 180, 90, 0.2);
    animation: v4ModalZoom 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    overflow: hidden;
}

@keyframes v4ModalZoom {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.v4-cookie-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(22, 24, 31, 0.6);
}

.v4-cookie-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.v4-cookie-modal-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 3px 0;
}

.v4-cookie-modal-subtitle {
    font-size: 0.82rem;
    color: #9E9FA6;
    margin: 0;
}

.v4-cookie-modal-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #9E9FA6;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.v4-cookie-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    border-color: rgba(214, 180, 90, 0.4);
}

.v4-cookie-modal-body {
    padding: 22px 26px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 55vh;
}

.v4-cookie-category-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 18px;
    transition: border-color var(--transition-fast);
}

.v4-cookie-category-card:hover {
    border-color: rgba(214, 180, 90, 0.25);
}

.v4-cookie-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.v4-cookie-cat-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.v4-cookie-cat-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
}

.v4-cookie-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.v4-badge-locked {
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ECC71;
}

.v4-badge-optional {
    background: rgba(214, 180, 90, 0.12);
    border: 1px solid rgba(214, 180, 90, 0.28);
    color: var(--accent-gold);
}

.v4-cookie-cat-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #A0A2AA;
    margin: 0;
}

/* Custom Toggle Switch */
.v4-cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.v4-cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.v4-cookie-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 9999px;
}

.v4-cookie-slider::before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #E0E2EC;
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.v4-cookie-switch input:checked + .v4-cookie-slider {
    background: linear-gradient(135deg, #F0D78C 0%, #D6B45A 100%);
    border-color: #D6B45A;
    box-shadow: 0 0 10px rgba(214, 180, 90, 0.4);
}

.v4-cookie-switch input:checked + .v4-cookie-slider::before {
    transform: translateX(20px);
    background-color: #101114;
}

.v4-cookie-switch input:disabled + .v4-cookie-slider {
    cursor: not-allowed;
    opacity: 0.85;
}

/* Modal Footer */
.v4-cookie-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(22, 24, 31, 0.6);
    flex-wrap: wrap;
}

.v4-cookie-modal-footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Responsividade Mobile (< 768px) */
@media (max-width: 767px) {
    .v4-cookie-banner {
        bottom: 12px;
        width: calc(100% - 24px);
        padding: 18px 16px;
        border-radius: 16px;
    }

    .v4-cookie-header-row {
        gap: 12px;
    }

    .v4-cookie-icon-wrapper {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .v4-cookie-title {
        font-size: 0.98rem;
    }

    .v4-cookie-text {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .v4-cookie-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .v4-cookie-actions .v4-cookie-btn {
        width: 100%;
        justify-content: center;
        padding: 11px 16px;
    }

    /* No celular, ordenar Aceitar todos em destaque no topo do grupo de botões */
    .v4-cookie-actions #v4-cookie-btn-accept {
        order: 1;
    }

    .v4-cookie-actions #v4-cookie-btn-reject {
        order: 2;
    }

    .v4-cookie-actions #v4-cookie-btn-pref {
        order: 3;
    }

    .v4-cookie-modal-backdrop {
        padding: 12px;
    }

    .v4-cookie-modal {
        border-radius: 16px;
        max-height: calc(100vh - 24px);
    }

    .v4-cookie-modal-header {
        padding: 16px 18px;
    }

    .v4-cookie-modal-body {
        padding: 16px 18px;
        gap: 10px;
    }

    .v4-cookie-category-card {
        padding: 14px;
    }

    .v4-cookie-modal-footer {
        flex-direction: column;
        gap: 8px;
        padding: 14px 18px;
    }

    .v4-cookie-modal-footer-right {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .v4-cookie-modal-footer .v4-cookie-btn {
        width: 100%;
        justify-content: center;
    }

    .v4-cookie-modal-footer-right #v4-pref-btn-accept {
        order: 1;
    }

    .v4-cookie-modal-footer-right #v4-pref-btn-save {
        order: 2;
    }

    .v4-cookie-modal-footer #v4-pref-btn-reject {
        order: 3;
    }
}

/* ==========================================================================
   Botão Flutuante do WhatsApp (Padrão Oficial Referência Saída Fiscal)
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: max(28px, calc(20px + env(safe-area-inset-bottom)));
    right: max(28px, calc(20px + env(safe-area-inset-right)));
    z-index: 1050;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: 0.5s ease-out 0.8s both whatsappSlideInRight;
    will-change: transform, opacity;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    overflow: visible;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    color: #FFFFFF;
    z-index: 2;
    pointer-events: none;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.whatsapp-pulse {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: 2s infinite whatsappPulse;
    z-index: -1;
    pointer-events: none;
}

.whatsapp-text {
    position: absolute;
    right: 70px;
    background: #25D366;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: var(--font-heading, inherit);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    pointer-events: none;
    letter-spacing: 0.01em;
}

@media (min-width: 769px) {
    .whatsapp-link:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    }

    .whatsapp-link:hover .whatsapp-text {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
}

.whatsapp-link:focus-visible {
    outline: 2px solid #D6B45A;
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: max(20px, calc(16px + env(safe-area-inset-bottom)));
        right: max(16px, calc(14px + env(safe-area-inset-right)));
    }

    .whatsapp-link {
        width: 56px;
        height: 56px;
        touch-action: manipulation;
    }

    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }

    .whatsapp-text {
        display: none !important;
    }

    .whatsapp-link:active {
        transform: scale(0.95);
        box-shadow: 0 2px 10px rgba(37, 211, 102, 0.5);
    }
}

/* Antissuposição com o Painel de Cookies LGPD */
@media (min-width: 1200px) {
    .whatsapp-float.has-cookie-overlap {
        bottom: calc(130px + env(safe-area-inset-bottom)) !important;
    }
}

@media (max-width: 1199px) {
    .whatsapp-float.has-cookie-overlap {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(16px) scale(0.92) !important;
    }
}

@keyframes whatsappSlideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float {
        animation: none !important;
    }
    .whatsapp-pulse {
        animation: none !important;
        display: none !important;
    }
}

/* ==========================================================================
   Página de Documentos Jurídicos & Leitura (Política de Privacidade)
   ========================================================================== */
.v4-legal-section {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 80px;
    min-height: calc(100vh - 380px);
}

.v4-legal-container {
    max-width: 900px;
    margin: 0 auto;
}

.v4-legal-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.v4-legal-breadcrumb a {
    color: var(--gold-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.v4-legal-breadcrumb a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.v4-legal-breadcrumb-sep {
    color: var(--text-muted);
    opacity: 0.6;
}

.v4-legal-card {
    background: var(--bg-surface-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 5vw, 56px);
    box-shadow: var(--shadow-card);
    position: relative;
}

.v4-legal-badge-row {
    margin-bottom: 16px;
}

.v4-legal-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.2vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    color: #FFFFFF;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.v4-legal-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--gold-light);
    font-weight: 500;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
    width: 100%;
}

.v4-legal-meta svg {
    flex-shrink: 0;
    color: var(--gold-primary);
}

.v4-legal-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 700;
    color: #FFFFFF;
    margin-top: 40px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    letter-spacing: -0.01em;
}

.v4-legal-content p {
    font-size: 1rem;
    line-height: 1.78;
    color: #D1D5E0;
    margin-bottom: 16px;
}

.v4-legal-content p strong {
    color: #FFFFFF;
    font-weight: 600;
}

.v4-legal-content ul {
    padding-left: 24px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.v4-legal-content li {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #C5CAD7;
}

.v4-legal-content li::marker {
    color: var(--gold-primary);
}

.v4-legal-content a {
    color: var(--gold-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
    word-break: break-word;
}

.v4-legal-content a:hover {
    color: #FFFFFF;
}

.v4-legal-notice {
    background: rgba(214, 180, 90, 0.08);
    border-left: 4px solid var(--gold-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 16px 20px;
    margin: 32px 0 24px 0;
    font-size: 0.93rem;
    line-height: 1.68;
    color: #E8E5DD;
}

.v4-legal-cookie-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.v4-legal-cookie-box-text {
    flex: 1;
    min-width: 260px;
}

.v4-legal-cookie-box-text p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.v4-legal-actions-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.v4-legal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gold-light);
    text-decoration: none;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.v4-legal-back-link:hover {
    color: #FFFFFF;
    transform: translateX(-3px);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .v4-legal-section {
        padding-top: calc(var(--header-height) + 24px);
        padding-bottom: 50px;
    }

    .v4-legal-card {
        padding: 24px 18px;
        border-radius: var(--radius-md);
    }

    .v4-legal-title {
        font-size: 1.85rem;
    }

    .v4-legal-content h2 {
        font-size: 1.18rem;
        margin-top: 32px;
    }

    .v4-legal-cookie-box {
        flex-direction: column;
        align-items: stretch;
    }

    .v4-legal-cookie-box .btn-v4 {
        width: 100%;
        justify-content: center;
    }

    .v4-legal-actions-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .v4-legal-actions-footer .btn-v4 {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   ESTADO DE SUCESSO & LOADING DO FORMULÁRIO INSTITUCIONAL
   ========================================================================== */

.v4-form-success-state {
    text-align: center;
    padding: 36px 20px 24px;
    animation: v4FadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes v4FadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.v4-success-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.12);
    border: 2px solid var(--gold-light, #C5A059);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light, #C5A059);
    box-shadow: 0 0 24px rgba(197, 160, 89, 0.25);
    animation: v4PulseGold 2.2s infinite ease-in-out;
}

@keyframes v4PulseGold {
    0%, 100% {
        box-shadow: 0 0 16px rgba(197, 160, 89, 0.22);
    }
    50% {
        box-shadow: 0 0 28px rgba(197, 160, 89, 0.45);
    }
}

.v4-success-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-primary, #FFFFFF);
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}

.v4-success-desc {
    font-size: 1rem;
    line-height: 1.68;
    color: var(--text-secondary, #D1D5DB);
    max-width: 540px;
    margin: 0 auto 28px;
}

.v4-success-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.btn-v4.btn-loading {
    pointer-events: none;
    opacity: 0.85;
    cursor: wait;
}

.btn-v4-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: v4Spin 0.75s linear infinite;
    vertical-align: middle;
}

@keyframes v4Spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .v4-form-success-state,
    .v4-success-icon-wrap {
        animation: none !important;
    }
    .btn-v4-spinner {
        animation-duration: 2s !important;
    }
}

/* ==========================================================================
   REFINAMENTO DE BREAKPOINTS (320px - 430px)
   ========================================================================== */

@media (max-width: 480px) {
    .v4-contact-form-wrapper {
        padding: 26px 18px !important;
        border-radius: 12px !important;
    }

    .v4-success-title {
        font-size: 1.32rem;
    }

    .v4-success-desc {
        font-size: 0.94rem;
    }

    .v4-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .v4-footer-socials {
        justify-content: center;
    }
}


