/* ============================================================
   NAVBAR BASE
   ============================================================ */

.plx-navbar {
  position: sticky;
  top: 0;
  z-index: var(--plx-z-nav);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: var(--plx-glass-bg);
  border-bottom: 1px solid var(--plx-border-subtle);
  transition: transform 0.35s ease;
}

.plx-navbar-hide {
  transform: translateY(-100%);
}

.plx-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.plx-navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--plx-space-2);
}

.plx-navbar-links {
  display: flex;
  align-items: center;
  gap: var(--plx-space-4);
}

.plx-navbar-link {
  font-size: var(--plx-font-size-sm);
  color: var(--plx-text-soft);
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.25s ease;
}

.plx-navbar-link:hover {
  color: var(--plx-text-primary);
}

.plx-navbar-link.plx-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  border-radius: var(--plx-radius-pill);
  background: var(--plx-brand-primary);
}

/* ============================================================
   MOBILE TOGGLE BUTTON (hamburger → X animation)
   ============================================================ */

.plx-mobile-toggle {
  background: none;
  border: none;
  color: var(--plx-text-primary);
  font-size: 1.7rem;
  padding: 0.25rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

body.plx-nav-open .plx-mobile-toggle {
  transform: rotate(90deg);
}

/* ============================================================
   MOBILE MENU (now OUTSIDE nav)
   ============================================================ */

.plx-mobile-menu {
  display: flex;
  flex-direction: column;
  gap: var(--plx-space-4);
  padding: var(--plx-space-5);
  background: var(--plx-glass-bg);
  border-bottom: 1px solid var(--plx-border-subtle);
  border-top: 1px solid var(--plx-border-subtle);

  /* Hidden by default */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    max-height 0.35s ease,
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* When nav is open */
body.plx-nav-open .plx-mobile-menu {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

/* Mobile link styling */
.plx-mobile-menu .plx-navbar-link {
  font-size: var(--plx-font-size-md);
  padding: var(--plx-space-2) 0;
  color: var(--plx-text-primary);
}

/* CTA button full width on mobile */
.plx-mobile-menu .plx-btn {
  width: 100%;
}

/* Tighten navbar on mobile */
@media (max-width: 991px) {
  .plx-navbar-inner {
    padding: 0.5rem 1.25rem;
  }
}