/* 
 * Custom Premium Design System - AutoElite Veículos
 * Palette: Dark Blue (#0F3D91), Dark (#0A2963), Gold (#C5A059 / #D4AF37), White (#FFFFFF)
 */

:root {
    --primary-blue: #0F3D91;
    --dark-blue: #0A2963;
    --gold-accent: #C5A059;
    --gold-hover: #B38E46;
    --light-bg: #F8FAFC;
    --text-dark: #1E293B;
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--light-bg);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Typography Utilities */
.fw-extrabold { font-weight: 800; }
.text-gold { color: var(--gold-accent) !important; }
.bg-gold { background-color: var(--gold-accent) !important; }
.bg-dark-blue { background-color: var(--dark-blue) !important; }
.text-dark-blue { color: var(--dark-blue) !important; }

.fs-7 { font-size: 0.85rem; }
.fs-8 { font-size: 0.75rem; }
.letter-spacing-1 { letter-spacing: 1px; }
.letter-spacing-2 { letter-spacing: 2px; }
.truncate-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Buttons */
.btn-gold {
    background-color: var(--gold-accent);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    color: #fff;
}

.btn-dark-blue {
    background-color: var(--dark-blue);
    color: #fff;
    border: none;
}

.btn-dark-blue:hover {
    background-color: #061A42;
    color: #fff;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, #0F3D91 0%, #0A2963 100%);
    color: #fff;
    border: none;
}

.btn-primary-gradient:hover {
    background: linear-gradient(135deg, #0A2963 0%, #051639 100%);
    color: #fff;
}

.btn-hover-grow {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-hover-grow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 61, 145, 0.25);
}

.shadow-gold {
    box-shadow: 0 8px 20px rgba(197, 160, 89, 0.3);
}

/* Header & Navbar */
.top-bar {
    background-color: #061A42;
}

.navbar.sticky-top {
    z-index: 1050 !important;
}

.nav-link-custom {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.nav-link-custom:hover {
    color: var(--gold-accent) !important;
}

.z-index-2 {
    z-index: 2 !important;
}

/* Hero Section com Vídeo MP4 */
.hero-section {
    min-height: 88vh;
    position: relative;
    overflow: hidden;
    background-color: #061A42;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.85);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 26, 66, 0.85) 0%, rgba(15, 61, 145, 0.5) 50%, rgba(6, 26, 66, 0.9) 100%);
    z-index: 1;
}

.hero-title {
    color: #FFFFFF !important;
    font-weight: 800;
    text-shadow: none !important;
    line-height: 1.15;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: none !important;
}

.hero-badge {
    background-color: #D4AF37 !important;
    color: #0F172A !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    letter-spacing: 1px;
}

/* Quick Search Card */
.quick-search-card {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.quick-search-card label {
    color: #334155 !important;
    font-weight: 600;
}

.quick-search-card .form-select,
.quick-search-card .form-control {
    background-color: #F8FAFC !important;
    color: #0F172A !important;
    border: 1px solid #CBD5E1 !important;
}

.quick-search-card .form-select:focus,
.quick-search-card .form-control:focus {
    background-color: #FFFFFF !important;
    border-color: #0F3D91 !important;
    box-shadow: 0 0 0 4px rgba(15, 61, 145, 0.15) !important;
}

/* Vehicle Cards */
.card-vehicle {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-vehicle:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(15, 61, 145, 0.12) !important;
}

.vehicle-img-cover {
    height: 230px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-vehicle:hover .vehicle-img-cover {
    transform: scale(1.04);
}

.spec-pill {
    background-color: #F1F5F9;
    color: #475569;
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

/* Card Price & Button Formatting - Evita quebras de linha */
.vehicle-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    width: 100%;
}

.vehicle-price-display {
    white-space: nowrap !important;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.2;
}

.btn-card-details {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 0.45rem 1rem !important;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-float:hover {
    background-color: #20BA5A;
    color: #fff;
    transform: scale(1.1);
}

.whatsapp-badge {
    position: absolute;
    right: 70px;
    background-color: #1E293B;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Gallery Thumbnails */
.gallery-thumb {
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.gallery-thumb.active-thumb {
    border-color: var(--primary-blue) !important;
    border-width: 2px !important;
}

/* Footer Social Buttons */
.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-btn:hover {
    background-color: var(--gold-accent);
    color: #fff;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--gold-accent);
}

.avatar-initial {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}
