.header {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  background-color: var(--color-white);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.header__logo {
  width: 10rem;
  height: auto;
}

.header__nav,
.header__button {
  display: none;
}

.header__mobile-menu {
  position: absolute;
  inset: 0;
  top: 83.4px;
  height: 100vh;
  background-color: var(--color-white);
  transform: translateY(100%);
  transition: transform 300ms ease-out;
}
.header__mobile-menu.open {
  transform: translateY(0);
}

.header__mobile-menu-container {
  margin-top: 1rem;
  padding-inline: 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.header__mobile-button-hidden {
  display: none;
}

.header__mobile-menu-item {
  display: flex;
  padding-block: 1.25rem;
  font-size: 1.125rem;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}
.header__mobile-menu-item:hover {
  color: var(--color-primary);
}

.header__mobile-menu-button {
  width: 100%;
}

@media (width >= 768px) {
  .header__mobile-button,
  .header__mobile-menu {
    display: none;
  }
  .header__nav {
    display: block;
  }
  .header__button {
    display: inline-flex;
  }

  .header__list {
    display: flex;
    gap: 2rem;
  }

  .header__item {
    font-weight: 500;
    transition: color 150ms;
  }
  .header__item:hover {
    color: var(--color-primary);
  }
}
