/* --- CSS Reset & Variables --- */
:root {
    --primary-color: #E60000; /* Merah modern */
    --primary-hover: #b30000;
    --dark: #111111;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border: #eeeeee;
    --shadow: 0 4px 6px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Typography & Buttons --- */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--dark);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: #f1f1f1;
}

/* --- Navbar --- */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--dark);
}

.logo span {
    color: var(--primary-color);
}

.nav-links a {
    margin: 0 1rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(17,17,17,0.8), rgba(17,17,17,0.8)), url('https://images.unsplash.com/photo-1552519507-da3b142c6e3d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* --- Showroom Grid --- */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h3 {
    font-size: 2rem;
    color: var(--dark);
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* --- Card Design --- */
.car-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.car-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-color);
}

.car-info {
    padding: 1.5rem;
}

.car-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.car-price {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.car-specs {
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.car-specs li {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--border);
}

.btn-block {
    display: block;
    text-align: center;
    background-color: var(--dark);
    color: var(--white);
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 600;
}

.btn-block:hover {
    background-color: #333;
}

/* --- Footer --- */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h2 { font-size: 2rem; }
    .footer-content { flex-direction: column; }
}
/* --- Halaman Detail Mobil --- */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.main-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.thumbnail-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumbnail-list img {
    height: 80px;
    width: 110px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
    border: 3px solid transparent;
}

.thumbnail-list img.active, .thumbnail-list img:hover {
    opacity: 1;
    border-color: var(--primary-color);
}

.detail-title {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.detail-price {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.specs-box, .desc-box {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.specs-box h4, .desc-box h4 {
    margin-bottom: 1rem;
    color: var(--dark);
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.detail-desc-text {
    white-space: pre-wrap;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Supaya tag a (link) di card tidak ada garis bawah */
a.car-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Responsif untuk layar HP */
@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .main-img {
        height: 300px;
    }
    .detail-title {
        font-size: 2rem;
    }
}
/* --- Styling Khusus Tabel Spesifikasi --- */
.section-red-title {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1px; /* Membuat garis antar kotak */
    background-color: var(--border);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.specs-grid > div {
    background-color: var(--white);
    padding: 12px 15px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.specs-grid .label {
    font-weight: 600;
    color: var(--text-main);
}

.specs-grid .value {
    color: var(--text-muted);
}

.specs-grid .highlight {
    color: var(--primary-color);
    font-weight: 700;
}

/* Di layar HP, tabel 4 kolom otomatis jadi 2 kolom (atas-bawah) */
@media (max-width: 600px) {
    .specs-grid {
        grid-template-columns: 1fr 1fr;
    }
}
