/* ==========================================================================
   BHNsoftware — Shared Navbar & Mega Menu Design System
   Scoped to .bhnsoftware-* classes so page content styles remain unaffected.
   ========================================================================== */

:root {
  --wo-blue: #2563eb;
  --wo-blue-bright: #3b82f6;
  --wo-blue-dk: #1d4ed8;
  --wo-cyan: #06b6d4;
  --wo-white: #ffffff;
  --wo-dark: #050814;
  --wo-nav-bg: rgba(5, 8, 20, 0.92);
  --wo-border: rgba(148, 163, 184, 0.15);
  --wo-text-m: #94a3b8;
  --wo-text-s: #cbd5e1;
  --wo-drop-bg: #0b1120;
}

/* ── TOP ANNOUNCEMENT BAR ── */
.bhnsoftware-topbar {
  background: linear-gradient(90deg, #0f172a 0%, #1d4ed8 50%, #0f172a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  text-align: center;
  letter-spacing: 0.01em;
}

.bhnsoftware-topbar a.bhnsoftware-topbar-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bhnsoftware-topbar a.bhnsoftware-topbar-pill:hover {
  background: #ffffff;
  color: #0f172a;
}

.bhnsoftware-topbar strong {
  color: #ffffff;
  font-weight: 700;
}

.bhnsoftware-topbar a.bhnsoftware-topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 12px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bhnsoftware-topbar a.bhnsoftware-topbar-cta:hover {
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ── MAIN STICKY HEADER ── */
.bhnsoftware-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--wo-nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--wo-border);
  font-family: 'Poppins', sans-serif;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bhnsoftware-header.is-scrolled {
  background: rgba(5, 8, 20, 0.97);
  border-bottom-color: rgba(59, 130, 246, 0.28);
  box-shadow: 0 12px 36px rgba(2, 6, 23, 0.55);
}

.bhnsoftware-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 74px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: static;
}

/* ── LOGO ── */
.bhnsoftware-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 12px;
}

.bhnsoftware-logo img {
  height: 56px;
  width: auto;
  display: block;
}

/* ── DESKTOP NAV ── */
.bhnsoftware-desktop-nav {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
  flex: 1;
  margin: 0;
  padding: 0;
  justify-content: center;
  position: static;
}

.bhnsoftware-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 74px;
}

/* Full-width mega-menu items anchor directly to .bhnsoftware-header (top: 100%) */
.bhnsoftware-nav-item.has-mega {
  position: static;
}

.bhnsoftware-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  color: var(--wo-text-s);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.bhnsoftware-nav-link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.bhnsoftware-nav-link:hover,
.bhnsoftware-nav-item:hover>.bhnsoftware-nav-link,
.bhnsoftware-nav-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.bhnsoftware-nav-item:hover>.bhnsoftware-nav-link::after,
.bhnsoftware-nav-link.is-active::after {
  transform: scaleX(1);
}

.bhnsoftware-arrow {
  display: inline-block;
  width: 12px;
  height: 12px;
  position: relative;
  flex-shrink: 0;
}

.bhnsoftware-arrow::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 6px;
  height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.22s ease, top 0.22s ease;
}

.bhnsoftware-nav-item:hover>.bhnsoftware-nav-link .bhnsoftware-arrow::after {
  transform: rotate(-135deg);
  top: 5px;
}

/* ── STANDARD DROPDOWN (Packages) ── */
.bhnsoftware-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--wo-drop-bg);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-top: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 0 0 14px 14px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  z-index: 1050;
}

.bhnsoftware-nav-item:hover>.bhnsoftware-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── FULL-WIDTH MEGA DROPDOWNS (Services & Industries) ── */
/* Anchored flush to bottom edge of .bhnsoftware-header with ZERO gap */
.bhnsoftware-services-mega {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(11, 17, 32, 0.985);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid rgba(59, 130, 246, 0.28);
  border-bottom: 1px solid rgba(59, 130, 246, 0.28);
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.85);
  max-height: calc(100vh - 82px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  pointer-events: none;
  z-index: 1045;
}

.bhnsoftware-nav-item.has-mega:hover>.bhnsoftware-services-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.bhnsoftware-mega-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 24px 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 280px;
  gap: 0 20px;
}

.bhnsoftware-mega-col {
  padding: 0 12px 0 4px;
  border-right: 1px solid var(--wo-border);
}

.bhnsoftware-mega-col:nth-child(3) {
  border-right: none;
}

.bhnsoftware-mega-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #60a5fa;
  letter-spacing: 0.09em;
  padding-bottom: 9px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.bhnsoftware-mega-link {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 8px 9px;
  color: var(--wo-text-s);
  font-size: 13.5px;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  margin-bottom: 2px;
}

.bhnsoftware-mega-link:hover {
  background: rgba(37, 99, 235, 0.14);
  color: #ffffff;
  text-decoration: none;
  transform: translateX(2px);
}

.bhnsoftware-mega-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.bhnsoftware-mega-link:hover .bhnsoftware-mega-icon {
  background: var(--wo-blue);
  border-color: #60a5fa;
  color: #ffffff;
}

.bhnsoftware-mega-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 1px;
}

.bhnsoftware-mega-text span {
  display: block;
  font-size: 11.8px;
  color: var(--wo-text-m);
  line-height: 1.38;
}

/* Compact rows for 20-industry mega menu */
.bhnsoftware-mega-link.is-compact {
  align-items: center;
  padding: 6px 9px;
  gap: 10px;
}

.bhnsoftware-mega-link.is-compact .bhnsoftware-mega-icon {
  width: 30px;
  height: 30px;
  font-size: 13px;
  border-radius: 8px;
}

.bhnsoftware-mega-link.is-compact .bhnsoftware-mega-text strong {
  margin-bottom: 0;
  font-size: 13px;
}

/* Featured CTA panel (4th column) */
.bhnsoftware-mega-featured {
  background: linear-gradient(155deg, rgba(37, 99, 235, 0.22) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(59, 130, 246, 0.32);
  border-radius: 16px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.bhnsoftware-feat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.26);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 8px;
}

.bhnsoftware-feat-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 6px;
}

.bhnsoftware-feat-desc {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.52;
}

.bhnsoftware-feat-prices {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bhnsoftware-feat-price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5, 8, 20, 0.55);
  border: 1px solid var(--wo-border);
  border-radius: 9px;
  padding: 8px 11px;
}

.bhnsoftware-feat-price-item .wo-plan {
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
}

.bhnsoftware-feat-price-item .wo-price {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.bhnsoftware-feat-cta {
  cursor: pointer;
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 10px 24px -6px rgba(37, 99, 235, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.bhnsoftware-feat-cta:hover {
  background: #ffffff;
  color: #0f172a !important;
  text-decoration: none;
  transform: translateY(-1px);
}

.bhnsoftware-feat-cta-sec {
  display: block;
  text-align: center;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e2e8f0 !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.bhnsoftware-feat-cta-sec:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #60a5fa;
  text-decoration: none;
}

/* ── SIMPLE DROPDOWN LINKS ── */
.bhnsoftware-drop-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  color: var(--wo-text-s);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 9px;
  transition: background 0.18s ease, color 0.18s ease;
  cursor: pointer;
}

.bhnsoftware-drop-link:hover {
  background: rgba(37, 99, 235, 0.14);
  color: #ffffff;
  text-decoration: none;
}

.bhnsoftware-drop-link .bhnsoftware-di {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.16);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease;
}

.bhnsoftware-drop-link:hover .bhnsoftware-di {
  background: var(--wo-blue);
  color: #ffffff;
}

/* ── NAV RIGHT CTAs ── */
.bhnsoftware-nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.bhnsoftware-btn-quote {
  cursor: pointer;
  padding: 9px 17px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.28);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.bhnsoftware-btn-quote:hover {
  border-color: #60a5fa;
  background: rgba(37, 99, 235, 0.16);
  color: #ffffff !important;
  text-decoration: none;
  transform: translateY(-1px);
}

.bhnsoftware-btn-contact {
  padding: 9px 19px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: 1px solid rgba(96, 165, 250, 0.45);
  box-shadow: 0 8px 22px -6px rgba(37, 99, 235, 0.6);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.bhnsoftware-btn-contact:hover {
  background: #ffffff;
  color: #0f172a !important;
  border-color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -6px rgba(255, 255, 255, 0.28);
}

/* ── HAMBURGER ── */
.bhnsoftware-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.bhnsoftware-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.bhnsoftware-hamburger.bhnsoftware-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.bhnsoftware-hamburger.bhnsoftware-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── MOBILE & TABLET DRAWER ── */
.bhnsoftware-mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: #050814;
  z-index: 9998;
  overflow-y: auto;
  padding: 24px 24px 48px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Poppins', sans-serif;
}

.bhnsoftware-mobile-drawer.bhnsoftware-open {
  transform: translateX(0);
}

.bhnsoftware-mob-inner {
  max-width: 720px;
  margin: 0 auto;
}

.bhnsoftware-mob-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--wo-border);
}

.bhnsoftware-mob-head img {
  height: 40px;
  width: auto;
}

.bhnsoftware-mobile-drawer .bhnsoftware-close-btn {
  position: static;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.bhnsoftware-mobile-drawer .bhnsoftware-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.bhnsoftware-mob-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bhnsoftware-mob-item {
  border-bottom: 1px solid var(--wo-border);
}

.bhnsoftware-mob-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 4px;
  color: #f8fafc;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.bhnsoftware-mob-link:hover {
  color: #60a5fa;
  text-decoration: none;
}

.bhnsoftware-mob-arrow {
  font-size: 18px;
  transition: transform 0.25s ease;
}

.bhnsoftware-mob-item.bhnsoftware-open .bhnsoftware-mob-arrow {
  transform: rotate(180deg);
}

.bhnsoftware-mob-sub {
  list-style: none;
  display: none;
  padding: 4px 0 16px 8px;
}

.bhnsoftware-mob-item.bhnsoftware-open .bhnsoftware-mob-sub {
  display: block;
}

.bhnsoftware-mob-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 10px;
}

.bhnsoftware-mob-sub a {
  display: block;
  padding: 8px 10px;
  color: var(--wo-text-m);
  font-size: 13.8px;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.bhnsoftware-mob-sub a:hover {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.14);
}

.bhnsoftware-mob-sub-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #60a5fa;
  letter-spacing: 0.08em;
  padding: 12px 10px 6px;
  display: block;
}

.bhnsoftware-mob-cta {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bhnsoftware-mob-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 10px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.bhnsoftware-mob-cta .bhnsoftware-mc1 {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
}

.bhnsoftware-mob-cta .bhnsoftware-mc2 {
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

/* ── RESPONSIVE BREAKPOINTS (Compact Desktop -> Tablet -> Mobile) ── */
@media (max-width: 1199px) {
  .bhnsoftware-nav-inner {
    padding: 0 18px;
    gap: 10px;
  }

  .bhnsoftware-nav-link {
    padding: 8px 10px;
    font-size: 13.8px;
  }

  .bhnsoftware-mega-inner {
    padding: 22px 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 245px;
    gap: 0 14px;
  }
}

@media (max-width: 1024px) {

  .bhnsoftware-desktop-nav,
  .bhnsoftware-nav-right {
    display: none;
  }

  .bhnsoftware-hamburger {
    display: flex;
  }

  .bhnsoftware-mobile-drawer {
    display: block;
  }
}

@media (max-width: 767px) {
  .bhnsoftware-topbar {
    padding: 6px 12px;
  }

  .bhnsoftware-topbar-text,
  .bhnsoftware-topbar a.bhnsoftware-topbar-cta {
    display: none;
  }

  .bhnsoftware-topbar a.bhnsoftware-topbar-pill {
    font-size: 11px;
    padding: 4px 14px;
  }
}

@media (max-width: 576px) {
  .bhnsoftware-topbar {
    padding: 6px 12px;
  }

  .bhnsoftware-nav-inner {
    height: 66px;
    padding: 0 16px;
  }

  .bhnsoftware-logo img {
    height: 40px;
  }

  .bhnsoftware-mobile-drawer {
    padding: 18px 16px 36px;
  }

  .bhnsoftware-mob-sub-grid,
  .bhnsoftware-mob-cta {
    grid-template-columns: 1fr;
  }
}