.hm-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  height: 5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hm-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--color-glass-fill, rgba(255, 255, 255, 0.7));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-outline-variant);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  z-index: -1;
  pointer-events: none;
}

.hm-header__container {
  max-width: var(--spacing-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-gutter);
  padding-right: var(--spacing-gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hm-header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hm-header__logo-text {
  font-family: var(--font-display-lg);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-on-surface);
}

.hm-header__logo-desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .hm-header__logo-desktop-only {
    display: inline;
  }
}

.hm-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 1;
}

.hm-header__nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--color-surface-container-lowest, #ffffff);
  z-index: 100;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.3s;
  padding: 6rem 2rem 2rem;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.hm-header__nav.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
}

@media (min-width: 768px) {
  .hm-header__nav {
    position: static;
    transform: none;
    width: auto;
    max-width: none;
    height: auto;
    background-color: transparent;
    z-index: auto;
    visibility: visible;
    padding: 0;
    box-shadow: none;
    overflow-y: visible;
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
    .hm-header__nav {
        width: 100%;
        max-width: none;
        padding: 6rem 1rem 2rem;
    }
}

.hm-header__menu {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .hm-header__menu {
    flex-direction: row;
  }
}

.hm-header__menu a,
.hm-header__link {
  font-family: var(--font-body-md);
  color: var(--color-on-surface-variant);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.25rem;
  display: block;
}

@media (min-width: 768px) {
  .hm-header__menu a,
  .hm-header__link {
    font-size: 1rem;
  }
}

.hm-header__menu a:hover,
.hm-header__link:hover {
  color: var(--color-secondary);
}

.hm-header__menu .current-menu-item > a {
  color: var(--color-primary);
  font-weight: 600;
}

.hm-header__button {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-family: var(--font-body-md);
  font-weight: 600;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  display: block;
  width: 100%;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .hm-header__button {
    display: inline-block;
    width: auto;
    margin-top: 0;
  }
}

.hm-header__button:hover {
  opacity: 0.8;
  color: #fff;
}

.hm-header__button:active {
  transform: scale(0.95);
}

.hm-header__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
  padding: 0;
}

@media (min-width: 768px) {
  .hm-header__toggle {
    display: none;
  }
}

.hm-header__toggle-box {
  width: 24px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hm-header__toggle-inner {
  display: block;
  top: 50%;
  margin-top: -1px;
}
.hm-header__toggle-inner, .hm-header__toggle-inner::before, .hm-header__toggle-inner::after {
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  position: absolute;
  transition: transform 0.15s ease;
}
.hm-header__toggle-inner::before, .hm-header__toggle-inner::after {
  content: "";
  display: block;
}
.hm-header__toggle-inner::before {
  top: -8px;
}
.hm-header__toggle-inner::after {
  bottom: -8px;
}

.hm-header__toggle[aria-expanded="true"] .hm-header__toggle-inner {
  transform: rotate(45deg);
}
.hm-header__toggle[aria-expanded="true"] .hm-header__toggle-inner::before {
  top: 0;
  opacity: 0;
}
.hm-header__toggle[aria-expanded="true"] .hm-header__toggle-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
}

.hm-header__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hm-header__overlay.is-active {
  opacity: 1;
  visibility: visible;
}

body.has-scroll-lock {
  overflow: hidden;
}