/* =========================================
   GLOBAL FONT DECLARATION (SINKRON DENGAN HOME)
========================================= */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v20-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Reset Dasar Header */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif; /* Pindahkan deklarasi font ke sini agar berlaku global untuk semua elemen header */
}

body {
    /* Hapus deklarasi Segoe UI di sini jika body sudah di-handle oleh CSS Home. 
       Atau biarkan kosong jika hanya untuk styling khusus header. */
}



/* Variabel Warna Tema Hexa Glassmorphism */
:root {
    --gh-green: #7dc02f; /* Hijau Hexa Utama */
    --gh-bg: rgba(125, 192, 47, 0.85); /* Hijau Hexa Transparan */
    --gh-border: rgba(255, 255, 255, 0.3);
    --gh-text: #ffffff;
    --gh-muted: #e6f2d9;
    --gh-drawer-bg: rgba(125, 192, 47, 0.4); /* Dibuat lebih transparan (0.4) */}

/* === WRAPPER HEADER === */
.gh-header-wrapper {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    z-index: 9999;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.3, 0, 0.2, 1);
    
    /* Tambahkan ini untuk menutup celah putih */
   
    padding-top: 12px; /* Pindahkan jarak visual ke sini */
    padding-bottom: 5px;
}
.gh-header-hide {
    transform: translateY(-110%);
}

/* === KOMPONEN HEADER === */
.gh-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--gh-bg);
    border: 1px solid var(--gh-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.gh-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px; /* Perkecil gap agar muat */
    width: 100%;
}

/* === LOGO === */
.gh-logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Jarak antara gambar logo dan teks */
    text-decoration: none;
    color: var(--gh-text);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Styling Baru: Gambar Logo */
.gh-logo-img {
    max-height: 36px; /* Tinggi maksimal logo agar proporsional */
    width: auto;
    display: block; /* Mencegah spasi ekstra di bawah gambar */
}

/*.gh-logo span {*/
/*    font-weight: 400;*/
/*    font-size: 14px;*/
/*    opacity: 0.9;*/
/*}*/

/* === MENU DESKTOP === */
.gh-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.gh-menu {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gh-menu > li {
    position: relative;
}

.gh-menu > li > a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--gh-text);
    padding: 6px 0;
    display: inline-flex;
    align-items: center;
    position: relative;
}

/* Animasi Garis Bawah - Menggunakan Hijau Hexa Solid */
.gh-menu > li > a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: #ffffff; /* Menggunakan putih agar kontras dengan background hijau */
    transition: width 0.3s ease;
}

.gh-menu > li:hover > a::after {
    width: 100%;
}

/* === TOMBOL CTA WHATSAPP === */
.gh-cta {
    margin-left: 20px;
}

.gh-cta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--gh-green);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gh-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.gh-cta a span {
    font-size: 16px;
    color: #25D366; /* Warna logo WhatsApp */
}

/* === TOGGLE MOBILE (HAMBURGER) === */
.gh-toggle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--gh-border);
    background: rgba(255, 255, 255, 0.15);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
}

.gh-toggle-line {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--gh-text);
    position: relative;
    transition: background 0.2s ease;
}

.gh-toggle-line::before,
.gh-toggle-line::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--gh-text);
    transition: transform 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

.gh-toggle-line::before { top: -6px; }
.gh-toggle-line::after { bottom: -6px; }

/* State Terbuka */
.gh-toggle.is-open .gh-toggle-line {
    background: transparent;
}
.gh-toggle.is-open .gh-toggle-line::before {
    top: 0;
    transform: rotate(45deg);
}
.gh-toggle.is-open .gh-toggle-line::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* === DRAWER MOBILE === */
.gh-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--gh-drawer-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    padding: 80px 20px 24px;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 9998;
    overflow-y: auto;
}

.gh-drawer-inner {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.gh-drawer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gh-drawer-menu > li > a {
    display: block;
    padding: 12px 15px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--gh-text);
    background: var(--gh-green);    
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
}

.gh-drawer-menu > li > a:hover {
background: #6ab025; /* Contoh hijau agak gelap */
}

.gh-drawer-footer {
    margin-top: auto;
    border-top: 1px dashed rgba(255, 255, 255, 0.3);
    padding-top: 20px;
    font-size: 14px;
    color: var(--gh-muted);
    text-align: center;
}

.gh-drawer-footer a {
    display: inline-block;
    margin-top: 10px;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 20px;
    background: var(--gh-green);
    border-radius: 999px;
    border: 1px solid #ffffff;
}

/* Class untuk membuka drawer */
.gh-drawer.is-open {
    right: 0;
}

/* === OVERLAY === */
.gh-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9997;
}

.gh-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Mencegah scroll saat menu terbuka */
body.gh-no-scroll {
    overflow: hidden;
}

/* === EFEK SCROLL HEADER === */
.gh-header.gh-scrolled {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    background: var(--gh-bg);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
    padding: 10px 18px;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .gh-menu,
    .gh-cta {
        display: none;
    }
    .gh-toggle {
        display: flex;
    }
    
}

@media (max-width: 768px) {
    .gh-header {
        /* Beri jarak sedikit dari pinggir layar */
    padding: 10px 18px;
        max-width: calc(100% - 20px);
        margin: 0 10px;
    }

    .gh-logo {
        font-size: 14px; 
        gap: 6px;
        white-space: normal; 
        line-height: 1.2;
        max-width: 70%; 
        flex-shrink: 1; /* Tambahkan ini agar logo mau mengalah ukurannya */
    }

    .gh-logo-img {
        max-height: 24px; /* Kecilkan logo sedikit di HP */
    }

    .gh-toggle {
        /* Pastikan ukuran toggle pas */
        width: 36px;
        height: 36px;
    }
}