.nav-header-container {
  position: sticky;
}

.nav-header {
  max-width: 75rem;
  z-index: 801;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: calc(100% - 2rem);
  margin: 0 auto;
  position: sticky;
  top: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 1.7rem;
  background: linear-gradient(var(--color-secondary), var(--color-primary));
}

.nav-header .menu-toggle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0rem;
  height: 100%;
}

.nav-header .menu-toggle-container input {
  opacity: 0;
  position: absolute;
  width: 2rem;
  height: 2rem;
  z-index: 802;
  cursor: pointer;
}

.nav-header .menu-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  padding: 0.35rem;
  border-radius: 2rem;
  text-shadow: -1px -1px 0px var(--color-midtone), 1px 1px 0px var(--color-dark);
  background: linear-gradient(90deg, var(--color-midtone), var(--color-dark));
  color: var(--color-light);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  width: 2.3rem;
}

.nav-header .top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1rem;
}

.nav-header .site-logo {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-header .site-logo p {
  font-size: 1.2rem;
  font-weight: 700;
  font-style: italic;
  color: var(--color-light);
  letter-spacing: 0.5px;
  text-decoration: none;
  transform: translateY(0.1rem);
}

.nav-header .header-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.nav-header .site-logo .logo {
  height: 100%;
  max-height: 2.5rem;
  object-fit: contain;
  object-position: center;
  filter: brightness(1.5);
}

.nav-header nav a {
  display: block;
  color: var(--color-light);
}

.nav-header .header-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1.3rem;
  aspect-ratio: 16 / 9;
  background: linear-gradient(var(--color-dark), var(--color-midtone));
}

.nav-header .header-content p {
  font-size: 1.4rem;
  line-height: 1.6rem;
  text-transform: uppercase;
  font-style: italic;
  font-weight: 700;
  margin: 0;
  padding: 0;
  text-shadow: -1px -1px 0px var(--color-midtone), 2px 2px 0px var(--color-dark);
  letter-spacing: 0.5px;
  margin: 0rem 0rem 1rem 0rem;
  color: var(--color-light);
}

.nav-header .info {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  width: 100%;
  height: 100%;
}

.nav-header .header-message {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-header .nav-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
}

.nav-header .nav-container .header-message {
  margin: 0;
  padding: 0;
  line-height: 1rem;
  font-size: 1rem;
  transform: translateY(0.1rem);
}

.nav-header .button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
}
.nav-header.stuck-to-top {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.6);
}

.nav-header .top-bar .primary-cta .desktop {
  max-width: 10rem;
  overflow: hidden;
  white-space: nowrap;
  transition: all 0.3s ease-in-out;
}

.nav-header.stuck-to-top .primary-cta .desktop {
  max-width: 0rem;
}

.nav-header.stuck-to-top .top-bar .primary-cta {
  padding: 0.35rem;
  min-width: 2.3rem;
}

.expanded-menu nav small {
  display: block;
  opacity: 0.5;
  font-size: 1rem;
  line-height: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-light);
  padding: 0.25rem 0rem;
}

.nav-header:has(#menu-toggle:checked) .expanded-menu {
  max-height: 90vh;
  padding: 0rem 0rem 0.6rem 0rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: auto;
  gap: 2rem;
}

.nav-header .expanded-menu {
  transition: all 0.5s ease-in-out;
  max-height: 0vh;
  overflow: hidden;
  padding: 0rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: auto;
  gap: 2rem;
}

.nav-header .expanded-menu .column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 2rem;
  width: 100%;
}

.nav-header .announcement {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 2rem;
  border-radius: 1.3rem;
  width: 100%;
  gap: 2rem;
  background: linear-gradient(var(--color-dark), var(--color-midtone));
}

.nav-header .announcement .buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
}

.nav-header .guides {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.nav-header .guides a:not(:first-child),
.nav-header .portfolio a:not(:first-child) {
  font-size: 1rem;
}

.nav-header .announcement .buttons a {
  width: 100%;
}

.nav-header .expanded-menu .tablet,
.nav-header .expanded-menu .mobile {
  display: none;
}

.expanded-menu .dropdown-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.6rem;
}

.expanded-menu .dropdown-content a {
  width: 100%;
  padding: 0.6rem 1rem 0.4rem 1rem;
}

.nav-item p.tertiary-font {
  color: var(--color-light);
  margin: 0;
  padding: 1rem;
}

@media screen and (max-width: 1000px) {
  .nav-header .expanded-menu {
    transition: all 0.5s ease-in-out;
    max-height: 0vh;
    overflow: hidden;
    padding: 0rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 2rem;
  }

  .nav-header:has(#menu-toggle:checked) .expanded-menu {
    max-height: 90vh;
    overflow: hidden;
    padding: 0rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 2rem;
  }

  .nav-header .expanded-menu .column {
    padding-top: 2rem;
    padding-bottom: 0.5rem;
  }

  .nav-header .expanded-menu .column:nth-child(2) {
    display: none;
  }

  .nav-header .expanded-menu .tablet {
    display: block;
  }
}

@media (max-width: 800px) {
  header.nav-header {
    max-width: 75rem;
    z-index: 801;
    position: sticky;
    top: 1rem;
  }
  .nav-header .primary-cta .desktop {
    max-width: 0rem;
    overflow: hidden;
  }

  .nav-header .top-bar .primary-cta {
    padding: 0.35rem;
    min-width: 2.3rem;
  }

  .nav-header .expanded-menu {
    transition: all 0.5s ease-in-out;
    max-height: 0vh;
    overflow: hidden;
    padding: 0rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 2rem;
  }

  .nav-header:has(#menu-toggle:checked) .expanded-menu {
    max-height: 90vh;
    overflow: hidden;
    padding: 0rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 2rem;
  }

  .nav-header .expanded-menu .column {
    padding-top: 2rem;
    padding-bottom: 0.5rem;
    display: none;
  }

  .nav-header .expanded-menu .column:first-child {
    display: flex;
  }

  .nav-header .expanded-menu .buttons.mobile {
    display: flex;
  }
}

.expanded-menu {
  display: grid;
  grid-template-columns: 200px 1fr 300px;
  gap: 2rem;
}

.nav-category {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem 0rem;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-light);
  margin: 0;
}

.nav-category.active {
  background: var(--accent-color-light);
}

.submenu-content {
  display: none;
}

.submenu-content.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
