/* NH-HEADER-02V | production Header 11494 only.
 * Native Elementor/Crocoblock owns typography, colour, spacing and templates.
 * Exceptions: content breakpoint, component focus/touch guards, plugin overlays.
 * B=968px: 940.55px row requirement including a 19px scrollbar; ~27px reserve.
 */
.nh-header { --nh-header-height: 56px; }
/* Native Sticky clones the widget tree into its spacer, including open menus. */
.nh-header.elementor-sticky__spacer,
.nh-header.elementor-sticky__spacer * {
  visibility: hidden !important;
  pointer-events: none !important;
}
.nh-header.elementor-sticky__spacer { overflow: clip; }
.nh-header .nh-header__compact { display: none; }
.nh-header .jet-mega-menu-list { flex-wrap: nowrap !important; }
.nh-header .jet-mega-menu-item__link,
.nh-header .nh-header__booking .elementor-button { white-space: nowrap; }
/* Whole native menu items remain the activation target after removing markers. */
.nh-header .jet-mega-menu-item__link,
.nh-header .jet-mobile-menu__toggle,
.nh-header .jet-mobile-menu__back,
.nh-header .jet-mobile-menu__controls > * {
  min-width: 44px; min-height: 44px;
}
.nh-header .jet-mega-menu-mega-container {
  max-width: 100vw;
  overflow-x: clip;
}
.nh-header .jet-mega-menu-mega-container__inner {
  --jmm-mega-container-ver-padding: 0px;
  --jmm-mega-container-hor-padding: 0px;
  --jmm-sub-menu-bg-color: #fff;
  max-height: calc(100svh - var(--nh-header-height) - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nh-header .jet-mobile-menu__container { max-width: 100%; }
.nh-header .jet-mobile-menu__container-inner {
  max-height: 100svh; overflow-y: auto; overscroll-behavior: contain;
}
.nh-header .nh-mega :is(.jet-listing-dynamic-link__link,.elementor-icon-list-item > a,.elementor-button),
.elementor-11497 .elementor-icon-list-item > a {
  min-height: 44px; display: inline-flex; align-items: center;
}
/* Drawer width is independent of Elementor's global desktop/tablet canvas. */
.nh-header .nh-header__compact .nh-mega { --flex-direction: column !important; --padding-right: 0 !important; --padding-left: 0 !important; }
.nh-header .nh-header__compact :is(.nh-mega__main,.nh-mega__aside) { --width: 100% !important; }
.nh-header .nh-header__compact .nh-mega__aside { --padding-right: 0 !important; }
.nh-header .nh-header__compact .nh-mega__listing .jet-listing-grid__items { --columns: 1 !important; }
.nh-header .nh-doctor-row__text { min-width: 0; }
.nh-header :is(a,button,input,[role="button"]):focus-visible,
.elementor-11497 :is(a,button,input,[role="button"]):focus-visible {
  outline: 3px solid #126fe6; outline-offset: 3px;
}
/* The existing site CSS makes Pro popup overlays sticky: restore native modal geometry here only. */
body.nh-header-live #elementor-popup-modal-11497 {
  position: fixed !important;
  inset: calc(56px + var(--wp-admin--admin-bar--height, 0px)) 0 0 !important;
  z-index: 1000000002;
  width: auto !important; height: auto !important; overflow: clip;
  background-color: transparent !important;
  background-image: linear-gradient(180deg, rgb(16 31 48 / 2.5%), rgb(16 31 48 / 6.5%));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  align-items: flex-start !important;
  animation: nh-search-backdrop 280ms ease-out;
}
body.nh-header-live #elementor-popup-modal-11497 .dialog-widget-content {
  width: 100% !important; max-width: 100%; margin: 0 !important;
  background: #fff; border: 0; border-radius: 0; box-shadow: none;
}
body.nh-header-live #elementor-popup-modal-11497 .dialog-message {
  max-width: 100%; max-height: calc(100svh - 56px - var(--wp-admin--admin-bar--height, 0px)); overflow-y: auto;
}
body.nh-header-live #elementor-popup-modal-11497 .dialog-close-button {
  top: 8px; width: 44px; height: 44px; align-items: center; justify-content: center;
}
.elementor-11497 .jet-ajax-search__field { min-width: 0; }
/* Results participate in the panel's flow instead of covering its controls. */
.elementor-11497 .jet-ajax-search__results-area {
  width: 100% !important; max-width: 100%;
  position: relative; inset: auto !important;
}
.elementor-11497 .nh-search-row__text { min-width: 0; }
.elementor-11497:has(.jet-ajax-search__field:not(:placeholder-shown)) .nh-search-quick { display: none; }
/* B=968px stays content-based. Use the existing native Compact menu when
 * any available input device is coarse, including hybrid touch + mouse.
 * Fine-only devices retain the full desktop navigation at sufficient width. */
@media (width < 968px), (any-pointer: coarse) {
  .nh-header { --nh-header-height: 56px; }
  .nh-header .nh-header__desktop { display: none; }
  .nh-header .nh-header__compact { display: block; width: 44px; flex: 0 0 44px; }
  .nh-header .nh-header__inner,
  .nh-header .nh-header__inner > .e-con-inner { min-height: 56px !important; }
  .nh-header .nh-header__inner { padding-inline: 12px; }
  .nh-header .nh-header__inner > .e-con-inner { gap: 8px; }
  .nh-header .nh-header__logo { width: 84px !important; flex: 0 0 84px; }
  .nh-header .nh-header__utilities { margin-inline-start: auto; gap: 8px; }
}

/* WordPress admin bar scrolls away at its native <=600px breakpoint.
 * Align this header search popup to the native Sticky header after it leaves the viewport.
 */
@media (width <= 600px) {
  body.nh-header-live.admin-bar:has(.nh-header.elementor-sticky--active) #elementor-popup-modal-11497 { inset-block-start: 56px !important; }
  body.nh-header-live.admin-bar:has(.nh-header.elementor-sticky--active) #elementor-popup-modal-11497 .dialog-message { max-height: calc(100svh - 56px); }
}

/* One page-level curtain, below the native header and above floating site tools.
 * CSS follows JetMenu's real visible state and excludes Elementor's Sticky spacer. */
body.nh-header-live::before {
  content: ""; position: fixed;
  inset: calc(56px + var(--wp-admin--admin-bar--height, 0px)) 0 0;
  z-index: 1000000000; background: rgb(16 31 48 / 12%);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 280ms ease, visibility 100ms linear;
}
body.nh-header-live:has(.nh-header:not(.elementor-sticky__spacer) .jet-mega-menu-item--hover)::before {
  opacity: 1; visibility: visible;
}
@media (width <= 600px) {
  body.nh-header-live.admin-bar:has(.nh-header.elementor-sticky--active)::before { inset-block-start: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  body.nh-header-live::before { transition: none; }
  .nh-header .jet-mega-menu-mega-container { transition-duration: 1ms !important; }
  body.nh-header-live #elementor-popup-modal-11497 .animated { animation-duration: 1ms !important; }
}

.nh-header .jet-logo__link { min-height: 44px; display: flex; align-items: center; }

/* 02V Polish — Native controls own sizes/type/layout. These exceptions affect
 * presentation unavailable in native controls, on Header 11494 only. */
/* Images share a full portrait canvas. A small crop preserves the original
 * image and focuses its upper portrait without changing Media or doctor data. */
.nh-header .nh-doctor-avatar,
.nh-header .nh-doctor-avatar .elementor-widget-container { overflow: hidden; border-radius: 50%; }
.nh-header .nh-doctor-avatar img { transform: scale(1.6); transform-origin: 50% 0%; }
.nh-header .nh-mega__view-all .elementor-button-icon { font-size: 12px; transition: transform 280ms ease; }
.nh-header .nh-mega__view-all a:hover .elementor-button-icon { transform: translateX(-3px); }
/* Keep JetMenu's native Fade/state model; add only a subtle vertical reveal. */
.nh-header .jet-mega-menu--animation-fade .jet-mega-menu-mega-container {
  transform: translateY(-4px);
  transition: opacity 280ms cubic-bezier(.4,0,.2,1), transform 280ms cubic-bezier(.4,0,.2,1), visibility 0ms linear 280ms !important;
}
.nh-header .jet-mega-menu-item--hover > .jet-mega-menu-mega-container { transform: translateY(0); transition-delay: 0ms !important; }
@media (prefers-reduced-motion: reduce) {
  .nh-header .jet-mega-menu--animation-fade .jet-mega-menu-mega-container { transition: none !important; transform: none !important; }
  .nh-header .nh-mega__view-all .elementor-button-icon { transition: none; }
}

/* Search-only spacing exceptions while the native editor is unavailable.
 * Reuse Elementor's container variables; keep existing type, links and 44px targets. */
body.nh-header-live #elementor-popup-modal-11497 .nh-header-search {
  --padding-top: 8px; --padding-bottom: 20px; --gap: 8px; --row-gap: 8px; --column-gap: 8px;
}
body.nh-header-live #elementor-popup-modal-11497 .nh-header-search > .e-con-inner > .elementor-widget-heading { min-height: 44px; display: flex; align-items: center; }
body.nh-header-live #elementor-popup-modal-11497 .elementor-11497:not(:has(.jet-ajax-search__field:not(:placeholder-shown))) .nh-search-quick {
  display: block;
}
body.nh-header-live #elementor-popup-modal-11497 .nh-search-quick > .elementor-widget-heading { margin-block-end: 4px; }
body.nh-header-live #elementor-popup-modal-11497 .nh-search-quick .elementor-icon-list-item {
  margin: 0; padding-block: 0; min-width: 0;
}
body.nh-header-live #elementor-popup-modal-11497 .nh-search-quick a { width: 100%; }

/* Native SVG fill option covers paths; the reused burger asset contains rects. */
.nh-header .jet-mobile-menu__toggle-icon svg rect { fill: currentColor; }
/* Native Popup owns show/hide and focus. Reveal downward without crossing the
 * header edge. Native close currently removes the content immediately; no JS interception. */
body.nh-header-live #elementor-popup-modal-11497 .dialog-widget-content:not(.reverse) { animation: nh-search-reveal 280ms cubic-bezier(.4,0,.2,1); }
@keyframes nh-search-reveal { from { clip-path: inset(0 0 100%); } to { clip-path: inset(0); } }
@keyframes nh-search-backdrop { from { backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); } to { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); } }
@media (prefers-reduced-motion: reduce) {
  body.nh-header-live #elementor-popup-modal-11497,
  body.nh-header-live #elementor-popup-modal-11497 .dialog-widget-content { animation: none; }
}

/* Native Popup scroll locking must not move the header or leave a second curtain. */
html:has(body.nh-header-live) { scrollbar-gutter: stable; }
body.nh-header-live.dialog-prevent-scroll::before { opacity: 0; visibility: hidden; transition: none; }

