:root { 
    --orange: #FF8C00; 
    --dark: #121212; 
    --light-bg: #B8C1C8; 
    --text-dark: #1a202c; 
    --price-green: #27AE60; 
    --border-color: #E2E8F0;
    --card-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', 'Segoe UI', Arial, sans-serif; }
body { background-color: var(--light-bg); color: var(--text-dark); overflow-x: hidden; }

/* Header */
/* ========================================== */
/* CABEÇALHO PROFISSIONAL E LOGO AMPLIADA     */
/* ========================================== */
.topbar { 
    background-color: var(--dark); 
    color: white; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 18px 5%; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    border-bottom: 3px solid var(--orange);
}

.logo img { 
    height: 210px; /* Dobro do tamanho original para PC */
    max-height: 220px;
    object-fit: contain;
    transition: transform 0.3s;
} 

/* Mantém o tamanho original apenas no celular/tablet */
@media (max-width: 900px) {
    .logo img {
        height: 105px;
        max-height: 110px;
    }
} 
    .logo img:hover {
        transform: scale(1.02);
}

.nav-links { 
    display: flex; 
    gap: 15px; 
    align-items: center; 
    flex-wrap: wrap;
}

/* Estilo padrão para os novos botões do topo */
.nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 9px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-2px);
}

/* Cores e detalhes específicos dos botões */
.whatsapp { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    color: #fff; 
    background: #25D366; 
    padding: 9px 16px; 
    border-radius: 8px; 
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all 0.3s;
}
.whatsapp:hover { 
    background: #1EBA59; 
    transform: translateY(-2px);
}
.whatsapp img { width: 18px; filter: brightness(0) invert(1); }

@media (max-width: 900px) {
    .topbar { flex-direction: column; gap: 15px; text-align: center; padding: 20px 15px; }
    .nav-links { justify-content: center; width: 100%; }
}

/* Filtros */
.filter-section { background-color: transparent; padding: 30px 5%; text-align: center;}
.filter-section h2 { font-size: 1.6rem; margin-bottom: 25px; color: #2d3748; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;}

.filtros-container { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; max-width: 1200px; margin: 0 auto; }
.filtros-container input, .filtros-container select { padding: 12px 15px; border: none; border-radius: 8px; flex: 1; min-width: 180px; font-size: 14px; outline: none; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: box-shadow 0.3s;}
.filtros-container input:focus, .filtros-container select:focus { box-shadow: 0 0 0 2px var(--orange); }
.preco-filtros { display: flex; gap: 10px; flex: 2; min-width: 300px; }

#btn-limpar-filtros { padding: 12px 25px; background-color: white; color: #475569; border: none; border-radius: 8px; cursor: pointer; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: all 0.2s; }
#btn-limpar-filtros:hover { background-color: #E2E8F0; color: #1E293B; }

/* Vitrine e Cards */
.catalog-container { padding: 20px 5% 60px 5%; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 35px; max-width: 1450px; margin: 0 auto; }
.car-card { background: white; border-radius: 20px; padding: 10px; box-shadow: var(--card-shadow); display: flex; flex-direction: column; transition: transform 0.3s; border: 1px solid rgba(255,255,255,0.5);}
.car-card:hover { transform: translateY(-5px); }

/* Carrossel */
.carousel-container { position: relative; width: 100%; height: 240px; border-radius: 12px; overflow: hidden; margin-bottom: 15px;}
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; height: 100%; -ms-overflow-style: none; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track img { width: 100%; height: 100%; object-fit: cover; flex-shrink: 0; scroll-snap-align: start; }

.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.6); color: white; border: none; width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; opacity: 0; transition: opacity 0.3s; font-size: 16px; font-weight: bold;}
.carousel-container:hover .carousel-btn { opacity: 1; } 
.carousel-btn:hover { background: var(--orange); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

@media (hover: none) {
    .carousel-btn { opacity: 0.7; } 
}

/* Detalhes do Carro */
.car-details { padding: 10px 10px 20px 10px; flex-grow: 1; display: flex; flex-direction: column; }
.car-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; line-height: 1.3; color: var(--text-dark);}
.car-specs { font-size: 0.85rem; color: #64748B; margin-bottom: 15px; font-weight: 500;}
.car-price { font-size: 1.6rem; color: var(--price-green); font-weight: 900; margin-bottom: 15px; letter-spacing: -0.5px;}

.btn-acessar { background-color: var(--dark); color: white; text-align: center; padding: 12px; text-decoration: none; font-weight: 700; font-size: 0.9rem; border-radius: 8px; margin-top: auto; border: none; cursor: pointer; transition: background-color 0.3s;}
.btn-acessar:hover { background-color: var(--orange); color: white;}

.btn-simular { background: transparent; color: #64748B; border: none; border-top: 1px solid #E2E8F0; padding: 15px; font-size: 0.85rem; font-weight: 800; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; transition: color 0.3s, background 0.3s; margin: 0 10px;}
.btn-simular:hover { color: var(--orange); }

.btn-consultor { display: flex; align-items: center; justify-content: center; gap: 10px; background-color: #25D366; color: white; text-decoration: none; padding: 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 800; text-transform: uppercase; transition: background-color 0.3s; margin-top: 5px;}
.btn-consultor:hover { background-color: #1EBA59; }
.btn-consultor img { width: 20px; filter: brightness(0) invert(1); }

/* Utilitários */
.w-100 { width: 100%; }
.mt-1 { margin-top: 15px; }
.btn-whatsapp { background-color: #25D366; color: white; padding: 14px; border: none; font-weight: bold; border-radius: 6px; cursor: pointer; font-size: 1rem; transition: background-color 0.3s;}
.btn-whatsapp:hover { background-color: #1EBA59; }

/* ========================================== */
/* SIDEBAR DO SIMULADOR (UNIFICADA)           */
/* ========================================== */
.overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.7); z-index: 9998; 
    display: none; opacity: 0; transition: opacity 0.3s; 
    backdrop-filter: blur(3px);
}
.overlay.active { display: block; opacity: 1; }

.sidebar { 
    position: fixed; top: 0; right: -100%; /* Escondida por padrão */
    width: 100%; max-width: 420px; height: 100vh; 
    background: white; z-index: 9999; 
    box-shadow: -5px 0 25px rgba(0,0,0,0.1); 
    transition: right 0.3s ease-in-out; 
    overflow-y: auto; display: flex; flex-direction: column; 
}
.sidebar.open { right: 0 !important; } 

.btn-fechar { position: absolute; top: 20px; right: 25px; background: none; border: none; font-size: 28px; cursor: pointer; color: #94A3B8; transition: color 0.2s;}
.btn-fechar:hover { color: #EF4444;}
.simulador-section { padding: 40px 30px; }
.simulador-section h3 { font-size: 1.4rem; border-bottom: 2px solid var(--orange); padding-bottom: 12px; margin-bottom: 20px; color: var(--dark);}
.destaque-veiculo { color: var(--orange); font-weight: 700; margin-bottom: 25px; font-size: 1.1rem; line-height: 1.4;}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; color: #475569; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group select { width: 100%; padding: 12px 15px; border: 1px solid #CBD5E1; border-radius: 6px; font-size: 1rem; background-color: white; outline: none; transition: border-color 0.3s;}
.form-group input:focus, .form-group select:focus { border-color: var(--orange); }
.form-group input[readonly] { background-color: #F1F5F9; color: #64748B; cursor: not-allowed;}

.resultado-box { display: none; margin-top: 30px; padding: 20px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 8px; }
.resultado-box p { color: #475569; font-size: 0.9rem; line-height: 1.5;}
.parcela-destaque { font-size: 1.8rem; color: var(--price-green); font-weight: 800; display: block; margin-top: 5px;}

/* ========================================== */
/* RESPONSIVIDADE (MOBILE ALINHADO)           */
/* ========================================== */
@media (max-width: 900px) {
    .filter-section h2 { font-size: 1.2rem; }
    .catalog-container { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    .topbar { flex-direction: column; padding: 15px; gap: 15px; text-align: center; }
    .nav-links { width: 100%; justify-content: center; gap: 10px; flex-wrap: wrap;}
    
    .filter-section { padding: 25px 15px; }
    .filtros-container { flex-direction: column; width: 100%; align-items: center; }
    .filtros-container input, .filtros-container select { width: 100%; min-width: 100%; }
    .preco-filtros { flex-direction: column; width: 100%; min-width: 100%; }
    
    /* Centralizar os cards e ajustar a largura no celular */
    .catalog-container { padding: 15px 15px 40px 15px; grid-template-columns: 1fr; justify-items: center; }
    .car-card { width: 100%; max-width: 400px; }
    
    /* Ajuste do Simulador para preencher 100% da tela mobile */
    .sidebar { max-width: 100%; right: -100%; }
}