/* Header specific styles */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--color-bg-primary);
  border-bottom: var(--border-width) solid var(--color-crimson-dark);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-primary);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.logo:hover {
  color: var(--color-gold-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-2);
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-gold);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.primary-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition-base);
}

.nav-list a:hover,
.nav-list a:focus {
  color: var(--color-gold);
}

.nav-list a:hover::after,
.nav-list a:focus::after {
  width: 100%;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-overlay);
    backdrop-filter: blur(8px);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
  }
  .primary-nav.is-open {
    max-height: 100vh;
  }
  .nav-list {
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-6) var(--container-padding);
  }
  .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}
