/* =====================================================
   responsive-nav.css  –  shared across all pages
   ===================================================== */

/* === Logo === */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 38px;
  width: auto;
}

.nav-logo-text {
  font-weight: 800;
  font-size: 1.05rem;
  color: white;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.navbar.scrolled .nav-logo-text {
  color: #0f172a;
}

/* === Hamburger button === */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1200;
  border-radius: 8px;
  min-height: unset;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.navbar.scrolled .hamburger span {
  background: #0f172a;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5.5px, 6px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5.5px, -6px); }

/* === Mobile layout === */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    list-style: none;
    padding: 2rem;
  }

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

  .nav-menu .nav-link {
    font-size: 1.3rem !important;
    color: white !important;
    padding: 12px 24px !important;
    min-height: 52px;
  }

  .nav-menu .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    box-shadow: none;
    border-radius: 12px;
    margin-top: 4px;
    display: none;
    min-width: unset;
  }

  .nav-menu .dropdown.open .dropdown-menu {
    display: block;
  }

  .nav-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1rem !important;
    text-align: center;
  }

  .nav-actions {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1101;
    display: none;
    gap: 10px;
  }

  .nav-actions.mobile-open {
    display: flex;
  }

  .nav-container {
    padding: 14px 16px !important;
  }

  /* Prevent nav-actions from stacking weirdly behind menu */
  .action-btn {
    font-size: 0.85rem !important;
    padding: 9px 16px !important;
  }
}

/* Very small devices */
@media (max-width: 380px) {
  .nav-logo-text {
    display: none;
  }

  .nav-logo img {
    height: 32px;
  }
}
