/* ==========================================================================
   1. VARIÁVEIS & RESET GLOBAL
   ========================================================================== */
:root {
    /* Paleta de Cores (Dark Mode + Ferrari Red) */
    --primary: #D90429;
    --primary-hover: #B30022;
    
    --dark-bg: #0a0a0a;      /* Fundo Principal */
    --dark-card: #141414;    /* Fundo dos Cards */
    
    --text-white: #FFFFFF;
    --text-gray: #D0D0D0;    /* Cinza claro para melhor leitura (Acessibilidade) */
    
    /* Configurações de Layout */
    --container-width: 1200px;
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--dark-bg); color: var(--text-white); overflow-x: hidden; }

h1, h2, h3 { font-family: 'Poppins', sans-serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* ==========================================================================
   2. BACKGROUND GLOBAL (EFEITO GLOW/BLUR FIXO)
   ========================================================================== */
.background-effects {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; pointer-events: none; overflow: hidden;
    background: var(--dark-bg);
}

.shape {
    position: absolute; border-radius: 50%;
    filter: blur(100px); opacity: 0.45; /* Brilho intenso */
    animation: floatGlow 10s infinite alternate;
}

/* Luz Topo Direito */
.shape-1 { width: 600px; height: 600px; background: var(--primary); top: -10%; right: -10%; }
/* Luz Base Esquerda */
.shape-2 { width: 500px; height: 500px; background: #ff0000; bottom: -10%; left: -10%; opacity: 0.3; }
/* Luz Central Suave */
.shape-3 { width: 400px; height: 400px; background: var(--primary); top: 40%; left: 40%; opacity: 0.15; }

.grid-lines { 
    position: absolute; width: 100%; height: 100%; 
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px); 
    background-size: 50px 50px; opacity: 0.1; 
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-20px, 20px) scale(1.1); }
}

/* ==========================================================================
   3. UTILITÁRIOS & BOTÕES
   ========================================================================== */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.full-width { width: 100%; justify-content: center; }

/* Botões Padrão */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; 
    padding: 12px 28px; border-radius: 50px; font-weight: 600; cursor: pointer; transition: 0.3s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(217, 4, 41, 0.4); }

.btn-primary { background: var(--primary); color: #fff; border: 2px solid var(--primary); }
.btn-outline { border: 2px solid rgba(255,255,255,0.2); color: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-solid { background: var(--primary); color: #fff; padding: 10px 20px; border-radius: 8px; }

/* Seções Gerais */
.section { padding: 5rem 0; }
.bg-darker { background: #050505; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: #fff; }

/* ==========================================================================
   4. HEADER & MENU
   ========================================================================== */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000; padding: 20px 0;
    background: rgba(10, 10, 10, 0.9); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.logo h1 { font-size: 1.5rem; color: #fff; }
.logo span { color: var(--primary); font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; display: block; text-transform: uppercase; }

.desktop-nav a { margin: 0 15px; color: var(--text-gray); font-size: 0.95rem; font-weight: 500; }
.desktop-nav a:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 15px; }
.mobile-menu-btn { display: none; background: none; border: none; color: #fff; font-size: 1.8rem; cursor: pointer; }

/* Menu Mobile Overlay */
.mobile-menu {
    display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%;
    background: var(--dark-bg); padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.mobile-menu a { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); color: #fff; text-align: center; }

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero { min-height: 100vh; padding-top: 100px; display: flex; align-items: center; position: relative; overflow: hidden; }

.hero-grid {
    display: grid; grid-template-columns: 1fr 1.3fr; align-items: center; gap: 20px;
    position: relative; z-index: 2;
}

.hero-content { z-index: 3; }

/* Tipografia Hero */
.eyebrow { color: var(--primary); font-weight: 700; font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 15px; display: block; }
.headline { font-size: 3.8rem; font-weight: 800; margin-bottom: 20px; color: #fff; line-height: 1.1; }
.subheadline { color: var(--text-gray); font-size: 1.1rem; margin-bottom: 35px; max-width: 90%; line-height: 1.6; }
.cta-group { display: flex; gap: 15px; }

/* Carro Gigante */
.hero-visual { position: relative; height: 600px; display: flex; justify-content: center; align-items: center; }
.car-image {
    width: 140%; max-width: 1100px; transform: translateX(50px);
    filter: drop-shadow(0 30px 60px rgba(217, 4, 41, 0.25));
    z-index: 2; opacity: 0; /* Controlado via JS */
}

/* Cards Flutuantes Hero */
.floating-card {
    position: absolute; background: rgba(20, 20, 20, 0.85); backdrop-filter: blur(10px);
    padding: 12px 24px; border-radius: 12px; border: 1px solid rgba(217, 4, 41, 0.3);
    display: flex; align-items: center; gap: 10px; z-index: 3; box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}
.floating-card i { color: var(--primary); font-size: 1.4rem; }
.card-battery { top: 15%; right: 10%; }
.card-check { bottom: 20%; left: 0%; }

/* ==========================================================================
   6. CARDS DE SERVIÇOS
   ========================================================================== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }

.service-card {
    background: var(--dark-card); padding: 40px 30px; border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.05); transition: 0.4s; position: relative; overflow: hidden;
    opacity: 1; transform: translateY(0); /* Fallback de segurança */
}

.service-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 20px 40px -20px rgba(217, 4, 41, 0.3); }
.service-card i { font-size: 3rem; color: var(--primary); margin-bottom: 20px; display: block; }
.service-card h3 { margin-bottom: 10px; color: #fff; font-size: 1.3rem; }
.service-card p { color: #888; line-height: 1.5; }

/* ==========================================================================
   7. SEÇÃO SOBRE (GRID DE ESTATÍSTICAS)
   ========================================================================== */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* Grid Bento Box para os números */
.stats-wrapper {
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 200px 150px;
    gap: 20px; width: 100%;
}

.stat-box {
    background: var(--dark-card); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: var(--radius);
    padding: 30px; display: flex; flex-direction: column; justify-content: center;
    position: relative; overflow: hidden; transition: 0.3s;
}
.stat-box:hover { border-color: var(--primary); transform: translateY(-5px); }

.main-stat {
    grid-column: 1 / span 2; background: linear-gradient(145deg, var(--dark-card), #0f0f0f);
    align-items: center; text-align: center;
}

.big-number { font-size: 4rem; font-weight: 800; color: #fff; line-height: 1; font-family: 'Poppins', sans-serif; }
.main-stat .big-number { color: var(--primary); text-shadow: 0 10px 30px rgba(217, 4, 41, 0.3); }

.stat-box p { color: var(--text-gray); font-size: 1rem; margin-top: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }
.bg-icon { position: absolute; right: -20px; bottom: -20px; font-size: 8rem; color: rgba(255, 255, 255, 0.03); transform: rotate(-15deg); }

/* ==========================================================================
   8. AVALIAÇÕES & LOCALIZAÇÃO
   ========================================================================== */
.review-card { 
    max-width: 800px; margin: 0 auto; background: var(--dark-card); padding: 40px; 
    border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.05); text-align: center; 
}
.stars { color: var(--primary); margin-bottom: 15px; font-size: 1.2rem; }

.location-grid { 
    display: grid; grid-template-columns: 1.5fr 1fr; background: var(--dark-card); 
    border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.05); 
}
.map-container { min-height: 400px; }
.map-container iframe { width: 100%; height: 100%; filter: grayscale(100%) invert(92%) contrast(83%); }
.location-info { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.address { margin: 20px 0 30px 0; color: #ccc; font-size: 1.1rem; line-height: 1.6; }

/* ==========================================================================
   9. FOOTER & FLOAT ELEMENTS
   ========================================================================== */
footer { padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.05); text-align: center; color: var(--text-gray); margin-top: 50px; }

/* Botão Flutuante WhatsApp */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; background-color: #25D366; color: #FFF;
    width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 32px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); z-index: 2000; transition: 0.3s;
    animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6); }

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

/* ==========================================================================
   10. RESPONSIVIDADE (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    
    .hero-content { 
        order: 1; 
        padding-top: 40px; 
    }
    
  
    .hero-visual { 
        order: 2; 
        height: 300px; 
        margin-bottom: 20px;
    }
    
    .car-image { 
        width: 100%; 
        max-width: 450px; 
        transform: translateX(0); 
    }
    
    .headline { font-size: 2.8rem; }
    
    .desktop-nav, .desktop-only { display: none; }
    .mobile-menu-btn { display: block; }
    
    .cta-group { justify-content: center; flex-direction: column; }
    .btn { width: 100%; }
    
    .split-layout, .location-grid, .stats-wrapper { grid-template-columns: 1fr; }
    .stats-wrapper { grid-template-rows: auto; }
    .main-stat { grid-column: 1; }
    .map-container { min-height: 300px; }

   
    .shape {
        animation: none; 
        opacity: 0.25; 
        filter: blur(60px); 
    }
    .shape-1 { top: 0; right: -20%; }
    .shape-2 { bottom: 0; left: -20%; }
    .shape-3 { display: none; } 
}