/* ========================================
   CHERY JAKARTA - FULL WEBSITE CSS
   Futuristik • SEO • Mobile-First • Ringan
=========================================== */

/* 1. RESET & BASE VARIABLES */
:root {
    --primary: #c41230;
    --primary-dark: #a00e26;
    --secondary: #fbbf24;
    --accent: #ef4444;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --light: #f8fafc;
    --text: #334155;
    --text-muted: #64748b;
    --white: #ffffff;
    --wa-color: #25D366;
    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 25px 50px rgba(0,0,0,0.15);
    --radius: 20px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: var(--font-main); 
    line-height: 1.7; 
    color: var(--text); 
    overflow-x: hidden;
    background: var(--light);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* 2. HEADER & NAVIGATION */
.header { 
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%); 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.navbar { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 1rem 5%; max-width: 1200px; margin: 0 auto; height: 80px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo h2 { color: var(--secondary); font-size: clamp(1.2rem, 4vw, 1.8rem); font-weight: 800; display: flex; align-items: center;}
.logo span { font-size: 2rem; margin-right: 0.5rem; }
/* MODIFIKASI: max-width agar gambar tidak meluber */
.logo-img { height: 45px; max-width: 100%; object-fit: contain; } 

.nav-menu { display: flex; gap: 2rem; list-style: none; }
.nav-menu a { 
    color: rgba(255,255,255,0.9); font-weight: 600; 
    position: relative; transition: var(--transition);
}
.nav-menu a::after { 
    content: ''; position: absolute; width: 0; height: 2px; 
    bottom: -5px; left: 0; background: var(--secondary); transition: width 0.3s ease;
}
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-menu a:hover, .nav-menu a.active { color: var(--secondary); }

/* Hamburger Icon for Mobile */
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.hamburger span { width: 25px; height: 3px; background: white; transition: var(--transition); border-radius: 2px;}

/* 3. HERO SECTIONS */
.hero, .produk-hero, .kontak-hero, .blog-hero { 
    padding: 180px 0 100px; text-align: center; color: var(--white);
}
.hero { background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 50%, var(--secondary) 100%); background-size: cover; background-position: center; min-height: 85vh; display: flex; align-items: center;}
.produk-hero { background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, var(--secondary) 100%); }
.kontak-hero { background: linear-gradient(135deg, #059669 0%, #10b981 100%); }
.blog-hero { background: linear-gradient(135deg, var(--dark-light) 0%, #334155 100%); }
.hero-content { width: 100%; }
.hero h1, .produk-hero h1, .kontak-hero h1, .blog-hero h1 { 
    font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; margin-bottom: 1rem; 
    text-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.hero p, .produk-hero p, .kontak-hero p, .blog-hero p { 
    font-size: 1.2rem; max-width: 700px; margin: 0 auto 2.5rem; opacity: 0.95;
}

/* 4. BUTTONS */
.btn-primary, .btn-secondary, .btn-whatsapp, .btn-call, .btn-submit, .read-more { 
    display: inline-block; padding: 14px 32px; border-radius: 50px; 
    font-weight: 600; text-align: center; border: none; cursor: pointer; 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}
.btn-primary { background: linear-gradient(45deg, var(--accent), #f97316); color: white; box-shadow: 0 10px 20px rgba(239,68,68,0.3); }
.btn-secondary { background: linear-gradient(45deg, #475569, #64748b); color: white; box-shadow: 0 10px 20px rgba(71,85,105,0.3); }
.btn-whatsapp { background: var(--wa-color) !important; color: white !important; box-shadow: 0 10px 20px rgba(37,211,102,0.3) !important; }
.btn-call { background: var(--accent) !important; color: white !important; box-shadow: 0 10px 20px rgba(239,68,68,0.3) !important; }
.btn-submit { background: linear-gradient(45deg, var(--primary), #3b82f6); color: white; width: 100%; font-size: 1.1rem; }

.btn-primary:hover, .btn-secondary:hover, .btn-whatsapp:hover, .btn-call:hover, .btn-submit:hover { 
    transform: translateY(-5px) scale(1.03); box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* 5. SECTIONS GENERAL */
section { padding: 80px 0; }
.section-title { 
    text-align: center; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 3.5rem; 
    background: linear-gradient(45deg, var(--primary), var(--secondary)); 
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
    position: relative; display: inline-block; left: 50%; transform: translateX(-50%);
}
.section-title::after { 
    content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); 
    width: 60px; height: 4px; background: var(--secondary); border-radius: 2px;
}

/* 6. FEATURE & PROMO CARDS */
.feature-grid, .promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; padding: 50px 0; }
.feature-card, .promo-item { 
    background: #f8fafc; padding: 2.5rem 2rem; border-radius: 15px; 
    text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.feature-card:hover, .promo-item:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* 7. PRODUK CARDS */
.produk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }
.produk-card { 
    background: var(--white); border-radius: 25px; overflow: hidden; 
    box-shadow: var(--shadow-sm); transition: var(--transition); position: relative;
}
.produk-card:hover { transform: translateY(-15px); box-shadow: var(--shadow-lg); }
.card-image { overflow: hidden; }
.card-image img { width: 100%; height: 260px; object-fit: cover; transition: transform 0.5s ease; }
.produk-card:hover .card-image img { transform: scale(1.08); }
.card-content { padding: 2rem; text-align: center; }
.otr-price { font-size: 1.8rem; color: var(--accent); font-weight: 800; margin: 0.5rem 0; }
.brochure-btn { 
    background: linear-gradient(45deg, var(--primary), var(--primary-dark)); color: white; 
    padding: 12px 28px; border-radius: 50px; font-weight: 600; display: inline-block; margin-top: 1rem;
}
.featured-badge { 
    position: absolute; top: 15px; left: 15px; background: var(--accent); 
    color: white; padding: 5px 15px; border-radius: 20px; font-weight: 700; font-size: 0.8rem; z-index: 2;
}

/* 8. KONTAK INFO & FORMS */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.info-card { background: white; padding: 2.5rem; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow-sm); }
.sales-card { border-top: 6px solid var(--wa-color); }
.kontak-form { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 1.5rem; }
.kontak-form input, .kontak-form select, .kontak-form textarea { 
    padding: 15px; border: 2px solid #e2e8f0; border-radius: 12px; font-family: inherit; font-size: 1rem; transition: border-color 0.3s;
}
.kontak-form input:focus, .kontak-form select:focus, .kontak-form textarea:focus { outline: none; border-color: var(--primary); }

/* 9. BLOG & ARTIKEL */
.artikel-card { 
    display: grid; grid-template-columns: 350px 1fr; gap: 2rem; background: white; 
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 3rem; transition: var(--transition);
}
.artikel-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.category-badge { position: absolute; top: 20px; right: 20px; background: white; padding: 5px 15px; border-radius: 20px; font-weight: bold; font-size: 0.8rem; }
.meta { display: flex; gap: 1rem; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.artikel-card h2 { font-size: 1.4rem; margin-bottom: 1rem; line-height: 1.4; }

/* 10. ARTIKEL DETAIL (TOC dll) */
.toc { background: white; padding: 2rem; border-radius: var(--radius); border-left: 5px solid var(--primary); margin: 2rem 0; box-shadow: var(--shadow-sm); }
.toc h3 { margin-bottom: 1rem; }
.toc ol { padding-left: 1.5rem; }
.toc li { margin-bottom: 0.5rem; }
.toc a { color: var(--primary-dark); font-weight: 500; }
.toc a:hover { text-decoration: underline; }
.tech-specs table { width: 100%; border-collapse: collapse; margin: 2rem 0; background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.tech-specs th { background: var(--primary); color: white; padding: 15px; text-align: left; }
.tech-specs td { padding: 15px; border-bottom: 1px solid #e2e8f0; }

/* 11. FOOTER */
.footer { background: var(--dark); color: #cbd5e1; padding: 60px 0 20px; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.footer h3 { color: white; margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer ul li { margin-bottom: 0.8rem; }
.footer a:hover { color: var(--secondary); padding-left: 5px; transition: all 0.3s; }
.footer-bottom { text-align: center; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; }
.logo-footer { height: 40px; margin-bottom: 10px; filter: brightness(0) invert(1); }

/* 12. WHATSAPP & FLOATING ACTIONS & POPUP */
.whatsapp-float, .fixed-wa, .fixed-call { 
    position: fixed; z-index: 9999; color: white; font-weight: bold; border-radius: 50px; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.3); transition: transform 0.3s; 
}
.whatsapp-float { right: 20px; bottom: 20px; background: var(--wa-color); width: auto; padding: 15px 25px; display: inline-flex; align-items: center; justify-content: center;}
.fixed-contacts { position: fixed; left: 20px; bottom: 20px; display: flex; flex-direction: column; z-index: 9999; }
.fixed-wa { background: var(--wa-color); padding: 12px 20px; margin-bottom: 10px; display: inline-block; }
.fixed-call { background: var(--accent); padding: 12px 20px; display: inline-block; }
.whatsapp-float:hover, .fixed-wa:hover, .fixed-call:hover { transform: scale(1.1); }

.popup-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.85); display: none; justify-content: center; 
    align-items: center; z-index: 9999; 
}
.popup-content { 
    position: relative; width: 90%; max-width: 450px; 
    background: white; border-radius: 20px; overflow: hidden; 
    animation: scaleUp 0.4s ease;
}
.img-promo { width: 100%; height: auto; display: block; object-fit: cover; }
.popup-footer { padding: 15px; text-align: center; background: #fff; }
.close-popup { 
    position: absolute; top: 10px; right: 15px; font-size: 30px; 
    color: #fff; cursor: pointer; text-shadow: 0 0 10px rgba(0,0,0,1); z-index: 10;
}
.btn-wa-promo { 
    background: #25D366; color: white; padding: 10px 20px; 
    text-decoration: none; border-radius: 50px; font-weight: bold; display: inline-block;
}

/* 13. ANIMATIONS */
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.pulse { animation: pulse 2.5s infinite; }
@keyframes scaleUp { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }


/* ========================================
   14. RESPONSIVE MEDIA QUERIES
=========================================== */
@media (max-width: 1024px) {
    .container { 
        padding: 0 15px; 
    }
    .hero, .produk-hero, .kontak-hero, .blog-hero { 
        padding: 150px 0 80px; 
        min-height: 50vh;
    }
    .nav-menu { 
        gap: 1rem; 
    }
}

@media (max-width: 992px) {
    .artikel-card { 
        grid-template-columns: 1fr; 
    }
    .artikel-card .card-image img { 
        height: 250px; 
    }
}

@media (max-width: 768px) {
    /* MODIFIKASI KHUSUS HEADER/LOGO DI HP BIAR NGGAK NABRAK */
    .navbar { 
        padding: 10px 15px; 
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .logo { 
        display: flex;
        align-items: center;
        justify-content: flex-start; /* Dorong mentok ke sudut kiri */
        gap: 6px; 
        max-width: calc(100% - 50px); /* Sediakan ruang aman untuk hamburger */
        overflow: hidden; /* Cegah elemen meleber ke luar area */
    } 
    .logo-img { 
        height: auto !important; 
        max-height: 26px !important; 
        width: auto;
        max-width: 55%; /* Batasi lebar gambar agar teks Jakarta punya ruang */
        object-fit: contain;
        flex-shrink: 1; 
    }
    .logo h2 { 
        display: flex;
        align-items: center;
        font-size: 1rem !important; 
        line-height: 1;
        white-space: nowrap; /* Paksa teks sebaris, jangan turun ke bawah */
        text-overflow: ellipsis; /* Tambah titik-titik otomatis jika layar HP terlalu kecil */
        overflow: hidden;
        margin: 0;
    }
    .logo span {
        font-size: 1rem !important;
        margin-right: 0 !important;
    }
    .hamburger { 
        display: flex; 
        min-width: 30px; 
        margin-left: auto;
    }

    /* Navbar Mobile (Menu Dropdown) */
    .nav-menu { 
        position: fixed; 
        top: 75px; 
        left: -100%; 
        width: 100%; 
        height: calc(100vh - 75px); 
        background: rgba(15, 23, 42, 0.98); 
        backdrop-filter: blur(10px);
        flex-direction: column; 
        align-items: center; 
        justify-content: center; 
        transition: left 0.4s ease-in-out; 
        gap: 3rem;
        z-index: 1000;
    }
    .nav-menu.active { left: 0; }
    .nav-menu a { font-size: 1.5rem; }
    
    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

    /* General layout adjustments */
    section { padding: 60px 0; }
    
    .hero, .produk-hero, .kontak-hero, .blog-hero { 
        padding: 140px 0 60px; 
        height: auto; 
        min-height: 60vh;
    }
    .hero h1, .produk-hero h1 { 
        font-size: 2.2rem; 
    }
    .cta-buttons { 
        display: flex; 
        flex-direction: column; 
        gap: 15px; 
        padding: 0 20px; 
    }
    
    /* Stats & Floats */
    .kontak-stats { 
        gap: 1.5rem; 
        flex-direction: column; 
    }
    .fixed-contacts { 
        display: none; 
    }
    .whatsapp-float { 
        bottom: 15px; 
        right: 15px; 
        font-size: 0.9rem; 
        padding: 10px 15px;
    }

    /* Penambahan Responsif untuk Artikel Detail */
    .mega-cta { 
        padding: 30px 20px; 
    }
    .artikel-konten .container { 
        padding: 25px 15px !important; 
    }
}

/* ========================================
   15. DESAIN ARTIKEL (DARK) & YOUTUBE
=========================================== */
.dark-section { background-color: #1a1a1a; padding: 80px 0; }

.chery-article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.chery-card { background-color: #242424; border-radius: 15px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid #333; }
.chery-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.6); }
.chery-card img { width: 100%; height: 220px; object-fit: cover; border-bottom: 2px solid #333; }
.chery-card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.chery-card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.chery-badge { background: #444; color: white; padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px; }
.chery-date { color: #ef4444; font-size: 0.85rem; font-weight: 600; }
.chery-card h3 { color: white; font-size: 1.25rem; margin-bottom: 15px; line-height: 1.4; text-transform: uppercase; }
.chery-card p { color: #a3a3a3; font-size: 0.95rem; line-height: 1.6; margin-bottom: 25px; flex-grow: 1; }
.chery-btn-outline { align-self: flex-start; padding: 10px 25px; border: 1px solid #fff; color: white; border-radius: 30px; font-size: 0.9rem; font-weight: 600; transition: all 0.3s ease; background: transparent; display: flex; align-items: center; gap: 8px; }
.chery-btn-outline:hover { background: white; color: black; }

.youtube-section { background: #f8fafc; padding: 100px 0; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.video-card { background: white; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); }
.video-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

.video-wrapper { 
    position: relative; 
    width: 100%;
    aspect-ratio: 16 / 9; 
    overflow: hidden; 
}
.video-wrapper iframe { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    border: 0; 
}

.video-info { padding: 20px; text-align: center; }
.video-info h4 { font-size: 1.1rem; color: var(--dark-light); margin-bottom: 5px; }
.video-info p { color: var(--text-muted); font-size: 0.9rem; }

/* ========================================
   16. ARTIKEL DETAIL SPECIFICS (BARU)
=========================================== */
.artikel-konten p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #475569;
}
.artikel-konten h2 {
    color: var(--primary-dark);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    padding-bottom: 10px;
}
.artikel-konten ul {
    margin: 20px 0 20px 20px;
    list-style-type: disc;
}
.artikel-konten ul li {
    margin-bottom: 10px;
    color: #475569;
}

/* Call To Action Besar di bawah Artikel */
.mega-cta {
    background: linear-gradient(135deg, var(--dark), var(--dark-light));
    padding: 50px;
    border-radius: 20px;
    margin-top: 50px;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-lg);
}
.mega-cta h2 {
    color: white;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: clamp(1.5rem, 4vw, 2rem);
    border: none;
    padding-bottom: 0;
}
.mega-cta p {
    color: #cbd5e1;
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}
.mega-cta .cta-buttons-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- CSS Khusus Foto Profil Agus di kontak --- */
.foto-profil-agus {
    width: 130px; 
    height: 130px; 
    object-fit: cover; 
    border-radius: 50%; 
    border: 4px solid #e11d48; /* Sesuaikan warna dengan tema */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); 
    margin: 0 auto 15px auto; /* Margin bawah 15px agar ada jarak dengan teks Sales Consultant */
    display: block; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.foto-profil-agus:hover {
    transform: translateY(-5px) scale(1.02); 
    box-shadow: 0 12px 20px rgba(225, 29, 72, 0.2); 
}