/* Top Bar */

.top-bar {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--top-bar-height);
  background-color: var(--color-black);
  z-index: 1000;
  transition: transform 0.3s;
}

.top-bar.hidden {
  transform: translateY(-100%);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  flex-wrap: wrap;
}

.top-bar-content--mobile {
  display: none;
}

.top-bar-text {
  font-size: var(--font-size-small);
  color: white;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: var(--spacing-6);
}

.top-bar-email {
  font-size: var(--font-size-small);
  color: white;
  text-decoration: none;
}

.top-bar-email:hover {
  text-decoration: underline;
}

.top-bar-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
}

/* Mobile */

@media (max-width: 1040px) {
  :root {
    --top-bar-height: 0rem;
  }

  .top-bar {
    height: auto;
  }

  .top-bar-content {
    padding-top: var(--spacing-8);
    padding-bottom: var(--spacing-8);
  }

  .top-bar-content--desktop {
    display: none;
  }

  .top-bar-content--mobile {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--spacing-10);
    justify-content: space-between;
    height: auto;
    padding-left: var(--spacing-8);
    padding-right: var(--spacing-8);
  }

  .top-bar-content--mobile .top-bar-text {
    flex: 1 1 auto;
    text-align: left;
    margin: 0;
    font-size: 10px;
  }

  .top-bar-content--mobile .top-bar-contact {
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  .top-bar-content--mobile .top-bar-email {
    font-size: 10px;
  }

  .top-bar-content--mobile .top-bar-contact--right {
    justify-content: flex-end;
  }
}
