/* --- 1. DASAR & RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: #f0f2f5; color: #1a202c; overflow-x: hidden; }

/* --- 2. NAVBAR & LOGO (DENGAN LATAR PUTIH CANTIK) --- */
.navbar { 
    background: #004990; 
    color: white; 
    padding: 0.8rem 5%; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Latar belakang putih untuk logo agar kontras */
.logo-img {
    height: 55px;
    width: auto;
    background: white;
    padding: 8px;
    border-radius: 12px; /* Membuat sudut membulat elegan */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.logo-text { display: flex; flex-direction: column; text-align: left; }
.brand-name { font-size: 1.4rem; font-weight: 800; line-height: 1; letter-spacing: -0.5px; }
.tagline { font-size: 0.75rem; font-weight: 600; color: #ffeb3b; margin-top: 4px; text-transform: uppercase; }

/* --- 3. KONTEN UTAMA --- */
.container { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }
.title { text-align: center; margin-bottom: 30px; font-weight: 800; font-size: 1.8rem; color: #004990; }

/* --- 4. FILTER (MOBILE FRIENDLY) --- */
.filter-section { background: white; padding: 15px; border-radius: 20px; margin-bottom: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.filter-group { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.filter-btn { padding: 8px 16px; border: 1px solid #e2e8f0; background: white; border-radius: 25px; cursor: pointer; transition: 0.3s; font-size: 0.8rem; font-weight: 600; }
.filter-btn.active { background: #004990; color: white; border-color: #004990; box-shadow: 0 4px 10px rgba(0,73,144,0.3); }

/* --- 5. GRID KATALOG & KARTU --- */
.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { 
    background: white; 
    border-radius: 25px; 
    padding: 20px; 
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); 
    text-align: center; 
    border: 1px solid #f1f5f9; 
    position: relative; 
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover { transform: translateY(-8px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }

/* --- 6. SISTEM GAMBAR & GALERI --- */
.img-main { width: 100%; height: 180px; object-fit: contain; margin-bottom: 12px; transition: 0.3s; }
.thumb-container { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 15px; }
.img-thumb { width: 100%; height: 40px; object-fit: cover; border-radius: 8px; border: 2px solid #f1f5f9; cursor: pointer; transition: 0.2s; }
.img-thumb.active { border-color: #004990; transform: scale(1.05); }

/* --- 7. LABEL & BADGE --- */
.badge { position: absolute; top: 15px; left: 15px; padding: 5px 12px; border-radius: 8px; font-size: 0.65rem; font-weight: 800; z-index: 10; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-matic { background: #e0f2fe; color: #0369a1; }
.badge-classy { background: #fef3c7; color: #92400e; }
.badge-maxi { background: #004990; color: white; }
.badge-sport { background: #fee2e2; color: #b91c1c; }
.badge-off-road { background: #dcfce7; color: #166534; }

.btn-detail { position: absolute; top: 15px; right: 15px; background: #f1f5f9; color: #004990; border: none; padding: 6px 12px; border-radius: 8px; font-size: 0.65rem; font-weight: 800; cursor: pointer; z-index: 11; transition: 0.2s; }
.btn-detail:hover { background: #e2e8f0; }

/* --- 8. HARGA & CICILAN --- */
.price-container { margin: 15px 0; }
.price-otr { font-size: 0.75rem; text-decoration: line-through; color: #94a3b8; }
.price { color: #004990; font-weight: 800; font-size: 1.5rem; }
.installment-box { background: #f8fafc; padding: 12px; border-radius: 18px; border: 1px dashed #cbd5e0; margin-bottom: 15px; }
.installment-box span { font-size: 0.7rem; color: #64748b; display: block; }
.installment-amount { color: #1d4ed8; font-weight: 800; font-size: 1.1rem; }

/* --- 9. TOMBOL WA --- */
.btn-wa { display: block; background: #25D366; color: white; text-decoration: none; padding: 12px; border-radius: 15px; font-weight: 700; font-size: 0.9rem; transition: 0.3s; box-shadow: 0 4px 10px rgba(37,211,102,0.3); }
.btn-wa:hover { background: #1da851; transform: scale(1.02); }

/* --- 10. MODAL DETAIL --- */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); overflow-y: auto; }
.modal-content { background: white; margin: 2% auto; padding: 30px; border-radius: 25px; width: 95%; max-width: 850px; position: relative; animation: slideUp 0.4s ease; }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-btn { position: absolute; right: 20px; top: 15px; font-size: 35px; cursor: pointer; color: #64748b; }

/* --- 11. FOOTER (RESPONSIVE SEPENUHNYA) --- */
footer { background: #0f172a; color: white; padding: 60px 5% 30px; margin-top: 60px; border-top: 6px solid #004990; }
.footer-grid { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: 1fr; /* Default mobile */
    gap: 40px; 
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-section h4 { color: #004990; background: white; display: inline-block; padding: 4px 12px; border-radius: 6px; margin-bottom: 20px; font-size: 0.85rem; font-weight: 800; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 12px; font-size: 0.85rem; color: #94a3b8; display: flex; align-items: flex-start; gap: 10px; }
.partner-container {
    background: white;
    padding: 15px;
    border-radius: 12px;
    display: inline-block; /* Agar kotak mengikuti lebar logo */
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin-bottom: 15px;
}

.logo-partner {
    height: 45px; /* Sesuaikan ukuran agar pas */
    width: auto;
    display: block;
    margin: 0 auto;
}

/* Memperbaiki Grid agar muat 4 kolom di desktop */
@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

/* Memastikan List Kabupaten Rapi di HP */
.kabupaten-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Grid Kabupaten Khusus Bali */
.kabupaten-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.footer-bottom { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid #1e293b; font-size: 0.75rem; color: #64748b; }

/* --- 12. VIDEO RESPONSIVE --- */
.video-container { position: relative; padding-bottom: 56.25%; height: 0; margin-top: 20px; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }