/* ==========================================================================
   Navigation Styles - NextEscaype Premium SaaS Header
   ========================================================================== */

.ne-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  transition: all var(--ne-transition-base);
}

.ne-navbar--scrolled {
  padding: 0.75rem 0;
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid var(--ne-border);
}

.ne-navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Brand Logo with Bike Icon */
.ne-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
  white-space: nowrap;
}

.ne-brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.ne-brand:hover .ne-brand-logo-img {
  transform: scale(1.05);
}

.ne-brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.ne-brand-logo {
  font-family: var(--ne-font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ne-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: block;
  white-space: nowrap;
}

.ne-brand-logo span {
  color: var(--ne-primary-dark);
}

.ne-brand-tagline {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748B;
  margin-top: 2px;
  white-space: nowrap;
  display: block;
}

/* Menu Links */
.ne-nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.ne-nav-links li {
  white-space: nowrap;
  flex-shrink: 0;
}

.ne-nav-links a {
  font-family: var(--ne-font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ne-text-secondary);
  transition: all var(--ne-transition-fast);
  text-decoration: none;
  position: relative;
  padding: 0.35rem 0.55rem;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1.2;
}

.ne-nav-icon {
  width: 15px;
  height: 15px;
  margin-right: 6px;
  flex-shrink: 0;
  stroke: currentColor;
  opacity: 0.75;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ne-nav-links a:hover {
  color: var(--ne-primary);
  background-color: rgba(0, 123, 255, 0.05);
}

.ne-nav-links a:hover .ne-nav-icon {
  opacity: 1;
  transform: translateY(-1px);
}

.ne-nav-links a.active {
  color: var(--ne-primary);
  font-weight: 600;
  background-color: rgba(0, 123, 255, 0.08);
}

.ne-nav-links a.active .ne-nav-icon {
  opacity: 1;
  stroke-width: 2.2;
}

/* Header Action Group */
.ne-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.ne-header-actions .btn-ne-call {
  padding: 0.45rem 0.85rem;
  font-size: 0.84rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.ne-header-actions .btn-ne-primary {
  padding: 0.48rem 0.95rem;
  font-size: 0.84rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Mobile Toggler */
.ne-navbar-toggler {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 26px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  flex-shrink: 0;
}

.ne-navbar-toggler span {
  width: 100%;
  height: 2.5px;
  background: var(--ne-text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.ne-navbar-toggler.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.ne-navbar-toggler.active span:nth-child(2) {
  opacity: 0;
}

.ne-navbar-toggler.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Drawer */
.ne-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ne-mobile-drawer.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.ne-mobile-drawer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  text-align: center;
}

.ne-mobile-drawer-links li {
  margin: 0.85rem 0;
}

.ne-mobile-drawer-links a {
  font-family: var(--ne-font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ne-text-main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.ne-mobile-drawer-links a:hover {
  color: var(--ne-primary);
  background-color: rgba(0, 123, 255, 0.06);
}

.ne-mobile-nav-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  opacity: 0.8;
}

/* Tablet / Compact Desktop Responsive Adaptations: 992px to 1199.98px */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .ne-navbar-container {
    padding: 0 1rem;
  }
  .ne-brand {
    gap: 0.5rem;
  }
  .ne-brand-logo-img {
    height: 33px;
  }
  .ne-brand-logo {
    font-size: 1.18rem;
  }
  .ne-brand-tagline {
    font-size: 0.54rem;
    letter-spacing: 0.05em;
  }
  .ne-nav-links {
    gap: 0.55rem;
  }
  .ne-nav-links a {
    font-size: 0.81rem;
    padding: 0.3rem 0.38rem;
  }
  .ne-nav-icon {
    width: 14px;
    height: 14px;
    margin-right: 4px;
  }
  .ne-header-actions {
    gap: 0.5rem;
  }
  .ne-header-actions .btn-ne-call span {
    display: none; /* Keep icon-only at tight desktop resolution */
  }
  .ne-header-actions .btn-ne-call {
    padding: 0.45rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    justify-content: center;
  }
  .ne-header-actions .btn-ne-call svg {
    margin: 0;
  }
  .ne-header-actions .btn-ne-primary {
    padding: 0.44rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* Mobile Breakpoint (< 991.98px) */
@media (max-width: 991.98px) {
  .ne-navbar-container {
    padding: 0 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .ne-brand {
    gap: 0.5rem;
    max-width: calc(100% - 110px);
  }

  .ne-brand-logo-img {
    height: 32px;
  }

  .ne-brand-logo {
    font-size: 1.15rem;
  }

  .ne-brand-tagline {
    font-size: 0.52rem;
    letter-spacing: 0.04em;
  }

  .ne-nav-links {
    display: none !important;
  }

  .ne-header-actions .btn-ne-primary {
    display: none !important;
  }

  .ne-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .ne-navbar-toggler {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 36px;
    padding: 6px;
    background: rgba(0, 123, 255, 0.08);
    border: 1px solid rgba(0, 123, 255, 0.22);
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 1001;
    margin-left: auto;
  }

  .ne-navbar-toggler span {
    display: block;
    width: 20px;
    height: 2.2px;
    background: #0F172A;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .ne-navbar-toggler.active span:nth-child(1) {
    transform: translateY(7.2px) rotate(45deg);
  }

  .ne-navbar-toggler.active span:nth-child(2) {
    opacity: 0;
  }

  .ne-navbar-toggler.active span:nth-child(3) {
    transform: translateY(-7.2px) rotate(-45deg);
  }
}

/* Extra small mobile (< 420px) */
@media (max-width: 420px) {
  .ne-navbar-container {
    padding: 0 0.85rem;
  }

  .ne-brand {
    max-width: calc(100% - 50px);
  }

  .ne-brand-logo {
    font-size: 1.05rem;
  }

  .ne-brand-tagline {
    display: none;
  }
}
