/* ==========================================================================
   EroticWeb3 — site navigation, shared by every public page of eroticweb3.com:
   the marketing pages (this repo) and the app's sign-in and legal pages
   (onlyweb3 repo), which link /public/site-nav.css and render the same markup
   (scripts/site-nav.mjs here, SiteNav.vue in the app).
   Self-contained: it carries its tokens and resets so it looks the same on a page
   without style.css, and every rule is scoped to the navigation.
   ========================================================================== */

.nav,
.mobile-nav,
.mobile-nav-overlay {
  --sn-text: #f8eef0;
  --sn-text-2: #cdbcc3;
  --sn-line: rgba(255, 214, 224, 0.08);
  --sn-line-2: rgba(255, 214, 224, 0.14);
  --sn-line-3: rgba(255, 214, 224, 0.24);
  --sn-grad-rose: linear-gradient(135deg, #ff5a86 0%, #e8195a 48%, #a50f45 100%);
  --sn-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sn-height: 76px;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.nav *,
.mobile-nav * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.nav ul,
.mobile-nav ul {
  list-style: none;
}

.nav a,
.mobile-nav a {
  text-decoration: none;
}

.nav img,
.mobile-nav img {
  display: block;
  max-width: 100%;
}

.nav button,
.mobile-nav button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.nav :focus-visible,
.mobile-nav :focus-visible {
  outline: 2px solid #e9a982;
  outline-offset: 3px;
  border-radius: 6px;
}

/* Pages may style bare `nav` elements (a footer nav, for instance): none of it applies here. */
.nav,
.mobile-nav,
.mobile-nav-overlay {
  margin: 0;
}

/* ── Bar ──────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  display: block;
  border-bottom: 1px solid var(--sn-line);
  background: rgba(6, 4, 7, 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

.nav .container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 48px);
}

.nav__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: var(--sn-height);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--sn-text);
}

/* In the bar, the link is as wide as the logo, not the grid column. */
.nav .nav__logo {
  justify-self: start;
}

.nav__logo:hover {
  color: var(--sn-text);
}

/* The EW3 heart logo on its own, as in the app; the link's aria-label names the site. */
.nav__logo-mark {
  display: grid;
  place-items: center;
  width: 1.8em;
  height: 1.8em;
  font-size: 24px;
}

.nav__logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(255, 61, 113, 0.35));
}

.nav__links {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--sn-text-2);
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.2s, background 0.2s;
}

.nav__links a:hover,
.nav__links a[aria-current='page'] {
  color: var(--sn-text);
  background: rgba(255, 255, 255, 0.05);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav .nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--sn-line-2);
  border-radius: 50%;
  background: rgba(14, 9, 15, 0.6);
}

.nav__hamburger span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--sn-text);
  transition: transform 0.3s var(--sn-ease), opacity 0.2s;
}

.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons (scoped: the app has its own .btn) ───────────────────────────── */
.nav .btn,
.mobile-nav .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--sn-text-2);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.25s, filter 0.2s, color 0.2s;
}

.nav .btn:hover,
.mobile-nav .btn:hover {
  color: var(--sn-text);
  background: rgba(255, 255, 255, 0.06);
}

.nav .btn--primary,
.mobile-nav .btn--primary {
  background: var(--sn-grad-rose);
  color: #fff;
  box-shadow: 0 10px 34px rgba(255, 61, 113, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.nav .btn--primary:hover,
.mobile-nav .btn--primary:hover {
  background: var(--sn-grad-rose);
  color: #fff;
  filter: brightness(1.08);
  box-shadow: 0 14px 40px rgba(255, 61, 113, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* ── Mobile drawer ────────────────────────────────────────────────────────── */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(4, 2, 5, 0.66);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  gap: 22px;
  width: min(100%, 380px);
  padding: max(16px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  overflow-y: auto;
  border-left: 1px solid var(--sn-line-2);
  background:
    radial-gradient(80% 40% at 20% 0%, rgba(255, 61, 113, 0.22), transparent 70%),
    linear-gradient(180deg, #170f18, #0b080c);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
  color: var(--sn-text);
  transform: translateX(105%);
  transition: transform 0.45s var(--sn-ease);
}

.mobile-nav.is-open {
  transform: none;
}

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav .nav__logo {
  color: var(--sn-text);
}

.mobile-nav .mobile-nav__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--sn-line-2);
  border-radius: 50%;
  color: var(--sn-text);
  font-size: 16px;
}

.mobile-nav__links {
  display: grid;
  gap: 4px;
}

.mobile-nav__links a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  color: var(--sn-text);
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 26px;
  font-weight: 600;
  transition: background 0.2s;
}

.mobile-nav__links a:hover,
.mobile-nav__links a[aria-current='page'] {
  background: rgba(255, 61, 113, 0.12);
}

.mobile-nav__cta {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.mobile-nav__cta .btn {
  width: 100%;
  min-height: 54px;
  font-size: 15px;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav__links {
    display: none;
  }

  .nav .nav__hamburger {
    display: flex;
  }

  .nav__inner {
    grid-template-columns: auto 1fr auto auto;
  }

  .nav__cta {
    grid-column: 3;
  }
}

@media (max-width: 640px) {
  .nav,
  .mobile-nav,
  .mobile-nav-overlay {
    --sn-height: 64px;
  }

  .nav__cta {
    display: none;
  }

  .nav__inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .nav__logo-mark {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav,
  .mobile-nav-overlay,
  .nav__hamburger span {
    transition-duration: 0.01ms;
  }
}
