/**
 * Modern global header.
 * Loaded after the core bundle and page styles so the header stays consistent.
 */

:root {
  --header-modern-ink: #102d46;
  --header-modern-copy: #3f586e;
  --header-modern-line: #e3edf3;
  --header-modern-teal: #138f89;
  --header-modern-teal-dark: #0d716f;
  --header-modern-orange: #e85d0c;
}

/* Compact information bar */
.topBar {
  min-height: 42px;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% -100%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(105deg, #0e6e76 0%, #138f89 47%, #276493 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 -1px 0 rgba(5, 44, 67, 0.1);
}

.topBar::after {
  display: none;
}

.topBarInner {
  position: relative;
  z-index: 1;
  width: min(100%, 1440px);
  min-height: 42px;
  padding: 0 28px;
  gap: 24px;
}

.topBarLeft,
.topBarRight {
  min-width: 0;
}

.topBarLeft {
  gap: 0;
}

.topBarItem {
  min-height: 42px;
  padding: 0 18px;
  gap: 8px;
  opacity: 0.92;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  transition: opacity 180ms ease;
}

.topBarItem:first-child {
  padding-left: 0;
}

.topBarItem:hover {
  opacity: 1;
}

.topBarItem svg,
.topBarIcon {
  width: 15px;
  height: 15px;
  color: #c9fbf2;
  stroke-width: 1.8;
}

.topBarItem a {
  transition: color 180ms ease;
}

.topBarItem a:hover {
  color: #ffffff;
}

.topBarRight {
  gap: 9px;
}

.topBarSchedule {
  position: relative;
  gap: 8px;
  padding-right: 5px;
  font-size: 11.5px;
  line-height: 1.25;
  font-weight: 550;
  opacity: 0.94;
  white-space: nowrap;
}

.topBarSchedule::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #7cf3c9;
  box-shadow: 0 0 0 4px rgba(124, 243, 201, 0.13);
}

.topBar .socialIcon {
  width: 29px;
  height: 29px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.topBar .socialIcon svg {
  width: 27px;
  height: 27px;
}

.topBar .socialIcon:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.topBar .a11yEyeBtn {
  min-height: 30px;
  margin-left: 16px;
  padding: 5px 13px;
  gap: 7px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 10px;
  box-shadow: none;
  animation: none;
  font-size: 12.5px;
  font-weight: 650;
}

.topBar .a11yEyeBtn svg {
  width: 18px;
  height: 18px;
}

.topBar .a11yEyeBtn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.44);
  box-shadow: none;
  transform: translateY(-1px);
}

/* Main navigation */
.navBar {
  min-height: 82px;
  padding: 0;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(208, 221, 231, 0.82);
  box-shadow: 0 9px 30px rgba(22, 61, 91, 0.045);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    min-height 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease;
}

.navBar.scrolled {
  min-height: 72px;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 12px 35px rgba(20, 56, 84, 0.11);
}

.navBar::after {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 4%,
    rgba(19, 143, 137, 0.7) 32%,
    rgba(56, 126, 181, 0.55) 70%,
    transparent 96%
  );
}

.navBarInner {
  width: min(100%, 1440px);
  min-height: inherit;
  padding: 0 28px;
  gap: 18px;
}

.navLogo {
  margin-right: 12px;
  padding: 5px 0;
  transition: transform 180ms ease;
}

.navLogo:hover {
  transform: translateY(-1px);
}

.navLogoImg,
.navLogo .custom-logo {
  height: 53px;
  width: auto;
  transition: height 220ms ease;
}

.navBar.scrolled .navLogoImg,
.navBar.scrolled .navLogo .custom-logo {
  height: 47px;
}

.navMenu {
  min-width: 0;
}

.navMenuList {
  justify-content: center;
  gap: 2px;
}

.navMenuList > li > a {
  position: relative;
  padding: 11px 10px;
  color: var(--header-modern-copy);
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.015em;
}

.navMenuList > li > a:hover {
  color: var(--header-modern-teal-dark);
  background: #eff8f7;
  border-color: #d8eeeb;
}

.navMenuList > li.current-menu-item > a,
.navMenuList > li.current_page_item > a,
.navMenuList > li.current-menu-ancestor > a {
  color: var(--header-modern-teal-dark);
  background: linear-gradient(180deg, #f1faf9 0%, #e9f6f4 100%);
  border-color: #d2ebe8;
  box-shadow: inset 0 -2px 0 rgba(19, 143, 137, 0.55);
}

.navMenuList > li.menu-item-has-children > a {
  padding-right: 23px;
}

.navMenuList > li.menu-item-has-children > a::after {
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-width: 0 1.5px 1.5px 0;
}

.navMenuList .sub-menu {
  top: calc(100% + 13px);
  min-width: 280px;
  padding: 8px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.99);
  border: 1px solid #dce8ef;
  border-top: 1px solid #dce8ef;
  border-radius: 16px;
  box-shadow: 0 22px 55px rgba(18, 53, 80, 0.17);
}

.navMenuList .sub-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.navMenuList .sub-menu li a {
  padding: 10px 12px;
  color: #314b62;
  border: 0;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.35;
}

.navMenuList .sub-menu li a:hover,
.navMenuList .sub-menu li.current-menu-item a {
  color: var(--header-modern-teal-dark);
  background: #eef8f7;
  border-left-color: transparent;
}

.navActions {
  gap: 10px;
}

.navPhone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 6px 11px 6px 7px;
  color: var(--header-modern-ink);
  background: #f5f9fb;
  border: 1px solid #e1ebf1;
  border-radius: 14px;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.navPhone:hover {
  color: var(--header-modern-teal-dark);
  background: #eef8f7;
  border-color: #cfe8e4;
  transform: translateY(-1px);
}

.navPhoneIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  color: var(--header-modern-teal-dark);
  background: #ffffff;
  border: 1px solid #dce9ee;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(18, 65, 91, 0.07);
}

.navPhoneIcon svg {
  width: 16px;
  height: 16px;
}

.navPhoneCopy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.navPhoneCopy small {
  color: #7890a2;
  font-size: 9.5px;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.navPhoneCopy strong {
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

.navBar .navBookBtn {
  min-height: 48px;
  padding: 0 18px;
  gap: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #e7580b 0%, #f47728 100%);
  border: 1px solid rgba(198, 67, 0, 0.16);
  border-radius: 14px;
  box-shadow: 0 9px 20px rgba(220, 81, 12, 0.2);
  font-size: 13.5px;
  font-weight: 700;
}

.navBar .navBookBtn svg {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 1.8;
}

.navBar .navBookBtn:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #d94f05 0%, #ef6818 100%);
  box-shadow: 0 12px 25px rgba(220, 81, 12, 0.28);
  transform: translateY(-2px);
}

.navBar :where(a, button):focus-visible,
.topBar :where(a, button):focus-visible {
  outline: 3px solid rgba(240, 116, 40, 0.36);
  outline-offset: 3px;
}

.hamburger {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid #d8e8ec;
  border-radius: 13px;
  background: #eff8f7;
}

.hamburger span,
.hamburger .hamburgerLine {
  width: 22px;
  height: 2px;
  border-radius: 3px;
  background: var(--header-modern-teal-dark);
}

@media (max-width: 1360px) {
  .topBarEmail {
    display: none;
  }

  .navBarInner {
    gap: 12px;
  }

  .navLogo {
    margin-right: 5px;
  }

  .navMenuList > li > a {
    padding-inline: 8px;
    font-size: 12.5px;
  }

  .navPhone {
    display: none;
  }
}

@media (max-width: 1120px) {
  .topBarAddress {
    display: none;
  }

  .navBar .navBookBtn {
    min-width: 48px;
    width: 48px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .navBar .navBookBtn svg {
    width: 20px !important;
    height: 20px !important;
  }
}

@media (max-width: 1024px) {
  .navBar,
  .navBar.scrolled {
    min-height: 74px;
  }

  .navLogoImg,
  .navLogo .custom-logo,
  .navBar.scrolled .navLogoImg,
  .navBar.scrolled .navLogo .custom-logo {
    height: 47px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 66px;
  }

  .navBar,
  .navBar.scrolled {
    min-height: 66px;
    box-shadow: 0 8px 24px rgba(22, 61, 91, 0.08);
  }

  .navBarInner {
    min-height: 66px;
    padding-inline: 18px;
  }

  .navLogoImg,
  .navLogo .custom-logo,
  .navBar.scrolled .navLogoImg,
  .navBar.scrolled .navLogo .custom-logo {
    height: 41px;
  }

  .navLogo {
    margin-right: auto;
  }

  .navBar::after {
    opacity: 0.42;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 64px;
  }

  .navBar,
  .navBar.scrolled,
  .navBarInner {
    min-height: 64px;
  }

  .navBarInner {
    padding-inline: 15px;
  }

  .navLogoImg,
  .navLogo .custom-logo,
  .navBar.scrolled .navLogoImg,
  .navBar.scrolled .navLogo .custom-logo {
    height: 38px;
  }

  .hamburger {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topBar *,
  .navBar * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
