/* Shared navigation — mobile hamburger menu + responsive layout */

/* ---- HAMBURGER BUTTON ---- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #F1F5F9;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger span:nth-child(1) { margin-bottom: 5px; }
.nav-hamburger span:nth-child(3) { margin-top: 5px; }

/* Animate to X when open */
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- MOBILE OVERLAY ---- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 23, 0.6);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.visible {
  opacity: 1;
}

/* ---- MOBILE MENU ---- */
@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #0F1623;
    border-left: 1px solid #1E293B;
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.5rem 2rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 150;
    overflow-y: auto;
  }

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

  .nav-overlay.open {
    display: block;
  }

  .nav-overlay.visible {
    display: block;
  }

  .nav-links .nav-link,
  .nav-links .nav-cta {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    transition: background 0.15s;
  }

  .nav-links .nav-link:hover {
    background: rgba(13, 219, 111, 0.06);
  }

  .nav-links .nav-cta {
    margin-top: 1rem;
    justify-content: center;
    min-height: 48px;
  }

  .nav-links .nav-tag {
    display: none;
  }
}

/* ---- TOUCH TARGETS ---- */
@media (max-width: 768px) {
  nav .nav-cta,
  nav .nav-link,
  nav .logo {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
