/* CWP unified nav — matches homepage index.html */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: var(--nav-h, 80px);
  background: rgba(30, 8, 15, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bd-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(1.25rem, calc((100% - 1120px) / 2));
  transition: all 0.3s;
}

.nav.scrolled {
  background: rgba(30, 8, 15, 0.99);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}

.logo-mark {
  max-height: 36px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.28));
}

.nav-brand-wordmark {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  padding: 6px 14px;
  border-radius: 100px;
  transition: all 0.2s;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-menu a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #fff;
  padding: 9px 22px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 18px rgba(203, 65, 107, 0.4);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: #b33560;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(203, 65, 107, 0.5);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.hamburger span {
  width: 22px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  transition: all 0.3s;
  display: block;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h, 80px);
  left: 0;
  right: 0;
  background: var(--dark-s2);
  border-bottom: 1px solid var(--bd-light);
  padding: 1.5rem 2rem;
  z-index: 299;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  text-decoration: none;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bd-light);
  transition: color 0.2s;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: #fff;
}

@media (max-width: 1100px) {
  .logo-mark {
    height: 40px;
  }

  .nav-brand-wordmark {
    font-size: 8px;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .logo-mark {
    height: 36px;
  }

  .nav-brand-wordmark {
    font-size: 7px;
    letter-spacing: 0.09em;
    white-space: normal;
    max-width: 6.5rem;
    line-height: 1.3;
  }

  .logo {
    max-width: 62vw;
    gap: 8px;
  }
}
