/* Shared Header Styles */
body {
  font-size: 1.8rem;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1300;
  background: transparent;
  border-bottom: 1px solid transparent;
  height: 70px;
  transition: background .25s ease, border-color .25s ease;
}
.navbar.scrolled {
  background: var(--white);
  border-bottom-color: rgba(90,11,22,0.12);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}
.logo-mark {
  width: 128px;
  height: 128px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.logo .accent { color: var(--gold); }
.logo-sub {
  font-size: .6rem;
  font-weight: 400;
  color: rgba(255,255,255,.55);
  letter-spacing: 2px;
  display: block;
  margin-top: -3px;
}
.nav-inner > .logo-sub { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links li a {
  position: relative;
  color: rgba(255,255,255,0.78);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 8px 14px;
  transition: color .2s;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease, background-color .2s ease;
}
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--white);
  background: transparent;
}
.nav-links li a:hover::after,
.nav-links li a.active::after {
  transform: scaleX(1);
}
.nav-links li a.active { color: var(--gold); }

.navbar.scrolled .nav-links li a { color: rgba(90,11,22,0.88); }
.navbar.scrolled .nav-links li a::after { background: var(--navy-mid); }
.navbar.scrolled .nav-links li a:hover,
.navbar.scrolled .nav-links li a.active {
  color: var(--navy);
  background: transparent;
}
.navbar.scrolled .nav-links li a.active { color: var(--navy-mid); }

.nav-cta a {
  background: var(--gold) !important;
  color: #ffffff !important;
  padding: 10px 22px !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
}
.nav-cta a:hover { background: var(--gold-light) !important; }

/* Keep text pure white on red buttons across pages */
.btn-primary,
a.btn-primary,
button.btn-primary,
[class*="btn"][style*="background: var(--gold)"],
[class*="btn"][style*="background-color: var(--gold)"] {
  color: #ffffff !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1201;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transform-origin: center;
  transition: transform .25s ease, opacity .25s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-scrim { display: none; }

@media (max-width: 640px) {
  body.menu-open { overflow: hidden; }

  nav {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.08);
    border-radius: 0;
    padding: 20px 24px 26px;
    box-shadow: none;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease;
    z-index: 1200;
  }
  nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu-scrim {
    position: fixed;
    inset: 70px 0 0;
    background: rgba(10, 6, 8, .52);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 1100;
  }
  body.menu-open .menu-scrim {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .nav-links li a {
    display: block;
    background: transparent;
    border: none;
    color: rgba(255,255,255,.92);
    padding: 12px 14px;
    font-size: 1rem;
    letter-spacing: .8px;
  }
  .nav-links li a:hover,
  .nav-links li a.active { background: transparent; }

  .navbar.scrolled .nav-links li a { color: rgba(255,255,255,.92); }
  .navbar.scrolled .nav-links li a:hover,
  .navbar.scrolled .nav-links li a.active {
    color: var(--white);
    background: transparent;
  }
  .navbar.scrolled .nav-links li a.active { color: var(--gold); }

  .nav-cta a {
    margin-top: 6px;
    text-align: center;
    border-radius: 999px !important;
    padding: 12px 14px !important;
  }

  .hamburger { display: flex; }
  .hamburger span { background: var(--white); }
  .navbar.scrolled .hamburger span { background: #000; }
}
