/*
 * CathPro shared primary navigation
 * Immutable release: 2026-07-23a
 */

.cathpro-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 10px 14px;
  border-radius: 4px;
  color: #ffffff;
  background: #142528;
  font: 700 14px/1.4 Inter, "Helvetica Neue", Arial, sans-serif;
  text-decoration: none;
  transform: translateY(-150%);
}

.cathpro-skip-link:focus {
  transform: translateY(0);
}

.cathpro-header,
.cathpro-header * {
  box-sizing: border-box;
}

.cathpro-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  width: 100%;
  min-height: 72px;
  border: 0 !important;
  color: #142528;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow:
    0 1px 0 rgba(20, 37, 40, 0.14),
    0 4px 16px rgba(20, 37, 40, 0.07) !important;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cathpro-header__inner {
  display: flex;
  width: min(calc(100% - 48px), 1200px);
  min-height: 72px;
  margin-inline: auto;
  padding: 0 !important;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cathpro-brand {
  display: inline-flex;
  width: 115px;
  height: 40px;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 115px;
  align-items: center;
  text-decoration: none;
}

.cathpro-brand__logo {
  display: block !important;
  width: 115px !important;
  height: 40px !important;
  max-width: none !important;
  margin: 0 !important;
  background: url("/images/logo-cathpro-nav.png") center / contain no-repeat;
}

.cathpro-primary-nav {
  display: flex !important;
  height: 72px;
  margin: 0 !important;
  padding: 0 !important;
  align-items: stretch;
  justify-content: flex-end;
  gap: 20px;
}

.cathpro-primary-nav a {
  position: relative;
  display: inline-flex;
  height: 72px;
  margin: 0 !important;
  padding: 3px 0 0 !important;
  border: 0;
  border-bottom: 3px solid transparent;
  align-items: center;
  color: #34484c !important;
  background: transparent;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.cathpro-primary-nav a:hover,
.cathpro-primary-nav a:focus-visible,
.cathpro-primary-nav a[aria-current="page"] {
  border-bottom-color: #008692;
  color: #006b75 !important;
}

.cathpro-primary-nav .cathpro-nav__contact {
  height: 44px;
  margin-block: 14px !important;
  padding: 0 16px !important;
  border: 1px solid #008692;
  border-radius: 6px;
  color: #ffffff !important;
  background: #008692;
}

.cathpro-primary-nav .cathpro-nav__contact:hover,
.cathpro-primary-nav .cathpro-nav__contact:focus-visible,
.cathpro-primary-nav .cathpro-nav__contact[aria-current="page"] {
  border-color: #006b75;
  color: #ffffff !important;
  background: #006b75;
}

.cathpro-header a:focus-visible,
.cathpro-mobile-menu > summary:focus-visible {
  outline: 3px solid rgba(0, 134, 146, 0.38) !important;
  outline-offset: 3px;
}

.cathpro-mobile-menu {
  display: none;
  margin: 0;
}

.cathpro-mobile-menu > summary {
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #cbd8da;
  border-radius: 6px;
  place-items: center;
  color: #142528;
  background: #ffffff;
  cursor: pointer;
  list-style: none;
}

.cathpro-mobile-menu > summary::-webkit-details-marker {
  display: none;
}

.cathpro-menu-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.cathpro-menu-icon::before {
  position: absolute;
  top: 4px;
  right: 0;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
}

.cathpro-mobile-menu[open] .cathpro-menu-icon {
  border-color: transparent;
}

.cathpro-mobile-menu[open] .cathpro-menu-icon::before {
  top: 4px;
  transform: rotate(45deg);
}

.cathpro-mobile-menu[open] .cathpro-menu-icon::after {
  position: absolute;
  top: 4px;
  right: 0;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  transform: rotate(-45deg);
}

.cathpro-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.cathpro-mobile-nav {
  position: absolute;
  top: 64px;
  right: 0;
  left: 0;
  display: grid !important;
  max-height: calc(100vh - 64px);
  padding: 10px 16px 18px;
  overflow-y: auto;
  border-top: 1px solid #d8e4e6;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(20, 37, 40, 0.14);
}

.cathpro-mobile-nav a {
  display: flex;
  min-height: 48px;
  margin: 0 !important;
  padding: 0 12px !important;
  border-bottom: 1px solid #e6eeee;
  align-items: center;
  justify-content: space-between;
  color: #34484c !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
}

.cathpro-mobile-nav a:hover,
.cathpro-mobile-nav a:focus-visible,
.cathpro-mobile-nav a[aria-current="page"] {
  color: #006b75 !important;
  background: #eff6f7;
}

@media (max-width: 1023px) {
  .cathpro-header {
    min-height: 64px;
  }

  .cathpro-header__inner {
    min-height: 64px;
  }

  .cathpro-brand {
    width: 103px;
    height: 36px;
    flex-basis: 103px;
  }

  .cathpro-brand__logo {
    width: 103px !important;
    height: 36px !important;
  }

  .cathpro-primary-nav {
    display: none !important;
  }

  .cathpro-mobile-menu {
    display: block;
  }
}

@media (max-width: 640px) {
  .cathpro-header__inner {
    width: calc(100% - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cathpro-header *,
  .cathpro-skip-link {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
