/* ============================= */
/* Configurações Seção 1 (BASE & VARIÁVEIS) */
/* ============================= */

:root {
    /* Cores Primárias e Superfícies */
    --color-primary: #1a1a1a; 
    --color-background: #FFFFFF; 
    --color-secondary-surface: #fafafa; 
    --color-text-secondary: #666666; 
    --color-accent-light: #e0e0e0; 
    
    /* Cores Estáticas */
    --color-footer-background: #0a0a0a; 
    --color-text-light: #999; 
    --color-text-footer: #666; 
    --color-accent-lighter: #f0f0f0; 
    --color-whatsapp: #25D366; 

    /* Tipografia e Dimensões */
    --font-family-main: 'Inter', -apple-system, BlinkMacMacSystemFont, 'Segoe UI', sans-serif;
    --spacing-header-height: 88px;
    --max-width-container: 1400px;
    
    /* Variável para o fundo do cabeçalho */
    --header-background-color: rgba(26, 26, 26, 0.9); 

    /* Efeito de Digitação */
    --typing-text-font-size-mobile: 28px;
    --typing-text-font-size-pc: 38px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-main);
    background: var(--color-background);
    color: var(--color-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Classes Utilitárias de Destaque */
.highlight-text {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: ".";
    color: #4b4b4b;
}

.highlight-texto {
    color: var(--color-accent-lighter);
    position: relative;
    display: inline-block;
}

/* Estrutura de Seção Global */
main {
    margin-top: var(--spacing-header-height);
    width: 100%;
}

.section {
    width: 100%;
    max-width: var(--max-width-container);
    margin: 40px auto;
}

.section-title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 24px;
    text-align: center; 
    width: 100%;
    display: block;
}

/* Padronização de Títulos */
.section > h2, 
.about h2, 
.pillars-main-title {
    font-family: var(--font-family-main);
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--color-primary);
    margin-bottom: 48px;
    text-align: center;
}

/* Componentes Globais (Botões) */
.cta-button {
    display: inline-block;
    padding: 18px 48px;
    background: var(--color-primary);
    color: var(--color-background);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 2px;
    transition: all 0.3s ease;
    border: 1px solid var(--color-primary);
}

.cta-button:hover {
    background: var(--color-background);
    color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* ============================= */
/* Configurações Seção 2 (SIDEBAR & OVERLAY) */
/* ============================= */

/* Barra Lateral (Sidebar Menu Off-canvas) */
.sidebar-menu {
    position: fixed;
    top: 0;
    right: -300px; /* Escondido fora da tela */
    width: 300px;
    height: 100%;
    background: var(--color-primary); 
    z-index: 1100;
    padding: 30px;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.5);
    transition: right 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
}

.sidebar-menu.open {
    right: 0; /* Aberto via JS */
}

.sidebar-menu-close {
    width: 24px;
    height: 24px;
    align-self: flex-end;
    color: var(--color-background);
    font-size: 24px;
    cursor: pointer;
    margin-bottom: 30px;
}

.sidebar-nav a {
    display: block;
    color: var(--color-background);
    padding: 15px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.sidebar-nav a:hover {
    opacity: 0.7;
}

.sidebar-social {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.sidebar-social .social-icon {
    border-color: rgba(255, 255, 255, 0.3);
    background: transparent;
}

.sidebar-social .social-icon svg {
    fill: var(--color-background);
}

.sidebar-social .social-icon:hover {
    background: var(--color-background);
}

.sidebar-social .social-icon:hover svg {
    fill: var(--color-primary);
}

/* Overlay Global (Menu e Modais) */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none; /* Controlado via JS */
}

/* ============================= */
/* Configurações Seção 3 (UTILITÁRIOS & WHATSAPP) */
/* ============================= */

/* Botão Flutuante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--color-whatsapp); 
    border-radius: 50%;
    display: none; /* Oculto no Desktop, visível via Media Query no final */
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 990;
    transition: transform 0.3s ease;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: var(--color-background);
}

.whatsapp-float:hover {
    transform: scale(1.05);
}

/* Divisores e Elementos de Transição */
.section-divider {
    height: 1px;
    background: #eee;
    margin: 80px 0;
    width: 100%;
}

/* Ajustes de Tipografia Específicos (Efeito Digitação) */
#typing-text {
    font-size: var(--typing-text-font-size-pc); 
    font-weight: 700;
    display: inline-block;
    border-right: 2px solid var(--color-primary);
    transition: color 0.3s ease;
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--color-primary); }
}

/* ============================= */
/* Configurações Seção 1 (GERAL MOBILE) */
/* ============================= */

@media (max-width: 768px) {
    /* Ajustes de Tipografia Global */
    .section > h2, 
    .about h2, 
    .pillars-main-title {
        font-size: 36px !important;
        line-height: 1.2;
    }

    .section-title {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    /* Espaçamento de Seções no Mobile */
    .section {
        padding-left: 24px !important;
        padding-right: 24px !important;
        margin-top: 60px !important;
        margin-bottom: 60px !important;
    }

    /* Elementos de Interface Mobile */
    .whatsapp-float {
        display: flex !important; /* Exibição exclusiva no mobile conforme regra de design */
    }

    #typing-text {
        font-size: var(--typing-text-font-size-mobile);
    }

    /* Botão CTA Mobile */
    .cta-button {
        padding: 16px 32px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
}
/* ============================= */
/* Configurações Seção 4 (ANIMAÇÕES DE REVEAL) */
/* ============================= */

/* Estado inicial: escondido e deslocado para baixo */
.reveal-entry {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    pointer-events: none; /* Evita cliques em elementos invisíveis */
}

/* Estado ativo: quando o JS adiciona a classe .active */
.reveal-entry.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Delays para elementos em sequência (opcional) */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }