/* ============================================================
   header.css — BNZBA Digital Pulse Check POC
   Owns all header styles. Swap this file to rebrand.
   ============================================================ */

.site-header {
  background: #ffffff;
  border-bottom: 3px solid #00A8CC;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ── ROW 1: hamburger + BNZBA · title · PHILPIN ── */
.header-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 0;
}

.header-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.header-centre {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: visible;
}

/* Hamburger button */
.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 6px 2px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex-shrink: 0;
}
.hamburger-btn span {
  display: block;
  width: 28px;
  height: 4px;
  border-radius: 2px;
  transition: background 200ms;
}
.hamburger-btn span:nth-child(1) { background: #C8102E; }
.hamburger-btn span:nth-child(2) { background: #012169; }
.hamburger-btn span:nth-child(3) { background: #C8102E; }
.hamburger-btn:hover span:nth-child(1) { background: #012169; }
.hamburger-btn:hover span:nth-child(2) { background: #C8102E; }
.hamburger-btn:hover span:nth-child(3) { background: #012169; }

/* BNZBA logo */
.logo-bnzba {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 200ms;
}
.logo-bnzba:hover { opacity: 1; }

/* Right-hand header logo (BHC or builder) */
.logo-philpin-header {
  height: 68px;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 200ms;
}
.logo-philpin-header:hover { opacity: 1; }

.logo-app-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  flex-shrink: 0;
}

.logo-app-wrapper::before,
.logo-app-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.logo-app-wrapper::before {
  left: -100px;
  background: linear-gradient(to right, #ffffff 0%, #3d75c2 100%);
}

.logo-app-wrapper::after {
  right: -100px;
  background: linear-gradient(to left, #ffffff 0%, #3d75c2 100%);
}

.logo-app-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3d75c2;
  padding: 4px 12px;
  height: 100%;
  border-radius: 0;
  position: relative;
  z-index: 1;
}

.logo-app-header {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.logo-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #2C4A6E;
  text-align: center;
  line-height: 1.2;
}

/* ── ROW 2: yellow attribution bar ── */
.header-sub {
  background: #fff8e8;
  border-top: 1px solid #f0dfa0;
  padding: 10px 0 12px;
}

.header-sub-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
  font-size: 11px;
  color: #996600;
  font-family: 'IBM Plex Mono', monospace;
}

.header-sub-left  { display: flex; align-items: center; flex-shrink: 0; }
.header-sub-centre { text-align: center; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.header-sub-right { display: flex; align-items: center; justify-content: flex-end; flex-shrink: 0; }

.logo-builder-inline {
  height: 22px;
  width: auto;
  vertical-align: middle;
  display: block;
  opacity: 0.85;
}

.header-sub-divider { color: #f0c060; }

.test-btn {
  background: #e8a000;
  color: #fff;
  border: none;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.test-btn:hover { background: #cc8e00; }

/* ── HAMBURGER MENU DRAWER ── */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 200;
}
.menu-overlay.open { display: block; }

.menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: #ffffff;
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-drawer.open { transform: translateX(0); }

.menu-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: #2C4A6E;
  border-bottom: 2px solid #00A8CC;
  flex-shrink: 0;
}
.menu-drawer-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}
.menu-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  padding: 2px 6px;
  opacity: 0.8;
  line-height: 1;
}
.menu-close-btn:hover { opacity: 1; }

.menu-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.menu-section-label {
  font-size: 9px;
  font-family: 'IBM Plex Mono', monospace;
  color: #aaa;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 20px 6px;
}
.menu-section-label:first-child { padding-top: 8px; }

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #2C4A6E;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 150ms;
  border-bottom: 1px solid #f5f5f5;
}
.menu-item:hover { background: #f0f7fa; color: #00A8CC; }
.menu-item.active { background: #e8f4f8; color: #00A8CC; }
.menu-item-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.menu-item-soon {
  margin-left: auto;
  font-size: 9px;
  font-family: 'IBM Plex Mono', monospace;
  color: #aaa;
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.menu-footer {
  padding: 16px 20px;
  border-top: 1px solid #eee;
  font-size: 11px;
  color: #bbb;
  font-family: 'IBM Plex Mono', monospace;
  text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .header-main { padding: 10px 16px; }
  .logo-bnzba { height: 48px; }
  .logo-philpin-header { height: 28px; }
  .header-title { font-size: 15px; }
}

@media (max-width: 480px) {
  .header-main { padding: 8px 12px; }
  .logo-bnzba { height: 36px; }
  .logo-philpin-header { height: 22px; }
  .header-sub { font-size: 10px; gap: 6px; flex-wrap: wrap; justify-content: center; }
  .header-title { font-size: 13px; }
}
