/* =========================================
   1. VARIÁVEIS & DESIGN SYSTEM
   ========================================= */
:root {
    /* --- CORES BASE (DARK MODE - PADRÃO) --- */
    --bg-primary: #0B0B0B;
    --bg-surface: #161616;
    --bg-surface-hover: #1F1F1F;
    --text-main: #F5F5F5;
    --text-muted: #B0B0B0;
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Filtro para inverter o mapa no modo escuro */
    --map-filter: grayscale(100%) invert(92%) contrast(83%);
    --glass-bg: rgba(11, 11, 11, 0.85);

    /* --- IDENTIDADE VISUAL (COMUM) --- */
    --primary-red: #D32F2F;
    --primary-red-hover: #B71C1C;
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
    
    /* --- EFEITOS --- */
    --glass-border: rgba(255, 255, 255, 0.05);
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.5);
    
    /* --- LAYOUT & TIPOGRAFIA --- */
    --font-main: 'Poppins', sans-serif;
    --container-width: 1200px;
}

/* --- LIGHT MODE (Ativado via classe .light-theme no body) --- */
body.light-theme {
    --bg-primary: #F4F4F7; /* Cinza Gelo Premium */
    --bg-surface: #FFFFFF;
    --bg-surface-hover: #F9F9F9;
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --border-color: rgba(0, 0, 0, 0.1);
    
    /* Remove inversão do mapa e ajusta glassmorphism */
    --map-filter: none;
    --glass-bg: rgba(255, 255, 255, 0.90);
    --glass-border: rgba(0, 0, 0, 0.05);
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
}

body.light-theme .review-card::before {
    color: rgba(0, 0, 0, 0.05); /* Preto bem clarinho para fundo branco */
}

/* =========================================
   2. RESET & ESTRUTURA GLOBAL
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-surface);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease; /* Transição suave do tema */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Tipografia */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.5px; color: var(--text-main); }
.text-highlight { color: var(--primary-red); }

/* Utilitários de Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 80px 0; }
.bg-surface { background-color: var(--bg-primary); }

/* =========================================
   3. BOTÕES & UI ELEMENTS
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-red);
    color: #fff;
    border: 1px solid var(--primary-red);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-red);
    box-shadow: 0 4px 20px rgba(211, 47, 47, 0.5);
}

/* Botão de Troca de Tema (Sol/Lua) */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: 0.3s;
}

.theme-toggle:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* =========================================
   4. NAVBAR (HEADER)
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { font-size: 1.5rem; font-weight: 700; color: var(--text-main); }
.logo span { color: var(--primary-red); }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.95rem; font-weight: 300; color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }

.header-actions { display: flex; align-items: center; gap: 15px; }

.admin-lock { font-size: 0.9rem; color: var(--text-muted); opacity: 0.6; padding: 5px; }
.admin-lock:hover { opacity: 1; color: var(--primary-red); }

/* =========================================
   5. SEÇÃO 01: HERO SLIDER (BANNERS)
   ========================================= */
.hero-slider {
    height: 100vh; /* Altura imponente */
    width: 100%;
    margin-top: 72px; /* Offset do header fixo */
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.swiper-pagination-bullet{
    width: 12px;        /* Aumentado (padrão é 8px) */
    height: 12px;
    background: #ffffff; /* Branco quando inativo (melhor contraste sobre fotos escuras) */
    opacity: 0.5;       /* Meia transparência */
    margin: 0 6px !important; /* Espaçamento entre eles */
    transition: all 0.3s ease; /* Animação suave na troca */
    box-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Sombra para garantir visibilidade em fundos claros */
}

.swiper-pagination-bullet-active {
    background: var(--primary-red); /* Vermelho da marca */
    opacity: 1;           /* Totalmente visível */
    width: 25px;          /* Estilo "pílula" (mais largo) para destacar qual está ativo */
    border-radius: 10px;  /* Arredondar bordas da pílula */
}

.swiper-pagination {
    bottom: 25px !important; /* Levanta um pouco para não colar na borda inferior */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Gradiente ajustado para funcionar bem com texto */
    background: linear-gradient(90deg, #000000 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: 5%;
}

.hero-content h2 { 
    font-size: 3.5rem; 
    line-height: 1.1; 
    margin-bottom: 1rem; 
    color: #fff; /* Sempre branco sobre a imagem */
}
.hero-content p { 
    font-size: 1.2rem; 
    color: #e0e0e0; 
    margin-bottom: 2rem; 
    font-weight: 300; 
}

/* --- MENU MOBILE (SIDEBAR) --- */

/* Classes Utilitárias de Visibilidade */
.mobile-only { display: none; }
.desktop-only { display: flex; align-items: center; gap: 20px; }

/* Botão Hamburguer */
.hamburger-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* Sidebar (Gaveta) */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px; /* Começa escondido na direita */
    width: 280px;
    height: 100vh;
    background: var(--bg-surface);
    z-index: 2000;
    padding: 25px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    right: 0; /* Desliza para dentro */
}

/* Overlay (Fundo Escuro) */
.mobile-menu-overlay {
    height: 100vh;     
    height: 100dvh;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(3px); /* Efeito Blur Premium */
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Conteúdo da Sidebar */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.close-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 35px; height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.3s;
}
.close-btn:hover { color: var(--primary-red); border-color: var(--primary-red); }

.sidebar-links li { margin-bottom: 20px; }
.sidebar-links a {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
    display: block;
}
.sidebar-links a:hover { color: var(--primary-red); padding-left: 10px; }

.sidebar-footer {
    margin-top: auto; /* Empurra para o fundo */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-sidebar-full { width: 100%; text-align: center; }
.btn-sidebar-outline {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-main);
}

/* --- MEDIA QUERY: ATIVAR MOBILE --- */
@media (max-width: 992px) { /* Tablet e Mobile */
    .desktop-only { display: none; } /* Esconde menu topo */
    .mobile-only { display: block; } /* Mostra hamburguer */
    .nav-container { justify-content: space-between; padding: 0 20px; }
}

/* =========================================
   6. SEÇÃO 02: LISTAGEM CARROS (CARDS)
   ========================================= */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; }
.section-title p { color: var(--text-muted); font-weight: 300; }

.car-grid {
    display: grid;
    /* MUDANÇA AQUI: 'auto-fill' em vez de 'auto-fit' impede que um único card estique */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 30px;
    margin-bottom: 60px;
}

/* --- CARD DO CARRO (PREMIUM FACELIFT) --- */
.car-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px; /* Bordas mais arredondadas */
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column; /* Garante alinhamento vertical */
    height: 100%; /* Para grids, faz todos terem a mesma altura */
    position: relative;
}

.car-card:hover {
    transform: translateY(-8px); /* Sobe um pouco mais */
    box-shadow: 0 15px 30px rgba(0,0,0,0.4); /* Sombra difusa premium */
    border-color: rgba(255,255,255,0.2); /* Borda acende levemente */
}

/* Área da Foto */
.car-thumb {
    height: 240px; /* Um pouco mais alto para valorizar a foto */
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.car-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Zoom suave cinematográfico */
}

.car-card:hover .car-thumb img { 
    transform: scale(1.08); 
}

/* Área de Informações */
.car-info { 
    padding: 20px 20px 10px 20px; 
    flex-grow: 1; /* Empurra o botão para baixo */
    display: flex;
    flex-direction: column;
}

.car-title { 
    font-size: 1.15rem; 
    margin-bottom: 4px; 
    color: var(--text-main); 
    line-height: 1.3;
}

.car-title strong {
    font-weight: 700;
    display: block; /* Quebra a linha entre Marca e Modelo para ficar mais imponente */
    font-size: 1.3rem;
}

.car-version { 
    font-size: 0.85rem; 
    color: var(--text-muted); 
    font-weight: 400; 
    margin-bottom: 15px; 
    min-height: 20px; /* Evita pulo se não tiver versão */
}

/* Specs (Ano e KM) */
.car-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #999;
}

.car-specs span {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.05); /* Fundo sutil nos itens */
    padding: 4px 8px;
    border-radius: 4px;
}

.car-specs i { color: var(--primary-red); font-size: 0.8rem; }

/* Preço */
.car-price { 
    font-size: 1.6rem; 
    font-weight: 700; 
    color: var(--primary-red);
    margin-top: auto; /* Garante que o preço fique no final da área de info */
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

/* --- O BOTÃO NOVO (DESCOLADO) --- */
.btn-whatsapp-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    
    /* O SEGREDO DO VISUAL: Margens e Bordas */
    margin: 0 20px 20px 20px; /* Espaço nas laterais e embaixo */
    padding: 12px 0;
    border-radius: 8px; /* Botão arredondado */
    
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); /* Gradiente sutil */
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none; /* Remove bordas antigas */
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2); /* Brilho verde suave */
}

.btn-whatsapp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #20bd5a 0%, #0e6f63 100%);
}

.btn-whatsapp-card i { 
    font-size: 1.1rem; 
}

.tag-vendido {
    position: absolute;
    top: 15px; right: 15px;
    background: #000;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    z-index: 10;
}

.car-info { padding: 20px; flex-grow: 1; }
.car-title { font-size: 1.2rem; margin-bottom: 5px; color: var(--text-main); }
.car-version { font-size: 0.85rem; color: var(--text-muted); font-weight: 300; margin-bottom: 15px; }

.car-specs {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.car-price { font-size: 1.4rem; font-weight: 700; color: var(--primary-red); }

/* Botão WhatsApp dentro do Card */
.btn-whatsapp-card {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--whatsapp-green);
    color: #fff;
    padding: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: background 0.3s;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.btn-whatsapp-card:hover {
    background: var(--whatsapp-dark);
    color: #fff;
}
.btn-whatsapp-card i { margin-right: 5px; }

/* --- SEÇÃO HISTÓRIA (SOBRE) --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Composição da Imagem */
.about-image-wrapper {
    position: relative;
    padding-left: 20px; /* Espaço para o badge não vazar */
}

.about-img-main {
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

/* O Badge "Desde 1990" */
.years-badge {
    position: absolute;
    bottom: -20px;
    left: 0;
    background: var(--bg-surface);
    border: 1px solid var(--primary-red);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.years-badge .since {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.years-badge .year {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    line-height: 1;
    margin: 5px 0;
}

.years-badge .label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Estatísticas Rápidas */
.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* EFEITO PREMIUM NA IMAGEM DA HISTÓRIA */
.about-img-main {
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 1px solid var(--border-color);
    
    /* O TRUQUE VISUAL: Começa P&B */
    filter: grayscale(100%) contrast(110%);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Animação suave */
    cursor: pointer;
}

/* Quando passar o mouse no container da imagem */
.about-image-wrapper:hover .about-img-main {
    filter: grayscale(0%) contrast(100%); /* Fica colorida */
    transform: scale(1.02); /* Leve zoom para dar vida */
    box-shadow: 0 25px 50px rgba(211, 47, 47, 0.15); /* Sombra vermelha sutil */
    border-color: rgba(211, 47, 47, 0.3);
}

/* Responsividade */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-wrapper {
        order: -1; /* Imagem em cima no mobile */
        padding-left: 0;
        margin-bottom: 20px;
    }
    
    .years-badge {
        right: auto;
        left: 20px; /* Badge vai para a direita no mobile */
        padding: 15px 20px;
    }
}

/* =========================================
   7. SEÇÃO 03: LOCALIZAÇÃO & CONTATO
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Lado do mapa levemente maior */
    gap: 50px;
    align-items: start;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h3 { font-size: 1.1rem; margin-bottom: 5px; }

.map-container {
   width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 3px solid #D32F2F;
}

.map-container iframe {
    width: 100%; height: 100%;
    filter: grayscale(100%);
    transition: 0.5s ease;
}

.map-container:hover iframe { filter: grayscale(0%); }

/* =========================================
   8. SEÇÃO 04: AVALIAÇÕES (PROVA SOCIAL)
   ========================================= */
/* --- SEÇÃO 04: AVALIAÇÕES (PREMIUM) --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--bg-surface);
    padding: 40px 30px;
    border-radius: 12px; /* Mais arredondado */
    border: 1px solid var(--border-color);
    position: relative; /* Necessário para o elemento decorativo */
    overflow: hidden;   /* Corta a aspa gigante se vazar */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Efeito Hover: O card "flutua" e a borda acende */
.review-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* Elemento Decorativo: Aspa Gigante no Fundo */
.review-card::before {
    content: '“';
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 8rem;
    color: rgba(255,255,255,0.03); /* Quase invisível, muito sutil */
    font-family: serif;
    line-height: 1;
    pointer-events: none;
}

.review-stars {
    color: #FFD700; /* Dourado */
    margin-bottom: 20px;
    font-size: 0.9rem;
    letter-spacing: 2px; /* Estrelas mais separadas */
}

.review-text {
    font-style: italic;
    font-size: 1rem;
    
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.7;
    flex-grow: 1; /* Empurra o autor para baixo */
    position: relative;
    z-index: 2; /* Fica acima da aspa decorativa */
}

.review-author {
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

/* Linha vermelha ao lado do nome (Refinada) */
.review-author::before {
    content: '';
    display: block;
    width: 30px; 
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

/* Ao passar o mouse, a linha cresce */
.review-card:hover .review-author::before {
    width: 50px;
}

/* Container do Botão Google Centralizado */
.google-btn-wrapper {
    display: flex;
    justify-content: center; /* Centraliza horizontalmente perfeito */
    align-items: center;
    margin-top: 40px;
    width: 100%;
}

/* Garante que o botão não estique no mobile */
.google-btn-wrapper .btn {
    width: auto; 
    max-width: 90%;
}

/* --- BOTÃO GOOGLE REESTILIZADO --- */
/* (Se o seu botão tiver uma classe específica, use-a. 
   Aqui estou assumindo que é o link dentro da div centralizada no final da section) */
.section-padding > div[style*="text-align: center"] .btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-muted);
    border-radius: 50px; /* Formato Pílula */
    padding: 12px 35px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.section-padding > div[style*="text-align: center"] .btn:hover {
    background: rgba(255,255,255,0.05);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.05);
}

.section-padding > div[style*="text-align: center"] .btn i {
    color: var(--primary-red); /* O ícone do Google fica colorido */
}

/* --- AUTOR DO DEPOIMENTO COM FOTO --- */
.review-author {
    display: flex;
    align-items: center;
    gap: 15px; /* Espaço entre foto e texto */
    position: relative;
    z-index: 2;
}

/* Estilo da Foto (Avatar) */
.review-author img {
    width: 55px;
    height: 55px;
    border-radius: 50%; /* Faz ficar redondo */
    object-fit: cover; /* Garante que a foto não estique */
    border: 2px solid var(--primary-red); /* Borda premium vermelha */
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); /* Sombra para destacar do fundo */
}

/* Texto do Nome e Carro */
.review-author div {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.review-author strong {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 700;
}

.review-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* =========================================
   9. SEÇÃO 05: FOOTER
   ========================================= */
footer {
    background: var(--bg-surface);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
    margin-top: 0; /* Remove margem pois pode vir de uma seção colorida */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-content h3 { font-size: 1.2rem; margin-bottom: 25px; color: var(--text-main); }
.footer-content ul li { margin-bottom: 12px; }
.footer-content a { color: var(--text-muted); transition: 0.3s; }
.footer-content a:hover { color: var(--primary-red); padding-left: 5px; }

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-dev a { color: var(--primary-red); font-weight: 600; }

/* =========================================
   10. RESPONSIVIDADE (MOBILE)
   ========================================= */
@media (max-width: 992px) {
    .container { max-width: 960px; }
    .hero-content h2 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    /* Header */
    .nav-links { display: none; } /* Obs: Adicionar menu hambúrguer JS depois */
    .btn-sm-hide { display: none; }
    
    /* Hero */
    .hero-slider { height: 95vh; }
    .hero-content { margin-left: 20px; margin-right: 20px; }
    .hero-content h2 { font-size: 2.2rem; }
    
    /* Sections */
    .section-padding { padding: 60px 0; }
    .contact-grid { grid-template-columns: 1fr; }
    .map-container { min-height: 300px; }
    
    /* Footer */
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}

/* --- PÁGINA DE ESTOQUE (FILTROS) --- */
.filter-bar {
    background: var(--bg-surface);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.filter-group {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px;
    border-radius: 4px;
    font-family: inherit;
    width: 100%;
    transition: 0.3s;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary-red);
}

.filter-btn-group {
    min-width: 120px;
}

/* Responsivo dos filtros */
@media (max-width: 768px) {
    .filter-form {
        flex-direction: column;
        gap: 15px;
    }
    .filter-group, .filter-btn-group {
        width: 100%;
        min-width: 100%;
    }
    .filter-btn-group .btn {
        margin-top: 10px !important;
    }
}

/* --- RESPONSIVIDADE ADMIN (MOBILE) --- */

@media (max-width: 768px) {
    /* 1. Ajustes Gerais */
    .container, .form-container {
        padding: 0 15px;
        width: 100%;
    }

    /* 2. Listagem (Veículos) */
    .admin-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .btn-new-vehicle {
        width: 100%;
        text-align: center;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table {
        min-width: 600px; /* Força scroll horizontal se for menor que isso */
    }

    /* 3. Formulário (Grid vira Coluna) */
    .form-grid {
        grid-template-columns: 1fr; /* 1 Coluna só */
        padding: 20px;
    }

    .form-group.span-2,
    .form-group.mobile-full {
        grid-column: 1 / -1; /* Ocupa tudo */
    }

    .form-group input, 
    .form-group select, 
    .form-group textarea {
        font-size: 16px; /* Evita zoom automático no iPhone */
    }

    /* 4. Ações do Form (Botões empilhados) */
    .form-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .form-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* --- RESPONSIVIDADE HEADER & SIDEBAR --- */

/* Classes Utilitárias */
.mobile-only { display: none; }
.desktop-only { display: flex; }

.logo-area {
    font-weight: 700; 
    color: #fff;
    font-size: 1.2rem;
}

.user-area {
    display: flex; 
    align-items: center; 
    gap: 15px;
}

/* Botão Hamburguer Admin */
.admin-hamburger {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    width: 40px; height: 40px;
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
}

/* --- SIDEBAR ADMIN (GAVETA) --- */
.admin-sidebar {
    position: fixed;
    top: 0;
    right: -300px; /* Escondido */
    width: 280px;
    height: 100vh;
    background: #1E1E1E; /* Fundo do Card Admin */
    z-index: 2000;
    padding: 25px;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
}

.admin-sidebar.active {
    right: 0; /* Aparece */
}

.admin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(2px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.admin-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Header da Sidebar */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Info do Usuário na Sidebar */
.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    background: #121212;
    padding: 15px;
    border-radius: 8px;
}

.avatar-circle {
    width: 40px; height: 40px;
    background: var(--primary-red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Links da Sidebar */
.sidebar-links { list-style: none; padding: 0; }
.sidebar-links li { margin-bottom: 10px; }

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    color: #B0B0B0;
    border-radius: 6px;
    transition: 0.3s;
}

.sidebar-links a:hover, 
.sidebar-links a.active {
    background: rgba(211, 47, 47, 0.1);
    color: var(--primary-red);
}

.btn-sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 1px solid #422;
    color: #f88;
    border-radius: 6px;
    margin-top: auto;
}

/* MEDIA QUERY */
@media (max-width: 992px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block; }
    
    .admin-nav {
        justify-content: space-between;
    }
}

/* --- BOTÃO FLUTUANTE YOUTUBE --- */
.video-floating-btn {
    position: fixed;
    bottom: 20px; /* Acima do botão WhatsApp (que geralmente fica a 20px) */
    right: 20px;
    width: 60px;
    height: 60px;
    background: #FF0000; /* Vermelho YouTube */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.4);
    cursor: pointer;
    z-index: 990; /* Acima de quase tudo, abaixo do modal */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.6);
}

/* Notificação (Bolinha) */
.notification-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid #FF0000;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* --- MODAL DE VÍDEO --- */
.video-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.video-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.video-modal-content {
    width: 100%;
    max-width: 900px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-modal-overlay.active .video-modal-content {
    transform: scale(1);
}

/* Close Button */
.close-video-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
}
.close-video-btn:hover { color: var(--primary-red); }

/* Wrapper Responsivo (Mantém proporção 16:9) */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Ajuste Mobile para não sobrepor o menu fixo ou wpp */
@media (max-width: 768px) {
    .video-floating-btn {
        width: 50px; height: 50px;
        font-size: 1.5rem;
        bottom: 80px; /* Ajuste conforme seu footer fixo */
        right: 15px;
    }
    .close-video-btn {
        top: 10px;
        right: 10px;
        z-index: 10;
        background: rgba(0,0,0,0.5);
        border-radius: 50%;
        width: 30px; height: 30px;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.2rem;
    }
}