/* ==========================================================================
   CSS VARIABLES & THEME SETUP (Grey Minimalist Elegance)
   ========================================================================== */
:root {
    /* Palet Warna Abu-abu Elegan */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-800: #424242;
    --gray-900: #212121;
    
    /* Warna Aksen (Merah Khas Chery/Otomotif) */
    --accent-primary: #d32f2f;
    --accent-hover: #b71c1c;

    /* Tipografi */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --transition-speed: 0.3s;
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--gray-900);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    color: var(--gray-400);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background-color: var(--gray-900);
    color: #fff;
}

.btn-secondary:hover {
    background-color: var(--gray-800);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--gray-900);
    color: var(--gray-900);
}

.btn-outline:hover {
    background-color: var(--gray-900);
    color: #fff;
}

.btn-text {
    background-color: transparent;
    color: var(--accent-primary);
    padding: 12px 0;
}

.btn-text:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    background-color: #ffffff;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-logo {
    width: 160px; /* Lebar optimal untuk logo memanjang di desktop */
    height: auto; /* Memastikan logo tidak lonjong/gepeng */
    max-width: 100%; /* Wajib agar logo tidak melewati batas kontainer di layar kecil */
    object-fit: contain;
}

.desktop-nav .nav-list {
    display: flex;
    gap: 30px;
}

.desktop-nav a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-800);
    padding: 10px 0;
    position: relative;
}

.desktop-nav a:hover, .desktop-nav a.active {
    color: var(--accent-primary);
}

/* Garis bawah animasi saat hover menu */
.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after, .desktop-nav a.active::after {
    width: 100%;
}

/* Burger Menu Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.mobile-menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--gray-900);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ==========================================================================
   MOBILE SIDE DRAWER (Dari Samping)
   ========================================================================== */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px; /* Sembunyikan di luar layar kanan */
    width: 300px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1005;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
}

.close-drawer {
    font-size: 30px;
    background: none;
    border: none;
    color: var(--gray-900);
    cursor: pointer;
}

.drawer-nav {
    flex-grow: 1;
    padding: 20px;
}

.drawer-list li {
    margin-bottom: 15px;
}

.drawer-list a {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

.drawer-list a:hover {
    color: var(--accent-primary);
    padding-left: 10px; /* Efek geser sedikit */
}

.drawer-footer {
    padding: 20px;
    background-color: var(--gray-100);
    border-top: 1px solid var(--gray-200);
}

.drawer-footer p {
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-bottom: 5px;
}

.drawer-footer a {
    font-weight: 700;
    color: var(--accent-primary);
}

/* Overlay Gelap */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1004;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: 80vh; /* Mengisi 80% tinggi layar */
    min-height: 500px;
    overflow: hidden;
    background-color: var(--gray-900);
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.6); /* Menggelapkan gambar agar teks terbaca */
}

.slide-caption {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: #ffffff;
    max-width: 600px;
    z-index: 3;
}

.slide-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.slide-caption p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Kontrol Slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.5);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--accent-primary);
}

/* ==========================================================================
   PRODUCT GRID SECTION (EV, CSH, ICE)
   ========================================================================== */
.product-category-section {
    background-color: var(--gray-50);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid var(--gray-200);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #2e7d32; /* Hijau untuk EV default */
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.badge-csh { background-color: #1976d2; /* Biru untuk CSH */ }
.badge-ice { background-color: #d32f2f; /* Merah untuk ICE */ }

/* Penyesuaian Foto agar tidak terlalu silau dan TIDAK MENGHITAM di mata */
    .product-img, .blog-thumbnail {
        background-color: #ffffff; /* Tetap ada kanvas putih agar mobil terlihat jelas */
        mix-blend-mode: normal; /* KUNCI PERBAIKAN: Matikan efek multiply di mode gelap */
        filter: brightness(0.95); /* Sedikit diredupkan agar putihnya tidak terlalu menusuk mata */
    }

.card-body {
    padding: 30px;
}

.card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.card-body p {
    color: var(--gray-400);
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ==========================================================================
   TEST DRIVE CTA SECTION
   ========================================================================== */
.test-drive-section {
    background-color: var(--gray-900);
    color: #ffffff;
    padding: 80px 0;
    background-image: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
}

.test-drive-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test-drive-text {
    flex: 0 0 60%;
}

.test-drive-text h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.test-drive-text p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.test-drive-action {
    flex: 0 0 35%;
    text-align: right;
}

/* ==========================================================================
   YOUTUBE REVIEW GRID (THUMBNAIL LAZY LOAD)
   ========================================================================== */
.youtube-review-section {
    background-color: #ffffff;
}

.yt-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.yt-thumbnail-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    background-color: var(--gray-50);
}

.yt-thumbnail-card:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    color: var(--accent-primary);
}

.img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Aspect Ratio 16:9 */
    background-color: #000;
}

.yt-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.yt-thumbnail-card:hover .yt-img {
    opacity: 1;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.yt-thumbnail-card h4 {
    padding: 20px;
    font-size: 1.1rem;
    color: var(--gray-900);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: #111111;
    color: #aaaaaa;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Membuat logo jadi putih di background gelap */
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

.footer-bottom {
    background-color: #000000;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.floating-wa:hover {
    transform: scale(1.1);
}

.wa-icon {
    width: 35px;
    height: 35px;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-logo {
        width: 120px; /* Logo otomatis mengecil di HP agar layout header tidak hancur */
    }

    .test-drive-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .test-drive-action {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none; /* Sembunyikan menu desktop */
    }
    
    .mobile-menu-toggle {
        display: flex; /* Munculkan tombol burger */
    }

    .slide-caption h1 {
        font-size: 2.5rem;
    }

    .product-grid, .yt-grid, .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-padding {
        padding: 50px 0;
    }
}
/* ==========================================================================
   FOTO PROFIL SALES (IKRAM CAR STORY)
   ========================================================================== */
.sales-profile-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    background: var(--gray-50);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.profile-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
    box-shadow: var(--shadow-light);
}

.drawer-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.drawer-profile-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
}

@media (max-width: 768px) {
    .sales-profile-card {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   MINI TEST DRIVE CTA (Muncul di setiap halaman)
   ========================================================================== */
.mini-cta {
    background-color: var(--accent-primary);
    padding: 35px 0;
    margin-top: 50px;
}

.mini-cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.mini-cta-text h4 {
    color: #ffffff !important;
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.mini-cta-text p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.05rem;
    margin: 0;
}

.mini-cta .btn {
    background-color: #ffffff;
    color: var(--accent-primary);
    white-space: nowrap;
    border: 2px solid #ffffff;
}

.mini-cta .btn:hover {
    background-color: transparent;
    color: #ffffff;
}

@media (max-width: 768px) {
    .mini-cta-container {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   PERBAIKAN KONTRAS TEKS (Ubah Abu-abu menjadi Hitam)
   ========================================================================== */
.section-title p,
.card-body p,
.blog-content p,
.drawer-footer p,
.article-meta,
.info-item p,
.article-body,
.article-body p {
    color: #111111; /* Warna hitam pekat agar sangat jelas dibaca */
    font-weight: 500; /* Sedikit ditebalkan agar lebih solid */
}