/* Hamburger nav — toggle button, drawer, overlay. Mobile-first, works on all pages. */

/* ---- Hamburger toggle button ---- */
.sip-nav-toggle {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 1100;
  width: 44px;
  height: 44px;
  background: rgba(18, 21, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s;
}

.sip-nav-toggle:hover {
  background: rgba(0, 229, 160, 0.12);
  border-color: rgba(0, 229, 160, 0.35);
}

.sip-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #e4e7ef;
  border-radius: 2px;
  transition: background 0.2s;
}

.sip-nav-toggle:hover span {
  background: #00e5a0;
}

/* ---- Overlay ---- */
.sip-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1200;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sip-nav-overlay.open {
  display: block;
  opacity: 1;
}

/* ---- Slide-out drawer ---- */
.sip-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 280px;
  max-width: 85vw;
  background: #12151c;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1300;
  padding: 28px 32px 40px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
}

.sip-nav-drawer.open {
  transform: translateX(0);
}

/* ---- Close button — min 44×44px tap target per WCAG ---- */
.sip-nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #8a90a0;
  font-size: 1.1rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sip-nav-close:hover {
  color: #e4e7ef;
  background: rgba(255, 255, 255, 0.06);
}

/* ---- Brand ---- */
.sip-nav-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #e4e7ef;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.sip-nav-brand span {
  color: #00e5a0;
}

/* ---- Links ---- */
.sip-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sip-nav-links li a {
  display: block;
  padding: 12px 14px;
  color: #8a90a0;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.97rem;
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.18s, background 0.18s;
}

.sip-nav-links li a:hover {
  color: #00e5a0;
  background: rgba(0, 229, 160, 0.08);
}

/* Active page highlight */
.sip-nav-links li a[aria-current="page"] {
  color: #00e5a0;
  background: rgba(0, 229, 160, 0.10);
}

/* ---- Fallback for pages with light backgrounds (email-delivery uses #f8fafc) ---- */
.light-bg .sip-nav-toggle {
  background: rgba(15, 23, 42, 0.90);
  border-color: rgba(15, 23, 42, 0.15);
}
