/* Pure Hits Digital — Shared Navigation */

/* ── BASE NAV ──────────────────────────────────────────────────────────────── */
#main-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  transition: box-shadow 0.3s;
}

#main-nav.nav-scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  height: 62px;
}

/* ── LOGO ──────────────────────────────────────────────────────────────────── */
.nav-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
  text-decoration: none;
}

.nav-logo-img {
  height: 34px;
  width: auto;
  display: block;
}

/* ── DESKTOP LINKS ─────────────────────────────────────────────────────────── */
.nav-links {
  display: flex;
  gap: 0.125rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  color: #4b5563;
  text-decoration: none;
  padding: 0.4rem 0.875rem;
  border-radius: 100px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-links a:hover {
  background: #f4f6f9;
  color: #111827;
}

.nav-links a.active {
  color: #c9943c;
  font-weight: 600;
}

.nav-links a.nav-cta {
  background: #0d1b2e;
  color: #ffffff;
  font-weight: 600;
  margin-left: 0.5rem;
  transition: background 0.2s;
}

.nav-links a.nav-cta:hover {
  background: #c9943c;
  color: #fff;
}

/* ── HAMBURGER BUTTON ──────────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}

.nav-hamburger:hover {
  background: #f4f6f9;
  border-color: #9ca3af;
}

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* Hamburger → X animation */
.nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── MOBILE MENU ───────────────────────────────────────────────────────────── */
.nav-mobile {
  display: none;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 0.75rem 0 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.nav-mobile.is-open {
  max-height: 500px;
  padding: 0.75rem 0 1.25rem;
}

.nav-mobile-links {
  list-style: none;
  margin: 0;
  padding: 0 clamp(1.25rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-mobile-links a {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  color: #374151;
  text-decoration: none;
  display: block;
  padding: 0.75rem 0.875rem;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
  font-weight: 400;
}

.nav-mobile-links a:hover {
  background: #f4f6f9;
  color: #111827;
}

.nav-mobile-links a.active {
  color: #c9943c;
  font-weight: 600;
}

.nav-mobile-cta {
  display: block;
  margin-top: 0.5rem;
  padding: 0.875rem !important;
  background: #0d1b2e !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 10px;
  text-align: center;
  transition: background 0.2s !important;
}

.nav-mobile-cta:hover {
  background: #c9943c !important;
  color: #fff !important;
}

/* Prevent scroll when menu is open */
body.nav-open {
  overflow: hidden;
}

/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .nav-links {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .nav-mobile {
    display: block;
  }
}
