/* Chrome ZeroNet: header navigasi + tombol WhatsApp mengambang.
   Dipakai halaman publik DAN portal pelanggan supaya keduanya tidak bisa
   berbeda, tanpa portal harus menarik seluruh design-system halaman publik. */

:root {
  --hdr-brand-1: #10B981;
  --hdr-brand-2: #06B6D4;
  --hdr-grad: linear-gradient(135deg, #10B981 0%, #06B6D4 60%, #0EA5E9 100%);
  --hdr-bg: #FFFFFF;
  --hdr-text: #0B1220;
  --hdr-text-2: #475569;
  --hdr-line: #E5E9F0;
}

.site-header {
  background: var(--hdr-bg);
  border-bottom: 1px solid var(--hdr-line);
  position: sticky; top: 0; z-index: 50;
  font-family: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.site-header .wrap {
  width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 18px;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 62px; gap: 12px;
  position: relative;
}

.site-header .brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--hdr-text);
  font-weight: 700; letter-spacing: -.01em; font-size: 16px;
}
.site-header .brand .mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--hdr-grad);
  display: grid; place-items: center; color: #fff; flex: none;
  box-shadow: 0 6px 18px -4px rgba(6, 182, 212, .55);
}
.site-header .brand .mark svg { width: 22px; height: 22px; }

.site-header .nav { display: none; align-items: center; gap: 4px; }
.site-header .nav a {
  text-decoration: none; color: var(--hdr-text-2); font-size: 14.5px; font-weight: 500;
  padding: 8px 12px; border-radius: 9px; white-space: nowrap;
}
.site-header .nav a:hover { background: #F1F5F9; color: var(--hdr-text); }
.site-header .nav a[aria-current="page"] { color: var(--hdr-brand-1); background: rgba(16,185,129,.09); font-weight: 600; }

.site-header .nav-logout { margin: 0 0 0 4px; display: inline-flex; }
.site-header .nav-logout button {
  font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--hdr-line); background: #fff; color: var(--hdr-text-2);
}
.site-header .nav-logout button:hover { border-color: #FCA5A5; color: #B91C1C; }

.site-header .nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--hdr-line); background: #fff;
  border-radius: 10px; cursor: pointer; color: var(--hdr-text); flex: none;
}
.site-header .nav-toggle svg { width: 20px; height: 20px; }

/* Panel mobile: melayang di bawah ikon, tidak mendorong konten halaman */
.site-header .mobile-nav {
  position: absolute; top: calc(100% + 8px); right: 18px; left: auto;
  min-width: 220px; max-width: calc(100vw - 36px);
  background: var(--hdr-bg);
  border: 1px solid var(--hdr-line); border-radius: 14px;
  box-shadow: 0 12px 32px -8px rgba(11, 18, 32, .22), 0 2px 6px rgba(11, 18, 32, .06);
  padding: 6px; z-index: 60;
  transform-origin: top right;
  animation: hdr-menu-in 140ms cubic-bezier(0, 0, .2, 1);
  font-family: inherit;
}
.site-header .mobile-nav[hidden] { display: none; }
.site-header .mobile-nav a {
  display: block; padding: 11px 14px; text-decoration: none;
  color: var(--hdr-text); font-weight: 500; font-size: 15px; border-radius: 9px;
}
.site-header .mobile-nav a:active { background: #F1F5F9; }
.site-header .mobile-nav a[aria-current="page"] { color: var(--hdr-brand-1); background: rgba(16,185,129,.09); font-weight: 600; }
.site-header .mobile-logout { margin: 4px 0 0; border-top: 1px solid var(--hdr-line); padding-top: 6px; }
.site-header .mobile-logout button {
  width: 100%; text-align: left; font: inherit; font-size: 15px; font-weight: 600;
  padding: 11px 14px; border: 0; border-radius: 9px; background: none;
  color: #B91C1C; cursor: pointer;
}

@keyframes hdr-menu-in {
  from { opacity: 0; transform: translateY(-6px) scale(.97); }
}

@media (min-width: 980px) {
  .site-header .nav { display: flex; }
  .site-header .nav-toggle { display: none; }
  .site-header .mobile-nav { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .mobile-nav { animation: none; }
}

/* ── Tombol WhatsApp mengambang ─────────────────────────── */
.fab-wa {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
  text-decoration: none;
  transition: transform .08s ease;
  view-transition-name: fab-wa;
}
.fab-wa:active { transform: scale(.94); }
.fab-wa svg { width: 27px; height: 27px; }
