/* ==========================================================================
   BillNora header
   ========================================================================== */

:root {
  --blue-dark: #003d5c;
  --blue-mid: #005073;
  --navy: #0d1b2a;
  --orange: #e48226;
  --orange-dark: #c96e1a;
  --white: #ffffff;
  --gray-50: #f7f9fc;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-700: #374151;
  --font: "Poppins", sans-serif;
  --ease: all 0.25s ease-in-out;
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 44px rgba(0, 0, 0, 0.16);
}

/* header mn jonsa links han uska color grey krna ka liya */
#bn-header a,
#bn-header a:visited {
  color: var(--gray-700);
}

#bn-topbar,
#bn-topbar *,
#bn-header,
#bn-header *,
#bn-drawer,
#bn-drawer * {
  font-family: var(--font) !important;
}

html {
  scroll-behavior: smooth;
}

#bn-topbar {
  background: var(--navy);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0 2.5rem;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#bn-topbar a {
  color: var(--white);
  text-decoration: none;
  transition: var(--ease);
}

#bn-topbar a:hover {
  color: var(--orange);
}

.tb-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tb-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.tb-divider {
  width: 1px;
  height: 13px;
  background: rgba(255, 255, 255, 0.22);
}

.tb-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  display: flex;
  align-items: center;
  padding: 0;
  transition: var(--ease);
}

.tb-search-btn:hover {
  color: var(--orange);
}

#bn-header {
  background: var(--white);
  padding: 0 2.5rem;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1.5px solid var(--gray-200);
  transition: box-shadow 0.3s ease;
}

#bn-header.scrolled {
  box-shadow: var(--shadow-md);
}

body.admin-bar #bn-header {
  top: 32px;
}

.bn-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.bn-logo img {
  height: 70px;
  width: 180px;
  padding-bottom: 5px;
  object-fit: contain;
  display: block;
}

#bn-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.bn-nav-item {
  position: relative;
}


.bn-nav-link {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.42rem 0.72rem;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  color: var(----orange-700);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  white-space: nowrap;
  transition: var(--ease);
  user-select: none;
}

.bn-nav-link:hover,
.bn-nav-item.active > .bn-nav-link {
  color: var(--blue-mid);
  background: var(--gray-50);
}

.bn-nav-link .chev {
  width: 11px;
  height: 11px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.bn-nav-item.active > .bn-nav-link .chev {
  transform: rotate(180deg);
}

.bn-cta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--orange);
  color: var(--white) !important; 
  padding: 0.58rem 1.3rem;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--ease);
  box-shadow: 0 2px 14px rgba(228, 130, 38, 0.35);
  position: relative;
  overflow: hidden;
}

.bn-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.bn-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(228, 130, 38, 0.5);
  color: var(--white);
}

.bn-cta:hover::after {
  opacity: 1;
}

.bn-cta svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s;
}

.bn-cta:hover svg {
  transform: translateX(5px);
}

.simple-drop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 210px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  padding: 0.45rem 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 2000;
}

.bn-nav-item.active .simple-drop {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}

.simple-drop a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.58rem 1.1rem;
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: var(--ease);
}

.simple-drop a:hover {
  background: var(--gray-50);
  color: var(--blue-mid);
}

.simple-drop a:hover .sd-icon {
  background: var(--blue-mid);
}

.simple-drop a:hover .sd-icon svg {
  color: var(--white);
}

.sd-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 7px;
  background: rgba(0, 80, 115, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ease);
}

.sd-icon svg {
  width: 15px;
  height: 15px;
  color: var(--blue-mid);
  transition: var(--ease);
}

.sd-label {
  font-size: 0.79rem;
  font-weight: 500;
}

.mega-wrap {
  position: fixed;
  top: var(--mega-top, 112px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 820px;
  max-width: calc(100vw - 2rem);
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 2000;
}

.bn-nav-item.active .mega-wrap {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.mega-wrap::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: var(--white);
  border-left: 1px solid var(--gray-200);
  border-top: 1px solid var(--gray-200);
  transform: translateX(-50%) rotate(45deg);
}

.mega-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 230px;
  gap: 0;
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
}

.mega-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mega-col-title {
  font-size: 0.63rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem 0.55rem;
  margin-bottom: 0.1rem;
}

.mega-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.55rem;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--ease);
}

.mega-item:hover {
  background: var(--gray-50);
}

.mega-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(0, 80, 115, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ease);
}

.mega-item:hover .mega-icon {
  background: var(--blue-mid);
}

.mega-item:hover .mega-icon svg {
  color: var(--white);
}

.mega-icon svg {
  width: 17px;
  height: 17px;
  color: var(--blue-mid);
  transition: var(--ease);
}

.mega-text strong {
  display: block;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.1rem;
}

.mega-text span {
  font-size: 0.69rem;
  color: var(--gray-400);
  line-height: 1.4;
}

.mega-demo {
  background: linear-gradient(150deg, var(--blue-mid) 0%, var(--blue-dark) 100%);
  border-radius: 10px;
  padding: 1.4rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
}

.mega-demo-badge {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  padding: 0.3rem 0.8rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mega-demo h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin: 0;
}

.mega-demo p {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
  margin: 0;
}

.mega-demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--orange);
  color: var(--white);
  padding: 0.52rem 1rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--ease);
  margin-top: 0.2rem;
  width: 100%;
  justify-content: center;
}

.mega-demo-btn:hover {
  background: var(--orange-dark);
  color: var(--white);
}

.mega-demo-call {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.68rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--ease);
}

.mega-demo-call:hover {
  color: var(--white);
}

.bn-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}

.bn-burger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--ease);
  transform-origin: center;
}

.bn-burger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.bn-burger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.bn-burger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

#bn-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: var(--ease);
}

#bn-overlay.open {
  opacity: 1;
  visibility: visible;
}

#bn-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  max-width: 90vw;
  height: 100%;
  background: var(--navy);
  z-index: 1100;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

#bn-drawer.open {
  right: 0;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 66px;
}

.drawer-head img {
  max-height: 65px;
  width: auto;
  object-fit: contain;
  display: block;
}

.drawer-head .bn-logo-drawer {
  height: 48px;
  width: auto;
}

.drawer-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  transition: var(--ease);
  padding: 0.2rem;
  flex-shrink: 0;
}

.drawer-close:hover {
  color: var(--white);
}

.drawer-body {
  padding: 0.6rem 0;
  flex: 1;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.72rem 1.25rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  cursor: pointer;
  transition: var(--ease);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.drawer-link:hover,
.drawer-link.acc-open {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.drawer-link .chev {
  width: 13px;
  height: 13px;
  transition: transform 0.25s;
  flex-shrink: 0;
}

.drawer-link.acc-open .chev {
  transform: rotate(180deg);
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
  transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.acc-body.open {
  max-height: 700px;
}

.acc-body a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.58rem 1.25rem 0.58rem 1.8rem;
  font-size: 0.77rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: var(--ease);
}

.acc-body a:hover {
  color: var(--orange);
}

.acc-body a svg {
  width: 13px;
  height: 13px;
  color: var(--orange);
  flex-shrink: 0;
}

.drawer-foot {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: var(--ease);
}

.drawer-cta.primary {
  background: var(--orange);
  color: var(--white);
}

.drawer-cta.primary svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.drawer-cta.primary:hover {
  background: var(--orange-dark);
  color: var(--white);
}

.drawer-cta.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.drawer-cta.secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

@media (max-width: 1080px) {
  #bn-nav,
  .bn-cta {
    display: none;
  }

  .bn-burger {
    display: flex;
  }
}

@media (max-width: 782px) {
  body.admin-bar #bn-header {
    top: 46px;
  }
}

/* @media (max-width: 600px) {
  #bn-topbar {
    padding: 0 1rem;
    font-size: 0.71rem;
  } */
   
 @media (max-width: 600px) {
  #bn-topbar {
  display: none !important;
  }

  #bn-header {
    padding: 0 1rem;
  }
}
