/* =====================================================
   GLOBAL ZERO BOX-SHADOW RESET
   Swiss Clean Flat Design Aesthetics
===================================================== */
*,
*::before,
*::after {
  box-shadow: none !important;
}

/* =====================================================
   IBR NAVBAR
===================================================== */

.ibr-nav {
  --nav-navy: #0b2a4a;
  --nav-navy-soft: #315574;

  --nav-blue: #1479dc;
  --nav-blue-hover: #0868c5;

  --nav-white: #ffffff;

  --nav-glass: rgba(239, 248, 255, 0.76);
  --nav-glass-strong: rgba(245, 250, 255, 0.92);

  --nav-border: rgba(255, 255, 255, 0.32);
  --nav-border-dark: rgba(13, 68, 113, 0.09);

  position: absolute;
  top: -10px;
  left: 0;

  z-index: 1000;

  width: 100%;

  padding-top: 18px;

  transition: all 0.35s ease-in;
}

/* =====================================================
   BAR
===================================================== */

.ibr-nav__bar {
  width: 100%;

  background: transparent;

  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    backdrop-filter 0.35s ease;
}

/* =====================================================
   CONTAINER
===================================================== */

.ibr-nav__container {
  width: min(1280px, calc(100% - 48px));

  min-height: 66px;

  margin: 0 auto;

  display: flex;
  align-items: center;

  gap: 30px;

  padding: 0 10px;

  border: 1px solid transparent;
  border-radius: 18px;

  transition:
    min-height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.35s ease,
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =====================================================
   SCROLLED
===================================================== */

.ibr-nav.is-scrolled {
  position: fixed;
  top: 0px;

  padding-top: 10px;
}

.ibr-nav.is-scrolled .ibr-nav__container {
  min-height: 62px;

  padding-inline: 15px;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.88),
    rgba(240, 248, 255, 0.78)
  );

  border-color: #ededed;

  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}

/* =====================================================
   LOGO
===================================================== */

.ibr-nav__logo {
  display: flex;
  align-items: center;

  flex-shrink: 0;

  text-decoration: none;
}

.ibr-nav__logo img {
  display: block;

  width: 155px;
  height: auto;

  transition:
    width 0.3s ease,
    transform 0.3s ease;
}

.ibr-nav__logo:hover img {
  transform: translateY(-1px);
}

.ibr-nav.is-scrolled .ibr-nav__logo img {
  width: 145px;
}

/* =====================================================
   MENU
===================================================== */

.ibr-nav__menu {
  display: flex;
  align-items: center;

  gap: 3px;

  margin-left: auto;
}

/* =====================================================
   NAV LINK
===================================================== */

.ibr-nav__link {
  position: relative;

  min-height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 5px;

  padding: 0 13px;

  color: rgba(11, 42, 74, 0.62);

  background: transparent;

  border: 0;
  border-radius: 11px;

  text-decoration: none;

  font: inherit;
  font-size: 13px;
  font-weight: 500;

  cursor: pointer;

  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    transform 0.22s ease;
}

.ibr-nav__link:hover {
  color: var(--nav-navy);

  background: rgba(255, 255, 255, 0.22);
}

/* =====================================================
   ACTIVE
===================================================== */

.ibr-nav__link.is-active {
  color: var(--nav-navy);

  font-weight: 600;
}

/*
  Hilangkan underline panjang lama.
  Gunakan dot/bar kecil yang lebih clean.
*/

.ibr-nav__link.is-active::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: 2px;

  width: 16px;
  height: 2px;

  background: var(--nav-blue);

  border-radius: 999px;

  transform: translateX(-50%);

  box-shadow: none;
}

/* =====================================================
   ARROW
===================================================== */

.ibr-nav__link svg {
  width: 13px;
  height: 13px;

  fill: none;

  stroke: currentColor;
  stroke-width: 1.8;

  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ibr-nav__item.is-open .ibr-nav__dropdown-trigger svg {
  transform: rotate(180deg);
}

/* =====================================================
   DROPDOWN ITEM WRAPPER
===================================================== */

.ibr-nav__item {
  position: relative;
}

/* =====================================================
   DROPDOWN BASE
===================================================== */

.ibr-nav__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -6px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1000;
}

.ibr-nav__dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.ibr-nav__item.is-open .ibr-nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

@media (hover: hover) {
  .ibr-nav__item:hover .ibr-nav__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
  }
  
  .ibr-nav__item:hover .ibr-nav__dropdown-trigger svg {
    transform: rotate(180deg);
  }
}

/* =====================================================
   MEGA NAVBAR DROPDOWN (NEUTRAL MINIMALIST)
===================================================== */

.ibr-nav__dropdown--mega {
  width: min(840px, 94vw);
  padding: 20px 24px 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
}

.ibr-mega__grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ibr-mega__column {
  display: flex;
  flex-direction: column;
}

.ibr-mega__col-title {
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}

.ibr-mega__col-title span {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
}

.ibr-mega__menu-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ibr-mega__menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.18s ease;
}

.ibr-mega__menu-item:hover {
  background: #f8fafc;
  transform: translateX(3px);
}

.ibr-mega__item-ic {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  transition: all 0.18s ease;
}

.ibr-mega__menu-item:hover .ibr-mega__item-ic {
  color: #0a64c4;
  background: #eff6ff;
  border-color: #dbeafe;
}

.ibr-mega__item-text {
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  transition: color 0.18s ease;
}

.ibr-mega__menu-item:hover .ibr-mega__item-text {
  color: #0f172a;
}

.ibr-mega__item-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ibr-pill-badge {
  font-size: 8.5px;
  font-weight: 700;
  padding: 1.5px 5px;
  border-radius: 100px;
  background: #fee2e2;
  color: #dc2626;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* HORIZONTAL FULL-WIDTH SEO BANNER */
.ibr-mega__seo-banner {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.ibr-mega__seo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Footer Action Bar */
.ibr-mega__action-bar {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ibr-mega__action-text strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
}

.ibr-mega__action-text small {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}

.ibr-mega__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: #059669;
  border: 1px solid #059669;
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.ibr-mega__action-btn:hover {
  background: #047857;
  border-color: #047857;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Mobile Group Styling */
.ibr-mobile-group__title {
  font-size: 11px;
  font-weight: 700;
  color: #0a64c4;
  letter-spacing: 0.05em;
  padding: 12px 14px 4px;
  text-transform: uppercase;
}

/* =====================================================
   ALL SERVICES
===================================================== */

.ibr-nav__dropdown-all {
  min-height: 40px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 12px;

  color: rgba(20, 57, 89, 0.68);

  text-decoration: none;

  border-radius: 11px;

  font-size: 11px;
  font-weight: 600;

  transition:
    color 0.22s ease,
    background-color 0.22s ease;
}

.ibr-nav__dropdown-all:hover {
  color: var(--nav-blue);

  background: rgba(47, 128, 237, 0.06);
}

.ibr-nav__dropdown-all span {
  font-size: 15px;

  transition: transform 0.22s ease;
}

.ibr-nav__dropdown-all:hover span {
  transform: translateX(3px);
}

/* =====================================================
   CTA
===================================================== */

.ibr-nav__cta {
  min-height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  margin-left: 7px;

  padding: 0 17px;

  color: #ffffff;

  background: linear-gradient(135deg, #2384e5, #0867c6);

  border: none;

  border-radius: 12px;

  text-decoration: none;

  font-size: 12px;
  font-weight: 600;

  box-shadow:
    0 8px 20px rgba(5, 92, 178, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);

  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.ibr-nav__cta:hover {
  transform: translateY(-2px);

  box-shadow:
    0 12px 25px rgba(5, 80, 158, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ibr-nav__cta span {
  transition: transform 0.22s ease;
}

.ibr-nav__cta:hover span {
  transform: translate(2px, -2px);
}

/* =====================================================
   MOBILE TOGGLE
===================================================== */

.ibr-nav__toggle {
  display: none;

  width: 42px;
  height: 42px;

  margin-left: auto;

  align-items: center;
  justify-content: center;
  flex-direction: column;

  gap: 5px;

  border: 1px solid rgba(255, 255, 255, 0.38);

  border-radius: 11px;

  background: rgba(255, 255, 255, 0.18);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  cursor: pointer;
}

.ibr-nav__toggle span {
  width: 17px;
  height: 1.5px;

  background: var(--nav-navy);

  border-radius: 999px;
}

/* =====================================================
   MOBILE OVERLAY
===================================================== */

.ibr-nav__overlay {
  position: fixed;

  inset: 0;

  background: rgba(2, 21, 39, 0.42);

  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

/* =====================================================
   MOBILE DRAWER
===================================================== */

.ibr-nav__mobile {
  position: fixed;
  top: 0;
  right: 0;

  width: min(88vw, 390px);
  height: 100dvh;

  display: flex;
  flex-direction: column;

  padding: 24px;

  background: linear-gradient(160deg, #f7fbff 0%, #e8f4fd 100%);

  border-left: 1px solid rgba(255, 255, 255, 0.65);

  box-shadow: -25px 0 70px rgba(4, 47, 85, 0.17);

  transform: translateX(100%);

  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* =====================================================
   OPEN MOBILE
===================================================== */

.ibr-nav.is-menu-open .ibr-nav__overlay {
  opacity: 1;
  visibility: visible;

  pointer-events: auto;
}

.ibr-nav.is-menu-open .ibr-nav__mobile {
  transform: translateX(0);
}

/* =====================================================
   MOBILE HEADER
===================================================== */

.ibr-nav__mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ibr-nav__close {
  position: relative;

  width: 40px;
  height: 40px;

  border: 1px solid rgba(15, 66, 107, 0.1);

  border-radius: 11px;

  background: rgba(255, 255, 255, 0.6);

  cursor: pointer;
}

.ibr-nav__close span {
  position: absolute;

  left: 11px;

  width: 16px;
  height: 1.5px;

  background: var(--nav-navy);

  border-radius: 999px;
}

.ibr-nav__close span:first-child {
  transform: rotate(45deg);
}

.ibr-nav__close span:last-child {
  transform: rotate(-45deg);
}

/* =====================================================
   MOBILE LINKS
===================================================== */

.ibr-nav__mobile-menu {
  display: flex;
  flex-direction: column;

  margin-top: 42px;
}

.ibr-nav__mobile-link {
  position: relative;

  width: 100%;
  min-height: 56px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 2px;

  border: 0;

  border-bottom: 1px solid rgba(18, 68, 109, 0.08);

  background: transparent;

  color: rgba(22, 59, 91, 0.62);

  text-decoration: none;

  font-size: 15px;
  font-weight: 500;

  cursor: pointer;

  transition:
    color 0.2s ease,
    padding 0.2s ease;
}

.ibr-nav__mobile-link:hover,
.ibr-nav__mobile-link.is-active {
  color: var(--nav-navy);
}

.ibr-nav__mobile-link.is-active {
  font-weight: 600;
}

.ibr-nav__mobile-link.is-active::before {
  content: "";

  position: absolute;

  left: -24px;

  width: 3px;
  height: 18px;

  background: var(--nav-blue);

  border-radius: 0 999px 999px 0;
}

/* =====================================================
   MOBILE ARROW
===================================================== */

.ibr-nav__mobile-link svg {
  width: 15px;
  height: 15px;

  fill: none;

  stroke: currentColor;
  stroke-width: 1.8;

  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ibr-nav__mobile-group.is-open .ibr-nav__mobile-dropdown-trigger svg {
  transform: rotate(180deg);
}

/* =====================================================
   MOBILE DROPDOWN
===================================================== */

.ibr-mobile-group__title {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.06em;
  padding: 12px 10px 4px;
  text-transform: uppercase;
}

.ibr-nav__mobile-dropdown {
  max-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition:
    max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.ibr-nav__mobile-group.is-open .ibr-nav__mobile-dropdown {
  max-height: 380px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 1;
  visibility: visible;
  padding-right: 4px;
}

/* Custom Scrollbars */
.ibr-nav__mobile::-webkit-scrollbar,
.ibr-nav__mobile-dropdown::-webkit-scrollbar {
  width: 4px;
}

.ibr-nav__mobile::-webkit-scrollbar-track,
.ibr-nav__mobile-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.ibr-nav__mobile::-webkit-scrollbar-thumb,
.ibr-nav__mobile-dropdown::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.ibr-nav__mobile-dropdown a {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  color: #334155;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(-5px);
  transition:
    opacity 0.2s ease,
    transform 0.25s ease,
    color 0.2s ease,
    background-color 0.2s ease;
}

.ibr-mobile-item__icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  transition: all 0.18s ease;
}

.ibr-nav__mobile-group.is-open .ibr-nav__mobile-dropdown a {
  opacity: 1;
  transform: translateY(0);
}

.ibr-nav__mobile-dropdown a:hover {
  color: #0a64c4;
  background: #eff6ff;
}

.ibr-nav__mobile-dropdown a:hover .ibr-mobile-item__icon {
  color: #0a64c4;
  background: #eff6ff;
  border-color: #dbeafe;
}

/* =====================================================
   MOBILE CTA
===================================================== */

.ibr-nav__mobile-cta {
  width: 100%;
  min-height: 50px;

  margin-top: auto;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  color: #fff;

  background: linear-gradient(135deg, #2384e5, #0867c6);

  border-radius: 12px;

  text-decoration: none;

  font-size: 13px;
  font-weight: 600;

  box-shadow: 0 10px 25px rgba(7, 91, 170, 0.18);
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 960px) {
  .ibr-nav {
    padding-top: 10px;
  }

  .ibr-nav__container {
    width: min(calc(100% - 28px), 1280px);

    min-height: 62px;

    padding: 0 10px;
  }

  .ibr-nav.is-scrolled .ibr-nav__container {
    padding-inline: 12px;
  }

  .ibr-nav__menu,
  .ibr-nav__cta {
    display: none;
  }

  .ibr-nav__toggle {
    display: flex;
  }

  .ibr-nav__dropdown {
    display: none;
  }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 480px) {
  .ibr-nav__container {
    width: calc(100% - 20px);
  }

  .ibr-nav__logo img {
    width: 128px;
  }

  .ibr-nav.is-scrolled .ibr-nav__logo img {
    width: 125px;
  }

  .ibr-nav__mobile {
    width: min(91vw, 360px);

    padding: 20px;
  }

  .ibr-nav__mobile-link.is-active::before {
    display: none;
  }
}
