/* Header Shrink — logo, search, hamburger, mobile panel */
#header {
  font-family: var(--font-header);
}
.header-shrink {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
}
.header-shrink-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--container-padding);
  max-width: var(--container-max-width);
  margin: 0 auto;
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  .header-shrink-inner {
    max-width: var(--container-max-width);
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
    padding-left: var(--container-padding-desktop);
    padding-right: var(--container-padding-desktop);
  }
}

#logo {
  flex-shrink: 0;
  padding: 8px 0;
}
#logo img { max-height: var(--logo-max-height); width: auto; display: block; }
#logo .site-title {
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 700;
}
@media (min-width: 1024px) {
  #logo img { max-height: 48px; }
}

/* Actions cluster: search + social, grouped like the reference layout */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-left: var(--space-xl);
}

/* Search — desktop topbar.
   Mengikuti desain dasar di assets/css/base.css (.input-container), hanya
   menyesuaikan lebar input supaya pas di deretan .topbar-actions. */
.hamburger-search .input-container {
  width: 220px;
  max-width: none;
}
.hamburger-search .input-container .input {
  height: 42px;
}
.hamburger-search .input-container .icon {
  height: 42px;
}

/* Social icons — colored circles beside the search bar (desktop only) */
.topbar-social {
  display: none;
  align-items: center;
  gap: var(--space-sm);
}
@media (min-width: 1024px) {
  .topbar-social { display: flex; }
}
.topbar-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  color: var(--color-white);
  background: var(--color-text-light);
  transition: transform .2s ease, opacity .2s ease;
}
.topbar-social-link svg { width: 16px; height: 16px; }
.topbar-social-link:hover { transform: translateY(-2px); opacity: .9; }
.topbar-social-facebook  { background: #1877f2; }
.topbar-social-x         { background: #000; }
.topbar-social-instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.topbar-social-youtube   { background: #ff0000; }
.topbar-social-whatsapp  { background: #25d366; }
.topbar-social-tiktok    { background: #000; }
.topbar-social-linkedin  { background: #0a66c2; }

/* Hamburger Button — hidden on desktop */
.hamburger-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  position: relative;
}
.hamburger-button span {
  display: block;
  width: 24px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gradient-start), var(--color-gradient-mid));
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.hamburger-button.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-button.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger-button.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Panel — full-screen (gaya Nomina) */
.mobile-menu-kiri-wrap {
  position: fixed;
  top: 0;
  left: -100vw;
  width: 100vw;
  height: 100vh;
  background: var(--color-white);
  z-index: 1000;
  transition: left .35s ease;
  overflow-y: auto;
}
.mobile-menu-kiri-wrap.open { left: 0; }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-md);
  background: linear-gradient(90deg,
    var(--color-gradient-start) 0%, var(--color-gradient-start) 16%,
    var(--color-gradient-mid) 34%, var(--color-gradient-mid) 66%,
    var(--color-gradient-end) 84%, var(--color-gradient-end) 100%);
}
.mobile-logo img { max-height: 30px; width: auto; }
.mobile-logo .site-title { font-size: 1rem; font-weight: 700; color: var(--color-white); }
.close-button {
  background: rgba(255,255,255,.18);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--color-white);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.close-button:hover { background: rgba(255,255,255,.32); }

.mobile-search-form { padding: var(--space-md); border-bottom: 1px solid #e0e0e0; }

.mobile-navigation { padding: 0; }
.mobile-navigation .mobile-menu { list-style: none; margin: 0; padding: 0; }
.mobile-navigation .mobile-menu > li { border-bottom: 1px solid #e0e0e0; position: relative; }
.mobile-navigation .mobile-menu a {
  display: block;
  padding: 18px 20px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}
.mobile-navigation .mobile-menu a:hover { background: #f8f8f8; }
.mobile-navigation .mobile-menu .current-menu-item > a { color: var(--color-red); }
.mobile-navigation .mobile-menu .sub-menu { display: none; padding-left: 0; background: #fafafa; }
.mobile-navigation .mobile-menu .has-dropdown.focus > .sub-menu { display: block; }
.mobile-navigation .mobile-menu .sub-menu li { border-bottom: none; border-top: 1px solid #eee; }
.mobile-navigation .mobile-menu .sub-menu a {
  font-size: 13px;
  font-weight: 500;
  padding: 14px 20px 14px 36px;
}

/* Tombol panah submenu (disisipkan lewat mobile-menu-toggle.js) */
.mobile-submenu-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 52px;
  height: 100%;
  border: none;
  background: none;
  color: var(--color-text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: transform .25s ease;
}
.mobile-submenu-toggle.is-open { transform: rotate(180deg); }

/* Overlay — removed, full-screen sudah mencakup */

@media (max-width: 767px) {
  .header-shrink-inner { gap: var(--space-sm); padding: 10px 12px; }
  .topbar-actions { display: none; }
  .hamburger-button {
    display: flex;
    width: 36px;
    height: 28px;
    align-items: center;
    justify-content: center;
  }
  #logo img { max-height: 32px; }
  .hamburger-button span { width: 20px; }
}
