/* ============================================================
   Notly — Shared Navigation (included on all non-home pages)
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 20px 0;
  transition: all 250ms ease;
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(241,236,255,0.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(123,91,255,0.08);
}
.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1a1230;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  text-decoration: none;
  transition: color 220ms ease;
}
.nav__brand svg { display: block; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  color: #3a2a5a;
  font-size: 14px;
  font-weight: 500;
  transition: color 150ms;
  text-decoration: none;
}
.nav__links a:hover { color: #7B5BFF; }
.nav__links a.active { color: #7B5BFF; font-weight: 600; }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #C4A0FF, #7B5BFF 50%, #FF8FCB);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(123,91,255,0.35);
  transition: opacity 150ms, transform 150ms;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.nav__cta:hover { opacity: 0.9; transform: translateY(-1px); color: #fff; }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  line-height: 0;
}
.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #1a1230;
  border-radius: 2px;
  transition: all 250ms;
}

/* ── Dark-hero variant: white logo + links ── */
.nav--on-dark .nav__brand              { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,0.2); }
.nav--on-dark .nav__links a            { color: rgba(255,255,255,0.88); text-shadow: 0 1px 8px rgba(0,0,0,0.18); }
.nav--on-dark .nav__links a:hover      { color: #fff; }
.nav--on-dark .nav__links a.active     { color: #fff; font-weight: 600; }
.nav--on-dark .nav__hamburger span     { background: rgba(255,255,255,0.9); }

/* When scrolled the glass background is light → revert to dark text */
.nav--on-dark.scrolled .nav__brand          { color: #1a1230; text-shadow: none; }
.nav--on-dark.scrolled .nav__links a        { color: #3a2a5a; text-shadow: none; }
.nav--on-dark.scrolled .nav__links a:hover  { color: #7B5BFF; }
.nav--on-dark.scrolled .nav__links a.active { color: #7B5BFF; font-weight: 600; }
.nav--on-dark.scrolled .nav__hamburger span { background: #1a1230; }

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(241,236,255,0.97);
    backdrop-filter: blur(20px);
    padding: 16px 32px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(123,91,255,0.1);
  }
  /* Dark-hero mobile menu */
  .nav--on-dark:not(.scrolled) .nav__links.open {
    background: rgba(18, 8, 38, 0.97);
    border-bottom-color: rgba(255,255,255,0.08);
  }
  .nav--on-dark:not(.scrolled) .nav__links.open a { color: rgba(255,255,255,0.9); }
  .nav--on-dark:not(.scrolled) .nav__links.open a:hover { color: #fff; }
  .nav__hamburger { display: flex; }
  .nav__container { padding: 0 20px; }
}
