@font-face {
  font-family: "CPT Header Bold";
  src: url("../fonts/Inter-Header-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

[data-cpt-header] {
  position: fixed;
  inset: 0 0 auto;
  z-index: 999;
  height: 0;
  pointer-events: none;
  color: #fefff9;
}

[data-cpt-header] *,
[data-cpt-header] *::before,
[data-cpt-header] *::after {
  box-sizing: border-box;
}

[data-cpt-header-inner] {
  position: absolute;
  top: 60px;
  left: 50%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 881px;
  max-width: calc(100vw - 40px);
  height: 90px;
  margin: 0;
  padding: 20px;
  transform: translateX(-50%);
  background: rgb(0 0 0 / 9%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: auto;
}

[data-cpt-header] .cpt-header-logo {
  display: block;
  flex: 0 0 212px;
  width: 212px;
  height: 50px;
  margin: 0;
  overflow: hidden;
}

[data-cpt-header] .cpt-header-logo a,
[data-cpt-header] .cpt-header-logo img {
  display: block;
  width: 192px;
  height: 50px;
}

[data-cpt-desktop-nav] {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

[data-cpt-nav-link] {
  width: fit-content;
  color: #fefff9;
  font: 400 18px/22px "CPT Inter Figma", Inter, sans-serif;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

[data-cpt-nav-link][aria-current="location"] {
  color: #000955;
  font-family: "CPT Header Bold", Inter, sans-serif;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

[data-cpt-menu-trigger],
[data-cpt-menu-close] {
  appearance: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

[data-cpt-menu-trigger] {
  display: none;
}

.cpt-header-menu-lines {
  position: relative;
  display: block;
  width: 24px;
  height: 16px;
  border-top: 2px solid #000955;
  border-bottom: 2px solid #000955;
}

.cpt-header-menu-lines::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 24px;
  border-top: 2px solid #000955;
}

[data-cpt-mobile-menu] {
  position: fixed;
  top: 20px;
  left: 50%;
  display: none;
  width: 400px;
  max-width: calc(100vw - 40px);
  transform: translate(-50%, -12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

[data-cpt-mobile-menu][aria-hidden="false"] {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

[data-cpt-menu-panel] {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 44px;
  align-content: start;
  width: 100%;
  min-height: 310px;
  max-height: calc(100dvh - 40px);
  margin: 0;
  padding: 20px;
  overflow: auto;
  border: 1px solid rgb(254 255 249 / 18%);
  border-radius: 5px;
  background: rgb(0 9 85 / 62%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

[data-cpt-menu-panel] .cpt-header-logo {
  grid-column: 1;
  width: 148px;
  height: 35px;
}

[data-cpt-menu-panel] .cpt-header-logo a,
[data-cpt-menu-panel] .cpt-header-logo img {
  width: 134.4px;
  height: 35px;
}

[data-cpt-menu-close] {
  position: relative;
  display: grid;
  grid-column: 2;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -4.5px;
  border: 1px solid rgb(254 255 249 / 65%);
  border-radius: 2px;
  background: transparent;
  color: #fefff9;
}

.cpt-header-close-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
}

.cpt-header-close-icon::before,
.cpt-header-close-icon::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.cpt-header-close-icon::after {
  transform: rotate(-45deg);
}

[data-cpt-mobile-nav] {
  display: flex;
  grid-column: 1 / -1;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 20px;
}

[data-cpt-mobile-nav] [data-cpt-nav-link] {
  color: #fefff9;
  font: 400 24px/30px "CPT Inter Figma", Inter, sans-serif;
  text-decoration: none;
}

[data-cpt-mobile-nav] [data-cpt-nav-link][aria-current="location"] {
  color: #c0ff6b;
}

[data-cpt-header] :is(a, button):focus-visible {
  outline: 3px solid #8ce500;
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  [data-cpt-header] a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

@media (max-width: 1000px) {
  [data-cpt-header-inner] {
    top: 20px;
    display: grid;
    grid-template-columns: 1fr 44px;
    width: 400px;
    height: 75px;
    padding: 20px;
    border-radius: 5px;
    background: rgb(0 0 0 / 9%);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 18%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  [data-cpt-header-inner] .cpt-header-logo {
    width: 148px;
    height: 35px;
    flex-basis: auto;
  }

  [data-cpt-header-inner] .cpt-header-logo a,
  [data-cpt-header-inner] .cpt-header-logo img {
    width: 134.4px;
    height: 35px;
  }

  [data-cpt-desktop-nav] {
    display: none;
  }

  [data-cpt-menu-trigger] {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-top: -4.5px;
    background: transparent;
    color: #000955;
  }

  [data-cpt-mobile-menu] {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-cpt-mobile-menu] {
    transition: none;
  }
}
