/*
 * Copyright (c) 2026 Logan Medical Group, LLC. All rights reserved.
 *
 * Contributors
 * Tyler Morgan <git@tylerjm.org>
 */

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

header {
  display: contents;
}

.top-header-bar a {
  text-decoration: none;
}

.top-header-bar {
  border-bottom: solid 1px var(--skin-pink-lighter-60);
  margin: 0px auto 0 auto;
  position: sticky;
  top: 0px;
  width: 100%;
  max-width: 1750px;
  padding: 0 20px;
  background-color: var(--strawberry-white-lighter-60);
  color: var(--ice-black-darker);
  height: 75px;
  display: flex;
  justify-content: space-between;
  backdrop-filter: blur(5px);
  z-index: 20;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#brand {
  display: flex;
  align-items: center;
}

#brand a {
  color: var(--ice-black-darker);
  position: relative;
}

#brand img {
  position: absolute;
  transform: translateY(-50%);
  top: 50%;
}

#hamburger-button span {
  display: block;
}

.top-header-bar ul {
  list-style: none;
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  column-gap: 15px;
}

.top-header-bar ul a {
  color: var(--ice-black-darker);
  display: flex;
  transition: all 0.2s ease;
}

@media (hover: hover) {
  .top-header-bar ul a:hover {
    color: light-dark(var(--ice-black-darker), var(--skin-pink-lighter));
  }
}

@media (hover: none) {
  .top-header-bar ul a:active {
    color: light-dark(var(--ice-black-darker), var(--skin-pink-lighter));
  }
}

.absolute-center {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  top: 50%;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.relative {
  position: relative;
}

.absolute-center a {
  color: var(--ice-black-darker);
  text-decoration: none;
  transition: all 0.2s ease;
}

@media (hover: hover) {
  .absolute-center a:hover {
    color: light-dark(var(--skin-pink-lightest), var(--skin-pink-light));
  }
}

@media (hover: none) {
  .absolute-center a:active {
    color: light-dark(var(--skin-pink-lightest), var(--skin-pink-light));
  }
}

.top-header-bar ul li {
  padding: 5px;
}

#hamburger-button {
  position: absolute;
  top: 50%;
  right: -2.5px;
  transform: translateY(-50%) translateX(10px);
  font-family: "Jost", sans-serif;
  border-style: none;
  background-color: transparent;
  border-radius: 50%;
  height: 50px;
  width: 50px;
  cursor: pointer;
}

#hamburger-icon {
  margin: auto 0;
  display: none;
  position: relative;
}

#hamburger-icon span.bar1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 7px));
  width: 25px;
  height: 2.5px;
  border-radius: 3px;
  background-color: var(--ice-black-darker);
  transition: 0.3s cubic-bezier(0.47, 1.94, 0.1, 0.8);
}

#hamburger-icon span.bar2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% + 2.5px), -50%);
  width: 20px;
  height: 2.5px;
  border-radius: 3px;
  background-color: var(--ice-black-darker);
  margin-left: auto;
  transition: 0.3s cubic-bezier(0.47, 1.94, 0.1, 0.8);
}

#hamburger-icon span.bar3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 7px));
  width: 25px;
  height: 2.5px;
  border-radius: 3px;
  background-color: var(--ice-black-darker);
  transition: 0.3s cubic-bezier(0.47, 1.94, 0.1, 0.8);
}

nav {
  display: flex;
  align-items: center;
}

.open .bar1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.open .bar2 {
  opacity: 0;
}

.open .bar3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

@media (min-width: 1126px) {
  .mobile-menu {
    display: none;
  }
  .mobile-nav {
    display: none;
  }
  .top-button {
    bottom: 55px;
  }
  .search-all-button {
    bottom: 55px;
  }
}

@media only screen and (max-width: 1125px) {
  .open.mobile-menu-wrapper {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.2s ease;
  }
  .desktop-menu {
    display: none;
  }
  .mobile-menu a {
    text-decoration: none;
    text-align: center;
    width: 100%;
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
    color: var(--ice-black-darker);
  }
  .mobile-menu li {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .mobile-nav {
    display: contents;
  }
  .mobile-menu-wrapper {
    visibility: hidden;
    pointer-events: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-bottom: solid 1px var(--skin-pink-lighter-60);
    list-style: none;
    padding: 20px 0;
    display: flex;
    opacity: 0;
    position: sticky;
    height: fit-content;
    max-height: 70dvh;
    overflow-y: auto;
    width: 100%;
    margin: 0 auto 0 auto;
    top: 75px;
    background-color: var(--strawberry-white-lighter-60);
    backdrop-filter: blur(5px);
    z-index: 20;
    transition:
      opacity 0.2s ease,
      visibility 0.2s linear 0.2s;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    align-items: center;
    justify-content: flex-start;
    list-style: none;
    display: flex;
    height: fit-content;
    margin-left: 10px;
    margin-right: 10px;
    z-index: 20;
    width: calc(100% - 30px);
    max-width: 400px;
  }
}

@media only screen and (max-width: 1125px) {
  .top-header-bar .desktop-menu {
    display: none;
  }
  #hamburger-icon {
    display: block;
  }
  .top-button {
    bottom: 15px;
  }
  .search-all-button {
    bottom: 15px;
  }
}

[id] {
  scroll-margin-top: 6rem;
}

main {
  width: calc(100% - 20px);
  margin-left: auto;
  margin-right: auto;
}

[data-nav-header] {
  position: sticky;
  display: contents;
}

.desktop-dropdown-left-arrow {
  display: inline-block;
  width: 10px;
  height: 1.5px;
  border-radius: 2px;
  background-color: var(--ice-black-darker);
  transform: translate(5px, -5px) rotate(50deg);
}

.desktop-dropdown-right-arrow {
  display: inline-block;
  width: 10px;
  height: 1.5px;
  border-radius: 2px;
  background-color: var(--ice-black-darker);
  transform: translate(0.5px, -5px) rotate(-50deg);
}

.desktop-dropdown-left-arrow,
.desktop-dropdown-right-arrow {
  transition: transform 0.2s ease;
}

.desktop-dropdown:has(> .desktop-dropdown-arrow) {
  cursor: pointer;
  margin-right: -3px !important;
  margin-left: -3px !important;
}

.desktop-dropdown {
  position: relative;
}

.desktop-dropdown-arrow {
  display: inline-block;
  margin-left: -1px;
}

@media (hover: hover) {
  .desktop-dropdown:hover .desktop-dropdown-left-arrow {
    transform: translate(10px, -5px) rotate(230deg);
  }

  .desktop-dropdown:hover .desktop-dropdown-right-arrow {
    transform: translate(-5.5px, -5px) rotate(130deg);
  }
}

@media (hover: none) {
  .desktop-dropdown:active .desktop-dropdown-left-arrow {
    transform: translate(10px, -5px) rotate(230deg);
  }

  .desktop-dropdown:active .desktop-dropdown-right-arrow {
    transform: translate(-5.5px, -5px) rotate(130deg);
  }
}

.desktop-dropdown.open .desktop-dropdown-left-arrow {
  transform: translate(10px, -5px) rotate(230deg);
}

.desktop-dropdown.open .desktop-dropdown-right-arrow {
  transform: translate(-5.5px, -5px) rotate(130deg);
}

.desktop-dropdown-content {
  visibility: hidden;
  position: absolute;
  display: flex;
  flex-direction: column !important;
  top: 30px;
  right: -20px;
  height: fit-content !important;
  text-align: right;
  background-color: var(--desktop-dropdown-background);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  box-shadow: 0 4px 8px var(--ice-black-darker-20);
  border: solid 1px var(--skin-pink-lighter-60);
  max-height: 70dvh;
  overflow-y: auto;
  padding: 10px 10px;
  opacity: 0;
  width: fit-content !important;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.desktop-dropdown-content ul li {
  display: block;
  width: 100%;
  height: fit-content !important;
}

.desktop-dropdown-content li {
  display: block;
  text-align: right;
  margin-left: auto;
  align-items: right;
  width: 100%;
  padding: 0 !important;
}

@media (hover: hover) {
  .desktop-dropdown-content a:hover {
    background-color: light-dark(
      var(--strawberry-white-lighter-20),
      var(--ice-black-dark-30)
    );
  }
}

@media (hover: none) {
  .desktop-dropdown-content a:active {
    background-color: light-dark(
      var(--strawberry-white-lighter-20),
      var(--ice-black-dark-30)
    );
  }
}

.desktop-dropdown-content li a {
  text-align: right;
  color: var(--strawberry-white-lighter-80);
  font-size: 0.875rem;
}

.desktop-dropdown-content a {
  margin-left: auto !important;
  text-align: right;
  padding: 5px 10px;
  border-radius: 25px;
  justify-content: right;
  text-wrap: nowrap;
  white-space: pre;
}

@media (hover: hover) {
  .desktop-dropdown:hover .desktop-dropdown-content {
    visibility: visible;
    opacity: 1;
    z-index: 20;
  }
}

@media (hover: none) {
  .desktop-dropdown:active .desktop-dropdown-content {
    visibility: visible;
    opacity: 1;
    z-index: 20;
  }
}

.desktop-dropdown.open .desktop-dropdown-content {
  visibility: visible;
  opacity: 1;
  z-index: 20;
}

.desktop-dropdown-arrow ~ .desktop-dropdown-content {
  top: 25px !important;
}

.desktop-dropdown-toggle {
  font-family: "Jost", sans-serif;
  font-weight: normal;
  font-size: 1rem;
  color: var(--ice-black-darker);
  border-style: none;
  background-color: transparent;
  cursor: pointer;
  text-transform: uppercase;
}

.mobile-dropdown-toggle {
  position: relative;
  border-radius: 25px;
  width: 100%;
  font-family: "Jost", sans-serif;
  font-weight: normal;
  font-size: 1rem;
  color: var(--ice-black-darker);
  background-color: transparent;
  cursor: pointer;
  border-style: none;
  text-transform: uppercase;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

@media (hover: hover) {
  .mobile-dropdown-toggle:hover {
    box-shadow: none;
  }
}

@media (hover: none) {
  .mobile-dropdown-toggle:active {
    box-shadow: none;
  }
}

.mobile-dropdown {
  border: solid 1px var(--ice-black-darker-80);
  border-radius: 20px;
  padding: 5px 5px;
  transition: all 0.2s ease;
  text-align: center;
  width: 100%;
}

.mobile-dropdown-arrow {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

.mobile-dropdown-x-arrow {
  display: inline-block;
  width: 10px;
  height: 1.5px;
  border-radius: 2px;
  background-color: var(--ice-black-darker);
  transform: translate(9px, -5px) rotate(0deg);
  transition: all 0.2s ease;
}

.mobile-dropdown-y-arrow {
  display: inline-block;
  width: 10px;
  height: 1.5px;
  border-radius: 2px;
  background-color: var(--ice-black-darker);
  transform: translate(-1px, -5px) rotate(90deg);
  transition: all 0.2s ease;
}

.mobile-dropdown-arrow {
  margin-left: -4px;
}

.mobile-dropdown.open .mobile-dropdown-x-arrow {
  transform: translate(9px, -5px) rotate(45deg);
}

.mobile-dropdown.open .mobile-dropdown-y-arrow {
  transform: translate(-1px, -5px) rotate(135deg);
}

.mobile-dropdown-content {
  visibility: hidden;
  overflow-y: hidden;
  height: 0;
  opacity: 0;
  list-style: none;
  transition: all 0.2s ease;
}

.mobile-dropdown-content.open {
  visibility: visible;
  height: fit-content;
  overflow-y: auto;
  margin-top: -5px;
  padding-top: 10px;
  padding-bottom: 5px;
  padding-left: 0;
  padding-right: 0;
  opacity: 1;
}

.mobile-dropdown-content li a {
  display: block;
  width: 100%;
  border-radius: 20px;
  color: var(--ice-black-darker-80);
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 3px 10px;
}

@media (hover: hover) {
  .mobile-dropdown-content li a:hover {
    background-color: light-dark(
      var(--ice-black-darker-10),
      var(--ice-black-darker-25)
    );
    color: light-dark(var(--ice-black-darker), var(--skin-pink-lighter));
  }
}

@media (hover: none) {
  .mobile-dropdown-content li a:active {
    background-color: light-dark(
      var(--ice-black-darker-10),
      var(--ice-black-darker-25)
    );
    color: light-dark(var(--ice-black-darker), var(--skin-pink-lighter));
  }
}

.external-desktop-svg {
  margin-left: 2px;
  transform: translateY(2.5px);
  fill: var(--strawberry-white-lighter-80);
  transition: all 0.2s ease;
}

@media (hover: hover) {
  .desktop-dropdown-content a:hover .external-desktop-svg {
    fill: light-dark(var(--ice-black-darker), var(--skin-pink-lighter));
  }
}

@media (hover: none) {
  .desktop-dropdown-content a:active .external-desktop-svg {
    fill: light-dark(var(--ice-black-darker), var(--skin-pink-lighter));
  }
}

.external-mobile-svg {
  margin-left: 2px;
  transform: translateY(2px);
  fill: var(--strawberry-white-lighter-80);
  transition: all 0.2s ease;
}

@media (hover: hover) {
  .mobile-dropdown-content a:hover .external-mobile-svg {
    fill: light-dark(var(--ice-black-darker), var(--skin-pink-lighter));
  }
}

@media (hover: none) {
  .mobile-dropdown-content a:active .external-mobile-svg {
    fill: light-dark(var(--ice-black-darker), var(--skin-pink-lighter));
  }
}

.skip-to-main {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  padding: 10px 20px;
  background-color: var(--skin-pink-darker-50);
  backdrop-filter: blur(5px);
  border: solid 1px var(--strawberry-white-lighter);
  color: var(--strawberry-white-lighter);
  text-decoration: none;
  box-shadow: 0 0 20px var(--ice-black-darker-50);
  opacity: 0;
  text-transform: uppercase;
  border-radius: 25px;
  transition: all 0.2s ease;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.skip-to-main:focus {
  top: 10px;
  opacity: 1;
}
