/* =======================================================================
   nav-v2.css — Primary navigation + mobile overlay
   Phase 1c · SC Tee Times V2
   Source: Screen 7 (Nav — Mobile Menu Open) · approved 2026-05-25
   All values from tokens.css — no hardcoded hex or font strings.
   ======================================================================= */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sct-space-4);
  z-index: 9999;
  background: var(--sct-green-800);
  color: var(--sct-paper);
  font-family: var(--sct-font-ui);
  font-size: 14px;
  font-weight: 600;
  padding: var(--sct-space-2) var(--sct-space-4);
  border-radius: var(--sct-radius-sm);
  text-decoration: none;
  transition: top 120ms ease;
}
.skip-link:focus {
  top: var(--sct-space-2);
  outline: 2px solid var(--sct-gold-500);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--sct-green-800);
}

.nav-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--sct-overlay-nav-gold);
  gap: var(--sct-space-4);
}

/* Logo -- bigger: 44px in nav */
.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
}

/* Desktop links */
.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
.nav-links a {
  font-family: var(--sct-font-ui);
  font-weight: 600;
  font-size: 15px;
  color: var(--sct-paper);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--sct-radius-xs);
  border-bottom: 2px solid transparent;
  transition: color 120ms ease, border-color 120ms ease, opacity 120ms ease;
  white-space: nowrap;
  opacity: 0.88;
}
.nav-links a:hover {
  color: var(--sct-paper);
  opacity: 1;
}
.nav-links li.is-active a {
  color: var(--sct-paper);
  border-bottom-color: var(--sct-gold-500);
  opacity: 1;
}

.nav-auth {
  display: none;
}

.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  margin-right: -10px;
  padding: 0;
  flex-shrink: 0;
}
.nav-hamburger i {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--sct-paper);
  border-radius: 2px;
  transition: opacity 120ms ease, transform 120ms ease;
}

/* Mobile overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--sct-green-800);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 299;
  background: rgba(14, 46, 34, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

body.is-nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
body.is-nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}
body.is-nav-open {
  overflow: hidden;
}

.overlay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--sct-overlay-nav-gold);
  flex-shrink: 0;
}

.nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--sct-paper);
  margin-right: -10px;
  padding: 0;
}
.nav-close svg {
  width: 22px;
  height: 22px;
}

.overlay-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 28px 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.overlay-eyebrow {
  display: block;
  font-family: var(--sct-font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sct-gold-500);
  margin-bottom: 20px;
}

.overlay-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.overlay-links li {
  display: block;
}
.overlay-links a {
  display: block;
  font-family: var(--sct-font-display);
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--sct-paper);
  text-decoration: none;
  padding: 18px 0 18px 18px;
  border-left: 3px solid transparent;
  transition: border-color 120ms ease, color 120ms ease;
}
.overlay-links a:hover,
.overlay-links a:focus-visible {
  color: var(--sct-gold-300);
  outline: none;
}
.overlay-links li.is-active a {
  border-left-color: var(--sct-gold-700);
  color: var(--sct-paper);
}
.overlay-links li + li a {
  border-top: 1px solid var(--sct-overlay-dark-divider-xs);
}

.overlay-auth--hidden {
  display: none;
}

/* Desktop breakpoint */
@media (min-width: 768px) {
  .nav-hamburger {
    display: none;
  }
  .nav-links {
    display: flex;
    flex: 1;
    margin-left: var(--sct-space-5);
  }
  .nav-overlay,
  .nav-backdrop {
    display: none !important;
  }
  body.is-nav-open {
    overflow: auto;
  }
}
