.ahp-wrapper {
  --ahp-gap: 24px;
  --ahp-menu-gap: 24px;
  --ahp-hamburger-size: 26px;
  --ahp-panel-width: 320px;
  --ahp-shrink-ratio: 0.85;
  --ahp-menu-hover-duration: 200ms;
  --ahp-menu-hover-line-thickness: 2px;
  position: relative;
  z-index: 20;
}

.ahp-wrapper * {
  box-sizing: border-box;
}

.ahp-wrapper .ahp-topbar {
  font-size: 13px;
  line-height: 1.4;
}

.ahp-wrapper .ahp-topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.ahp-wrapper .ahp-header {
  width: 100%;
  position: relative;
  transition: transform 0.3s ease, background-color 0.2s ease;
}

.ahp-wrapper .ahp-header.is-sticky-active {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.ahp-wrapper .ahp-header.is-sticky-active .ahp-logo-sticky {
  display: inline-block;
}

.ahp-wrapper .ahp-header.is-sticky-active .ahp-logo-default {
  display: none;
}

.ahp-wrapper .ahp-header.is-shrunk .ahp-header-inner {
  transform: scaleY(var(--ahp-shrink-ratio));
  transform-origin: top center;
}

.ahp-wrapper .ahp-sticky-spacer {
  display: none;
}

.ahp-wrapper .ahp-header-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr);
  align-items: center;
  gap: var(--ahp-gap);
}

.ahp-wrapper .ahp-left,
.ahp-wrapper .ahp-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ahp-wrapper .ahp-right {
  justify-content: flex-end;
}

.ahp-wrapper .ahp-center {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.ahp-wrapper .ahp-menu {
  min-width: 0;
}

.ahp-wrapper .ahp-logo-wrap {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.ahp-wrapper .ahp-logo {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: inherit;
}

.ahp-wrapper .ahp-logo img {
  height: auto;
  display: block;
}

.ahp-wrapper .ahp-logo-sticky {
  display: none;
}

.ahp-wrapper .ahp-tagline {
  font-size: 12px;
  opacity: 0.8;
}

.ahp-wrapper .ahp-menu-list,
.ahp-wrapper .ahp-mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ahp-wrapper .ahp-menu-list {
  display: flex;
  align-items: center;
  gap: var(--ahp-menu-gap);
}

.ahp-wrapper .ahp-menu-list > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
  transition: color var(--ahp-menu-hover-duration) ease, background-color var(--ahp-menu-hover-duration) ease, font-weight var(--ahp-menu-hover-duration) ease;
}

.ahp-wrapper .ahp-menu-list > li {
  position: relative;
}

.ahp-wrapper .ahp-menu a {
  text-decoration: none;
  position: relative;
  transition: color var(--ahp-menu-hover-duration) ease;
}

.ahp-wrapper .ahp-menu-list > li.current-menu-item > a,
.ahp-wrapper .ahp-menu-list > li.current-menu-ancestor > a {
  font-weight: 600;
}

.ahp-wrapper.ahp-hover-underline .ahp-menu-list > li > a::after,
.ahp-wrapper.ahp-hover-overline .ahp-menu-list > li > a::before,
.ahp-wrapper.ahp-hover-double-line .ahp-menu-list > li > a::before,
.ahp-wrapper.ahp-hover-double-line .ahp-menu-list > li > a::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: var(--ahp-menu-hover-line-thickness);
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--ahp-menu-hover-duration) ease;
}

.ahp-wrapper.ahp-hover-underline .ahp-menu-list > li > a::after,
.ahp-wrapper.ahp-hover-double-line .ahp-menu-list > li > a::after {
  bottom: -6px;
}

.ahp-wrapper.ahp-hover-overline .ahp-menu-list > li > a::before,
.ahp-wrapper.ahp-hover-double-line .ahp-menu-list > li > a::before {
  top: -6px;
}

.ahp-wrapper.ahp-hover-underline .ahp-menu-list > li > a:hover::after,
.ahp-wrapper.ahp-hover-underline .ahp-menu-list > li.current-menu-item > a::after,
.ahp-wrapper.ahp-hover-underline .ahp-menu-list > li.current-menu-ancestor > a::after,
.ahp-wrapper.ahp-hover-overline .ahp-menu-list > li > a:hover::before,
.ahp-wrapper.ahp-hover-overline .ahp-menu-list > li.current-menu-item > a::before,
.ahp-wrapper.ahp-hover-overline .ahp-menu-list > li.current-menu-ancestor > a::before,
.ahp-wrapper.ahp-hover-double-line .ahp-menu-list > li > a:hover::before,
.ahp-wrapper.ahp-hover-double-line .ahp-menu-list > li > a:hover::after,
.ahp-wrapper.ahp-hover-double-line .ahp-menu-list > li.current-menu-item > a::before,
.ahp-wrapper.ahp-hover-double-line .ahp-menu-list > li.current-menu-item > a::after,
.ahp-wrapper.ahp-hover-double-line .ahp-menu-list > li.current-menu-ancestor > a::before,
.ahp-wrapper.ahp-hover-double-line .ahp-menu-list > li.current-menu-ancestor > a::after {
  transform: scaleX(1);
}

.ahp-wrapper.ahp-hover-background .ahp-menu-list > li > a {
  --ahp-menu-hover-bg-padding: 6px 10px 6px 10px;
  border-radius: 6px;
  padding: var(--ahp-menu-hover-bg-padding);
}

.ahp-wrapper.ahp-hover-background .ahp-menu-list > li > a:hover,
.ahp-wrapper.ahp-hover-background .ahp-menu-list > li.current-menu-item > a,
.ahp-wrapper.ahp-hover-background .ahp-menu-list > li.current-menu-ancestor > a {
  background-color: rgba(17, 17, 17, 0.08);
}

.ahp-wrapper.ahp-hover-bold .ahp-menu-list > li > a:hover,
.ahp-wrapper.ahp-hover-bold .ahp-menu-list > li.current-menu-item > a,
.ahp-wrapper.ahp-hover-bold .ahp-menu-list > li.current-menu-ancestor > a {
  font-weight: 700;
}

.ahp-wrapper .ahp-menu .sub-menu {
  position: absolute;
  left: 0;
  min-width: 220px;
  padding: 8px;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.ahp-wrapper .ahp-dropdown-none .ahp-menu .sub-menu {
  transition: none;
}

.ahp-wrapper .ahp-menu .menu-item-has-children:hover > .sub-menu,
.ahp-wrapper .ahp-menu .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ahp-wrapper .ahp-search {
  position: relative;
}

.ahp-wrapper .ahp-search-toggle,
.ahp-wrapper .ahp-hamburger,
.ahp-wrapper .ahp-mobile-close,
.ahp-wrapper .ahp-submenu-toggle {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ahp-wrapper .ahp-search-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  min-width: 260px;
  z-index: 30;
}

.ahp-wrapper .ahp-search-form input {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
}

.ahp-wrapper .ahp-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
}

.ahp-wrapper .ahp-cta-primary {
  background: #111;
  color: #fff;
}

.ahp-wrapper .ahp-cta-secondary {
  background: #0a84ff;
  color: #fff;
}

.ahp-wrapper .ahp-cta-ghost {
  border-color: currentColor;
  color: inherit;
}

.ahp-wrapper .ahp-hamburger {
  display: none;
  align-items: center;
  gap: 8px;
}

.ahp-wrapper .ahp-hamburger-icon {
  width: var(--ahp-hamburger-size);
  height: var(--ahp-hamburger-size);
  font-size: var(--ahp-hamburger-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.ahp-wrapper .ahp-lines,
.ahp-wrapper .ahp-lines::before,
.ahp-wrapper .ahp-lines::after {
  width: clamp(14px, calc(var(--ahp-hamburger-size) * 0.7), 30px);
  height: 2px;
  display: block;
  background: currentColor;
  content: '';
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ahp-wrapper .ahp-lines::before,
.ahp-wrapper .ahp-lines::after {
  position: absolute;
  left: 0;
}

.ahp-wrapper .ahp-lines {
  position: relative;
  width: clamp(14px, calc(var(--ahp-hamburger-size) * 0.7), 30px);
  min-width: clamp(14px, calc(var(--ahp-hamburger-size) * 0.7), 30px);
  max-width: clamp(14px, calc(var(--ahp-hamburger-size) * 0.7), 30px);
}

.ahp-wrapper .ahp-lines::before {
  top: -6px;
}

.ahp-wrapper .ahp-lines::after {
  top: 6px;
}

.ahp-wrapper .ahp-lines-plus {
  transform: none;
}

.ahp-wrapper .ahp-lines-plus::before {
  top: 0;
  transform: rotate(90deg);
}

.ahp-wrapper .ahp-lines-plus::after {
  opacity: 0;
}

.ahp-wrapper .ahp-hamburger-icon i,
.ahp-wrapper .ahp-hamburger-icon svg {
  display: block;
  width: 1em;
  height: 1em;
}

.ahp-wrapper .ahp-mobile-overlay {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.ahp-wrapper .ahp-mobile-panel {
  display: block;
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(var(--ahp-panel-width), 100vw);
  z-index: 999;
  padding: 16px;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, opacity 0.2s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ahp-wrapper .ahp-mode-offcanvas-left {
  left: 0;
  transform: translateX(-100%);
}

.ahp-wrapper .ahp-mode-offcanvas-right {
  right: 0;
  transform: translateX(100%);
}

.ahp-wrapper.is-menu-open .ahp-mode-offcanvas-left,
.ahp-wrapper.is-menu-open .ahp-mode-offcanvas-right {
  transform: translateX(0);
}

.ahp-wrapper.is-menu-open .ahp-mode-dropdown,
.ahp-wrapper.is-menu-open .ahp-mode-fullscreen {
  transform: translateY(0);
}

.ahp-wrapper.is-menu-open .ahp-mobile-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ahp-wrapper.is-menu-open .ahp-mobile-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Extra guard for Elementor preview/editor to avoid unintended mobile panel visibility. */
.elementor-editor-active .ahp-wrapper:not(.is-menu-open) .ahp-mobile-overlay,
.elementor-editor-active .ahp-wrapper:not(.is-menu-open) .ahp-mobile-panel {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Preview iframe desktop mode: hide mobile DOM explicitly to avoid editor layout shift. */
body.elementor-editor-preview.elementor-device-desktop .ahp-wrapper .ahp-mobile-overlay,
body.elementor-editor-preview.elementor-device-desktop .ahp-wrapper .ahp-mobile-panel,
body.ahp-preview-iframe.ahp-device-desktop .ahp-wrapper .ahp-mobile-overlay,
body.ahp-preview-iframe.ahp-device-desktop .ahp-wrapper .ahp-mobile-panel {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(-100%) !important;
}
body.elementor-editor-preview.elementor-device-desktop .ahp-wrapper .ahp-mobile-panel.ahp-mode-offcanvas-right,
body.ahp-preview-iframe.ahp-device-desktop .ahp-wrapper .ahp-mobile-panel.ahp-mode-offcanvas-right {
  transform: translateX(100%) !important;
}

/* When editor device mode is Desktop, hide hamburger and mobile panel in preview. */
body.ahp-device-desktop .ahp-wrapper .ahp-hamburger {
  display: none !important;
}
body.ahp-device-desktop .ahp-wrapper .ahp-mobile-overlay,
body.ahp-device-desktop .ahp-wrapper .ahp-mobile-panel {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(-100%) !important;
}
body.ahp-device-desktop .ahp-wrapper .ahp-mobile-panel.ahp-mode-offcanvas-right {
  transform: translateX(100%) !important;
}

.ahp-wrapper .ahp-mode-dropdown {
  right: 20px;
  left: auto;
  top: 100%;
  bottom: auto;
  border-radius: 12px;
  transform: translateY(-10px);
}

.ahp-wrapper .ahp-mode-fullscreen {
  inset: 0;
  width: 100vw;
  transform: translateY(-100%);
}

.ahp-wrapper .ahp-mobile-panel-header {
  display: flex;
  justify-content: flex-end;
}

.ahp-wrapper .ahp-mobile-menu-list li {
  position: relative;
  border-bottom: 1px solid #efefef;
}

.ahp-wrapper .ahp-mobile-menu-list a {
  display: block;
  padding: 12px 44px 12px 0;
  text-decoration: none;
  color: inherit;
}

.ahp-wrapper .ahp-submenu-toggle {
  position: absolute;
  top: 4px;
  right: 0;
}

.ahp-wrapper .ahp-hide-desktop {
  display: none;
}

.ahp-wrapper.ahp-preset-centered .ahp-header-inner {
  grid-template-columns: 1fr auto 1fr;
}

.ahp-wrapper.ahp-preset-bold .ahp-header {
  border-bottom: 3px solid #111;
}

.ahp-wrapper.ahp-preset-transparent .ahp-header {
  background: transparent;
  position: absolute;
}

/* When utilities are disabled, use a 2-column desktop layout and push menu right. */
.ahp-wrapper.ahp-no-utilities:not(.ahp-is-mobile) .ahp-header-inner {
  grid-template-columns: minmax(140px, auto) minmax(0, 1fr);
}

.ahp-wrapper.ahp-no-utilities:not(.ahp-is-mobile) .ahp-center {
  justify-content: flex-end;
}

.ahp-wrapper.ahp-no-utilities:not(.ahp-is-mobile) .ahp-right {
  display: none;
}

@media (max-width: 1024px) {
  .ahp-wrapper .ahp-hide-tablet {
    display: none;
  }

  /* Fallback mobile layout if JS hasn't applied .ahp-is-mobile yet. */
  .ahp-wrapper .ahp-hamburger {
    display: inline-flex;
  }

  .ahp-wrapper .ahp-center {
    display: none;
  }

  .ahp-wrapper .ahp-header-inner {
    grid-template-columns: 1fr auto;
  }

  .ahp-wrapper.ahp-no-utilities .ahp-right {
    display: flex;
    justify-content: flex-end;
  }
}

@media (max-width: 767px) {
  .ahp-wrapper .ahp-hide-mobile,
  .ahp-wrapper .ahp-topbar.ahp-hide-mobile {
    display: none;
  }
}

.ahp-wrapper.ahp-is-mobile .ahp-hamburger {
  display: inline-flex;
}

.ahp-wrapper.ahp-is-mobile .ahp-center {
  display: none;
}

.ahp-wrapper.ahp-is-mobile .ahp-header-inner {
  grid-template-columns: 1fr auto;
}

.ahp-wrapper.ahp-is-mobile .ahp-right {
  gap: 6px;
}

body.ahp-no-scroll {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .ahp-wrapper .ahp-header,
  .ahp-wrapper .ahp-mobile-panel,
  .ahp-wrapper .ahp-menu .sub-menu {
    transition: none !important;
  }
}
