/* Topbar dan navbar (desktop + menu mobile). */
.topbar {
  background: var(--dark);
  color: #c9cdd3;
  font-size: 13px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  gap: 16px;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.topbar-item a { color: #fff; font-weight: 500; }
.topbar-item a:hover { color: var(--accent); }
.topbar-item svg { width: 14px; height: 14px; color: var(--accent); }
.topbar-socials { display: flex; gap: 6px; }
.topbar-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 6px;
  color: #c9cdd3;
  transition: all 0.15s ease;
}
.topbar-socials a svg { width: 14px; height: 14px; }
.topbar-socials a:hover { background: var(--accent); color: var(--dark); }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.navbar.scrolled { box-shadow: 0 6px 24px rgba(20, 22, 26, 0.08); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { height: 52px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active { background: var(--bg-soft); color: var(--accent-dark); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta { display: inline-flex; }
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
}
.hamburger span { display: block; height: 2px; width: 100%; background: var(--dark); border-radius: 2px; transition: all 0.2s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Menu mobile ----------
   visibility hidden saat tertutup agar link tidak bisa di-focus keyboard. */
@media (max-width: 768px) {
  .topbar-hide { display: none; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.25s ease, visibility 0s;
  }
  .nav-links a { padding: 13px 14px; font-size: 16px; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
}
