/* Header-specific styles for NAXSOL ENTERPRISES LTD */

.bnv-header {
  position: relative;
  z-index: 50;
}

.bnv-header__inner {
  align-items: center;
}

.navbar__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-neutral-900);
}

.navbar__logo {
  color: var(--color-neutral-900);
}

.navbar__logo span {
  color: var(--color-primary-strong);
}

/* CTA link styled as button but still a link */
.bnv-header__item--cta .bnv-header__cta-link {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(248, 113, 113, 0.6);
  background: radial-gradient(circle at top left, #fb7185 0, #e11d48 40%, #9f1239 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(225, 29, 72, 0.6);
  font-size: var(--font-size-xs);
}

.bnv-header__item--cta .bnv-header__cta-link:hover {
  color: #fff;
  box-shadow: var(--shadow-glow-primary);
}

/* Mobile toggle */
.bnv-header__toggle {
  display: none;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--color-border-strong);
  background: rgba(15, 23, 42, 0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
}

.bnv-header__toggle-bar {
  width: 1.3rem;
  height: 2px;
  border-radius: 999px;
  background: var(--color-neutral-700);
  transition: transform var(--transition-base), opacity var(--transition-base), background var(--transition-base);
}

/* Overlay for mobile nav */
.bnv-header__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(12px);
  z-index: 40;
}

/* Mobile nav panel */
.bnv-header__nav {
  position: relative;
}

@media (max-width: 768px) {
  .bnv-header__toggle {
    display: inline-flex;
    z-index: 9999;
  }

  .bnv-header__nav {
    position: fixed;
    inset: 0 0 auto auto;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at top left, rgba(225, 29, 72, 0.16) 0, transparent 55%),
      #020617f2;
    border-left: 1px solid rgba(15, 23, 42, 0.95);
    transform: translateX(100%);
    z-index: 41;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .bnv-header__menu {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-10) var(--space-6);
    width: 100%;
  }

  .bnv-header__item {
    width: 100%;
  }

  .navbar__link {
    display: block;
    width: 100%;
    padding: 0.75rem 0;
    font-size: var(--font-size-sm);
  }

  .bnv-header--open .bnv-header__nav {
    transform: translateX(0);
  }

  .bnv-header--open .bnv-header__overlay {
    display: block;
  }

  .bnv-header--open .bnv-header__toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    background: var(--color-neutral-900);
  }

  .bnv-header--open .bnv-header__toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .bnv-header--open .bnv-header__toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    background: var(--color-neutral-900);
  }
}

@media (min-width: 769px) {
  .bnv-header__overlay {
    display: none !important;
  }
}
