/* ==========================================================================
   Header Component (AMK) - Balanced & Fit Logo
   ========================================================================== */

#amk-wrap {
  display: block;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
  position: relative;
  background: #ffffff;
}

#amk-wrap *,
#amk-wrap *::before,
#amk-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Topbar Merah */
#amk-wrap .amk-topbar {
  background: #d8141c;
  background: linear-gradient(90deg, #ed1c24 0%, #b90e15 100%);
  padding: 4px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

#amk-wrap .amk-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}

#amk-wrap .amk-contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
}

#amk-wrap .amk-contact-item svg {
  display: block;
  stroke: #ffffff;
  width: 12px;
  height: 12px;
}

#amk-wrap .amk-contact-item a {
  color: #ffffff;
  text-decoration: none;
}

/* Header Utama */
#amk-wrap .amk-main-header {
  width: 100%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Sticky Mode */
#amk-wrap .amk-main-header.is-sticky {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08) !important;
}

#amk-wrap .amk-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 16px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Penataan Logo Presisi */
#amk-wrap .amk-brand {
  display: flex;
  align-items: center;
  line-height: 1;
}

#amk-wrap .amk-brand a {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

#amk-wrap .amk-brand img,
#amk-wrap .amk-brand .custom-logo {
  max-height: 42px !important;
  height: 42px !important;
  width: auto !important;
  display: block;
  object-fit: contain;
}

/* Navigasi & Action */
#amk-wrap .amk-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

#amk-wrap #amk-menu-box {
  display: flex;
  align-items: center;
}

#amk-wrap #amk-menu-box ul {
  display: flex;
  align-items: center;
  list-style: none !important;
  gap: 22px;
}

#amk-wrap #amk-menu-box ul li {
  list-style: none !important;
}

#amk-wrap #amk-menu-box ul li a {
  text-decoration: none;
  color: #1e293b;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  display: block;
  padding: 4px 0;
  transition: color 0.2s ease;
}

#amk-wrap #amk-menu-box ul li.active a,
#amk-wrap #amk-menu-box ul li.current-menu-item a,
#amk-wrap #amk-menu-box ul li a:hover {
  color: #ed1c24;
}

/* Search Icon */
#amk-wrap .amk-search-icon {
  display: flex;
  align-items: center;
  cursor: pointer;
}

#amk-wrap .amk-search-icon img {
  display: block;
  width: 17px;
  height: 17px;
}

/* Tombol Toggle Mobile */
#amk-wrap .amk-btn-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: #ed1c24;
  border: none;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  padding: 0;
}

/* Responsiveness */
@media (max-width: 860px) {
  #amk-wrap .amk-inner {
    padding: 5px 14px;
    min-height: 48px;
  }

  #amk-wrap .amk-brand img,
  #amk-wrap .amk-brand .custom-logo {
    max-height: 36px !important;
    height: 36px !important;
  }

  #amk-wrap .amk-btn-toggle {
    display: flex;
  }

  #amk-wrap #amk-menu-box {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #eeeeee;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }

  #amk-wrap #amk-menu-box.open {
    display: block;
  }

  #amk-wrap #amk-menu-box ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0;
  }

  #amk-wrap #amk-menu-box ul li a {
    padding: 10px 18px;
    border-bottom: 1px solid #f8f8f8;
    font-size: 13px;
  }
}