/* --- PREMIUM B2B WEB STYLE GUIDE --- */
:root {
    --primary-brown: #3F2723;
    --primary-green: #183D26;
    --accent-orange: #EE6824;
    --bg-cream: #FAF8F5;
    --text-dark: #2A2421;
    --text-muted: #6D6460;
    --white: #FFFFFF;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* --- GLOBAL RESET & LAYOUT --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: var(--font-body); 
    background-color: var(--bg-cream); 
    color: var(--text-dark); 
    line-height: 1.8; 
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { 
    font-family: var(--font-heading); 
    color: var(--primary-brown); 
    font-weight: 700; 
}

a { 
    text-decoration: none; 
    transition: all 0.3s ease; 
}

.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
}

/* --- RESPONSIVE MEDIA UTILITIES --- */
img, video, iframe { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}
.video-container video, 
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- TOMBOL / BUTTONS (SANGAT AMAN DIEDIT) --- */
/* Menghapus semua float/display inline-block mentah yang merusak layout */
.btn-wa { 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-orange); 
    color: var(--white) !important; 
    padding: 12px 28px; 
    border-radius: 6px; 
    font-weight: 700 !important; 
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(238, 104, 36, 0.2); 
    text-transform: none;
}
.btn-wa:hover { 
    background-color: #d1561a; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 18px rgba(238, 104, 36, 0.3); 
}
.btn-green {
    background-color: var(--primary-green) !important;
    box-shadow: 0 4px 12px rgba(24, 61, 38, 0.2);
}
.btn-green:hover {
    background-color: #112b1b !important;
    box-shadow: 0 6px 18px rgba(24, 61, 38, 0.3);
}
.btn-small {
    padding: 8px 16px; 
    font-size: 13px;
}

/* Wadah Khusus Tombol Hero - Menggunakan Flexbox agar sejajar sempurna */
.btn-group {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
    width: 100%;
}
.btn-group-footer {
    margin-top: 15px;
}

/* --- HEADER & NAVIGATION --- */
header { 
    background-color: var(--white); 
    box-shadow: 0 4px 20px rgba(63, 39, 35, 0.05); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    padding: 15px 0; 
}
.nav-wrapper { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: relative;
}

.logo img { 
    height: 80px; 
    width: auto; 
    display: block; 
}

/* Menu Navigasi Default (Desktop) */
nav ul { 
    list-style: none; 
    display: flex; 
    gap: 25px; 
    align-items: center; 
}
nav ul li a { 
    color: var(--primary-brown); 
    font-weight: 600; 
    font-size: 14px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    padding: 5px 0;
}
nav ul li a:hover, nav ul li a.active { 
    color: var(--accent-orange); 
}

/* Sembunyikan Checkbox dan Tombol Hamburger di Desktop */
.menu-toggle, .hamburger {
    display: none;
}

/* --- HERO SECTION --- */
.hero-inner { 
    background: linear-gradient(rgba(63, 39, 35, 0.85), rgba(24, 61, 38, 0.85)), url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2bxD_H_f2Yk8Ohpp9Hz2773a9z2kEgNhuM8yHqig9eh_hQYJH11SHfRcfeSXcoW_AdyZ65HOsOXfLWINB9UzQwqoE-XcxN6VgxJxeQzVQ3i0_yLjjZsAYIF-K145tE7HTjrdEWkg4dYWdApvgQWIBhojM1WSDn3kxfXki1Vd5eNrpQfsCWgZuXXuwDnc/s1200/produk%20%281%29.png') center/cover; 
    color: var(--white); 
    padding: 120px 0; 
    text-align: center; 
}
.hero-inner h1 { 
    color: var(--white); 
    font-size: 42px; 
    margin-bottom: 20px; 
    letter-spacing: -0.5px; 
    line-height: 1.3;
}
.hero-inner p { 
    font-size: 18px; 
    max-width: 800px; 
    margin: 0 auto; 
    color: #EFEBE9; 
}

/* --- PAGE HEADER --- */
.page-header { 
    background: linear-gradient(rgba(63, 39, 35, 0.9), rgba(63, 39, 35, 0.9)), url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2bxD_H_f2Yk8Ohpp9Hz2773a9z2kEgNhuM8yHqig9eh_hQYJH11SHfRcfeSXcoW_AdyZ65HOsOXfLWINB9UzQwqoE-XcxN6VgxJxeQzVQ3i0_yLjjZsAYIF-K145tE7HTjrdEWkg4dYWdApvgQWIBhojM1WSDn3kxfXki1Vd5eNrpQfsCWgZuXXuwDnc/s1200/produk%20%281%29.png') center/cover; 
    color: var(--white); 
    padding: 60px 0; 
    text-align: center; 
}
.page-header h1 { 
    color: var(--white); 
    font-size: 32px; 
    text-transform: uppercase; 
}

/* --- SECTIONS --- */
.section-padding { 
    padding: 80px 0; 
}
.section-title { 
    font-size: 32px; 
    text-align: center; 
    margin-bottom: 15px; 
    position: relative; 
    padding-bottom: 15px; 
}
.section-title::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 60px; 
    height: 4px; 
    background-color: var(--accent-orange); 
    border-radius: 2px; 
}
.section-subtitle { 
    text-align: center; 
    color: var(--text-muted); 
    font-size: 16px; 
    margin-bottom: 50px; 
}

/* --- GRIDS & CARDS --- */
.grid-3 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); 
    gap: 30px; 
}
.card { 
    background-color: var(--white); 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
    border: 1px solid #F1EDE9; 
    transition: all 0.3s ease; 
    display: flex;
    flex-direction: column;
}
.card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 12px 25px rgba(63, 39, 35, 0.08); 
}
.card img, .card video { 
    width: 100%; 
    height: 240px; 
    object-fit: cover; 
}
.card-content { 
    padding: 25px; 
    flex-grow: 1;
}
.card-content h3 { 
    font-size: 20px; 
    margin-bottom: 12px; 
}
.card-content p { 
    color: var(--text-muted); 
    font-size: 15px; 
}
.card-centered {
    text-align: center;
}
.card-centered .card-content {
    padding: 30px 20px;
}

.text-green { color: var(--primary-green); }
.text-orange { color: var(--accent-orange); }
.text-brown { color: var(--primary-brown); }

/* --- FOOTER --- */
footer { 
    background-color: var(--primary-brown); 
    color: #D7CCC8; 
    padding: 60px 0 20px; 
}
.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); 
    gap: 40px; 
    margin-bottom: 40px; 
}
.footer-col h4 { 
    color: var(--white); 
    font-size: 18px; 
    margin-bottom: 20px; 
    position: relative; 
}
.footer-col p { 
    font-size: 14px; 
    line-height: 1.8; 
}
.footer-col ul { 
    list-style: none; 
}
.footer-col ul li { 
    margin-bottom: 12px; 
}
.footer-col ul li a { 
    color: #D7CCC8; 
    font-size: 14px; 
}
.footer-col ul li a:hover { 
    color: var(--accent-orange); 
    padding-left: 5px; 
}
.footer-logo { 
    height: 80px; 
    width: auto;
    margin-bottom: 15px; 
    filter: brightness(0) invert(1); 
}
.footer-bottom { 
    border-top: 1px solid rgba(255,255,255,0.08); 
    padding-top: 20px; 
    text-align: center; 
    font-size: 13px; 
    color: #8D6E63; 
}

/* --- TAMPILAN RESPONSIF & POPUP MENU KANAN ATAS (MOBILE FRIENDLY) --- */
@media (max-width: 991px) {
    .hero-inner h1 { font-size: 36px; }
}

@media (max-width: 768px) {
    /* Atur Header Mobile */
    .nav-wrapper { 
        padding: 0 5px;
    }
    
    /* Memunculkan Tombol Hamburger di Kanan Atas */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1002;
    }
    .hamburger span {
        display: block;
        width: 28px;
        height: 3px;
        background-color: var(--primary-brown);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Transformasi Menu Navigasi Menjadi Popup Kanan Atas */
    nav {
        position: fixed;
        top: 80px; /* Muncul tepat di bawah header */
        right: -100%; /* Sembunyi di sebelah kanan */
        width: 260px;
        background-color: var(--white);
        box-shadow: -4px 10px 25px rgba(63, 39, 35, 0.15);
        border-radius: 8px 0 0 8px;
        padding: 30px 20px;
        transition: right 0.4s cubic-bezier(0.1, 0.8, 0.3, 1);
        z-index: 1001;
    }
    
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
    }
    
    nav ul li {
        width: 100%;
        border-bottom: 1px solid #F1EDE9;
        padding-bottom: 10px;
    }
    nav ul li:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-top: 10px;
    }
    
    nav ul li a {
        display: block;
        width: 100%;
        font-size: 15px;
    }
    
    /* Tombol WA di dalam Menu Popup */
    .btn-wa {
        width: 100%;
    }

    /* Logika CSS Popup: Ketika checkbox di-check, menu bergeser masuk */
    .menu-toggle:checked ~ nav {
        right: 0;
    }
    
    /* Animasi Simpel Hamburger saat Popup Terbuka */
    .menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Perbaikan Tombol Hero agar Rapi Sejajar / Stack Sempurna di HP */
    .btn-group {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .btn-group .btn-wa {
        width: 100%;
        max-width: 290px;
    }

    .hero-inner { padding: 70px 0; }
    .hero-inner h1 { font-size: 26px; }
    .hero-inner p { font-size: 15px; }
    
    .section-padding { padding: 50px 0; }
    .section-title { font-size: 24px; }
    .section-subtitle { margin-bottom: 35px; font-size: 14px; }
    
    .page-header { padding: 45px 0; }
    .page-header h1 { font-size: 24px; }
    
    .footer-grid { gap: 30px; text-align: center; }
}

/* --- PREMIUM FLOATING ACTION BUTTON (FAB) --- */
/* --- PERBAIKAN GAMBAR KUSTOM DI DALAM FAB --- */
.fab-main-btn img.fab-custom-icon {
    width: 32px;            /* Mengatur lebar gambar ikon biar pas di tengah */
    height: 32px;           /* Mengatur tinggi gambar ikon */
    object-fit: contain;    /* Menjaga agar logo tidak gepeng */
    border-radius: 50%;     /* Membuat gambar ikut membulat jika perlu */
    transition: transform 0.3s ease;
}

/* Memastikan efek rotasi estetik saat diklik tetap bekerja pada gambar */
.fab-toggle:checked ~ .fab-main-btn img.fab-custom-icon {
    transform: rotate(135deg);
}

.fab-main-btn {
    width: 60px;
    height: 60px;
    background-color: var(--accent-orange);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(238, 104, 36, 0.4);
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 2;
}

.fab-main-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.fab-sub-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.fab-sub-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fab-sub-btn:hover {
    transform: scale(1.1);
}

.fab-sub-btn.wa {
    background-color: #25D366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.fab-sub-btn.fb {
    background-color: #1877F2;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.fab-sub-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Logika Interaksi Klik (CSS Only) */
.fab-toggle:checked ~ .fab-sub-buttons {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-toggle:checked ~ .fab-main-btn {
    background-color: var(--primary-brown);
}

.fab-toggle:checked ~ .fab-main-btn svg {
    transform: rotate(135deg);
}

/* Responsif untuk Mobile */
@media (max-width: 768px) {
    .fab-wrapper {
        bottom: 20px;
        right: 20px;
    }
    .fab-main-btn {
        width: 52px;
        height: 52px;
    }
    .fab-sub-btn {
        width: 44px;
        height: 44px;
    }
}


/* --- PREMIUM FLOATING ACTION BUTTON (FAB) --- */
.fab-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;
}

.fab-toggle {
    display: none;
}

.fab-main-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Warna Default: Hijau WhatsApp */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 2;
    position: relative; /* Penting untuk absolute positioning icon di dalamnya */
}

/* Transisi Halus pada SVG */
.fab-main-btn svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Secara default, ikon close disembunyikan dan diputar */
.fab-main-btn svg.icon-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.fab-main-btn svg.icon-chat {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.fab-sub-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.fab-sub-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fab-sub-btn:hover {
    transform: scale(1.1);
}

.fab-sub-btn.wa {
    background-color: #25D366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.fab-sub-btn.fb {
    background-color: #1877F2;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.fab-sub-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* --- Logika Interaksi Klik (CSS Only) --- */
.fab-toggle:checked ~ .fab-sub-buttons {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Saat diklik, warna berubah menjadi abu-abu netral / gelap */
.fab-toggle:checked ~ .fab-main-btn {
    background-color: var(--primary-brown);
    box-shadow: 0 4px 15px rgba(63, 39, 35, 0.4);
}

/* Pertukaran animasi Ikon saat diklik */
.fab-toggle:checked ~ .fab-main-btn svg.icon-chat {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.fab-toggle:checked ~ .fab-main-btn svg.icon-close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Responsif untuk Mobile */
@media (max-width: 768px) {
    .fab-wrapper {
        bottom: 20px;
        right: 20px;
    }
    .fab-main-btn {
        width: 55px;
        height: 55px;
    }
    .fab-sub-btn {
        width: 45px;
        height: 45px;
    }
    .fab-main-btn svg {
        width: 28px;
        height: 28px;
    }
}
