/* Navbar container with premium glassmorphism */
.navbar-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.navbar-container {
  width: 100%;
  max-width: 1200px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

/* Logo container styling */
.navbar-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 100%;
  transition: transform 0.2s ease;
}

.navbar-logo-link:hover {
  transform: scale(1.02);
}

.navbar-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

/* Navigation items wrapper */
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-link {
  font-size: 15px;
  font-weight: 500;
  color: #374151; /* Dark gray */
  text-decoration: none;
  position: relative;
  padding: 8px 0;
  transition: color 0.25s ease;
  font-family: inherit;
}

.navbar-link:hover {
  color: #10B981; /* Green from the logo */
}

/* Elegant line transition on hover */
.navbar-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #10B981;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.navbar-link:hover::after,
.navbar-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.navbar-link.active {
  color: #10B981;
}

/* Call to Action Button in navbar */
.navbar-cta {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2), 0 2px 4px -1px rgba(16, 185, 129, 0.1);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.navbar-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3), 0 4px 6px -2px rgba(16, 185, 129, 0.05);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.navbar-cta:active {
  transform: translateY(0);
}

/* Mobile Hamburger Menu */
.navbar-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1010;
}

.navbar-mobile-toggle span {
  width: 100%;
  height: 2px;
  background-color: #374151;
  transition: all 0.3s ease;
}

/* Hide mobile cta in desktop menu list by default */
.mobile-only-cta {
  display: none;
}

/* Mobile styles */
@media (max-width: 768px) {
  .navbar-header {
    height: 70px;
    width: 100%;
  }

  .navbar-container {
    padding: 0 16px;
    position: relative;
    width: 100%;
  }

  .navbar-logo-img {
    height: 44px;
  }

  .navbar-mobile-toggle {
    display: flex;
    margin-left: auto;
    z-index: 10010;
  }

  .navbar-container nav {
    position: static;
  }

  .navbar-cta-wrapper {
    display: none; /* Hide desktop button on mobile */
  }

  /* Hamburger transform when menu is open */
  .navbar-mobile-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .navbar-mobile-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .navbar-mobile-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Off-canvas sliding drawer that never squishes or expands the page */
  .navbar-menu {
    position: fixed;
    top: 70px;
    right: 0;
    width: 280px;
    max-width: 82vw;
    height: calc(100vh - 70px);
    height: calc(100dvh - 70px);
    background: #ffffff;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
    border-left: 1px solid rgba(229, 231, 235, 0.8);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 36px 20px 40px;
    gap: 26px;
    transform: translateX(110%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    visibility: hidden;
    pointer-events: none;
    z-index: 10005;
    overflow-y: auto;
    box-sizing: border-box;
  }

  .navbar-menu.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .navbar-link {
    font-size: 17px;
    font-weight: 600;
    padding: 6px 0;
  }

  .mobile-only-cta {
    display: flex; /* Show in mobile navigation tray */
    justify-content: center;
    width: 100%;
    margin-top: 10px;
  }

  .mobile-only-cta .navbar-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 220px;
    text-align: center;
    box-sizing: border-box;
    padding: 12px 24px;
    font-size: 15px;
    margin: 0 auto;
  }
}

/* Lightbox backdrop for mobile menu */
.navbar-backdrop {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 70px);
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  animation: fadeIn 0.25s ease;
}
