/*
  LastPick - Header
  This file contains styles for the site header and navigation.
*/

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between; /* WHY: Changed to space-between for better alignment with brand on left and nav on right. */
  gap: var(--space-lg);
  padding: 18px clamp(18px, 5vw, 72px);
  color: var(--warm-cream);
  /* FIX: Restore navbar visibility. Sticky state now only adds background. */
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: padding var(--transition-base), background-color var(--transition-base), backdrop-filter var(--transition-base), -webkit-backdrop-filter var(--transition-base), box-shadow var(--transition-base);
}

/* WHY: This is the new state for the sticky header when it should be visible. */
.site-header.is-sticky {
  background: rgba(15, 91, 60, 0.75); /* Dark green with transparency */
  -webkit-backdrop-filter: blur(12px); /* Subtle blur for a premium feel */
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-header > * {
  pointer-events: auto;
}

.brand {
  margin-right: auto; /* WHY: Pushes the navigation to the right. */
  color: var(--warm-cream);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.20);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 56, 38, 0.34);
  padding: 8px 12px;
  color: rgba(248, 243, 231, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
}

.nav-links a {
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: background-color var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-links a:hover {
  transform: scale(1.05);
}
.nav-links a.active {
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 56, 38, 0.58);
  color: var(--warm-cream);
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.policy-shell .brand {
  color: var(--dark-green);
  text-shadow: none;
}