/* ===== HEADER & NAVIGATION ===== */
/* Header, logo, desktop navigation, and mobile menu styles */

/* ===== HEADER LAYOUT ===== */
header {
  margin-top: var(--top_gap);
  margin-bottom: max(2vw, 30px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== LOGO ===== */
.logo {
  width: max(5vw, 60px);
  height: auto;
  display: block;
}

.logoLink {
  z-index: 1001;
}

/* ===== DESKTOP NAVIGATION ===== */
.navigationDesktop {
  display: flex;
  justify-content: flex-end;
  align-items: end;
  margin-bottom: auto;
}

.navigationDesktop li {
  list-style: none;
  display: inline-block;
  margin-left: 2vw;
  text-align: center;
}

.navigationDesktop li a {
  text-decoration: none;
  text-transform: uppercase;
  display: block;
  font-size: var(--navigation-font-size);
  font-weight: var(--standard-font-weight);
}

.navigationDesktop li a::after {
  display: block;
  content: attr(title);
  font-weight: var(--bold-font-weight);
  height: 1px;
  color: transparent !important;
  overflow: hidden;
  visibility: hidden;
}

.navigationDesktop .active a {
  color: var(--accent-color);
}

.has-hover .navigationDesktop li:hover a {
  color: inherit;
  font-weight: var(--bold-font-weight);
}

.has-hover .navigationDesktop .active a:hover {
  color: var(--accent-color);
}

/* ===== MOBILE MENU ===== */
/* Mobile Menu Icon */
.mobile-menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-icon .bar {
  position: sticky;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 3px 0;
  transition: 0.3s;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--background-color);
  z-index: 1000;
  display: flex;
  visibility: hidden;
  opacity: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all var(--transition-time) ease;
}

.mobile-menu.active {
  visibility: visible;
  opacity: 1;
}

/* Mobile Navigation */
.navigationMobileOverlay {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navigationMobileOverlay ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.navigationMobileOverlay li {
  margin: 2rem 0;
}

.navigationMobileOverlay a {
  font-size: 2rem;
  font-weight: 300;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-color);
}

/* Mobile Menu Icon Animation */
.mobile-menu-icon.active .bar:nth-child(1) {
  transform: rotate(45deg);
  transform-origin: left center;
}

.mobile-menu-icon.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-icon.active .bar:nth-child(3) {
  transform: rotate(-45deg);
  transform-origin: left center;
}
