/* ======================================================
   UHN SUGRIWA — GLOBAL STYLES & THEME ENGINE
   ====================================================== */
:root {
    /* === WARNA AKSEN UTAMA (Tetap sama) === */
    --uhn-yellow:        #ffc107;
    --uhn-yellow-hover:  #e6a800;
    --primary-yellow:    #f1c40f;
    --yellow-soft:       #ffc107;
    
    /* === THEME: DARK MODE (DEFAULT) === */
    --bg-main:           #0a0a0a;
    --bg-gradient-end:   #121010;
    --bg-card:           #080b12;
    --bg-card-2:         #030406;
    --bg-nav:            #0b0f19;
    --bg-nav-scroll:     rgba(11, 15, 25, 0.92);
    --text-heading:      #ffffff;
    --text-body:         rgba(255, 255, 255, 0.75);
    --text-muted:        rgba(255, 255, 255, 0.5);
    --border-soft:       rgba(255, 255, 255, 0.05);
    --border-yellow:     rgba(255, 193, 7, 0.25);
    --glow-yellow:       rgba(255, 193, 7, 0.12);
    
    /* === FONT & TRANSISI === */
    --uhn-font:          'Plus Jakarta Sans', system-ui, sans-serif;
    --uhn-serif:         'Playfair Display', Georgia, serif;
    --trans:             0.22s ease;
}

/* === THEME: LIGHT MODE === */
[data-theme="light"] {
    --bg-main:           #f8fafc;
    --bg-gradient-end:   #e2e8f0;
    --bg-card:           #ffffff;
    --bg-card-2:         #f1f5f9;
    --bg-nav:            #ffffff;
    --bg-nav-scroll:     rgba(255, 255, 255, 0.95);
    --text-heading:      #0f172a;
    --text-body:         #334155;
    --text-muted:        #64748b;
    --border-soft:       #e2e8f0;
    --border-yellow:     rgba(241, 196, 15, 0.5);
    --glow-yellow:       rgba(241, 196, 15, 0.1);
}

* { box-sizing: border-box; }

body {
    font-family: var(--uhn-font);
    background-color: var(--bg-main);
    color: var(--text-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--trans), color var(--trans);
}

h1, h2, h3, h4 {
    font-family: var(--uhn-serif);
    letter-spacing: 0.5px;
    color: var(--text-heading);
}

a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--uhn-yellow);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.card {
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    background-color: var(--bg-card);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, #ffc107, #e6a800);
}


/* ======================================================
   AUTO SWAP LOGO DARK/LIGHT MODE
   ====================================================== */

/* Kondisi Default (Dark Mode) */
.img-logo-light { display: none !important; }
.img-logo-dark { display: block !important; }

/* Kondisi saat pindah ke Light Mode */
[data-theme="light"] .img-logo-light { display: block !important; }
[data-theme="light"] .img-logo-dark { display: none !important; }


/* ======================================================
   NAVBAR (SUDAH DINAMIS LIGHT/DARK)
   ====================================================== */
.uhn-navbar {
    background: var(--bg-nav) !important;
    border-bottom: 3px solid var(--uhn-yellow);
    position: sticky; top: 0; z-index: 1030;
    transition: background var(--trans), backdrop-filter var(--trans), box-shadow var(--trans);
    padding: 0;
}
.uhn-navbar.scrolled {
    background: var(--bg-nav-scroll) !important;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}
.uhn-navbar .container-fluid { padding: 0 2rem; }

.uhn-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 10px 0; flex-shrink: 0; }
.uhn-brand-icon { width: 38px; height: 38px; color: var(--uhn-yellow); flex-shrink: 0; transition: transform var(--trans); }
.uhn-brand:hover .uhn-brand-icon { transform: scale(1.08); }
.uhn-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.uhn-brand-text span { font-size: 0.82rem; font-weight: 700; color: var(--uhn-yellow); font-family: var(--uhn-font); }

.uhn-nav { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 2px; }
.uhn-nav > li { position: relative; display: flex; align-items: stretch; }
.uhn-nav > li > a {
    display: flex; align-items: center; gap: 5px; padding: 0 14px;
    font-size: 0.88rem; font-weight: 600; color: var(--text-heading);
    text-decoration: none; white-space: nowrap; height: 62px;
    border-bottom: 3px solid transparent; margin-bottom: -3px;
    transition: color var(--trans), border-color var(--trans), background var(--trans);
}
.uhn-nav > li > a:hover, .uhn-nav > li > a:focus-visible, .uhn-nav > li > a.active {
    color: var(--uhn-yellow-hover); border-bottom-color: var(--uhn-yellow); background: var(--glow-yellow);
}
.uhn-nav > li > a .chevron { width: 10px; height: 10px; transition: transform var(--trans); opacity: 0.6; }
.uhn-nav > li:hover > a .chevron, .uhn-nav > li:focus-within > a .chevron { transform: rotate(180deg); opacity: 1; }

.uhn-dropdown {
    position: absolute; top: calc(100% + 3px); left: 0; min-width: 230px;
    background: var(--bg-card); border: 1px solid var(--border-soft);
    border-top: 3px solid var(--uhn-yellow); border-radius: 0 0 10px 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15); opacity: 0; visibility: hidden;
    transform: translateY(8px); transition: opacity var(--trans), transform var(--trans), visibility var(--trans);
    z-index: 500; padding: 8px 0;
}
.uhn-nav > li:hover .uhn-dropdown, .uhn-nav > li:focus-within .uhn-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.uhn-dropdown a {
    display: block; padding: 9px 18px; font-size: 0.86rem; font-weight: 500;
    color: var(--text-body); text-decoration: none; transition: color var(--trans), background var(--trans), padding-left var(--trans);
    border-left: 3px solid transparent;
}
.uhn-dropdown a:hover, .uhn-dropdown a:focus-visible {
    color: var(--uhn-yellow-hover); background: var(--glow-yellow); border-left-color: var(--uhn-yellow); padding-left: 22px;
}

.uhn-mega {
    position: absolute; top: calc(100% + 3px); left: -120px; width: 640px;
    background: var(--bg-card); border: 1px solid var(--border-soft);
    border-top: 3px solid var(--uhn-yellow); border-radius: 0 0 12px 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15); opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: opacity var(--trans), transform var(--trans), visibility var(--trans);
    z-index: 500; padding: 1.5rem; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem;
}
.uhn-nav > li:hover .uhn-mega, .uhn-nav > li:focus-within .uhn-mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-col-title {
    font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--uhn-yellow-hover); margin-bottom: 0.6rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--border-soft);
}
.mega-col a {
    display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 0.84rem; font-weight: 500;
    color: var(--text-body); text-decoration: none; border-bottom: 1px solid var(--border-soft); transition: color var(--trans), gap var(--trans);
}
.mega-col a:last-child { border-bottom: none; }
.mega-col a:hover, .mega-col a:focus-visible { color: var(--uhn-yellow-hover); gap: 12px; }
.mega-col a .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--uhn-yellow); opacity: 0; flex-shrink: 0; transition: opacity var(--trans); }
.mega-col a:hover .dot, .mega-col a:focus-visible .dot { opacity: 1; }

.mega-highlight {
    grid-column: 1 / -1; background: var(--glow-yellow); border: 1px solid var(--border-yellow);
    border-radius: 8px; padding: 0.9rem 1.1rem; display: flex; align-items: center; gap: 1rem;
    margin-top: 0.25rem; text-decoration: none; transition: background var(--trans);
}
.mega-highlight:hover, .mega-highlight:focus-visible { background: var(--border-yellow); }
.mega-highlight-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--uhn-yellow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.mega-highlight p { margin: 0; font-size: 0.8rem; color: var(--text-body); }
.mega-highlight strong { font-size: 0.88rem; color: var(--text-heading); display: block; }

.uhn-search-wrap { position: relative; display: flex; align-items: center; }
.uhn-search-btn {
    background: none; border: none; cursor: pointer; color: var(--text-heading); width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center; border-radius: 6px; transition: color var(--trans), background var(--trans);
}
.uhn-search-btn:hover, .uhn-search-btn:focus-visible { color: var(--uhn-yellow-hover); background: var(--glow-yellow); }
.uhn-search-expand { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 0; overflow: hidden; transition: width 0.3s ease; display: flex; align-items: center; }
.uhn-search-expand.open { width: 240px; }
.uhn-search-expand form { display: flex; width: 100%; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 6px; overflow: hidden; }
.uhn-search-expand input { flex: 1; background: none; border: none; outline: none; color: var(--text-heading); font-size: 0.85rem; padding: 7px 12px; font-family: var(--uhn-font); }
.uhn-search-expand input::placeholder { color: var(--text-muted); }
.uhn-search-expand button { background: var(--uhn-yellow); border: none; cursor: pointer; padding: 0 12px; display: flex; align-items: center; justify-content: center; transition: background var(--trans); }
.uhn-search-expand button:hover { background: var(--uhn-yellow-hover); }

.uhn-btn-daftar {
    background: var(--uhn-yellow); color: #000 !important; font-size: 0.82rem; font-weight: 700; padding: 8px 18px;
    border-radius: 6px; text-decoration: none; white-space: nowrap; border: 2px solid var(--uhn-yellow);
    transition: background var(--trans), transform var(--trans); display: inline-flex; align-items: center; gap: 6px;
}
.uhn-btn-daftar:hover, .uhn-btn-daftar:focus-visible { background: var(--uhn-yellow-hover); border-color: var(--uhn-yellow-hover); color: #000 !important; transform: translateY(-1px); }

.uhn-toggler { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 5px; padding: 4px; }
.uhn-toggler span { display: block; width: 22px; height: 2px; background: var(--uhn-yellow); border-radius: 2px; transition: all 0.25s ease; }
.uhn-toggler.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.uhn-toggler.open span:nth-child(2) { opacity: 0; }
.uhn-toggler.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.uhn-mobile-menu {
    display: none; background: var(--bg-card); border-top: 1px solid var(--border-soft);
    padding: 1rem 1.5rem 1.5rem; position: absolute; top: 100%; left: 0; right: 0;
    max-height: 75vh; overflow-y: auto; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.uhn-mobile-menu.open { display: block; }
.mobile-nav-item { border-bottom: 1px solid var(--border-soft); }
.mobile-nav-link {
    display: flex; justify-content: space-between; align-items: center; padding: 12px 0;
    color: var(--text-heading); font-size: 0.9rem; font-weight: 600; text-decoration: none; cursor: pointer;
    background: none; border: none; width: 100%; text-align: left; font-family: inherit;
}
.mobile-nav-link:hover, .mobile-nav-link:focus-visible { color: var(--uhn-yellow-hover); }
.mobile-sub { display: none; padding: 4px 0 8px 12px; }
.mobile-sub.open { display: block; }
.mobile-sub a {
    display: block; padding: 7px 0; color: var(--text-body); font-size: 0.85rem;
    text-decoration: none; border-left: 2px solid var(--border-soft); padding-left: 12px; margin-bottom: 2px;
    transition: color var(--trans), border-color var(--trans);
}
.mobile-sub a:hover, .mobile-sub a:focus-visible { color: var(--uhn-yellow-hover); border-left-color: var(--uhn-yellow); }

.mobile-search { margin-top: 1rem; display: flex; background: var(--bg-card-2); border: 1px solid var(--border-soft); border-radius: 6px; overflow: hidden; }
.mobile-search input { flex: 1; background: none; border: none; outline: none; color: var(--text-heading); font-size: 0.85rem; padding: 9px 12px; font-family: var(--uhn-font); }
.mobile-search input::placeholder { color: var(--text-muted); }
.mobile-search button { background: var(--uhn-yellow); border: none; padding: 0 14px; cursor: pointer; }
.mobile-daftar { display: block; margin-top: 1rem; text-align: center; background: var(--uhn-yellow); color: #000; font-weight: 700; padding: 10px; border-radius: 6px; text-decoration: none; font-size: 0.9rem; }

/* ======================================================
   FOOTER (SUDAH DINAMIS LIGHT/DARK)
   ====================================================== */
footer { background: var(--bg-nav) !important; border-top: 4px solid var(--uhn-yellow); }
.footer-heading {
    font-size: 0.78rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--uhn-yellow-hover); margin-bottom: 1rem; padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-soft); font-family: var(--uhn-font);
}
.footer-link {
    display: flex; align-items: center; gap: 7px; padding: 5px 0;
    color: var(--text-body) !important; font-size: 0.88rem; text-decoration: none !important; transition: color var(--trans), gap var(--trans);
}
.footer-link::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--uhn-yellow); opacity: 0; flex-shrink: 0; transition: opacity var(--trans); }
.footer-link:hover, .footer-link:focus-visible { color: var(--uhn-yellow-hover) !important; gap: 11px; }
.footer-link:hover::before, .footer-link:focus-visible::before { opacity: 1; }

.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 0.75rem; font-size: 0.88rem; color: var(--text-body); font-style: normal; }
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--uhn-yellow-hover); }

.footer-social a {
    width: 36px; height: 36px; background: var(--glow-yellow); border: 1px solid var(--border-yellow); border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center; transition: background var(--trans), transform var(--trans); color: var(--uhn-yellow-hover);
}
.footer-social a:hover, .footer-social a:focus-visible { background: var(--uhn-yellow-hover); transform: translateY(-2px); color: #fff; }

.footer-jam {
    background: var(--glow-yellow); border: 1px solid var(--border-yellow); border-radius: 8px;
    padding: 0.85rem 1rem; margin-bottom: 1rem; font-size: 0.86rem; color: var(--text-body); line-height: 1.8;
}

.footer-hubungi {
    display: inline-flex; align-items: center; gap: 8px; background: var(--uhn-yellow); color: #000;
    font-weight: 700; font-size: 0.85rem; padding: 9px 20px; border-radius: 6px; text-decoration: none; transition: background var(--trans), transform var(--trans);
}
.footer-hubungi:hover, .footer-hubungi:focus-visible { background: var(--uhn-yellow-hover); transform: translateY(-1px); color: #000; }

.footer-bottom { border-top: 1px solid var(--border-soft); padding: 1.1rem 0; font-size: 0.82rem; color: var(--text-muted); }

/* ======================================================
   BACK TO TOP
   ====================================================== */
#backToTop {
    position: fixed; bottom: 2rem; right: 2rem; width: 42px; height: 42px;
    background: var(--uhn-yellow); color: #000; border: none; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all var(--trans);
    z-index: 999; box-shadow: 0 4px 16px rgba(255, 193, 7, 0.3);
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover, #backToTop:focus-visible { background: var(--uhn-yellow-hover); transform: translateY(-2px); }