/* =========================================
   1. VARIABLE & RESET
   ========================================= */
:root {
    --bg-color: #fcfbf4;
    --text-color: #1a1a1a;
    --accent-color: #2c3e50;
    --border-color: #000;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

html { overflow-y: scroll; scroll-behavior: smooth; }

body { 
    overflow-x: hidden; 
    width: 100%; 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    font-family: var(--font-body); 
    line-height: 1.6; 
}

section[id] { scroll-margin-top: 100px; } 

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================================
   2. NAVIGATION
   ========================================= */
nav { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 15px 5%; background: var(--bg-color); 
    border-bottom: 1px solid #ddd; position: sticky; top: 0; z-index: 1000; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
}

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 22px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--text-color); }
.logo img { height: 40px; width: auto; object-fit: contain; display: block; }
.dot { color: #000000; }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; position: relative; transition: color 0.3s; }
.nav-links a::after { content: ''; display: block; width: 0; height: 2px; background: var(--text-color); margin-top: 4px; transition: width 0.3s ease-in-out; position: absolute; bottom: -4px; left: 0; }
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: #555; }
.close-menu { display: none !important; }

.nav-extra { display: flex; align-items: center; gap: 15px; }
.nav-icons { display: flex; gap: 15px; align-items: center; }
.nav-icons button, .nav-icons a { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-color); display: flex; align-items: center; }
.nav-icons button:hover, .nav-icons a:hover { transform: scale(1.1); color: #d63031; }

.hamburger { display: none !important; font-size: 24px; cursor: pointer; color: var(--text-color); }

/* FLOATING MUSIC */
#floating-music {
    position: fixed; bottom: 25px; right: 25px; width: 50px; height: 50px;
    background-color: #1a1a1a; color: #fff; border-radius: 50%; border: 2px solid #fff;
    display: flex; justify-content: center; align-items: center; cursor: pointer;
    z-index: 99999; box-shadow: 0 5px 15px rgba(0,0,0,0.3); transition: transform 0.3s ease;
}
#floating-music:hover { transform: scale(1.1); background-color: #d63031; border-color: #d63031; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.rotating { animation: spin 2s linear infinite; }

/* SEARCH OVERLAY */
.search-form {
    position: fixed; top: 71px; left: 0; width: 100%; background: #ffffff; 
    padding: 15px; border-bottom: 2px solid #000; display: none; 
    justify-content: center; align-items: center; z-index: 998; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.search-form.active { display: flex !important; animation: slideDown 0.3s ease forwards; }
.search-form form { display: flex; width: 100%; max-width: 600px; gap: 10px; }
.search-form input { flex: 1; padding: 10px 15px; border: 2px solid #ddd; font-family: var(--font-body); font-size: 14px; outline: none; border-radius: 4px; }
.search-form button { padding: 10px 20px; background: var(--text-color); color: #fff; border: none; cursor: pointer; font-family: var(--font-heading); text-transform: uppercase; font-weight: bold; border-radius: 4px; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   3. HERO & SECTIONS
   ========================================= */
.hero { 
    display: flex; align-items: center; justify-content: space-between; 
    padding: 40px 5%; min-height: 90vh; 
    border-bottom: 2px solid var(--border-color); overflow: hidden; position: relative; 
}

.hero-content { flex: 1; padding-right: 60px; z-index: 10; }

.subtitle { 
    font-size: 16px; letter-spacing: 5px; font-weight: 700; 
    color: var(--accent-color); margin-bottom: 25px; 
    text-transform: uppercase; display: inline-block; position: relative;
}

.hero h1 { 
    font-family: var(--font-heading); font-size: 90px; line-height: 1.05; 
    letter-spacing: 1px; margin-bottom: 35px; text-transform: uppercase; color: var(--text-color);
}

.outline-text { 
    -webkit-text-stroke: 2px var(--text-color); color: transparent; 
    filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.1)); 
}

.promo-text { 
    font-size: 18px; line-height: 1.8; margin-bottom: 45px; 
    color: #444; max-width: 550px; font-weight: 400;
}

.btn-primary { 
    display: inline-block; padding: 18px 50px; background: var(--text-color); 
    color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; 
    transition: all 0.3s ease; border: 2px solid var(--text-color); 
    font-size: 16px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

.btn-primary:hover { 
    background: transparent; color: var(--text-color); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); transform: translateY(-3px); 
}

.hero-image { flex: 1.2; height: 100%; min-height: 90vh; position: relative; }
.hero-image img { 
    width: 100%; height: 100%; object-fit: cover; border-left: 2px solid var(--border-color); 
    position: absolute; right: -10%; top: 0; 
}

.marquee { background: #000; color: #fff; padding: 12px 0; overflow: hidden; border-top: 2px solid #000; border-bottom: 2px solid #000; position: relative; width: 100%; }
.marquee-content { display: flex; width: max-content; animation: marquee 25s linear infinite; }
.marquee-content span { display: flex; align-items: center; font-family: var(--font-heading); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 2px; padding-left: 50px; white-space: nowrap; }
.marquee-content i { color: #f1c40f; margin: 0 15px 0 5px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.about { padding: 80px 0; position: relative; background-image: url('img/gunung-bg.jpg'); background-size: cover; background-position: center; color: #fff; }
.about::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 1; }
.about > .container { position: relative; z-index: 2; }
.about-grid { display: flex; gap: 60px; align-items: center; }
.about-img-wrapper { flex: 1; position: relative; }
.about-img-wrapper img { width: 100%; display: block; border: 2px solid #fff; position: relative; z-index: 2; }
.img-accent { position: absolute; top: 15px; left: 15px; width: 100%; height: 100%; border: 2px solid #fff; background: repeating-linear-gradient(45deg, #fff, #fff 1px, transparent 1px, transparent 10px); z-index: 1; opacity: 0.3; }
.about-text { flex: 1; }
.about-text h2 { font-family: var(--font-heading); font-size: 48px; margin-bottom: 20px; text-transform: uppercase; line-height: 1; color: #fff; }
.about-text p { color: #ddd; font-size: 15px; }
.quote-box { margin-top: 30px; padding-left: 20px; border-left: 4px solid #fff; font-style: italic; font-size: 18px; color: #fff; }

/* =========================================
   4. PRODUCTS
   ========================================= */
.products { padding: 80px 0; border-top: 1px solid #ddd; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; border-bottom: 1px solid #ddd; padding-bottom: 20px; }
.section-title { font-family: var(--font-heading); font-size: 42px; text-transform: uppercase; line-height: 1; }
.btn-action { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border: 2px solid var(--text-color); color: var(--text-color); font-weight: 600; text-transform: uppercase; font-size: 13px; transition: all 0.3s; background: transparent; cursor: pointer; }
.btn-action:hover, .btn-action.active { background: var(--text-color); color: #fff; }

.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.card { background: #fff; border: 2px solid var(--border-color); transition: transform 0.3s ease; cursor: pointer; }
.card:hover { transform: translateY(-5px); box-shadow: 8px 8px 0px var(--border-color); }

/* Default Desktop Height */
.card-img { position: relative; height: 280px; overflow: hidden; border-bottom: 2px solid var(--border-color); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.card:hover .card-img img { transform: scale(1.1); }

.badge { position: absolute; top: 10px; left: 10px; background: #000; color: #fff; padding: 5px 10px; font-size: 10px; text-transform: uppercase; font-weight: bold; z-index: 2; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); display: flex; justify-content: center; align-items: center; opacity: 0; transition: 0.3s; }
.card:hover .overlay { opacity: 1; }

.btn-wa { background: #25D366; color: #fff; padding: 10px 20px; border-radius: 50px; font-weight: 600; transform: translateY(20px); transition: 0.3s; display: flex; align-items: center; gap: 5px; font-size: 13px; }
.card:hover .btn-wa { transform: translateY(0); }

.card-info { padding: 15px; }
.card-info h3 { font-size: 16px; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-heading); }
.desc-short { font-size: 12px; color: #777; margin-bottom: 10px; }
.price { font-family: var(--font-heading); font-size: 18px; font-weight: 700; }

.grid-container.list-view { grid-template-columns: 1fr; max-width: 800px; margin: 0 auto; }
.grid-container.list-view .card { display: flex; flex-direction: row; height: 180px; align-items: center; }
.grid-container.list-view .card-img { width: 180px; height: 100%; flex-shrink: 0; border-bottom: none; border-right: 2px solid var(--border-color); }
.grid-container.list-view .card-info { flex: 1; padding: 0 20px; text-align: left; }
.grid-container.list-view .desc-short { display: block !important; }

/* =========================================
   5. TESTIMONIALS (AESTHETIC & ICON UPDATE)
   ========================================= */
.testimoni { 
    padding: 100px 0; 
    border-top: 4px solid #f1c40f; /* Garis emas di atas */
    background-image: url('img/gunung-bg.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed; 
    position: relative; 
    color: #fff; 
}

/* Overlay Gradient agar lebih dramatis */
.testimoni::before { 
    content: ''; 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.8)); 
    z-index: 1; 
}
.testimoni .container { position: relative; z-index: 2; }

.testi-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 40px; 
    margin-top: 50px; 
}

/* --- KARTU TESTIMONI --- */
.testi-card { 
    background: #fff; 
    padding: 35px; 
    border-radius: 15px; /* Sudut membulat */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
    color: #333; 
    position: relative;
    transition: all 0.4s ease; /* Transisi halus untuk efek hover */
    border-bottom: 5px solid transparent; /* Persiapan untuk hover */
}

/* Efek HOVER: Kartu naik dan muncul garis emas */
.testi-card:hover {
    transform: translateY(-10px); /* Naik ke atas */
    box-shadow: 0 20px 40px rgba(241, 196, 15, 0.2); /* Bayangan pendar */
    border-bottom: 5px solid #145c0c;
}

/* Dekorasi Tanda Kutip Besar di pojok kanan */
.testi-card::after {
    content: "\201D";
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 100px;
    color: rgba(133, 133, 131, 0.25); 
    font-family: serif; /* Font klasik */
    line-height: 1;
    pointer-events: none;
}

.stars { color: #f1c40f; margin-bottom: 20px; font-size: 14px; letter-spacing: 2px; }

.testi-card p {
    font-style: italic;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 15px;
}

/* --- PROFIL REVIEWER (ICON ORANG) --- */
.reviewer-box {
    display: flex; /* Menyusun icon dan nama ke samping */
    align-items: center;
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Lingkaran Icon Orang */
.reviewer-icon {
    width: 50px;
    height: 50px;
    background-color: #014f29; /* Background emas */
    color: #fff;
    border-radius: 50%; /* Membuat bulat sempurna */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(241, 196, 15, 0.4);
}

.reviewer-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #1a1a1a;
}

.reviewer-info span {
    font-size: 12px;
    color: #888;
}

/* Responsive di HP */
@media (max-width: 768px) {
    .testi-grid { grid-template-columns: 1fr; } /* 1 Kolom di HP */
}

.footer { 
    padding-top: 70px; position: relative; font-size: 14px; 
    background-image: url('img/gunung-bg.jpg'); background-size: cover; background-position: center; background-attachment: fixed;
    color: #fff;
}
.footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); z-index: 1; }
.footer .container { position: relative; z-index: 2; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-col h3 { font-family: var(--font-heading); font-size: 24px; margin-bottom: 15px; }
.footer-col h4 { margin-bottom: 20px; font-weight: 700; border-bottom: 1px solid #444; display: inline-block; padding-bottom: 5px; color: #eee; }
.footer-desc { color: #bbb; line-height: 1.8; max-width: 350px; }

.social-links { display: flex; flex-direction: column; gap: 10px; }
.socmed-item { display: flex; align-items: center; color: #bbb; transition: 0.3s; }
.socmed-item i { width: 25px; margin-right: 8px; font-size: 18px; }
.socmed-item:hover { color: #fff; transform: translateX(5px); }

.ig-color { color: #E1306C; } .tt-color { color: #ffffff; } .wa-color { color: #25D366; } .email-color { color: #f1c40f; }

.copyright { position: relative; z-index: 2; background: rgba(0,0,0,0.3); text-align: center; padding: 15px 0; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12px; color: #bbb; }

/* =========================================
   6. RESPONSIVE (TABLET & LAYOUT UMUM)
   ========================================= */
@media (max-width: 1024px) {
    nav { padding: 10px 5%; justify-content: space-between; }
    .logo { font-size: 18px; }
    .logo img { height: 30px; }
    .nav-links { display: none; } 
    .nav-extra { gap: 10px; }
    .nav-icons { gap: 12px; }
    .hamburger { display: block !important; }

    .nav-links.active {
        display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--bg-color); padding: 20px 0; border-bottom: 2px solid #000;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1); align-items: center; gap: 0;
    }
    .nav-links a { width: 100%; text-align: center; padding: 15px 0; border-bottom: 1px solid #eee; }

    .hero { 
        flex-direction: column; height: auto; min-height: auto;
        padding: 60px 20px 40px 20px; text-align: center; 
    }
    .hero-content { padding-right: 0; margin-bottom: 40px; width: 100%; }
    .hero h1 { font-size: 48px; line-height: 1.1; margin-bottom: 20px; }
    .subtitle { font-size: 14px; letter-spacing: 3px; margin-bottom: 15px; }
    .promo-text { font-size: 16px; line-height: 1.6; max-width: 100%; }
    .btn-primary { padding: 15px 40px; font-size: 14px; }
    .hero-image { width: 100%; height: 300px; min-height: auto; }
    .hero-image img { position: relative; right: 0; border: none; border-top: 2px solid #000; }
    
    .about-grid, .footer-grid, .testi-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .about-grid { flex-direction: column-reverse; }
    .social-links { align-items: center; }
    #floating-music { bottom: 20px; right: 20px; width: 45px; height: 45px; }
    
    .grid-container.list-view .card { height: auto; align-items: flex-start; padding: 15px 0; }
    .grid-container.list-view .card-img { width: 120px; height: 120px; }
    .grid-container.list-view .card-info { padding: 0 15px; }
}

/* =========================================
   7. REVISI FINAL MOBILE: GRID & LIST RAPI
   ========================================= */
@media (max-width: 768px) {
    
    /* --- 1. SETTING DEFAULT (TAMPILAN GRID/KOTAK) --- */
    .grid-container {
        grid-template-columns: repeat(2, 1fr) !important; /* Default 2 Kolom */
        gap: 10px !important;
    }

    /* Card di Grid View */
    .card {
        min-width: 0 !important;
        width: 100% !important;
        flex-direction: column !important; /* Gambar atas, Teks bawah */
    }

    /* --- 2. KHUSUS SETTING TAMPILAN LIST (MEMANJANG) --- */
    /* Ini yang memperbaiki tampilan List yang berantakan */
    .grid-container.list-view {
        grid-template-columns: 1fr !important; /* Ubah paksa jadi 1 Kolom */
    }

    .grid-container.list-view .card {
        flex-direction: row !important; /* Gambar Kiri, Teks Kanan */
        align-items: center !important;
        height: auto !important;
        padding: 10px !important;
    }

    /* Gambar di List View (Kecil di kiri) */
    .grid-container.list-view .card-img {
        width: 100px !important; /* Ukuran fix */
        height: 100px !important;
        flex-shrink: 0 !important;
        border-bottom: none !important;
        border-right: 1px solid #eee;
    }

    /* Info Produk di List View (Di kanan) */
    .grid-container.list-view .card-info {
        padding: 0 0 0 15px !important;
        text-align: left !important;
        flex: 1;
    }

    /* Judul Produk agar Rapi */
    .card-info h3 {
        white-space: normal !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
        margin-bottom: 5px !important;
        
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        -webkit-line-clamp: 2; /* Batasi 2 baris */
        line-clamp: 2;
        height: 2.6em; /* Tinggi konsisten */
    }

    /* Reset Gambar Default (Grid View) */
    .card-img {
        height: auto !important;
        aspect-ratio: 1 / 1; 
        background-color: #f5f5f5;
    }

    .card-img img {
        object-fit: contain !important;
        width: 100%;
        height: 100%;
        transform: none !important;
    }

    /* Harga & Tombol */
    .price { font-size: 13px !important; }
    .btn-wa {
        font-size: 10px !important;
        padding: 6px 0 !important;
        width: 100%;
        justify-content: center;
        margin-top: 5px;
    }
    
    /* Deskripsi Pendek: Munculkan hanya di List View */
    .desc-short { display: none !important; }
    .grid-container.list-view .desc-short {
        display: block !important;
        font-size: 10px !important;
        color: #777;
        margin-bottom: 5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
    }
}