/* Intellectual Power header Contact control */
#ip-home-head .iph-right {
  overflow: visible;
}

#ip-home-head .iph-contact-dock {
  position: absolute;
  right: -54px;
  top: 50%;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(113, 207, 255, 0.46);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(101, 203, 255, 0.52), transparent 34%),
    linear-gradient(180deg, rgba(22, 104, 203, 0.98), rgba(7, 43, 101, 0.98));
  color: #ffffff;
  text-decoration: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.07),
    inset 0 0 15px rgba(90, 198, 255, 0.16),
    0 8px 24px rgba(0,0,0,0.30),
    0 0 20px rgba(47, 147, 255, 0.40);
  transform: translateY(-50%);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    background 0.24s ease;
  z-index: 20;
  isolation: isolate;
}

#ip-home-head .iph-contact-dock::before {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: -1;
  border: 1px solid rgba(105, 211, 255, 0.24);
  border-radius: inherit;
  animation: ipHcdRing 2.9s ease-out infinite;
}

#ip-home-head .iph-contact-dock::after {
  content: "Contact";
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  padding: 7px 10px;
  border: 1px solid rgba(91, 189, 255, 0.24);
  border-radius: 9px;
  background: rgba(4, 18, 40, 0.96);
  color: rgba(255,255,255,0.92);
  box-shadow: 0 10px 24px rgba(0,0,0,0.24);
  font: 800 10px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(5px, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#ip-home-head .iph-contact-dock:hover,
#ip-home-head .iph-contact-dock:focus-visible,
#ip-home-head .iph-contact-dock.is-active {
  border-color: rgba(170, 235, 255, 0.92);
  background:
    radial-gradient(circle at 34% 28%, rgba(151, 226, 255, 0.58), transparent 34%),
    linear-gradient(180deg, rgba(42, 145, 255, 1), rgba(10, 69, 156, 1));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    inset 0 0 18px rgba(116, 220, 255, 0.20),
    0 10px 28px rgba(0,0,0,0.34),
    0 0 30px rgba(60, 173, 255, 0.72);
  transform: translateY(-50%) scale(1.08);
}

#ip-home-head .iph-contact-dock:hover::after,
#ip-home-head .iph-contact-dock:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

#ip-home-head .iph-contact-dock svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(175, 231, 255, 0.52));
}

#ip-home-head .iph-mobile-contact {
  display: none;
}

@keyframes ipHcdRing {
  0% { opacity: 0.62; transform: scale(0.92); }
  78%, 100% { opacity: 0; transform: scale(1.18); }
}

/* On narrower desktops, hang the icon beneath the Shop button instead of clipping it. */
@media (min-width: 1101px) and (max-width: 1450px) {
  #ip-home-head .iph-contact-dock {
    right: 0;
    top: calc(100% + 13px);
    width: 42px;
    height: 42px;
  }

  #ip-home-head .iph-contact-dock::after {
    right: calc(100% + 8px);
  }
}

/* The full label belongs inside the existing slide-out menu on tablet/mobile. */
@media (max-width: 1100px) {
  #ip-home-head .iph-contact-dock {
    display: none;
  }

  #ip-home-head .iph-mobile-contact {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(87, 184, 255, 0.20);
    background:
      radial-gradient(circle at 8% 50%, rgba(65, 169, 255, 0.16), transparent 34%),
      rgba(25, 91, 178, 0.10);
  }

  #ip-home-head .iph-mobile-contact .iph-mobile-contact-main {
    display: inline-flex;
    align-items: center;
    gap: 11px;
  }

  #ip-home-head .iph-mobile-contact svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: #8edcff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  #ip-home-head .iph-mobile-contact .iph-mobile-contact-arrow {
    color: #79d7ff;
    font-size: 16px;
    line-height: 1;
  }

  #ip-home-head .iph-mobile-contact.is-active {
    border-color: rgba(121, 215, 255, 0.46);
    background: rgba(47, 136, 255, 0.17);
  }
}

@media (prefers-reduced-motion: reduce) {
  #ip-home-head .iph-contact-dock,
  #ip-home-head .iph-contact-dock::before,
  #ip-home-head .iph-contact-dock::after {
    animation: none !important;
    transition: none !important;
  }
}
