/*
  Agenz Foundation V103
  Canonical public navigation for Home, UMKM, Services, Portfolio, Academy,
  AI Tools, Insights, and Library.
*/

html body .site-header,
html body .site-header.scrolled,
html body .site-header.ref-scrolled,
html body.umkm-page .site-header,
html body.ecosystem-showcase .site-header,
html body.library-page .site-header {
  width: min(1420px, calc(100% - 28px)) !important;
  height: 76px !important;
  min-height: 76px !important;
  grid-template-columns: 166px minmax(0, 1fr) auto !important;
  gap: 14px !important;
  padding: 0 12px 0 18px !important;
  border: 1px solid rgba(21, 95, 209, .13) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow:
    0 18px 58px rgba(31, 73, 137, .12),
    0 2px 8px rgba(31, 73, 137, .04) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.12) !important;
  backdrop-filter: blur(22px) saturate(1.12) !important;
}

html body .site-header.scrolled,
html body .site-header.ref-scrolled {
  height: 68px !important;
  min-height: 68px !important;
}

html body .desktop-nav,
html body.ecosystem-showcase .desktop-nav,
html body.library-page .desktop-nav,
html body.umkm-page .desktop-nav {
  width: fit-content !important;
  max-width: 100% !important;
  height: 52px !important;
  padding: 5px !important;
  gap: 2px !important;
  border: 1px solid rgba(21, 95, 209, .10) !important;
  border-radius: 17px !important;
  background: rgba(238, 245, 255, .78) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92) !important;
}

html body .desktop-nav a,
html body.ecosystem-showcase .desktop-nav a,
html body.library-page .desktop-nav a,
html body.umkm-page .desktop-nav a {
  height: 40px !important;
  padding: 0 clamp(8px, .82vw, 13px) !important;
  color: #53627a !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  font-size: clamp(.64rem, .68vw, .73rem) !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  letter-spacing: -.012em !important;
  text-transform: none !important;
  transition:
    color .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease !important;
}

html body .desktop-nav a::after {
  display: none !important;
}

html body .desktop-nav a:hover {
  color: #134f9f !important;
  border-color: rgba(21, 95, 209, .10) !important;
  background: rgba(255, 255, 255, .68) !important;
}

html body .desktop-nav a[aria-current="page"] {
  color: #0d4fa8 !important;
  border-color: rgba(21, 95, 209, .16) !important;
  background: #fff !important;
  box-shadow:
    0 8px 22px rgba(31, 73, 137, .13),
    0 1px 3px rgba(31, 73, 137, .06) !important;
}

html body .desktop-nav a[aria-current="page"]::before {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  bottom: 5px !important;
  width: 16px !important;
  height: 2px !important;
  display: block !important;
  border-radius: 999px !important;
  background: #1764d8 !important;
  transform: translateX(-50%) !important;
}

html body .header-cta,
html body.ecosystem-showcase .header-cta,
html body.umkm-page .header-cta {
  min-height: 44px !important;
  height: 44px !important;
  padding-inline: 15px !important;
  border-radius: 14px !important;
  box-shadow: 0 9px 24px rgba(21, 95, 209, .18) !important;
}

html body .mobile-menu,
html body.umkm-page .mobile-menu {
  padding: 100px max(18px, calc((100vw - 640px) / 2)) 30px !important;
  gap: 7px !important;
  background:
    radial-gradient(circle at 88% 8%, rgba(73, 137, 231, .14), transparent 26rem),
    rgba(248, 251, 255, .985) !important;
}

html body .mobile-menu a {
  min-height: 58px !important;
  padding: 0 16px !important;
  border: 1px solid rgba(21, 95, 209, .10) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, .74) !important;
  box-shadow: 0 8px 24px rgba(31, 73, 137, .055) !important;
  font-size: .94rem !important;
  transition:
    color .2s ease,
    border-color .2s ease,
    background-color .2s ease,
    transform .2s ease !important;
}

html body .mobile-menu a:hover {
  color: #0d4fa8 !important;
  border-color: rgba(21, 95, 209, .20) !important;
  background: #fff !important;
  transform: translateX(3px) !important;
}

html body .mobile-menu a b {
  min-width: 34px !important;
  height: 28px !important;
  display: inline-grid !important;
  place-items: center !important;
  color: #60708a !important;
  border: 1px solid rgba(21, 95, 209, .10) !important;
  border-radius: 9px !important;
  background: #f4f8ff !important;
}

html body .mobile-menu a[aria-current="page"] {
  color: #0d4fa8 !important;
  border-color: rgba(21, 95, 209, .22) !important;
  background: rgba(232, 242, 255, .96) !important;
  box-shadow: 0 12px 30px rgba(31, 73, 137, .10) !important;
}

html body .mobile-menu a[aria-current="page"] b {
  color: #fff !important;
  border-color: #1764d8 !important;
  background: #1764d8 !important;
}

@media (max-width: 1280px) {
  html body .site-header,
  html body .site-header.scrolled,
  html body .site-header.ref-scrolled {
    grid-template-columns: 148px minmax(0, 1fr) auto !important;
    gap: 10px !important;
  }

  html body .brand-lockup,
  html body .site-header .brand-lockup {
    width: 146px !important;
    min-width: 146px !important;
  }

  html body .brand-lockup img,
  html body .site-header .brand-lockup img {
    width: 144px !important;
  }

  html body .desktop-nav a {
    padding-inline: 8px !important;
    font-size: .62rem !important;
  }

  html body .header-cta {
    padding-inline: 12px !important;
    font-size: .57rem !important;
  }
}

@media (max-width: 1140px) {
  html body .desktop-nav,
  html body.ecosystem-showcase .desktop-nav,
  html body.library-page .desktop-nav,
  html body.umkm-page .desktop-nav,
  html body .language-toggle,
  html body .language-menu,
  html body .account-entry,
  html body .header-cta {
    display: none !important;
  }

  html body .site-header,
  html body .site-header.scrolled,
  html body .site-header.ref-scrolled {
    grid-template-columns: 1fr auto !important;
  }

  html body .menu-toggle {
    display: grid !important;
  }
}

@media (max-width: 680px) {
  html body .site-header,
  html body .site-header.scrolled,
  html body .site-header.ref-scrolled {
    width: calc(100% - 18px) !important;
    height: 64px !important;
    min-height: 64px !important;
    border-radius: 18px !important;
  }

  html body .mobile-menu,
  html body.umkm-page .mobile-menu {
    padding-top: 88px !important;
  }

  html body .mobile-menu a {
    min-height: 54px !important;
    border-radius: 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .desktop-nav a,
  html body .mobile-menu a {
    transition: none !important;
  }
}
