/* Navigation Bar Styles */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #000000;
}

.navbar-brand span {
  color: #000000;
}

.navbar-brand.active,
.navbar-brand.active span {
  color: var(--primary);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.navbar-links a {
  color: var(--gray-800);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
  white-space: nowrap;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--primary);
}

.navbar-cta {
  display: flex;
  gap: 10px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

/* Mobile Menu - Hidden by default on all screens */
.mobile-menu {
  display: none;
}

.mobile-overlay {
  display: none;
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }

  .navbar-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: var(--white);
    transition: max-height 0.4s ease-in-out;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .mobile-menu.active {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 20px 0;
  }

  .mobile-menu a {
    display: block;
    padding: 18px 24px;
    color: var(--gray-800);
    font-weight: 500;
    font-size: 1.1rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
    transition: background 0.2s ease, color 0.2s ease;
  }

  .mobile-menu a:hover,
  .mobile-menu a:active {
    background: var(--gray-100);
    color: var(--primary);
  }

  .mobile-menu .mobile-cta {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--gray-200);
    margin-top: 8px;
  }

  .mobile-menu .mobile-cta a {
    text-align: center;
    border-bottom: none;
    padding: 14px;
    border-radius: var(--radius);
    font-size: 1rem;
  }

  /* Hamburger animation when active */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* Overlay when menu is open */
  .mobile-overlay {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: rgba(0, 0, 0, 0.4);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mobile-overlay.active {
    display: block;
    opacity: 1;
  }

  /* Improve navbar-inner spacing on mobile */
  .navbar-inner {
    padding: 0 16px;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }

  .navbar-brand .logo-img {
    height: 28px !important;
  }
}
