/* =========================================
   1. VARIÁVEIS BASE E PADRÃO DE CORES (P&B + Vermelho)
   ========================================= */
:root {
    --bg-white: #ffffff;
    --bg-main: #ffffff; /* Fundo principal Branco */
    --text-black: #000000;
    --action-color: #ff5757; /* Vermelho Ação */
    --action-hover: #e04848; /* Vermelho escuro para hover */
    
    /* Variantes suaves baseadas no vermelho */
    --action-soft: rgba(255, 87, 87, 0.1);
    
    /* Configurações de Vidro (Adaptadas para fundo branco) */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);
    
    /* Espaçamentos e Layout */
    --gap: 16px; 
    --nav-height: 70px;
}

@media (min-width: 768px) {
    :root {
        --gap: 24px;
        --nav-height: 64px;
    }
}

html { 
    scroll-behavior: smooth; 
    overflow-x: hidden;
}

body {
    background-color: var(--bg-main);
    color: var(--text-black);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.bg-main {
    background-color: var(--bg-main) !important;
}

/* Utilitários de cor */
.text-black { color: var(--text-black) !important; }
.text-action { color: var(--action-color) !important; }
.accent-text { color: var(--action-color); }
.bg-action { background-color: var(--action-color) !important; }
.bg-action-soft { background-color: var(--action-soft) !important; }
.border-action-soft { border-color: rgba(255, 87, 87, 0.2) !important; }

/* =========================================
   2. ESTRUTURA DO LAYOUT E NAVBAR
   ========================================= */
.layout-wrapper {
    padding: var(--gap);
}

.navbar-island {
    top: var(--gap) !important;
    left: var(--gap) !important;
    right: var(--gap) !important;
    width: auto !important;
    /* Fundo branco sólido ou com leve transparência para navbar */
    background: #ffffff !important; 
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    z-index: 1030;
    border-radius: 0 !important; 
}

/* Main Content ajustado */
.main-content-island {
    margin-top: calc(var(--nav-height) + var(--gap));
    margin-bottom: var(--gap);
    flex-grow: 1;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.03);
}

/* =========================================
   3. PAINÉIS E CARDS
   ========================================= */
.glass-panel {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    border-radius: 0 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: rgba(255, 87, 87, 0.2) !important;
}

/* =========================================
   4. BOTÕES (Padrão Vermelho)
   ========================================= */
.btn-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 0 !important;
}

/* Botão Vermelho Sólido */
.btn-custom.btn-neon {
    background: var(--action-color);
    color: #ffffff;
    border: none;
}

.btn-custom.btn-neon:hover {
    background: var(--action-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 87, 87, 0.3);
}

/* Botão Outline Preto */
.btn-custom.btn-outline-black {
    border: 2px solid var(--text-black);
    color: var(--text-black);
    background: transparent;
}

.btn-custom.btn-outline-black:hover {
    background-color: var(--text-black);
    color: #ffffff;
}

/* Para o botão da navbar que usa classe antiga no html, mapeando */
.btn-neon {
    background: var(--action-color) !important;
    color: #ffffff !important;
    border: none !important;
}
.btn-neon:hover {
    background: var(--action-hover) !important;
}

/* =========================================
   5. HERO SECTION, LOGOS E TEXTOS
   ========================================= */
.text-blackHero { 
    color: var(--text-black); 
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.02); 
}
.fw-black { font-weight: 900; }

.logo-nav, .logo-footer {
    height: 40px !important;
    width: auto;
    object-fit: contain;
}

.hero-section {
    position: relative;
    min-height: calc(100vh - var(--nav-height) - (var(--gap) * 6));
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 4rem 0; 
}

/* Cards de Funcionalidade */
.feature-card {
    padding: 2.5rem 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: rgba(255, 87, 87, 0.2) !important;
}

.icon-box {
    width: 70px;
    height: 70px;
    background: var(--action-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(255, 87, 87, 0.1);
    font-size: 1.8rem;
    color: var(--action-color);
    border-radius: 0; 
}

/* =========================================
   6. ANIMAÇÕES (Mantidas)
   ========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-up { 
    opacity: 0; 
    animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards; 
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* =========================================
   7. MENU MOBILE (TOGGLER PRETO)
   ========================================= */
.custom-toggler { 
    border: none; background: transparent; display: flex; flex-direction: column;
    justify-content: space-between; width: 32px; height: 22px; padding: 0;
}
.custom-toggler .toggler-line { 
    display: block; width: 100%; height: 3px; background-color: #000000; /* Preto */
    transition: all 0.3s ease-in-out; 
}
/* Animação do X mobile */
.custom-toggler[aria-expanded="true"] .toggler-line:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.custom-toggler[aria-expanded="true"] .toggler-line:nth-child(2) { opacity: 0; }
.custom-toggler[aria-expanded="true"] .toggler-line:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* =========================================
   8. FOOTER E BORDAS (Preto)
   ========================================= */
.bg-black {
    background-color: #000000 !important;
}
.border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important; /* Borda suave no footer preto */
}

/* Ocultar scrollbar padrão (Opcional, mantido do original) */
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
html, body { -ms-overflow-style: none; scrollbar-width: none; }