/* ============================================================
   NAV — U.S. Customs Portal
   ============================================================ */

/* Gov Banner */
.cbp-gov-banner {
  background: var(--cbp-navy-dark);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  padding: 0.45rem 0;
  letter-spacing: 0.01em;
}

/* Header */
.cbp-header {
  background: var(--cbp-navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.25s ease;
}
.cbp-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.cbp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

/* Logo */
.cbp-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}
.cbp-logo-img {
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.cbp-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cbp-logo-text {
  display: flex;
  flex-direction: column;
}
.cbp-logo-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.cbp-logo-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 400;
}

/* Desktop Nav */
.cbp-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.cbp-nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition:
    background 0.2s,
    color 0.2s;
  white-space: nowrap;
}
.cbp-nav-link i {
  font-size: 0.8rem;
  opacity: 0.75;
}
.cbp-nav-link:hover,
.cbp-nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.cbp-nav-link.active {
  border-bottom: 2px solid var(--cbp-gold);
}

/* Hamburger */
.cbp-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  transition: background 0.2s;
}
.cbp-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform 0.25s,
    opacity 0.25s;
}
.cbp-hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}
.cbp-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.cbp-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.cbp-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.cbp-mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--cbp-navy-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0;
}
.cbp-mobile-nav.open {
  display: flex;
}

.cbp-mobile-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition:
    background 0.2s,
    color 0.2s;
}
.cbp-mobile-link i {
  font-size: 0.85rem;
  opacity: 0.7;
}
.cbp-mobile-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

@media (max-width: 900px) {
  .cbp-nav {
    display: none;
  }
  .cbp-hamburger {
    display: flex;
  }
  .cbp-logo-title {
    font-size: 0.85rem;
  }
  .cbp-logo-sub {
    display: none;
  }
}
