/* ==========================================================
   Header
   ========================================================== */

.site-header {
  background: var(--color-white);
  border-bottom: 1px solid #eeeeee;
  /* Stays fixed at the top while the page scrolls */
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-dark);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
}

.site-logo img {
  width: 32px;
  height: 32px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}

.main-nav a {
  position: relative;
  display: block;
  padding: 10px 6px;
  color: var(--color-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

/* Top line that grows from the centre outwards */
.main-nav a::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-blue);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.main-nav a:hover {
  color: var(--color-blue);
}

.main-nav a:hover::before {
  width: 100%;
}

/* Hamburger button (shown on mobile only) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 36px;
  height: 28px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--color-dark);
  border-radius: 3px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--color-dark);
}
