/* ============================================
   ELO MOTORS VEICULOS - STYLESHEET
   Paleta: Dourado #C8A951 | Preto #1A1A1A | Prata #B8B8B8
   ============================================ */

:root {
    --gold: #C8A951;
    --gold-light: #D4BC73;
    --gold-dark: #A88A3D;
    --black: #1A1A1A;
    --black-light: #2D2D2D;
    --silver: #B8B8B8;
    --silver-light: #E0E0E0;
    --white: #FFFFFF;
    --dark-bg: #111111;
    --card-bg: #FFFFFF;
    --text: #333333;
    --text-light: #777777;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
}

* { box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background: #f5f5f5;
    margin: 0;
}

/* --- Top Bar --- */
.top-bar {
    background: var(--black);
    color: var(--silver);
    font-size: 0.8rem;
    padding: 8px 0;
}
.top-bar i { color: var(--gold); margin-right: 5px; }
.top-social a { color: var(--silver); margin-left: 12px; font-size: 1rem; transition: color 0.3s; }
.top-social a:hover { color: var(--gold); }

/* --- Navbar --- */
#mainNav {
    background: var(--black-light);
    padding: 10px 0;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.logo { height: 55px; }
.nav-link {
    color: var(--white) !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px !important;
    transition: color 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--gold) !important; }
.btn-whatsapp {
    background: var(--success);
    color: var(--white) !important;
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
}
.btn-whatsapp:hover { background: #1fa33a; transform: scale(1.05); }

/* --- Hero Banner --- */
.hero-section {
    background: linear-gradient(135deg, var(--black) 0%, var(--black-light) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('/assets/img/logo.png') center/300px no-repeat;
    opacity: 0.05;
}
.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    text-transform: uppercase;
}
.hero-title span { color: var(--gold); }
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--silver);
    margin-top: 10px;
}

/* --- Filtros --- */
.filter-section {
    background: var(--white);
    padding: 25px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-top: -30px;
    position: relative;
    z-index: 10;
    border-radius: 10px;
}
.filter-section .form-select, .filter-section .form-control {
    border: 2px solid var(--silver-light);
    border-radius: 8px;
    font-size: 0.85rem;
    padding: 10px 12px;
}
.filter-section .form-select:focus, .filter-section .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(200,169,81,0.25);
}
.btn-gold {
    background: var(--gold);
    color: var(--black);
    border: none;
    font-weight: 700;
    padding: 10px 30px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}
.btn-gold:hover { background: var(--gold-dark); color: var(--white); transform: translateY(-2px); }

/* --- Seções --- */
.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 10px;
}
.section-title span { color: var(--gold); }
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}
.section-padding { padding: 60px 0; }

/* --- Cards de Veículos --- */
.vehicle-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
}
.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.vehicle-card .card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.vehicle-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.vehicle-card:hover .card-img img { transform: scale(1.05); }
.vehicle-card .badge-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.badge-leilao { background: #FFD700; color: #000; }
.badge-blindado { background: #000; color: #fff; }
.badge-baixo_km { background: var(--danger); color: #fff; }
.badge-unico_dono { background: var(--danger); color: #fff; }
.badge-novidade { background: var(--gold); color: #000; }
.badge-teto_solar { background: #dd9933; color: #000; }
.badge-7_lugares, .badge-8_lugares { background: #dd3333; color: #fff; }
.vehicle-card .card-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}
.status-disponivel { background: var(--success); color: #fff; }
.status-reservado { background: var(--warning); color: #000; }
.status-vendido { background: var(--danger); color: #fff; }
.vehicle-card .card-body { padding: 20px; }
.vehicle-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--black);
}
.vehicle-card .card-year {
    font-size: 0.85rem;
    color: var(--text-light);
}
.vehicle-card .card-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold-dark);
    margin: 10px 0;
}
.vehicle-card .card-price small {
    font-size: 0.75rem;
    color: var(--text-light);
    text-decoration: line-through;
    display: block;
}
.vehicle-card .card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}
.vehicle-card .spec-item {
    font-size: 0.75rem;
    color: var(--text-light);
    background: #f8f8f8;
    padding: 4px 10px;
    border-radius: 15px;
}
.vehicle-card .spec-item i { color: var(--gold); margin-right: 4px; }
.vehicle-card .card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.btn-detail {
    flex: 1;
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-detail:hover { background: var(--gold); color: var(--black); }
.btn-whatsapp-card {
    background: var(--success);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    text-decoration: none;
}
.btn-whatsapp-card:hover { background: #1fa33a; color: var(--white); }

/* --- Destaques Home --- */
.highlight-box {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.highlight-box:hover { transform: translateY(-5px); }
.highlight-box i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}
.highlight-box h5 { font-weight: 700; font-size: 1rem; }
.highlight-box p { color: var(--text-light); font-size: 0.85rem; margin: 0; }

/* --- Página de Detalhes --- */
.vehicle-gallery { position: relative; }
.gallery-main {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
}
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}
.gallery-thumbs img:hover, .gallery-thumbs img.active { border-color: var(--gold); }
.detail-title { font-size: 1.8rem; font-weight: 800; }
.detail-price { font-size: 2rem; font-weight: 800; color: var(--gold-dark); }
.detail-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.detail-spec {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 8px;
}
.detail-spec i { color: var(--gold); font-size: 1.1rem; width: 20px; text-align: center; }
.detail-spec .spec-label { font-size: 0.75rem; color: var(--text-light); }
.detail-spec .spec-value { font-weight: 600; font-size: 0.9rem; }

/* --- Formulários --- */
.form-section {
    background: var(--black);
    color: var(--white);
    padding: 60px 0;
}
.form-section .form-control {
    background: var(--black-light);
    border: 1px solid #444;
    color: var(--white);
    border-radius: 8px;
    padding: 12px;
}
.form-section .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(200,169,81,0.25);
    background: var(--black-light);
    color: var(--white);
}
.form-section .form-control::placeholder { color: var(--silver); }

/* --- Paginação --- */
.pagination .page-link {
    color: var(--black);
    border-color: var(--silver-light);
    font-weight: 600;
}
.pagination .page-link:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.pagination .active .page-link { background: var(--gold); border-color: var(--gold); color: var(--black); }

/* --- Footer --- */
.site-footer {
    background: var(--black);
    color: var(--silver);
    padding: 50px 0 20px;
}
.footer-logo { height: 50px; }
.footer-desc { font-size: 0.85rem; color: var(--silver); }
.footer-title {
    color: var(--gold);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--silver); text-decoration: none; font-size: 0.85rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { margin-bottom: 8px; font-size: 0.85rem; }
.footer-contact i { color: var(--gold); margin-right: 8px; width: 16px; }
.footer-social a {
    color: var(--silver);
    font-size: 1.3rem;
    margin-right: 15px;
    transition: color 0.3s;
}
.footer-social a:hover { color: var(--gold); }
.footer-divider { border-color: #333; margin: 25px 0 15px; }
.footer-copy { font-size: 0.8rem; color: #666; margin: 0; }

/* --- WhatsApp Flutuante --- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25d366;
    color: #fff;
    border-radius: 50px;
    padding: 14px 22px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}
.whatsapp-float:hover {
    background: #1fa33a;
    color: #fff;
    transform: scale(1.05);
}
.whatsapp-float i { font-size: 1.4rem; }
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
    50% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
}

/* --- Sobre --- */
.about-img { border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.about-list { list-style: none; padding: 0; }
.about-list li { padding: 8px 0; font-size: 0.95rem; }
.about-list li i { color: var(--gold); margin-right: 10px; }

/* --- No Image Placeholder --- */
.no-image {
    background: linear-gradient(135deg, var(--black-light), var(--black));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--silver);
    font-size: 3rem;
}

/* --- Loading --- */
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 40px;
}
.spinner-gold { color: var(--gold); }

/* --- Responsivo --- */
@media (max-width: 768px) {
    .hero-title { font-size: 1.8rem; }
    .top-bar .top-info span:last-child { display: none; }
    .detail-specs { grid-template-columns: 1fr; }
    .gallery-main { height: 280px; }
    .whatsapp-float span { display: none; }
    .whatsapp-float { padding: 14px 16px; border-radius: 50%; }
    .vehicle-card .card-img { height: 180px; }
}
