/* 
 * STYLE.CSS - Landing Page Benedictini Advocacia
 * Design System Editorial de Luxo para Advocacia Digital
 * Paleta de Cores: palheta.png (#2c2c2c, #f6efe2, #00a89f)
 * Manual de Referência: criadordesite.md & botaozap.md
 */

/* -----------------------------------------
   1. DESIGN TOKENS & VARIÁVEIS (:root)
   ----------------------------------------- */
:root {
    /* Cores Homologadas (Paleta Customizada Tecnológica-Editorial) */
    --bg-dark: #2c2c2c;              /* Cinza antracite profundo - Fundo escuro */
    --bg-card: #363636;              /* Cinza médio para cards em fundo escuro */
    --bg-light: #f6efe2;             /* Creme clássico suave - Fundo claro */
    --bg-nude: #e6dccb;              /* Nude sofisticado - Seção metodologia */
    --primary-tech: #00a89f;         /* Verde tecnológico/turquesa - Destaques e CTAs */
    --primary-tech-hover: #008b83;   /* Tom mais profundo para hover */
    
    --text-dark: #2c2c2c;            /* Texto em fundos claros */
    --text-light: #f6efe2;           /* Texto em fundos escuros */
    --text-muted-dark: #6e675c;      /* Texto secundário em fundos claros */
    --text-muted-light: #a8a095;     /* Texto secundário em fundos escuros */
    
    --border-tech: rgba(0, 168, 159, 0.25); /* Borda tecnológica de baixa opacidade */
    --border-light: rgba(44, 44, 44, 0.1);  /* Borda escura suave para fundos claros */

    /* Tipografia */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Arredondamento (Restrições Absolutas) */
    --radius-btn: 4px;
    --radius-card: 8px;

    /* Sombras Premium (Pretas, Difusas, Baixa Opacidade, Sem Brilho Colorido) */
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 24px 48px rgba(0, 0, 0, 0.08);

    /* Animações Slow Motion de Luxo (Obrigatório) */
    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1); /* Curva de Luxo Apple */
    --t-snappy: 0.38s var(--ease-premium);         /* Snappy */
    --t-smooth: 0.75s var(--ease-premium);         /* Smooth */
    --t-slow: 1.1s var(--ease-premium);            /* Slow Motion Cinematográfico */
}

/* -----------------------------------------
   2. RESET & REGRAS GERAIS
   ----------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
}

/* -----------------------------------------
   3. ESTILOS DE LAYOUT E COMPONENTES REUTILIZÁVEIS
   ----------------------------------------- */
.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

/* Kickers, Títulos e Subtítulos */
.section-kicker {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-tech);
    margin-bottom: 1rem;
}

.kicker-light {
    color: var(--primary-tech);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.title-light {
    color: var(--text-light);
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--text-muted-dark);
    max-width: 700px;
    margin-bottom: 3.5rem;
}

.subtitle-light {
    color: var(--text-muted-light);
}

/* Botões Customizados */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 2.2rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: transform var(--t-snappy), background-color var(--t-snappy), box-shadow var(--t-snappy);
    text-align: center;
    min-height: 48px; /* Área de toque mínima de 48px para acessibilidade mobile */
}

.btn-solid {
    background-color: var(--primary-tech);
    color: var(--text-light);
    border: 1px solid var(--primary-tech);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid rgba(246, 239, 226, 0.4);
}

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

/* Hovers de Botão Premium e Minimalistas (Sem brilho, apenas alteração de tom e sutil elevação) */
@media (hover: hover) and (pointer: fine) {
    .btn-solid:hover {
        background-color: var(--primary-tech-hover);
        border-color: var(--primary-tech-hover);
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        animation: glitchEffect 0.25s steps(2, jump-both) var(--ease-premium);
    }
    
    .btn-outline:hover {
        background-color: rgba(246, 239, 226, 0.05);
        border-color: var(--text-light);
        transform: translateY(-2px);
        animation: glitchEffect 0.25s steps(2, jump-both) var(--ease-premium);
    }
}

/* -----------------------------------------
   SEÇÃO 0: NAVBAR INTELIGENTE
   ----------------------------------------- */
.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color var(--t-smooth), border-color var(--t-smooth), transform var(--t-smooth), opacity var(--t-smooth);
    border-bottom: 1px solid transparent;
    
    /* Estado Oculto por Padrão para controlar via IntersectionObserver nas seções do meio */
    opacity: 1;
    transform: translateY(0);
}

/* Classe aplicada via JS para ocultar a navbar nas seções do meio */
.navbar-hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

/* Classe aplicada via JS quando rola na seção Hero */
.navbar-scrolled {
    background-color: rgba(44, 44, 44, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(246, 239, 226, 0.08);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: block;
    height: 38px;
    transition: transform var(--t-snappy);
}

.navbar-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.navbar-links {
    display: flex;
    gap: 2.2rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    padding: 0.4rem 0;
    opacity: 0.85;
    transition: opacity var(--t-snappy);
}

.nav-link.active {
    opacity: 1;
    color: var(--primary-tech);
}

/* Micro-interação de Link (Sublinhado elegante) */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-tech);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
    .nav-link:hover {
        opacity: 1;
    }
    .nav-link:hover::after {
        transform: scaleX(1);
    }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1010;
}

.menu-bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    transition: transform var(--t-snappy), opacity var(--t-snappy);
}

/* -----------------------------------------
   EFEITOS E ANIMAÇÕES TECNOLÓGICAS (Cyber-Grid & Pixel)
   ----------------------------------------- */
.hero-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 168, 159, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 168, 159, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

@keyframes pixelReveal {
    0% {
        clip-path: inset(0 100% 0 0);
        filter: brightness(1.3) contrast(1.1);
    }
    20% {
        clip-path: inset(0 80% 0 0);
    }
    40% {
        clip-path: inset(0 60% 0 0);
    }
    60% {
        clip-path: inset(0 40% 0 0);
    }
    80% {
        clip-path: inset(0 20% 0 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
        filter: brightness(1) contrast(1);
    }
}

.pixel-reveal-active {
    animation: pixelReveal 0.5s steps(5, end) var(--ease-premium);
}

@keyframes glitchEffect {
    0% {
        text-shadow: 2px 0 0 rgba(0, 168, 159, 0.85), -2px -1px 0 rgba(246, 239, 226, 0.8);
        clip-path: inset(40% 0 30% 0);
        transform: translate(-2px, -1px);
    }
    15% {
        text-shadow: -2px -2px 0 rgba(0, 168, 159, 0.85), 2px 2px 0 rgba(246, 239, 226, 0.8);
        clip-path: inset(10% 0 85% 0);
        transform: translate(2px, 1px);
    }
    30% {
        text-shadow: 1px -1px 0 rgba(0, 168, 159, 0.85), -1px 2px 0 rgba(246, 239, 226, 0.8);
        clip-path: inset(70% 0 15% 0);
        transform: translate(-1px, 2px);
    }
    45% {
        text-shadow: -1px 2px 0 rgba(0, 168, 159, 0.85), 2px -1px 0 rgba(246, 239, 226, 0.8);
        clip-path: inset(30% 0 55% 0);
        transform: translate(1px, -1px);
    }
    60% {
        text-shadow: 2px 1px 0 rgba(0, 168, 159, 0.85), -2px 2px 0 rgba(246, 239, 226, 0.8);
        clip-path: inset(85% 0 5% 0);
        transform: translate(-2px, 1px);
    }
    75% {
        text-shadow: -2px 0 0 rgba(0, 168, 159, 0.85), 1px -2px 0 rgba(246, 239, 226, 0.8);
        clip-path: inset(5% 0 90% 0);
        transform: translate(1px, -2px);
    }
    90% {
        text-shadow: none;
        clip-path: inset(0 0 0 0);
        transform: translate(0, 0);
    }
    100% {
        text-shadow: none;
        clip-path: inset(0 0 0 0);
        transform: translate(0, 0);
    }
}

.glitch-active {
    position: relative;
    will-change: clip-path, transform, text-shadow;
    animation: glitchEffect 0.35s steps(3, jump-both) var(--ease-premium);
}

span.glitch-active {
    display: inline-block;
}

.scroll-reveal {
    opacity: 0;
    filter: blur(5px) contrast(1.15);
    transform: translateY(25px);
    transition: opacity 0.85s var(--ease-premium), filter 0.85s var(--ease-premium), transform 0.85s var(--ease-premium);
    will-change: opacity, filter, transform;
}

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

/* -----------------------------------------
   SEÇÃO 1: HERO
   ----------------------------------------- */
.hero-section {
    position: relative;
    background-color: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--text-light);
    padding-top: 100px; /* Evita que a navbar sobreponha */
    overflow: hidden;
}

/* Padrão de Ruído de Grão SVG OBRIGATÓRIO (Opacidade máxima 0.05) */
.hero-noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3 PreservingAspectRatio='none'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.035;
    pointer-events: none;
    z-index: 1;
}

/* Degradê radial escuro no fundo */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(0, 168, 159, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 820px;
    margin-left: max(2rem, calc((100vw - 1200px) / 2 + 2rem));
}

.hero-tech-b-watermark {
    position: absolute;
    right: -10vw;
    bottom: -5vh;
    top: auto;
    transform: none;
    width: 55vw;
    max-width: 820px;
    min-width: 320px;
    aspect-ratio: 1 / 1;
    z-index: 1; /* Atrás do container de texto (z-index 2) */
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto; /* Permite interagir */
}

.hero-tech-b {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: screen;
    opacity: 0.09; /* OPACIDADE ELEVADA EM +4% (DE 0.05 PARA 0.09) */
    filter: drop-shadow(0 0 10px rgba(0, 168, 159, 0.15));
    transition: opacity var(--t-smooth);
}

/* No hover, o B brilha um pouco mais e ativa o mesmo glitch do stand */
.hero-tech-b-watermark:hover .hero-tech-b {
    opacity: 0.16;
    animation: imageGlitch 0.4s steps(2, jump-both) infinite;
}

/* Classe aplicada via JS a cada 3 segundos */
.image-glitch-active {
    animation: imageGlitch 0.3s steps(2, jump-both) forwards;
}

@keyframes imageGlitch {
    0% {
        clip-path: inset(30% 0 50% 0);
        transform: skew(0.5deg) translate(-2px, -1px);
        filter: hue-rotate(60deg) saturate(1.3) drop-shadow(0 0 10px rgba(0, 168, 159, 0.3));
    }
    20% {
        clip-path: inset(80% 0 5% 0);
        transform: skew(-0.8deg) translate(1px, 2px);
        filter: hue-rotate(120deg) contrast(1.1) drop-shadow(0 0 10px rgba(0, 168, 159, 0.3));
    }
    40% {
        clip-path: inset(15% 0 70% 0);
        transform: skew(1.2deg) translate(-1px, -2px);
        filter: hue-rotate(0deg) drop-shadow(0 0 10px rgba(0, 168, 159, 0.3));
    }
    60% {
        clip-path: inset(65% 0 20% 0);
        transform: skew(-0.3deg) translate(2px, 1px);
    }
    80% {
        clip-path: inset(5% 0 90% 0);
        transform: skew(0.6deg) translate(-1px, 2px);
    }
    100% {
        clip-path: inset(0 0 0 0);
        transform: skew(0deg) translate(0, 0);
        filter: drop-shadow(0 0 10px rgba(0, 168, 159, 0.15));
    }
}

.hero-kicker {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-tech);
    letter-spacing: 0.25em;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--bg-light); /* Creme */
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 300;
    color: var(--text-muted-light);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 680px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* -----------------------------------------
   SEÇÃO 2: A ADVOGADA / SOBRE
   ----------------------------------------- */
.sobre-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
    position: relative;
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

/* Moldura minimalista estilo croqui para foto (aspect-ratio 3:4) */
.sobre-image-column {
    display: flex;
    justify-content: center;
}

.sobre-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 3 / 4;
    border: 1px dashed rgba(44, 44, 44, 0.35); /* Borda tracejada fina estilo croqui */
    padding: 12px;
    background-color: var(--bg-light);
}

/* Efeito de sobreposição elegante */
.sobre-image-wrapper::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    width: 30px;
    height: 30px;
    border-top: 1px solid var(--text-dark);
    border-left: 1px solid var(--text-dark);
}

.sobre-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 30px;
    height: 30px;
    border-bottom: 1px solid var(--text-dark);
    border-right: 1px solid var(--text-dark);
}

.sobre-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(10%) contrast(102%);
    transition: filter var(--t-smooth);
}

@media (hover: hover) and (pointer: fine) {
    .sobre-image-wrapper:hover .sobre-img {
        filter: grayscale(0%) contrast(105%);
    }
}

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

.sobre-highlight {
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--primary-tech);
    line-height: 1.4;
    margin-bottom: 1.8rem;
}

.sobre-description {
    font-size: 1rem;
    color: var(--text-muted-dark);
    margin-bottom: 1.2rem;
    font-weight: 400;
}

.sobre-badges {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.badge {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    background-color: rgba(44, 44, 44, 0.04);
    border: 1px solid rgba(44, 44, 44, 0.08);
    border-radius: 4px;
    color: var(--text-dark);
}

/* -----------------------------------------
   SEÇÃO 3: ÁREAS DE ATUAÇÃO (Split-Panel Interativo)
   ----------------------------------------- */
.atuacao-section {
    position: relative;
    background-color: var(--bg-dark);
    color: var(--text-light);
    content-visibility: auto;
    contain-intrinsic-size: 800px;
}

.services-split-panel {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

/* Menu de Especialidades (Esquerda) */
.services-menu {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.services-menu-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1.2rem 1.5rem;
    background-color: rgba(246, 239, 226, 0.02);
    border: 1px solid rgba(246, 239, 226, 0.05);
    border-radius: var(--radius-btn);
    color: #ccc4b2; /* Creme acinzentado claro para maior contraste e legibilidade */
    cursor: pointer;
    text-align: left;
    transition: background-color var(--t-snappy), border-color var(--t-snappy), color var(--t-snappy);
    position: relative;
    overflow: hidden;
    min-height: 48px;
}

.btn-num {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-tech);
    margin-right: 1.2rem;
    opacity: 0.85; /* Elevado de 0.7 para melhor leitura */
    transition: opacity var(--t-snappy);
}

.btn-text {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 500;
    flex: 1;
}

.btn-indicator {
    width: 6px;
    height: 6px;
    background-color: transparent;
    border-radius: 50%;
    transition: background-color var(--t-snappy), box-shadow var(--t-snappy);
}

/* Hover nos Botões do Menu */
@media (hover: hover) and (pointer: fine) {
    .services-menu-btn:hover {
        background-color: rgba(0, 168, 159, 0.05);
        border-color: rgba(0, 168, 159, 0.4);
        color: var(--text-light);
    }
    
    .services-menu-btn:hover .btn-num {
        opacity: 1;
    }
}

/* Estado Ativo do Botão do Menu */
.services-menu-btn.active {
    background-color: rgba(0, 168, 159, 0.08);
    border-color: var(--primary-tech);
    color: var(--text-light);
}

.services-menu-btn.active .btn-num {
    opacity: 1;
}

.services-menu-btn.active .btn-indicator {
    background-color: var(--primary-tech);
    box-shadow: 0 0 8px var(--primary-tech);
}

/* Painel de Detalhes (Direita) */
.services-display {
    background-color: #141414; /* Escurecido para preto profundo para contraste absoluto */
    border: 1px solid var(--border-tech);
    border-radius: var(--radius-card);
    padding: 3rem;
    min-height: 450px;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

/* Malha digital sutil dentro do display de detalhes */
.services-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 168, 159, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 168, 159, 0.015) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 1;
}

.services-detail-panel {
    position: relative;
    z-index: 2;
}

.panel-tech-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #a8a095;
    border-bottom: 1px solid rgba(246, 239, 226, 0.06);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.panel-tag {
    color: var(--primary-tech);
}

.panel-code {
    font-family: monospace;
    opacity: 0.6;
}

.panel-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    color: #f6efe2; /* Creme brilhante sólido para destaque de leitura */
    line-height: 1.25;
    margin-bottom: 1.8rem;
}

.panel-text {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: #faf6ee; /* Creme claro com altíssimo contraste e conforto visual */
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.panel-actions {
    margin-top: 2.5rem;
}

/* -----------------------------------------
   SEÇÃO 4: METODOLOGIA (Horizontal Simplificada)
   ----------------------------------------- */
.metodologia-section {
    background-color: var(--bg-nude);
    color: var(--text-dark);
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}

.metodologia-steps-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem;
    margin-top: 1rem;
}

.metodologia-step {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
}

.step-number {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1;
    color: var(--text-dark);
    opacity: 0.15;
}

.step-content {
    flex: 1;
}

.step-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

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

/* -----------------------------------------
   SEÇÃO 5: FAQ / DÚVIDAS
   ----------------------------------------- */
.faq-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
    content-visibility: auto;
    contain-intrinsic-size: 800px;
}

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

.faq-item {
    background-color: #faf6ed;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color var(--t-snappy);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: background-color var(--t-snappy);
}

/* Ícone de fechar/abrir clássico */
.faq-icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--text-dark);
    transition: transform var(--t-snappy);
}

/* Linha horizontal */
.faq-icon::before {
    top: 7px;
    left: 0;
    width: 16px;
    height: 2px;
}

/* Linha vertical */
.faq-icon::after {
    top: 0;
    left: 7px;
    width: 2px;
    height: 16px;
}

/* Quando expandido, gira a linha vertical */
.faq-question[aria-expanded="true"] .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-question[aria-expanded="true"] .faq-icon::before {
    transform: rotate(180deg);
}

/* UX DO ACCORDION OBRIGATÓRIO: Animação suave com CSS Grid (Não usar max-height) */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--t-smooth);
}

.faq-answer-inner {
    min-height: 0;
    overflow: hidden;
}

.faq-answer p {
    padding: 0 2rem 2rem 2rem;
    font-size: 0.95rem;
    color: var(--text-muted-dark);
    line-height: 1.7;
}

.faq-question[aria-expanded="true"] {
    background-color: rgba(44, 44, 44, 0.02);
}

.faq-question[aria-expanded="true"] + .faq-answer {
    grid-template-rows: 1fr;
}

/* -----------------------------------------
   NOVA SEÇÃO: BLOG / INTELIGÊNCIA DIGITAL
   ----------------------------------------- */
.blog-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.blog-grid-lp {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.2rem;
    margin-top: 1rem;
}

.blog-card-lp {
    background-color: #faf6ed;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: transform var(--t-smooth), border-color var(--t-smooth), box-shadow var(--t-smooth);
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-card-tag {
    color: var(--primary-tech);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card-date {
    color: var(--text-muted-dark);
}

.blog-card-title {
    font-family: var(--font-serif);
    font-size: 1.38rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--text-dark);
}

.blog-card-title a {
    transition: color var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
    .blog-card-title a:hover {
        color: var(--primary-tech);
    }
}

.blog-card-excerpt {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    color: var(--text-muted-dark);
    line-height: 1.6;
}

.blog-card-link {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-tech);
    margin-top: auto;
    display: inline-block;
    transition: transform var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
    .blog-card-lp:hover {
        transform: translateY(-4px);
        border-color: rgba(0, 168, 159, 0.25);
        box-shadow: var(--shadow-premium);
    }
    
    .blog-card-link:hover {
        transform: translateX(4px);
    }
}

.blog-lp-actions {
    display: flex;
    justify-content: center;
    margin-top: 3.5rem;
}

/* -----------------------------------------
   SEÇÃO 6: CTA FINAL / CONTATO
   ----------------------------------------- */
.cta-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    position: relative;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 5rem;
    align-items: flex-start;
}

.cta-image-column {
    position: sticky;
    top: 100px;
}

.cta-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2.8 / 4; /* Enquadramento vertical elegante */
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(246, 239, 226, 0.08);
}

.cta-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(15%) contrast(100%);
    transition: filter var(--t-smooth);
}

@media (hover: hover) and (pointer: fine) {
    .cta-image-wrapper:hover .cta-img {
        filter: grayscale(0%) contrast(102%);
    }
}

.cta-form-column {
    display: flex;
    flex-direction: column;
}

.cta-text {
    font-size: 1.05rem;
    color: var(--text-muted-light);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Formulário Premium Clean */
.cta-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    background-color: rgba(246, 239, 226, 0.04);
    border: 1px solid rgba(246, 239, 226, 0.15);
    border-radius: 4px; /* Máximo 4px */
    padding: 0.85rem 1.2rem;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: border-color var(--t-snappy), background-color var(--t-snappy);
}

.form-input::placeholder, .form-textarea::placeholder {
    color: rgba(246, 239, 226, 0.35);
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23f6efe2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 14px;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* Opções escuras para o select no dropdown nativo */
.form-select option {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-tech);
    background-color: rgba(0, 168, 159, 0.02);
}

.cta-info-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(246, 239, 226, 0.1);
    padding-top: 2rem;
}

.cta-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted-light);
}

.cta-info-icon {
    color: var(--primary-tech);
}

.contact-link {
    color: var(--bg-light);
    font-weight: 500;
    transition: color var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
    .contact-link:hover {
        color: var(--primary-tech);
    }
}

/* -----------------------------------------
   SEÇÃO 7: FOOTER
   ----------------------------------------- */
.footer-section {
    background-color: #1e1e1e;
    color: var(--text-light);
    border-top: 1px solid rgba(246, 239, 226, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 5rem;
    padding: 5rem 0 3.5rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.footer-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.footer-desc {
    font-size: 0.88rem;
    color: var(--text-muted-light);
    line-height: 1.6;
    max-width: 320px;
}

.footer-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--bg-light);
    margin-bottom: 1.5rem;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-link-item {
    font-size: 0.88rem;
    color: var(--text-muted-light);
    transition: color var(--t-snappy);
}

.footer-social-links {
    display: flex;
    gap: 1rem;
}

.social-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    border: 1px solid rgba(246, 239, 226, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted-light);
    transition: border-color var(--t-snappy), color var(--t-snappy), background-color var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
    .footer-link-item:hover {
        color: var(--primary-tech);
    }
    
    .social-icon-btn:hover {
        border-color: var(--primary-tech);
        color: var(--primary-tech);
        background-color: rgba(0, 168, 159, 0.05);
    }
}

.footer-bottom-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem;
    border-top: 1px solid rgba(246, 239, 226, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.82rem;
    color: var(--text-muted-light);
}

/* -----------------------------------------
   WIDGET DE WHATSAPP INTELIGENTE (botaozap.md)
   ----------------------------------------- */
.whatsapp-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: var(--font-sans);
    
    /* Inicia invisível e desativado - controlado por IntersectionObserver fora da Hero */
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity var(--t-smooth), transform var(--t-smooth);
}

.whatsapp-widget.widget-visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* Botão Principal Circular (Sem o verde saturado nativo do WhatsApp) */
.wa-main-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bg-dark); /* Fundo no tom cinza escuro da marca */
    border: 1px solid var(--border-tech); /* Borda fina tecnológica */
    color: var(--bg-light); /* Ícone em creme */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 10;
    position: relative;
    will-change: transform, background-color;
    transition: transform var(--t-snappy), background-color var(--t-snappy);
    min-height: 48px;
    overflow: hidden; /* Garante que a imagem preencha perfeitamente o círculo */
}

.wa-icon-svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.8;
}

.wa-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@media (hover: hover) and (pointer: fine) {
    .wa-main-btn:hover {
        transform: scale(1.05) translateY(-2px);
        background-color: #1a1a1a;
    }
}

/* Tooltip de Inatividade */
.wa-tooltip {
    position: absolute;
    bottom: 75px;
    right: 0;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-tech);
    color: var(--bg-light);
    padding: 0.8rem 2.8rem 0.8rem 1.2rem;
    border-radius: 6px;
    box-shadow: var(--shadow-premium);
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    z-index: 5;
    
    /* Escondido por padrão, revelado com JS */
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    will-change: opacity, transform;
    transition: opacity var(--t-snappy), transform var(--t-snappy);
}

.wa-tooltip.tooltip-active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 26px;
    width: 10px;
    height: 10px;
    background-color: var(--bg-dark);
    border-right: 1px solid var(--border-tech);
    border-bottom: 1px solid var(--border-tech);
    transform: rotate(45deg);
}

.wa-tooltip-close {
    position: absolute;
    top: 50%;
    right: 0.2rem;
    transform: translateY(-50%);
    color: var(--text-muted-light);
    font-size: 1.2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
    .wa-tooltip-close:hover {
        color: var(--primary-tech);
    }
}

/* Painel de Chat Simulado */
.wa-chat-panel {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 350px;
    height: 480px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-tech);
    border-radius: 8px;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 8;
    
    /* Escondido por padrão */
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px) scale(0.95);
    transform-origin: bottom right;
    will-change: opacity, transform;
    transition: opacity var(--t-smooth), transform var(--t-smooth);
}

.wa-chat-panel.panel-active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

/* Cabeçalho do Chat */
.wa-chat-header {
    background-color: #1a1a1a;
    padding: 1.2rem;
    border-bottom: 1px solid rgba(246, 239, 226, 0.06);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wa-chat-avatar {
    position: relative;
    width: 40px;
    height: 40px;
}

.wa-chat-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--primary-tech);
}

.wa-status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: #25d366;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
}

.wa-chat-header-info {
    display: flex;
    flex-direction: column;
}

.wa-chat-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bg-light);
}

.wa-chat-desc {
    font-size: 0.78rem;
    color: var(--text-muted-light);
}

/* Corpo de Mensagens do Chat */
.wa-chat-body {
    flex: 1;
    padding: 1.2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #242424;
    -webkit-overflow-scrolling: touch; /* Rolagem suave no iOS/mobile */
    
    /* Customização da barra de rolagem no Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(246, 239, 226, 0.12) rgba(246, 239, 226, 0.02);
}

/* Customização da barra de rolagem no Webkit (Chrome, Safari, Edge) */
.wa-chat-body::-webkit-scrollbar {
    width: 6px;
}

.wa-chat-body::-webkit-scrollbar-track {
    background: rgba(246, 239, 226, 0.02);
}

.wa-chat-body::-webkit-scrollbar-thumb {
    background-color: rgba(246, 239, 226, 0.12);
    border-radius: 3px;
    transition: background-color var(--t-snappy);
}

.wa-chat-body::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-tech);
}

.wa-chat-message {
    max-width: 85%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.wa-msg-received {
    align-self: flex-start;
    background-color: rgba(246, 239, 226, 0.05);
    border: 1px solid rgba(246, 239, 226, 0.1);
    color: var(--text-light);
    border-top-left-radius: 0;
}

.wa-msg-sent {
    align-self: flex-end;
    background-color: var(--primary-tech);
    color: var(--text-light);
    border-top-right-radius: 0;
}

.wa-msg-time {
    font-size: 0.7rem;
    color: var(--text-muted-light);
    align-self: flex-end;
}

.wa-msg-sent .wa-msg-time {
    color: rgba(246, 239, 226, 0.7);
}

/* Loader de Digitando... */
.wa-chat-typing-loader {
    align-self: flex-start;
    background-color: rgba(246, 239, 226, 0.03);
    border: 1px solid rgba(246, 239, 226, 0.08);
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    border-top-left-radius: 0;
    display: flex;
    gap: 0.3rem;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted-light);
    border-radius: 50%;
    animation: typingPulse 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingPulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Rodapé do Chat com Dúvidas Comuns */
.wa-chat-footer {
    background-color: #1a1a1a;
    padding: 1.2rem;
    border-top: 1px solid rgba(246, 239, 226, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: opacity var(--t-snappy), visibility var(--t-snappy);
}

.wa-options-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wa-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wa-option-btn {
    text-align: left;
    background-color: rgba(246, 239, 226, 0.03);
    border: 1px solid rgba(246, 239, 226, 0.1);
    color: var(--bg-light);
    padding: 0.65rem 1rem;
    border-radius: 4px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background-color var(--t-snappy), border-color var(--t-snappy);
    min-height: 40px;
}

@media (hover: hover) and (pointer: fine) {
    .wa-option-btn:hover {
        background-color: rgba(0, 168, 159, 0.08);
        border-color: var(--primary-tech);
    }
}

/* Opções de Perguntas Inline (Fluxo do Chat - botaozap.md) */
.wa-chat-options-inline {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: fadeIn var(--t-snappy);
}

.wa-chat-options-inline .wa-options-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.wa-chat-options-inline .wa-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wa-chat-options-inline .wa-option-btn {
    width: 100%;
}

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

/* -----------------------------------------
   REGRAS DE RESPONSIVIDADE (MOBILE-FIRST)
   ----------------------------------------- */

/* TELAS GRANDES (DESKTOP) */
@media (min-width: 992px) {
    /* Navbar normal */
}

/* TELAS MÉDIAS (TABLETS E CELULARES LARGOS) */
@media (max-width: 991px) {
    .hero-container {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        padding-top: 2rem;
        padding-bottom: 4rem;
    }
    
    .hero-tech-b-watermark {
        width: 50vw;
        max-width: 350px;
        right: 50%;
        top: 55%;
        transform: translate(50%, -50%);
        pointer-events: none;
    }
    
    .hero-tech-b {
        opacity: 0.03;
    }

    .section-container {
        padding: 4rem 1.5rem;
    }
    
    .section-title {
        font-size: 2.1rem;
    }
    
    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .sobre-image-column {
        order: -1; /* Mantém foto antes do texto no mobile */
    }
    
    /* Serviços Split Panel Mobile */
    .services-split-panel {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .services-menu-btn {
        padding: 1rem;
    }
    
    .services-display {
        padding: 2rem;
        min-height: auto;
    }
    
    .panel-title {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }
    
    /* Metodologia Mobile */
    .metodologia-steps-full {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Blog LP Mobile */
    .blog-grid-lp {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .cta-image-column {
        position: static;
        max-width: 450px;
        margin: 0 auto;
        width: 100%;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* CELULARES (MOBILE) */
@media (max-width: 767px) {
    .hero-tech-b-watermark {
        width: 65vw;
        max-width: 260px;
    }

    .navbar-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        transition: right var(--t-smooth);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
        padding: 2rem;
    }
    
    .navbar-links.menu-open {
        right: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* Menu Aberto Animação */
    .menu-toggle.open .menu-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.open .menu-bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.open .menu-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Serviços Mobile Pequeno */
    .services-menu {
        grid-template-columns: 1fr;
    }
    
    /* Blog Mobile Pequeno */
    .blog-grid-lp {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn-cta {
        width: 100%;
    }
    
    .whatsapp-widget {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .wa-chat-panel {
        width: calc(100vw - 3rem);
        right: 0;
        bottom: 70px;
    }
    
    /* Garantir área mínima de clique de 48px para botões no mobile */
    .wa-option-btn {
        min-height: 48px;
    }
}

/* COMPATIBILIDADE E RETORNO DE ACESSIBILIDADE */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-delay: 0s !important;
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
        scroll-behavior: auto !important;
    }
}

/* -----------------------------------------
   MODAL PREMIUM DE SUCESSO DE ENVIO (criadordesite.md)
   ----------------------------------------- */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-smooth), visibility var(--t-smooth);
}

.custom-modal-overlay.modal-open {
    opacity: 1;
    visibility: visible;
}

.custom-modal-content {
    background-color: var(--bg-dark);
    border: 1px solid rgba(246, 239, 226, 0.08);
    border-radius: var(--radius-card);
    width: 90%;
    max-width: 500px;
    padding: 3rem;
    position: relative;
    text-align: center;
    color: var(--text-light);
    transform: translateY(30px);
    transition: transform var(--t-smooth);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.custom-modal-overlay.modal-open .custom-modal-content {
    transform: translateY(0);
}

.custom-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted-light);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color var(--t-snappy);
    padding: 0.5rem;
}

.custom-modal-close:hover {
    color: var(--primary-tech);
}

.custom-modal-icon {
    color: var(--primary-tech);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.custom-modal-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--bg-light);
}

.custom-modal-text {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 0.8rem;
}

.custom-modal-subtext {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-muted-light);
    margin-bottom: 2rem;
}

.custom-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.custom-modal-actions .btn-cta {
    width: 100%;
}

/* -----------------------------------------
   LINK DE DESENVOLVEDOR NO RODAPÉ
   ----------------------------------------- */
.footer-dev-link {
    color: inherit;
    text-decoration: underline;
    transition: color var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
    .footer-dev-link:hover {
        color: var(--primary-tech) !important;
    }
}

/* -----------------------------------------
   SISTEMA DE BLOG DINÂMICO (Supabase SPA)
   ----------------------------------------- */
#blog-secao, #artigo-secao {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 0;
    margin: 0;
}

.blog-hero {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 8rem 0 4rem 0; /* Aumentado padding-top para compensar a navbar */
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 168, 159, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 168, 159, 0.015) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 1;
}

.blog-hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.blog-hero-kicker {
    color: var(--primary-tech);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.blog-hero-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 400;
    color: var(--bg-light);
}

.blog-main {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 5rem;
}

.blog-articles-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.blog-post-item {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 4rem;
}

.blog-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.2rem;
}

.post-tag {
    color: var(--primary-tech);
}

.post-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    color: var(--text-dark);
}

.post-title a {
    transition: color var(--t-snappy);
    color: var(--text-dark);
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
    .post-title a:hover {
        color: var(--primary-tech);
    }
}

.post-excerpt {
    font-size: 0.98rem;
    color: var(--text-muted-dark);
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

.post-link {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-tech);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform var(--t-snappy);
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .post-link:hover {
        transform: translateX(4px);
    }
}

/* Post único conteúdo */
.blog-post-content {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.blog-post-content p {
    margin-bottom: 1.6rem;
}

.blog-post-content h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--text-dark);
    margin: 2.5rem 0 1rem 0;
    font-weight: 600;
}

.blog-post-content ul, .blog-post-content ol {
    margin: 1.5rem 0;
    padding-left: 1.8rem;
}

.blog-post-content li {
    margin-bottom: 0.8rem;
}

.blog-blockquote {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--primary-tech);
    border-left: 3px solid var(--primary-tech);
    padding-left: 1.5rem;
    margin: 2.5rem 0;
    font-style: italic;
}

/* Botão de voltar dentro do post */
.btn-back-blog {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-tech);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform var(--t-snappy);
}

@media (hover: hover) and (pointer: fine) {
    .btn-back-blog:hover {
        transform: translateX(-4px);
    }
}

/* Barra Lateral */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.sidebar-widget {
    background-color: #faf6ed;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    padding: 2.2rem;
}

.sidebar-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(44, 44, 44, 0.08);
    padding-bottom: 0.8rem;
}

.author-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-tech);
}

.author-name {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
}

.author-bio {
    font-size: 0.88rem;
    color: var(--text-muted-dark);
    line-height: 1.6;
}

.recent-posts-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 0;
    margin: 0;
}

.recent-post-link {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
    transition: color var(--t-snappy);
    display: block;
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
    .recent-post-link:hover {
        color: var(--primary-tech);
    }
}

.recent-post-date {
    font-size: 0.75rem;
    color: var(--text-muted-dark);
    display: block;
    margin-top: 0.3rem;
}

/* Fallback/Loader states */
.blog-loading, .blog-empty, .blog-error {
    font-size: 1.1rem;
    color: var(--text-muted-dark);
    padding: 4rem 2rem;
    text-align: center;
}

.blog-error a {
    color: var(--primary-tech);
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 991px) {
    .blog-main {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .blog-hero-title {
        font-size: 2.2rem;
    }
    
    .blog-hero {
        padding: 6rem 0 3rem 0;
    }
}

/* Destaque Premium de termos em negrito no artigo */
.blog-post-content strong {
    font-weight: 700;
    color: var(--primary-tech, #00a89f);
}

