/* nav-dropdown.css — Products/Services header submenu
   Loaded LAST by DesignStyles so pages-updates / inner-pages cannot flatten it.
   Mirrors homepage panel: white card, soft shadow, navy→magenta top border. */

header.head-pos {
  z-index: 50;
  overflow: visible;
}

header.head-pos .head-flx,
header.head-pos .rgt-head,
header.head-pos .hd-rgt {
  overflow: visible;
}

/* Keep every top-level nav item on one baseline (Products + caret included) */
header .head-flx .rgt-head .hd-rgt,
header .head-flx .hd-rgt {
  align-items: center;
}

header .head-flx .rgt-head .hd-rgt > li,
header .head-flx .hd-rgt > li {
  display: flex;
  align-items: center;
  margin: 0;
  line-height: 0;
}

header .head-flx .rgt-head .hd-rgt > li > a,
header .head-flx .hd-rgt > li > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 24px !important;
  vertical-align: middle;
  box-sizing: border-box;
}

header .head-flx .rgt-head .hd-rgt li.has-sub,
header .head-flx .hd-rgt li.has-sub {
  position: relative;
}

header .head-flx .rgt-head .hd-rgt li.has-sub > .nav-parent,
header .head-flx .hd-rgt li.has-sub > .nav-parent {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  line-height: 24px !important;
  /* Design underline animation uses overflow:hidden — clips the caret */
  overflow: visible !important;
}

header .head-flx .rgt-head .hd-rgt li.has-sub > .nav-parent .nav-parent-label,
header .head-flx .hd-rgt li.has-sub > .nav-parent .nav-parent-label {
  display: inline-block;
  line-height: 24px;
  vertical-align: middle;
}

header .head-flx .rgt-head .hd-rgt li.has-sub > .nav-parent::before,
header .head-flx .rgt-head .hd-rgt li.has-sub > .nav-parent::after,
header .head-flx .hd-rgt li.has-sub > .nav-parent::before,
header .head-flx .hd-rgt li.has-sub > .nav-parent::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
}

header .head-flx .rgt-head .hd-rgt li.has-sub > .nav-parent .nav-caret,
header .head-flx .hd-rgt li.has-sub > .nav-parent .nav-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin: 0;
  color: #0c1a63;
  opacity: 0.7;
  line-height: 0;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.2s ease,
    opacity 0.2s ease;
}

header .head-flx .rgt-head .hd-rgt li.has-sub > .nav-parent .nav-caret svg,
header .head-flx .hd-rgt li.has-sub > .nav-parent .nav-caret svg {
  display: block;
  width: 10px;
  height: 6px;
}

header .head-flx .rgt-head .hd-rgt li.has-sub:hover > .nav-parent .nav-caret,
header .head-flx .rgt-head .hd-rgt li.has-sub:focus-within > .nav-parent .nav-caret,
header .head-flx .rgt-head .hd-rgt li.has-sub.open > .nav-parent .nav-caret,
header .head-flx .rgt-head .hd-rgt li.has-sub.is-active > .nav-parent .nav-caret,
header .head-flx .hd-rgt li.has-sub:hover > .nav-parent .nav-caret,
header .head-flx .hd-rgt li.has-sub:focus-within > .nav-parent .nav-caret,
header .head-flx .hd-rgt li.has-sub.open > .nav-parent .nav-caret,
header .head-flx .hd-rgt li.has-sub.is-active > .nav-parent .nav-caret {
  color: #ff3366;
  opacity: 1;
}

header .head-flx .rgt-head .hd-rgt li.has-sub:hover > .nav-parent .nav-caret,
header .head-flx .rgt-head .hd-rgt li.has-sub:focus-within > .nav-parent .nav-caret,
header .head-flx .rgt-head .hd-rgt li.has-sub.open > .nav-parent .nav-caret,
header .head-flx .hd-rgt li.has-sub:hover > .nav-parent .nav-caret,
header .head-flx .hd-rgt li.has-sub:focus-within > .nav-parent .nav-caret,
header .head-flx .hd-rgt li.has-sub.open > .nav-parent .nav-caret {
  transform: rotate(180deg);
}

header .head-flx .rgt-head .hd-rgt li.has-sub > .hd-sub,
header .head-flx .hd-rgt li.has-sub > .hd-sub {
  position: absolute !important;
  left: 50%;
  top: calc(100% + 14px);
  min-width: 228px;
  margin: 0 !important;
  padding: 10px 8px !important;
  list-style: none !important;
  background: #fff !important;
  border: 1px solid rgba(12, 26, 99, 0.1) !important;
  border-radius: 14px !important;
  box-shadow:
    0 4px 6px rgba(12, 26, 99, 0.04),
    0 18px 40px rgba(12, 26, 99, 0.14) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px) scale(0.98);
  transform-origin: top center;
  transition:
    opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.22s ease;
  z-index: 60;
  display: block !important;
  width: auto !important;
  gap: 0 !important;
  flex-direction: column !important;
}

header .head-flx .rgt-head .hd-rgt li.has-sub > .hd-sub::before,
header .head-flx .hd-rgt li.has-sub > .hd-sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

header .head-flx .rgt-head .hd-rgt li.has-sub > .hd-sub::after,
header .head-flx .hd-rgt li.has-sub > .hd-sub::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #0c1a63 0%, #ff3366 100%);
  opacity: 0.9;
  width: auto;
}

header .head-flx .rgt-head .hd-rgt li.has-sub:hover > .hd-sub,
header .head-flx .rgt-head .hd-rgt li.has-sub:focus-within > .hd-sub,
header .head-flx .rgt-head .hd-rgt li.has-sub.open > .hd-sub,
header .head-flx .hd-rgt li.has-sub:hover > .hd-sub,
header .head-flx .hd-rgt li.has-sub:focus-within > .hd-sub,
header .head-flx .hd-rgt li.has-sub.open > .hd-sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

header .head-flx .rgt-head .hd-rgt li.has-sub > .hd-sub > li,
header .head-flx .hd-rgt li.has-sub > .hd-sub > li {
  margin: 0 !important;
  display: block !important;
  width: 100% !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  list-style: none !important;
  float: none !important;
}

header .head-flx .rgt-head .hd-rgt li.has-sub > .hd-sub > li + li,
header .head-flx .hd-rgt li.has-sub > .hd-sub > li + li {
  margin-top: 2px !important;
}

header .head-flx .rgt-head .hd-rgt li.has-sub > .hd-sub li a,
header .head-flx .hd-rgt li.has-sub > .hd-sub li a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100% !important;
  box-sizing: border-box;
  padding: 10px 12px !important;
  color: #0c1a63 !important;
  font: 14px/1.35 "Inter-Medium", sans-serif !important;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border-radius: 9px;
  overflow: visible !important;
  transition: color 0.16s ease, background 0.16s ease;
  position: relative;
}

header .head-flx .rgt-head .hd-rgt li.has-sub > .hd-sub li a .nav-sub-icon,
header .head-flx .hd-rgt li.has-sub > .hd-sub li a .nav-sub-icon {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  max-width: 22px;
  object-fit: cover;
  object-position: left center;
  border-radius: 5px;
  background: rgba(12, 26, 99, 0.04);
}

header .head-flx .rgt-head .hd-rgt li.has-sub > .hd-sub li a .nav-sub-label,
header .head-flx .hd-rgt li.has-sub > .hd-sub li a .nav-sub-label {
  min-width: 0;
}

header .head-flx .rgt-head .hd-rgt li.has-sub > .hd-sub li a::before,
header .head-flx .rgt-head .hd-rgt li.has-sub > .hd-sub li a::after,
header .head-flx .hd-rgt li.has-sub > .hd-sub li a::before,
header .head-flx .hd-rgt li.has-sub > .hd-sub li a::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
}

header .head-flx .rgt-head .hd-rgt li.has-sub > .hd-sub li a:hover,
header .head-flx .rgt-head .hd-rgt li.has-sub > .hd-sub li a:focus-visible,
header .head-flx .rgt-head .hd-rgt li.has-sub > .hd-sub li a.active,
header .head-flx .hd-rgt li.has-sub > .hd-sub li a:hover,
header .head-flx .hd-rgt li.has-sub > .hd-sub li a:focus-visible,
header .head-flx .hd-rgt li.has-sub > .hd-sub li a.active {
  color: #ff3366 !important;
  background: rgba(255, 51, 102, 0.07) !important;
  outline: none;
  border-radius: 9px;
}

@media (max-width: 991px) {
  /* Stack parent + submenu vertically — row flex was placing children beside Products and stealing taps */
  header .head-flx .rgt-head .hd-rgt > li.has-sub,
  header .head-flx .hd-rgt > li.has-sub {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    line-height: normal !important;
    gap: 0 !important;
  }

  header .head-flx .rgt-head .hd-rgt li.has-sub > .nav-parent,
  header .head-flx .hd-rgt li.has-sub > .nav-parent {
    display: inline-flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    pointer-events: auto !important;
    overflow: visible !important;
    flex: 0 0 auto;
    order: 1;
  }

  header .head-flx .rgt-head .hd-rgt li.has-sub > .hd-sub,
  header .head-flx .hd-rgt li.has-sub > .hd-sub {
    position: static !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    min-width: 0;
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px 0 4px !important;
    padding: 4px 0 4px 12px !important;
    border: 0 !important;
    border-left: 2px solid rgba(255, 51, 102, 0.4) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: none !important;
    animation: none !important;
    flex: 0 0 auto;
    order: 2;
    z-index: 1;
    pointer-events: none;
  }

  header .head-flx .rgt-head .hd-rgt li.has-sub > .hd-sub::before,
  header .head-flx .rgt-head .hd-rgt li.has-sub > .hd-sub::after,
  header .head-flx .hd-rgt li.has-sub > .hd-sub::before,
  header .head-flx .hd-rgt li.has-sub > .hd-sub::after {
    display: none !important;
    content: none !important;
    pointer-events: none !important;
  }

  header .head-flx .rgt-head .hd-rgt li.has-sub.open > .hd-sub,
  header .head-flx .hd-rgt li.has-sub.open > .hd-sub {
    display: block !important;
    pointer-events: auto !important;
  }

  header .head-flx .rgt-head .hd-rgt li.has-sub > .hd-sub > li,
  header .head-flx .rgt-head.open .hd-rgt li.has-sub > .hd-sub > li,
  header .head-flx .hd-rgt li.has-sub > .hd-sub > li {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    width: 100% !important;
    margin: 0 !important;
    list-style: none !important;
    float: none !important;
    line-height: normal !important;
  }

  header .head-flx .rgt-head .hd-rgt li.has-sub > .hd-sub li + li,
  header .head-flx .hd-rgt li.has-sub > .hd-sub li + li {
    margin-top: 2px !important;
  }

  header .head-flx .rgt-head .hd-rgt li.has-sub > .hd-sub li a,
  header .head-flx .hd-rgt li.has-sub > .hd-sub li a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 10px 12px !important;
    color: #424242 !important;
    border-radius: 8px;
    white-space: normal;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  /* Product marks must stay visible in the accordion (same as desktop) */
  header .head-flx .rgt-head .hd-rgt li.has-sub > .hd-sub li a .nav-sub-icon,
  header .head-flx .hd-rgt li.has-sub > .hd-sub li a .nav-sub-icon {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0;
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    object-fit: cover;
    object-position: left center;
    border-radius: 5px;
    background: rgba(12, 26, 99, 0.04);
  }

  header .head-flx .rgt-head .hd-rgt li.has-sub > .hd-sub li a .nav-sub-label,
  header .head-flx .hd-rgt li.has-sub > .hd-sub li a .nav-sub-label {
    min-width: 0;
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  header .head-flx .rgt-head .hd-rgt li.has-sub > .nav-parent .nav-caret,
  header .head-flx .rgt-head .hd-rgt li.has-sub > .hd-sub,
  header .head-flx .rgt-head .hd-rgt li.has-sub > .hd-sub li a,
  header .head-flx .hd-rgt li.has-sub > .nav-parent .nav-caret,
  header .head-flx .hd-rgt li.has-sub > .hd-sub,
  header .head-flx .hd-rgt li.has-sub > .hd-sub li a {
    transition: none;
  }

  header .head-flx .rgt-head .hd-rgt li.has-sub > .hd-sub,
  header .head-flx .hd-rgt li.has-sub > .hd-sub {
    transform: translate(-50%, 0);
  }
}
