/* ==========================================================================
   TEMA & VARIABEL WARNA (ABU-ABU MUDA / LIGHT GREY THEME)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #f4f4f6;          /* Background utama website abu-abu muda */
    --bg-card: #ffffff;          /* Background untuk panel/kartu putih bersih */
    --text-dark: #1a1a1c;        /* Warna teks utama gelap */
    --text-muted: #666666;       /* Warna teks sekunder/deskripsi */
    --chery-red: #e60000;        /* Aksen merah khas Chery */
    --chery-red-hover: #cc0000;  /* Merah gelap untuk hover tombol */
    --border-color: #e0e0e0;     /* Warna garis pembatas */
    --shadow-soft: 0 8px 25px rgba(0, 0, 0, 0.05); /* Bayangan lembut */
    --shadow-hover: 0 15px 35px rgba(230, 0, 0, 0.15); /* Bayangan saat di-hover */
}

/* ==========================================================================
   RESET & DASAR
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* ==========================================================================
   HEADER & NAVIGASI MENU
   ========================================================================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(255, 255, 255, 0.95); /* Putih transparan */
    backdrop-filter: blur(15px); /* Efek kaca blur */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

nav .logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-dark);
    text-decoration: none;
    transition: transform 0.3s ease;
}

/* Perbaikan untuk gambar Logo Chery (Desktop) */
nav .logo img {
    height: 45px; 
    max-width: 100%;
    width: auto;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

nav .logo:hover img {
    transform: scale(1.05);
}

nav .logo span {
    color: var(--chery-red);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    padding: 5px 0;
}

nav a:hover, 
nav a.active {
    color: var(--chery-red);
}

/* ==========================================================================
   DROPDOWN MENU
   ========================================================================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-card);
    min-width: 220px;
    box-shadow: 0px 10px 25px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid var(--bg-main);
    text-transform: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.3s, color 0.3s;
}

.dropdown-content a:hover {
    background-color: var(--chery-red);
    color: #fff;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDropdown 0.3s ease;
}

@keyframes fadeInDropdown {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ==========================================================================
   TYPOGRAPHY & LAYOUT UTAMA
   ========================================================================== */
.container {
    padding: 60px 5%;
    text-align: center;
}

h1.page-title {
    font-size: 3.2rem;
    margin-bottom: 15px;
    font-weight: 800;
    color: var(--text-dark);
}

h2.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.subtitle {
    color: var(--chery-red);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   POPUP PROMO AWAL
   ========================================================================== */
.popup-overlay {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.popup-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--chery-red);
}

.close-popup {
    position: absolute;
    top: 15px; 
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
}

.close-popup:hover {
    color: var(--chery-red);
}

@keyframes popIn {
    0% { 
        transform: scale(0.5); 
        opacity: 0; 
    }
    100% { 
        transform: scale(1); 
        opacity: 1; 
    }
}

/* ==========================================================================
   HERO SLIDER (BANNER OTOMATIS)
   ========================================================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    background-color: #000;
}

.slide {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(60%); 
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 3;
    width: 90%;
    max-width: 800px;
}

.slide-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
    animation: fadeInUp 1s ease forwards;
}

.slide-content p {
    font-size: 1.2rem;
    color: #eee;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    animation: fadeInUp 1.2s ease forwards;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot:hover, 
.dot.active {
    background: var(--chery-red);
    transform: scale(1.3);
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ==========================================================================
   KARTU PRODUK (CHERY SPECIALTY)
   ========================================================================== */
.card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(230, 0, 0, 0.2);
}

/* Pembaruan agar gambar utuh tidak terpotong */
.card-img {
    width: 100%;
    height: 220px;
    object-fit: contain; 
    background-color: #fff; 
    padding: 15px; 
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.5s ease;
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
    text-align: left;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* ==========================================================================
   PROFIL SALES HAKIM DI DALAM CARD & SECTION HOME
   ========================================================================== */
.sales-profile {
    display: flex;
    align-items: center;
    background: var(--bg-main);
    padding: 12px 15px;
    border-radius: 12px;
    margin: 20px 0;
    gap: 12px;
    border: 1px solid var(--border-color);
}

.sales-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--chery-red);
}

.sales-info h4 {
    font-size: 1rem;
    margin: 0;
    color: var(--text-dark);
    font-weight: 700;
}

.sales-info p {
    font-size: 0.8rem;
    margin: 0;
    color: var(--text-muted);
}

.sales-wa {
    margin-left: auto;
    background: #25D366;
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.sales-wa:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
    color: #fff;
}

/* Tombol Aksi di Card */
.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    background: var(--bg-card);
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background: var(--chery-red);
    color: #fff;
    border-color: var(--chery-red);
}

/* ==========================================================================
   YOUTUBE REVIEW SECTION
   ========================================================================== */
.video-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(230, 0, 0, 0.2);
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    background: #000;
    overflow: hidden;
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: all 0.4s ease;
}

.video-card:hover .thumbnail-wrapper img {
    opacity: 1;
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4.5rem;
    color: #ff0000;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.video-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.15);
}

.video-info {
    padding: 20px;
    text-align: center;
}

.video-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.video-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ==========================================================================
   DAFTAR HARGA OTR (LIST PRODUK)
   ========================================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 50px;
}

.price-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.price-table th, 
.price-table td {
    padding: 18px 25px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.price-table th {
    background: var(--chery-red);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tr:hover {
    background: #fdfdfd;
}

.price-table td b {
    color: var(--text-dark);
    font-size: 1.1rem;
}

.price-val {
    font-weight: 800;
    color: var(--chery-red) !important;
    font-size: 1.1rem;
}

.table-img {
    width: 120px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ==========================================================================
   TOMBOL DOWNLOAD E-BROCHURE
   ========================================================================== */
.btn-download {
    width: auto;
    padding: 8px 15px;
    background: #555;
    color: #fff;
    border: none;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-download:hover {
    background: var(--chery-red);
}

/* ==========================================================================
   FITUR KOMPARASI MOBIL
   ========================================================================== */
.compare-section {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    margin-top: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.compare-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

select {
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--bg-main);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s;
}

select:hover, 
select:focus {
    border-color: var(--chery-red);
}

.compare-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
}

.compare-table th, 
.compare-table td {
    border: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    width: 33.33%;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.compare-table th { 
    background: var(--bg-main); 
    font-weight: 800; 
    font-size: 1.2rem;
}

.spec-label { 
    font-weight: 700 !important; 
    color: var(--chery-red) !important; 
    text-align: left !important; 
    background: #fafafa;
}

.car-img-compare { 
    width: 100%; 
    max-width: 300px; 
    height: 160px;
    object-fit: contain; 
    border-radius: 10px; 
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 10px;
    background: #fff;
}

/* ==========================================================================
   HALAMAN KONTAK & MEDIA SOSIAL
   ========================================================================== */
.social-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-wa { background: #25D366; }
.btn-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.btn-tiktok { background: #111111; border: 1px solid #333; }

.btn-social:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: #111111;
    padding: 40px 5%;
    text-align: center;
    margin-top: 60px;
    color: #888;
    font-size: 0.95rem;
}

footer span {
    color: var(--chery-red);
    font-weight: bold;
}

/* ==========================================================================
   MEDIA QUERIES (UNTUK HP & TABLET)
   ========================================================================== */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-dark);
    transition: color 0.3s;
}

.menu-toggle:hover {
    color: var(--chery-red);
}

@media (max-width: 768px) {
    /* Burger Menu Setup */
    .menu-toggle {
        display: block; 
    }
    
    nav {
        flex-direction: row; 
        flex-wrap: wrap;
        padding: 15px 20px;
    }

    /* Penyesuaian Logo di HP agar tidak nabrak menu */
    nav .logo img {
        height: auto;
        max-height: 35px; 
        max-width: 70vw;  
    }

    nav ul {
        display: none; 
        flex-direction: column;
        width: 100%;
        background: var(--bg-card);
        padding: 20px 0;
        text-align: center;
        gap: 15px;
        margin-top: 15px;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        border-radius: 0 0 15px 15px;
    }

    nav ul.show {
        display: flex;
        animation: fadeInDown 0.3s ease forwards;
    }

    /* Penyesuaian Elemen Lain di HP */
    .hero-slider { height: 50vh; }
    .slide-content h2 { font-size: 2.2rem; }
    .slide-content p { font-size: 1rem; }
    
    h1.page-title { font-size: 2.2rem; }
    h2.section-title { font-size: 1.8rem; }
    .container { padding: 40px 5%; }
    
    .compare-controls { flex-direction: column; align-items: stretch; }
    select { width: 100%; }
    
    .btn-social { width: 100%; justify-content: center; }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        background: var(--bg-main);
        display: none; 
    }
    
    .dropdown:hover .dropdown-content {
        display: none; 
    }
    
    .dropdown.active .dropdown-content {
        display: block; 
    }

    /* Penyesuaian Responsif untuk Profil Test Drive */
    .profile-wrap { 
        text-align: center !important; 
        justify-content: center !important;
    }
    .profile-wrap div { 
        text-align: center !important; 
    }
    .profile-buttons { 
        justify-content: center !important; 
    }
}

@keyframes fadeInDown {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}