/* shared.css — Styles used across all pages (nav, header, hamburger) */

/* ─── Site Header ────────────────────────────────────────────────── */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0 2rem 0;
  margin-top: 1rem;
}

.site-header__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  padding: 6px;
  transition: color 0.15s;
  min-width: 44px;
  min-height: 44px;
}
.icon-btn:hover {
  color: white;
}
.icon-btn svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 767px) {
  .site-header {
    padding: 0.75rem 0 1.5rem 0;
  }
}

/* ─── Hamburger Nav ──────────────────────────────────────────────── */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  min-width: 44px;
  min-height: 44px;
}
.hamburger-btn:hover .hamburger-btn__line {
  background: white;
}
.hamburger-btn__line {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 2px;
  transition: background 0.15s;
}

/* ─── Nav Overlay ────────────────────────────────────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--dark-blue, #121E34);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 7rem calc((100% - 700px) / 2) 0;
}
.nav-overlay-enter { transition: opacity 0.2s ease; }
.nav-overlay-enter-start { opacity: 0; }
.nav-overlay-enter-end { opacity: 1; }
.nav-overlay-leave { transition: opacity 0.15s ease; }
.nav-overlay-leave-start { opacity: 1; }
.nav-overlay-leave-end { opacity: 0; }

.nav-overlay__close {
  position: absolute;
  top: var(--close-top, 2rem);
  right: var(--close-right, 1rem);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 2.25rem;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  transition: color 0.15s;
  min-width: 44px;
  min-height: 44px;
}
.nav-overlay__close:hover { color: white; }

.nav-overlay__brand {
  position: absolute;
  top: var(--close-top, 2rem);
  left: calc((100% - 700px) / 2);
  font-family: var(--heading-fonts, sans-serif);
  font-size: 2.75rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

@media (max-width: 767px) {
  .nav-overlay__brand {
    font-size: 2.25rem;
    left: 8%;
  }
}

.nav-overlay__menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Staggered fade-in */
@keyframes navFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-overlay__menu > * {
  animation: navFadeIn 0.35s ease both;
}

.nav-overlay__heading {
  font-family: var(--heading-fonts, sans-serif);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 28px;
  margin-bottom: 4px;
}

.nav-overlay__item {
  font-family: var(--body-fonts, sans-serif);
  font-size: 1.75rem;
  font-weight: 100;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s;
}
a.nav-overlay__item:hover {
  color: white;
}
.nav-overlay__item--active {
  color: white;
}
.nav-overlay__item--soon {
  color: rgba(255, 255, 255, 0.55);
  cursor: default;
}
.nav-overlay__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  margin-left: 8px;
  vertical-align: middle;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 767px) {
  .nav-overlay {
    padding: 0 8%;
    justify-content: flex-start;
    padding-top: 7rem;
  }
  .nav-overlay__item { font-size: 1.25rem; }
  .nav-overlay__heading { margin-top: 20px; }
}

/* ─── Focus Indicators ──────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
