/*
 * site-nav.css — the one shared site header for every public Proximity page.
 * Self-contained (hard-coded fallbacks for every brand variable) so it renders
 * identically on pages that do not load proximity-brand.css (legal pages,
 * press, hubs). Load it LAST in <head> so it wins over older inline copies.
 * Markup is written into each page by scripts/apply_site_nav.py — edit the
 * template there, re-run it, never hand-edit one page's header.
 */

.prox-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--deep-slate, #2e2c34);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  padding: 0 24px;
  margin: 0;
  font-family: var(--font-sans, 'Manrope', system-ui, -apple-system, sans-serif);
  box-sizing: border-box;
}
.prox-header *, .prox-header *::before, .prox-header *::after { box-sizing: border-box; }

.prox-header__inner {
  max-width: 1040px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prox-header .prox-wordmark-group {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.prox-header .prox-logo-mark {
  width: 32px;
  height: 32px;
  min-width: 32px;
  flex-shrink: 0;
  display: block;
  margin: 0;
}
.prox-header .prox-wordmark {
  font-family: var(--font-sans, 'Manrope', system-ui, -apple-system, sans-serif);
  font-weight: 300;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--warm-cream, #f0ebe2);
  text-decoration: none;
}

.prox-header__right {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.prox-header__coach-link,
.prox-header__signin {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--warm-cream, #f0ebe2);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 7px;
  white-space: nowrap;
  transition: opacity 0.15s, background 0.15s;
}
.prox-header__coach-link { opacity: 0.6; }
.prox-header__signin { opacity: 0.5; }
.prox-header__coach-link:hover { opacity: 1; background: rgba(255, 255, 255, 0.07); }
.prox-header__signin:hover { opacity: 0.9; }
.prox-header__right a[aria-current="page"] { opacity: 1; }

.prox-header__trial {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 14px 0 8px;
  background: var(--soft-aqua, #afc9cf);
  color: var(--deep-slate, #2e2c34);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.prox-header__trial:hover { opacity: 0.85; }

/* ── Mobile hamburger + slide-down panel ── */
.prox-hamburger {
  display: none;
  position: absolute;
  top: 0;
  right: 14px;
  height: 64px;
  width: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  z-index: 120;
}
.prox-hamburger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--warm-cream, #f0ebe2);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.prox-hamburger span:nth-child(1) { transform: translateY(-6px); }
.prox-hamburger span:nth-child(3) { transform: translateY(6px); }
.prox-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.prox-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.prox-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

.prox-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(20, 18, 24, 0.55);
}
.prox-mobile-nav.open { display: block; }
.prox-mobile-nav__panel {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--deep-slate, #2e2c34);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
  display: flex;
  flex-direction: column;
  padding: 6px 0 16px;
  margin: 0;
}
.prox-mobile-nav__panel a {
  color: var(--warm-cream, #f0ebe2);
  text-decoration: none;
  font-family: var(--font-sans, 'Manrope', system-ui, -apple-system, sans-serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  padding: 14px 24px;
  opacity: 0.85;
}
.prox-mobile-nav__panel a[aria-current="page"] { opacity: 1; font-weight: 700; }
.prox-mobile-nav__panel a:active { background: rgba(255, 255, 255, 0.06); }
.prox-mobile-nav__panel a.prox-mobile-nav__cta {
  margin: 4px 20px 8px;
  padding: 13px 18px;
  background: var(--soft-aqua, #afc9cf);
  color: var(--deep-slate, #2e2c34);
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  opacity: 1;
}

/* The full link row needs ~1090px; below that, switch to the hamburger. */
@media (max-width: 1100px) {
  .prox-header__right { display: none !important; }
  .prox-hamburger { display: flex; }
}
@media (max-width: 600px) {
  .prox-header { padding: 0 16px; }
}
