/* ===== RESET & BASE ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: #f8f5f0; /* fallback */
}

/* ===== HEADER WRAPPER ===== */
.linggis_header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    transition: all 0.3s ease;
}

/* ===== SITE BRANDING (KIRI) ===== */
.site-branding {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.site-branding a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.site-branding a:hover {
    transform: scale(1.03);
}

.logoku {
    width: 122px;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    transition: filter 0.3s ease;
}

.site-branding a:hover .logoku {
    filter: drop-shadow(0 6px 16px rgba(212, 175, 55, 0.4));
}

/* ===== NAVIGATION (KANAN) ===== */
#site-navigation {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
}

/* Hide checkbox and label by default on desktop */
#show-menu,
.show-menu {
    display: none;
}

.menu {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.menu-item {
    position: relative;
}

.menu-item a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: #2c2c2c;
    text-decoration: none;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: transparent;
    position: relative;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Efek mewah : garis bawah emas & bayangan */
.menu-item a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f5e56b, #d4af37);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.menu-item a:hover::after,
.menu-item.current-menu-item a::after {
    width: 60%;
}

.menu-item a:hover,
.menu-item.current-menu-item a {
    color: #1a1a1a;
    background: rgba(212, 175, 55, 0.12);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
}

/* Item aktif (home) diberi aksen lebih */
.menu-item.current-menu-item a {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(245, 229, 107, 0.10));
    border: 1px solid rgba(212, 175, 55, 0.25);
}

/* ===== RESPONSIVE MOBILE ===== */
@media screen and (max-width: 768px) {
    .site-header {
        padding: 0 1rem;
        min-height: 70px;
        flex-wrap: wrap;
        background: rgba(255, 255, 255, 0.95);
    }

    /* Tampilkan tombol menu (hamburger) */
    .show-menu {
        display: block;
        cursor: pointer;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        font-weight: 600;
        color: #1a1a1a;
        background: rgba(212, 175, 55, 0.12);
        border-radius: 30px;
        border: 1px solid rgba(212, 175, 55, 0.2);
        transition: all 0.3s ease;
        user-select: none;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .show-menu:hover {
        background: rgba(212, 175, 55, 0.25);
        border-color: #d4af37;
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    }

    /* Sembunyikan checkbox (tetap fungsional) */
    #show-menu {
        display: none;
    }

    /* Menu utama akan disembunyikan secara default di mobile */
    #site-navigation .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 20px;
        padding: 1rem 0.5rem;
        margin-top: 0.5rem;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
        border: 1px solid rgba(255, 215, 0, 0.15);
        gap: 0.2rem;
        animation: slideDown 0.3s ease forwards;
    }

    /* Saat checkbox dicentang, tampilkan menu */
    #show-menu:checked ~ .menu {
        display: flex;
    }

    .menu-item a {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 16px;
        text-align: center;
        width: 100%;
        background: transparent;
    }

    .menu-item a::after {
        display: none; /* hilangkan garis bawah di mobile, lebih bersih */
    }

    .menu-item a:hover,
    .menu-item.current-menu-item a {
        background: rgba(212, 175, 55, 0.12);
        border: none;
        box-shadow: none;
    }

    .menu-item.current-menu-item a {
        background: linear-gradient(135deg, rgba(212, 175, 55, 0.20), rgba(245, 229, 107, 0.10));
        border: 1px solid rgba(212, 175, 55, 0.3);
    }

    /* Atur ulang posisi site-branding dan tombol menu */
    .site-branding {
        flex: 1;
    }

    #site-navigation {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        width: auto;
    }

    .logoku {
        max-height: 70px;
        width: auto;
    }

    /* Animasi dropdown */
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px) scale(0.97);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    /* Untuk layar sangat kecil (≤ 480px) */
    @media screen and (max-width: 480px) {
        .site-header {
            padding: 0 0.75rem;
            min-height: 60px;
        }

        .show-menu {
            font-size: 0.75rem;
            padding: 0.4rem 0.8rem;
        }

        .menu-item a {
            font-size: 0.85rem;
            padding: 0.6rem 1rem;
        }

        .logoku {
            max-height: 60px;
        }
    }
}

/* ===== TAMBAHAN UNTUK DESKTOP TAPI ELEGAN ===== */
/* Jika ingin logo lebih besar di desktop, sudah diatur */

/* Efek hover pada header saat scroll (opsional) */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

/* ===== AKSESIBILITAS ===== */
#show-menu:focus-visible + .show-menu {
    outline: 2px solid #d4af37;
    outline-offset: 4px;
}

.menu-item a:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}
