header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-primary);
  color: var(--color-light);
  z-index: 99;

  &.collapsed {
    .header-nav-mobile-close {
      display: none;
    }
  }

  &:not(.collapsed) {
    @media (max-width: 768px) {
      position: unset;

      .header-nav-mobile-open {
        display: none;
      }

      .header-nav-brand {
        position: fixed;
        top: 20px;
        left: 15px;
      }

      .header-nav-mobile {
        position: fixed;
        top: 50px;
        right: 15px;
      }

      .header-nav-links {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        background-color: var(--color-primary);
        justify-content: center;
        align-items: center;
        font-size: 21px;
        gap: 15px;
      }
    }
  }
}

.header-nav {
  display: flex; 
  gap: 30px;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.header-nav-brand {
  position: relative;
  z-index: 100;
}

.header-nav-links {
  display: none;
  gap: 15px 35px;
  justify-content: center;
  font-family: var(--font-family-sans-serif-title);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: var(--font-size-small);
  flex-wrap: wrap;

  @media (min-width: 768px) {
    display: flex;
  }

  a {
    text-decoration: none;

    &.active, &:hover, &:focus {
      text-decoration: underline;
      text-underline-offset: 5px;
    }
  }
}

.header-nav-socials {
  display: none;
  gap: 10px;

  @media (min-width: 576px) {
    display: flex;
  }

  svg {
    width: 35px;
    height: 35px;
  }
}

.header-nav-mobile {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
  cursor: pointer;

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

  svg {
    path {
      fill: var(--color-light);
    }
  }
}
