:root {
    --primary: #E85D2D;
    --primary-dark: #c04216;
    --secondary: #f8f9fa; 
    --dark-bg: #ffffff; 
    --card-bg: #ffffff; 
    --text-color: #212529; 
    --text-muted: #6c757d; 
    --gold: #D4AF37;
    --border-radius: 12px;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    background-color: var(--secondary);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Scrollbar Kustom */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}
.navbar-brand { font-weight: 700; color: #212529 !important; font-size: 1.5rem; }
.navbar-brand span:first-child { color: var(--primary); }
.nav-link { color: #555 !important; font-weight: 500; margin: 0 5px; transition: color 0.3s ease; }
.nav-link:hover, .nav-link.active { color: var(--primary) !important; }

/* CTA Buttons */
.btn-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(232, 93, 45, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232, 93, 45, 0.5); color: #fff; }

/* Ensure form controls are visible on light bg */
.form-control, .form-select { background: #fff; border: 1px solid #ced4da; color: #212529; }
.form-control:focus, .form-select:focus { background: #fff; border-color: var(--primary); color: #212529; box-shadow: 0 0 0 0.25rem rgba(232, 93, 45, 0.25); }
.text-muted { color: #6c757d !important; }
.btn-square { width: 50px; height: 50px; }
    display: flex;
    align-items: center;
    justify-content: center;
}
.bg-opacity-10 {
    --bs-bg-opacity: 0.1;
}
.filter-grayscale {
    filter: grayscale(100%);
    transition: all 0.3s;
}
.filter-grayscale:hover {
    filter: grayscale(0%);
}


/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero .lead {
    font-size: 1.25rem;
    color: #f8f9fa;
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}
.swiper-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.swiper-hero .swiper-slide {
    background-size: cover;
    background-position: center;
}

/* Search Card */
.search-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.search-card label {
    color: #555;
    font-weight: 600;
}
.search-card .form-control {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #212529;
    border-radius: 10px;
}
.search-card .form-control:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: none;
}
.btn-search {
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    width: 100%;
    padding: 10px;
    transition: all 0.3s;
}
.btn-search:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Section Titles */
.section-title {
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
}
.section-title p {
    color: var(--text-muted);
}
.btn-outline-custom {
    color: #212529;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s;
}
.btn-outline-custom:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Cards Hover Effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* Specific Search Card Override */
.search-card {
    background: #ffffff !important;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.search-card h4 {
    color: #212529 !important;
}
.search-card label {
    color: #6c757d !important;
}

/* Why Choose Us Icons */
.bg-orange-light {
    background-color: rgba(232, 93, 45, 0.1) !important;
}

/* Stats Removal - just in case */
.stats {
    display: none;
}
.card-img-top {
    height: 240px;
    object-fit: cover;
}
.card-body {
    padding: 1.5rem;
}
.card-title {
    color: #212529;
    font-weight: 700;
}
.card-text {
    color: var(--text-muted);
}
.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}
.badge-transmisi {
    background: rgba(232, 93, 45, 0.1);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Features / Advantages */
.advantage-card {
    background: #fff;
    border: none;
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(232, 93, 45, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}
.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.advantage-card:hover::before {
    opacity: 1;
}
.advantage-icon {
    width: 70px;
    height: 70px;
    background: rgba(232, 93, 45, 0.1);
    color: var(--primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}
.advantage-card:hover .advantage-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

/* Product Categories Section (NEW) */
.category-card {
    position: relative;
    overflow: hidden;
    height: 300px;
    border: none;
    background: #000;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.category-card img {
    transition: transform 0.6s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}
.category-card:hover img {
    transform: scale(1.1);
    opacity: 0.7;
}
.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 2rem;
    transition: all 0.3s ease;
}
.category-icon {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}
.category-label {
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.category-card:hover .category-icon {
    transform: translateY(0);
    opacity: 1;
}
.category-card:hover .category-label {
    transform: translateY(0);
    color: var(--primary);
}

/* Stats */
.stats {
    background: #fff;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}
.counter {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

/* Testimonials */
.testimonial-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.testimonial-photo {
    border: 2px solid var(--primary);
}

/* Footer */
footer {
    background: #f8f9fa;
    color: #343a40;
    padding-top: 4rem;
    padding-bottom: 2rem;
    border-top: 1px solid #e9ecef;
}
footer h5, footer h6 {
    color: #212529;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
footer a {
    color: #343a40;
    text-decoration: none;
    transition: color 0.3s;
}
footer a:hover {
    color: var(--primary);
}
footer .text-muted,
footer .small {
    color: #343a40 !important;
}
footer .social-link {
    width: 40px;
    height: 40px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
footer .social-link:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 5px 10px rgba(232, 93, 45, 0.3);
}

/* Floating WhatsApp */
.whatsapp-float {
    background: #25D366;
    color: #fff;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    background: #20bd5a;
    color: #fff;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

/* Loading Overlay */
.loading-overlay {
    background: #fff;
}

/* Utilities */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-dark-section { background-color: #f8f9fa !important; } /* Re-map dark section to light grey */
.text-white { color: #212529 !important; } /* Re-map text-white to dark for light theme, except specific overrides */
.navbar .text-white { color: #212529 !important; }
.btn-outline-light {
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-light:hover {
    background-color: var(--primary);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .search-card { padding: 1.5rem; }
    .category-card { height: 250px; }
}

/* Cars Page Specifics */
.filter-card {
    background: #fff;
    border: none;
    border-radius: var(--border-radius);
    color: #212529;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.filter-card .form-control,
.filter-card .form-select {
    background: #f8f9fa;
    border: 1px solid #ced4da;
    color: #212529;
}
.filter-card .form-control:focus,
.filter-card .form-select:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: none;
}
.sticky-compare {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    background: rgba(255,255,255,0.95);
    border-top: 1px solid var(--primary);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}
.compare-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 8px;
    color: #212529;
}
.compare-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}
.list-view .card-car {
    flex-direction: row;
}
.list-view .card-car .card-img-top {
    width: 300px;
    height: 100%;
    border-radius: 0;
}
@media (max-width: 768px) {
    .list-view .card-car {
        flex-direction: column;
    }
    .list-view .card-car .card-img-top {
        width: 100%;
        height: 200px;
    }
}

/* Modal Customization */
.modal-content {
    background-color: #fff;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.modal-header, .modal-footer {
    border-color: #e9ecef;
}
.modal-title {
    color: #212529;
}
.modal .form-control, 
.modal .form-select {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    color: #212529 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}
.modal .form-control {
    background-image: none !important;
}
.modal .form-control:focus, 
.modal .form-select:focus {
    background-color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(232, 93, 45, 0.25);
    color: #212529 !important;
}
.modal .form-control::placeholder {
    color: #adb5bd;
}
.modal .form-select option {
    background-color: #fff;
    color: #212529;
}
.btn-close-white {
    filter: none; /* Make close button dark */
}

/* Specific overrides for text that must remain white (e.g. Hero title) */
.hero h1, .hero .lead, .btn-cta, .badge {
    color: #fff !important;
}
/* Ensure header image title remains white */
.header-img h1, .header-img .text-white-50 {
    color: #fff !important;
}
.header-img .text-white-50 {
    color: rgba(255, 255, 255, 0.75) !important;
}
/* Ensure article content is dark */
.content {
    color: #212529 !important;
}
.content p, .content ul, .content ol, .content li {
    color: #212529 !important;
}
.text-primary { color: var(--primary) !important; }
.badge-transmisi { color: var(--primary) !important; }
