/* Component: Header — Figma node 116:8660 */
.header {
  width: 100%;
  border-bottom: 0.4px solid rgba(255, 255, 255, 0.32);
  background: var(--dark);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

/* Grid, not flex+space-between: with 3 unequal-width children (logo, menus,
   actions), space-between never puts the menus at the true visual center —
   it only equalizes the gaps. The 1fr side columns force real centering. */
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 24px;
  padding-block: 20px;
}

.header__logo {
  grid-column: 1;
}

.header__logo img {
  width: 150px;
  height: 35px;
}

.header__menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 24px;
  grid-column: 3;
  justify-self: end;
}

.header__menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
}

/* Lets the nav's children (menus, actions) participate directly in the
   header grid as if they had no wrapper — the wrapper still exists for the
   mobile dropdown (see media query below). */
.header__nav {
  display: contents;
}

.header__menus {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--white);
  white-space: nowrap;
}

.header__menus a {
  transition: opacity 0.25s ease-out;
}

.header__menus a:hover {
  opacity: 0.7;
}

.header__actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 29px;
  height: 40px;
}

.header__login {
  font-family: var(--font-gotham);
  font-weight: 350; /* Gotham Medium */
  font-size: 18px;
  color: var(--white);
  transition: opacity 0.25s ease-out;
}

.header__login:hover {
  opacity: 0.7;
}

@media (max-width: 900px) {
  .header__menu-toggle {
    display: flex;
  }

  /* Below 900px the nav becomes a real dropdown box again — no longer
     "display: contents" — so its children stack inside it instead of
     living in the header grid. */
  .header__nav {
    display: none;
    grid-column: 1 / -1;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px var(--page-gutter) 32px;
    background: var(--dark);
    border-bottom: 0.4px solid rgba(255, 255, 255, 0.32);
  }

  .header__nav.is-open {
    display: flex;
  }

  .header__menus {
    justify-self: stretch;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .header__actions {
    justify-self: stretch;
    justify-content: space-between;
    width: 100%;
  }
}
