/* =========================================================
   PXL Mobile Header Pro — Kimono / Pixelance Compatible
   BUILD: v1.6.0 — fixed off-canvas panel height (removed transform on
   .pxl-mhp-wrapper that was capping fixed-position containing block to the
   header bar height); added explicit height + Elementor "Panel Height" control
   ========================================================= */

.pxl-mhp-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  background-color: transparent;
  transition-property: background-color, box-shadow;
  transition-timing-function: ease;
  will-change: background-color;
  /* NOTE: do NOT put `transform`, `filter`, `perspective` or `will-change:transform`
     on this element. Any of those create a new containing block for the
     position:fixed off-canvas panel (which is a DOM child of this wrapper),
     so instead of sizing itself against the viewport it sizes against this
     ~70px header bar — that was the root cause of the mobile menu height bug. */
}

.pxl-mhp-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 16px;
}

/* ---------- Logo ---------- */
.pxl-mhp-logo.pxl-logo {
  position: relative;
  display: inline-block;
}
.pxl-mhp-logo .pxl-hover-transition {
  position: relative;
  display: inline-block;
}
.pxl-mhp-logo-img {
  display: block;
  vertical-align: middle;
  transition-property: opacity, visibility;
  transition-timing-function: ease;
}
.pxl-mhp-logo .logo-dark {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0 !important;
  visibility: hidden !important;
}
.pxl-mhp-logo .logo-light {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Scrolled state: swap logos */
.pxl-mhp-wrapper.pxl-mhp-scrolled .pxl-mhp-logo .logo-light {
  opacity: 0 !important;
  visibility: hidden !important;
}
.pxl-mhp-wrapper.pxl-mhp-scrolled .pxl-mhp-logo .logo-dark {
  opacity: 1 !important;
  visibility: visible !important;
}

/* ---------- Right side group ---------- */
.pxl-mhp-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ---------- CTA Button ---------- */
.pxl-mhp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
  transition-property: background-color, color, box-shadow;
  transition-timing-function: ease;
}

/* ---------- Divider ---------- */
.pxl-mhp-divider {
  display: inline-block;
  width: 1px;
  flex-shrink: 0;
}

/* ---------- Menu Toggle Icon ---------- */
.pxl-mhp-toggle.pxl-anchor-icon {
  position: relative !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 4px;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  font-size: 0 !important;
  line-height: 0 !important;
}
/* Neutralize any inherited icon-font pseudo-element (theme reuses .pxl-anchor-icon
   for carousel arrows which may inject font-icon glyph content) */
.pxl-mhp-toggle.pxl-anchor-icon::before,
.pxl-mhp-toggle.pxl-anchor-icon::after {
  content: none !important;
  display: none !important;
}
.pxl-mhp-toggle.pxl-anchor-icon span {
  display: block !important;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: #ffffff; /* fallback, overridden by Elementor Style tab color controls */
  transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}
.pxl-anchor-icon:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Toggle -> X animation when menu open */
.pxl-mhp-wrapper.pxl-mhp-menu-open .pxl-anchor-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.pxl-mhp-wrapper.pxl-mhp-menu-open .pxl-anchor-icon span:nth-child(2) {
  opacity: 0;
}
.pxl-mhp-wrapper.pxl-mhp-menu-open .pxl-anchor-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Overlay ---------- */
.pxl-mhp-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.pxl-mhp-overlay.pxl-mhp-active {
  opacity: 1;
  visibility: visible;
}

/* ---------- Off-canvas Panel ---------- */
.pxl-mhp-offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  height: 100dvh; /* accounts for mobile browser URL bar; ignored where unsupported */
  padding: 80px 30px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
  -webkit-overflow-scrolling: touch;
}
.pxl-mhp-offcanvas.pxl-mhp-active {
  transform: translateX(0);
}

.pxl-mhp-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none;
  border-radius: 0;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
}
.pxl-mhp-close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* ---------- Off-canvas panel logo ---------- */
.pxl-mhp-panel-logo {
  margin: 10px 0 24px;
  text-align: center;
}
.pxl-mhp-panel-logo img {
  max-width: 160px;
  height: auto;
  display: inline-block;
}

/* ---------- Menu heading ---------- */
.pxl-mhp-nav-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ---------- Contact info block ---------- */
.pxl-mhp-contact-block {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.pxl-mhp-contact-heading {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.pxl-mhp-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.pxl-mhp-contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
}

/* ---------- Nav menu ---------- */
.pxl-mhp-nav .pxl-mhp-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pxl-mhp-nav .pxl-mhp-menu-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.pxl-mhp-nav .pxl-mhp-menu-list a {
  display: block;
  padding: 14px 0;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.pxl-mhp-nav .pxl-mhp-menu-list a:hover,
.pxl-mhp-nav .pxl-mhp-menu-list a:focus-visible {
  padding-left: 6px;
}
.pxl-mhp-nav .pxl-mhp-menu-list .sub-menu {
  list-style: none;
  margin: 0 0 0 14px;
  padding: 0;
}
.pxl-mhp-nav .pxl-mhp-menu-list .menu-item-has-children > a::after {
  content: '\2304';
  float: right;
  transition: transform 0.25s ease;
}
.pxl-mhp-nav .pxl-mhp-menu-list .menu-item-has-children.pxl-mhp-sub-open > a::after {
  transform: rotate(180deg);
}
.pxl-mhp-nav .pxl-mhp-menu-list .sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.pxl-mhp-nav .pxl-mhp-menu-list .pxl-mhp-sub-open > .sub-menu {
  max-height: 1000px;
}

body.pxl-mhp-lock-scroll {
  overflow: hidden;
}

/* =========================================================
   RESPONSIVE VISIBILITY
   Mobile: 320px – 767px | Tablet: 768px – 991px | Desktop: hidden
   ========================================================= */
.pxl-mhp-wrapper {
  display: none;
}
@media screen and (max-width: 991px) {
  .pxl-mhp-wrapper {
    display: block;
  }
}
@media screen and (min-width: 992px) {
  .pxl-mhp-wrapper {
    display: none !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .pxl-mhp-wrapper,
  .pxl-mhp-logo-img,
  .pxl-mhp-offcanvas,
  .pxl-mhp-overlay,
  .pxl-anchor-icon span {
    transition-duration: 0.01ms !important;
  }
}
