/* ============================================================
   header.css — eG Innovations IT Monitoring Diagnostic
   Owns all header styles. Local copy — edit freely, no longer
   shared with other apps. Copied from demo-shared-resources
   on 2026-09-03 as part of making this app self-contained.
   ============================================================ */

.site-header {
  background: #ffffff;
  border-bottom: 5px solid #EA1C2D;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* ── HEADER MAIN ROW: logo · autofill (centre) · title + hamburger ── */
.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;
  justify-self: start;
  gap: 10px;
  min-width: 0;
}

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

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

/* Hamburger button */
.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 6px;
  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: #111111; }
.hamburger-btn span:nth-child(2) { background: #111111; }
.hamburger-btn span:nth-child(3) { background: #111111; }
.hamburger-btn:hover span:nth-child(1) { background: #555555; }
.hamburger-btn:hover span:nth-child(2) { background: #555555; }
.hamburger-btn:hover span:nth-child(3) { background: #555555; }

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

/* eG Innovations lockup: round icon + navy wordmark (2026-09-03) */
.logo-eg-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-eg-icon {
  height: 36px;
  width: auto;
  display: block;
}
.logo-eg-word {
  height: 20px;
  width: auto;
  display: block;
}

/* Single combined org logo (2026-09-06) - used when only one logo asset
   exists (icon + wordmark together in one file) rather than the eG-style
   separate icon/wordmark pair above. Sized taller than .logo-bnzba since
   this lockup carries small tagline text underneath that needs to stay
   legible. */
.logo-org-single {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* 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%, #1C244B 100%);
}

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

.logo-app-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1C244B;
  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', 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 500;
  text-align: right;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.header-title-text {
  position: relative;
  top: 4px;
  color: #111111;
}
.header-title-accent {
  position: relative;
  top: 4px;
  color: #EA1C2D;
}
.reveal-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  overflow: visible;
}

.header-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #EA1C2D;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ── AUTOFILL BUTTON (moved to header centre, 2026-09-03) ── */
.test-btn {
  background: #EA1C2D;
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 40px;
  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: #B01522; }

/* ── 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: 96px;
  right: 16px;
  height: calc(100vh - 120px);
  width: 280px;
  max-width: 85vw;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(1,20,56,0.35), 0 4px 16px rgba(1,20,56,0.15);
  z-index: 201;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(calc(100% + 16px));
  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: #1C244B;
  border-bottom: 2px solid #EA1C2D;
  flex-shrink: 0;
}
.menu-drawer-title {
  font-family: 'Plus Jakarta Sans', 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-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1C244B;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 18px 20px 8px;
}
.menu-section-label:first-child { padding-top: 14px; }
.menu-section-divider {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 2px solid #EA1C2D;
}

.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: #1C244B;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 150ms;
  border-bottom: 1px solid #f5f5f5;
}
.menu-item:hover { background: #fef3e2; color: #EA1C2D; }
.menu-item.active { background: #fef3e2; color: #EA1C2D; }
.menu-item-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.menu-desc {
  padding: 4px 20px 14px;
  font-size: 12px;
  line-height: 1.55;
  color: #777;
  font-family: 'Inter', sans-serif;
}
.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;
  background: #1C244B;
  color: #ffffff;
  border-top: 2px solid #EA1C2D;
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  text-align: center;
}

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

@media (max-width: 480px) {
  .header-main { padding: 8px 12px; }
  .logo-bnzba { height: 36px; }
  .logo-org-single { height: 32px; }
  .logo-philpin-header { height: 22px; }
  .header-title { font-size: 13px; }
}
