/* 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;
  font-family: "Inter-Regular", sans-serif;
}

/* Products parent: label link + caret toggle (not a single button) */
header .head-flx .rgt-head .hd-rgt li.has-sub > .nav-parent,
header .head-flx .hd-rgt li.has-sub > .nav-parent {
  color: inherit;
}

header .head-flx .rgt-head .hd-rgt li.has-sub > .nav-parent:hover .nav-parent-label,
header .head-flx .hd-rgt li.has-sub > .nav-parent:hover .nav-parent-label,
header .head-flx .rgt-head .hd-rgt li.has-sub > .nav-parent.active .nav-parent-label,
header .head-flx .hd-rgt li.has-sub > .nav-parent.active .nav-parent-label,
header .head-flx .rgt-head .hd-rgt li.has-sub > .nav-parent .nav-parent-label:hover,
header .head-flx .hd-rgt li.has-sub > .nav-parent .nav-parent-label:hover,
header .head-flx .rgt-head .hd-rgt li.has-sub > .nav-parent .nav-parent-label.active,
header .head-flx .hd-rgt li.has-sub > .nav-parent .nav-parent-label.active {
  color: #ff3366;
}

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;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
}

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;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

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,
header .head-flx .rgt-head .hd-rgt li.has-sub > .nav-parent .nav-parent-label::before,
header .head-flx .rgt-head .hd-rgt li.has-sub > .nav-parent .nav-parent-label::after,
header .head-flx .hd-rgt li.has-sub > .nav-parent .nav-parent-label::before,
header .head-flx .hd-rgt li.has-sub > .nav-parent .nav-parent-label::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: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  color: #0c1a63;
  opacity: 0.7;
  line-height: 0;
  cursor: pointer;
  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;
}

/* Desktop: no Products pointer — hover/focus opens the panel like inner pages */
@media (min-width: 992px) {
  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: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }
}

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

/* Hover-open only on real pointers — touch sticky :hover must not fight accordion */
@media (hover: hover) and (pointer: fine) {
  header .head-flx .rgt-head .hd-rgt li.has-sub:hover > .nav-parent .nav-caret,
  header .head-flx .hd-rgt li.has-sub:hover > .nav-parent .nav-caret {
    color: #ff3366;
    opacity: 1;
    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: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: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);
}

@media (hover: hover) and (pointer: fine) {
  header .head-flx .rgt-head .hd-rgt li.has-sub:hover > .hd-sub,
  header .head-flx .hd-rgt li.has-sub:hover > .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: flex-start !important;
    gap: 6px !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 44px;
    box-sizing: border-box;
    position: relative;
    z-index: 5;
    pointer-events: auto !important;
    touch-action: manipulation;
    overflow: visible !important;
    flex: 0 0 auto;
    order: 1;
  }

  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 {
    flex: 0 0 auto;
    min-height: 44px;
    display: inline-flex !important;
    align-items: center;
    overflow: visible !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }

  header .head-flx .rgt-head .hd-rgt li.has-sub > .nav-parent .nav-parent-label::after,
  header .head-flx .rgt-head .hd-rgt li.has-sub > .nav-parent .nav-parent-label::before,
  header .head-flx .hd-rgt li.has-sub > .nav-parent .nav-parent-label::after,
  header .head-flx .hd-rgt li.has-sub > .nav-parent .nav-parent-label::before {
    content: none !important;
    display: none !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 !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ff3366 !important;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    margin-left: 2px;
    pointer-events: auto !important;
    touch-action: manipulation;
  }

  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 !important;
    width: 14px !important;
    height: 9px !important;
  }

  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: 0 0 0 4px !important;
    padding: 0 0 0 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: block !important;
    animation: none !important;
    flex: 0 0 auto;
    order: 2;
    z-index: 1;
    pointer-events: none;
    max-height: 0;
    overflow: hidden !important;
    transition:
      max-height 0.35s ease,
      margin 0.35s ease,
      padding 0.35s ease;
  }

  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;
    max-height: 360px;
    margin: 8px 0 4px 4px !important;
    padding: 4px 0 4px 12px !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;
  }

  /*
    Mobile drawer UX — pack uses a decorative dwn-arrow background (not clickable)
    and .hamburger.active hides all bars expecting a missing .arrow child.
    Keep this sheet last so these beat style/pages/inner/qa.
  */
  header .head-flx .rgt-head {
    z-index: 200 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background-color: #fff !important;
    background-image: none !important;
    padding-top: 72px !important;
    padding-bottom: 32px !important;
    pointer-events: none;
  }

  header .head-flx .rgt-head.open {
    pointer-events: auto !important;
    box-shadow: 0 0 0 100vmax rgba(12, 26, 99, 0.35);
  }

  header .head-flx .rgt-head .hd-rgt {
    gap: 6px !important;
    width: 100%;
  }

  header .head-flx .rgt-head .hd-rgt > li > a,
  header .head-flx .rgt-head .hd-rgt > li > .nav-parent,
  header .head-flx .rgt-head .hd-rgt > li > .nav-parent .nav-parent-label,
  header .head-flx .rgt-head .hd-rgt > li > .nav-parent .nav-caret {
    min-height: 44px;
    pointer-events: auto !important;
    touch-action: manipulation;
  }

  header .head-flx .rgt-head .talk-btn {
    margin-top: 16px !important;
    align-self: stretch;
    justify-content: center;
    flex-shrink: 0;
    pointer-events: auto !important;
  }

  header .head-flx .hamburger {
    z-index: 210 !important;
    position: relative;
    pointer-events: auto !important;
  }

  /* Morph bars → X (pack zeroes opacity on .active) */
  header .hamburger.active span:nth-child(1),
  header .hamburger.active span:nth-child(2),
  header .hamburger.active span:nth-child(3) {
    opacity: 1 !important;
    transform-origin: center;
  }

  header .hamburger.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg) !important;
  }

  header .hamburger.active span:nth-child(2) {
    opacity: 0 !important;
    transform: scaleX(0) !important;
  }

  header .hamburger.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg) !important;
  }

  body.bur-overlay::before {
    z-index: 250 !important;
    /* Decorative dim only — must NOT sit above header and eat Products taps */
    pointer-events: none !important;
  }

  /*
    header.head-pos is z-index:50; body::before was raised to 150 and covered the
    whole header stacking context (drawer z-index:200 inside header was useless).
  */
  body.bur-overlay header.head-pos {
    z-index: 300 !important;
    position: relative;
  }

  body.bur-overlay .cookie-consent {
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

@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);
  }
}
