/* ==========================================================================
   nav.css — Floating Sticky Nav Bar (centered logo + red MENU button)
   This is the bottom-centered nav that appears in the hero region.
   ========================================================================== */

.nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(540px, calc(100% - 32px));
  padding: 12px 14px 12px 20px;
  background: var(--black);
  border-radius: 100px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-logo svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  font-family: var(--display);
  border: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.nav-menu-btn:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-1px);
}

.nav-menu-btn::after {
  content: '';
  width: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
  margin-left: 4px;
}

/* ── Top utility links (subtle, only shown on scroll) ── */
.nav-top {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-50);
  transition: opacity 0.3s var(--ease);
}

.nav-top a:hover {
  color: var(--red);
}

/* ── Mobile toggle (kept for small screens) ── */
.nav-mobile-toggle {
  display: none;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px;
}

.nav-mobile-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) - 1);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

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

.nav-overlay ul {
  list-style: none;
  text-align: center;
}

.nav-overlay li {
  margin: 20px 0;
}

.nav-overlay-link {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

.nav-overlay-cta {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 16px;
  margin-top: 10px;
}

@media (max-width: 640px) {
  .nav {
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 10px 12px 10px 16px;
  }
  .nav-menu-btn { padding: 8px 18px; font-size: 11px; }
  .nav-overlay-link { font-size: 28px; }
  .nav-overlay li { margin: 14px 0; }
}

@media (max-width: 400px) {
  .nav-overlay-link { font-size: 24px; }
  .nav-overlay li { margin: 10px 0; }
}
