/* ==========================================
   HEADER DESIGN SYSTEM
   Pixel-perfect header layout matching MCSUL spec
========================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    font-family: "Poppins";
    -webkit-font-smoothing: antialiased;
}

.header-container {  width: 100%;  max-width: 1240px;  margin: 0 auto;  padding: 0 32px;  display: flex;  align-items: center;  justify-content: space-between;  height: 100%; }


/* ==========================================
   TOP BAR (DARK BLUE)
========================================== */

.header-topbar {  background: #1F4E79;  height: 44px;  display: flex;  align-items: center;  border-bottom: 1px solid rgba(255, 255, 255, 0.08);  font-size: 13.5px;  transition: margin-top 0.3s ease; }

/* Smooth top bar collapse on scroll */
.site-header.scrolled .header-topbar { margin-top: -44px; }

.header-email a { color: #9FC0E0; text-decoration: none; font-weight: 500; font-size: 13px; letter-spacing: 0.01em; transition: color 0.15s ease; }

.header-email a:hover {  color: #ffffff; }

.header-top-navigation {  display: flex;  align-items: center;  gap: 24px; }

.header-top-menu {  display: flex;  list-style: none;  margin: 0;  padding: 0;  gap: 24px;  align-items: center; }

.header-top-menu li { margin: 0; padding: 0; }

.header-top-menu li a { color: #9FC0E0; text-decoration: none; font-size: 13px; font-weight: 500; transition: color 0.15s ease; }

.header-top-menu li a:hover { color: #ffffff; }


/* ==========================================
   CUSTOMER LOGIN BUTTON
========================================== */

.customer-login-button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, 0.35); background-color: rgba(255, 255, 255, 0.12); border-radius: 6px; color: #ffffff; text-decoration: none; font-weight: 600; font-size: 13px; line-height: 1; margin-left: 8px; transition: background-color 0.2s ease, border-color 0.2s ease; }

.customer-login-button:hover {  background-color: rgba(255, 255, 255, 0.22);  border-color: rgba(255, 255, 255, 0.6);  color: #ffffff; }

.customer-login-icon {  display: inline-flex;  align-items: center;  justify-content: center;  color: #ffffff; }


/* ==========================================
   MAIN HEADER (WHITE BAR)
========================================== */

.header-main {  background: #ffffff;  height: 76px;  display: flex;  align-items: center;  border-bottom: 1px solid #e2e8f0;  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03); }

.header-logo a {  display: flex; align-items: center;  text-decoration: none; }

.header-logo img {  display: block;  width: auto;  max-height: 44px;  height: auto; }

.site-title { font-size: 24px; font-weight: 600; color: #1b4d70; letter-spacing: -0.02em; }


/* ==========================================
   MAIN NAVIGATION
========================================== */

.main-navigation { display: flex; align-items: center; margin-left: auto; margin-right: 28px; }

.primary-menu {  display: flex;  list-style: none;  margin: 0;  padding: 0;  gap: 32px;  align-items: center; }

.primary-menu li { margin: 0; padding: 0; }

.primary-menu li a {  color: #333333;  font-size: 15px;  font-weight: 600;  text-decoration: none; letter-spacing: -0.01em;  transition: color 0.15s ease; }

.primary-menu li a:hover { color: #1F4E79; }


/* ==========================================
   HEADER ACTIONS & BUTTONS
========================================== */

.header-actions { display: flex; align-items: center; gap: 12px; }

/* SCM BioLab / PTS Button */
.header-biolab-button {  display: inline-flex;  align-items: center;  gap: 8px;  padding: 9px 18px;  border: 1px solid #BAD2E9;  border-radius: 6px;  background-color: #E8F1F9;  color: #1F4E79;  text-decoration: none; font-size: 15px; font-weight: 500; line-height: 100%;}

.header-biolab-button:hover {  border-color: #1F4E79;  }

.biolab-icon { display: inline-flex; align-items: center; justify-content: center; color: #2E75B6; }

/* Request Custom Solution Button */
.header-custom-solution-button { display: inline-flex; align-items: center; padding: 11px 20px; border-radius: 6px; background-color: #2E75B6; color: #ffffff; text-decoration: none; font-size: 15px; font-weight: 500; line-height: 100%; box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12); }

.header-custom-solution-button:hover { background-color: #2E75B6; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22); }


/* ==========================================
   MOBILE MENU TOGGLE
========================================== */

.mobile-menu-toggle { display: none; flex-direction: column; justify-content: space-between; width: 22px; height: 16px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1001; }

.mobile-menu-toggle span { display: block; width: 100%; height: 2px; background-color: #1e293b; border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }


/* ==========================================
   TABLET & RESPONSIVE OVERRIDES
========================================== */

@media (max-width: 1024px) {
    .header-container {  padding: 0 20px;  }

    .primary-menu {  gap: 20px; }

    .main-navigation {  margin-right: 16px; }

    .header-biolab-button {  padding: 8px 14px;  font-size: 13.5px; }

    .header-custom-solution-button {  padding: 8px 16px;  font-size: 13.5px;  }
}


/* ==========================================
   MOBILE RESPONSIVENESS (<= 768px)
========================================== */

@media (max-width: 768px) {

    .header-topbar { display: none !important; }

    /* Header Main Adjustments */
    .header-main { height: 64px;   }

    .header-logo img { max-height: 38px; }

    /* Display Hamburger Toggle */
    .mobile-menu-toggle { display: flex;  }

    /* Slide-out Menu styling */
	.main-navigation {   position: fixed;   /* Calculate top position to sit under top bar (varies by scroll) */   top: 64px;   left: 0;   width: 100%;   height: calc(100vh - 64px);   background-color: #ffffff;   padding: 30px; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), top 0.3s ease, height 0.3s ease; box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12); z-index: 999; margin-right: 0;    /* FIX: Stack items vertically inside the drawer */   display: flex;   flex-direction: column;   justify-content: flex-start;   align-items: stretch;   overflow-y: auto;
    }

    /* When scrolled, topbar goes away, move drawer up */
    .site-header.scrolled .main-navigation { top: 64px; height: calc(100vh - 64px); }

    .main-navigation.is-active { transform: translateX(0);  }

    /* Primary Menu inside Drawer */
    .primary-menu {   flex-direction: column;   gap: 24px;   align-items: flex-start;   width: 100%; }

    .primary-menu li { width: 100%; border-bottom: 1px solid #f1f5f9; padding-bottom: 14px; }

    .primary-menu li a { font-size: 18px; display: block; width: 100%;  }

    /* Hide desktop CTA buttons from main bar */
    .header-actions { display: none; }

    /* Show CTA actions inside mobile drawer */
    .main-navigation .mobile-header-actions {  display: flex;  flex-direction: column;  gap: 14px;  margin-top: 36px;  border-top: 1px solid #e2e8f0;  padding-top: 24px;  width: 100%; }

    .main-navigation .mobile-header-actions a { display: inline-flex; width: 100%; justify-content: center; box-sizing: border-box; }

    /* Hamburger Animation */
    .mobile-menu-toggle.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

body.mobile-menu-open { overflow: hidden; }

.mobile-header-actions { display: none; }
.mobile-top-actions { display: none; }

/* Hide mobile drawer actions on Desktop/Tablet */
@media (min-width: 769px) {
    .mobile-header-actions,
    .mobile-top-actions {
        display: none !important;
    }
}

/* Show mobile drawer actions inside drawer on Mobile */
@media (max-width: 768px) {
    .mobile-header-actions {  display: flex;  flex-direction: column;   gap: 14px;  margin-top: 36px;  border-top: 1px solid #e2e8f0;  padding-top: 24px;  width: 100%;   }

    .mobile-top-actions {  display: flex;  flex-direction: column;  gap: 16px;  margin-top: 32px; border-top: 1px dashed #cbd5e1;  padding-top: 24px;  width: 100%;  }

    .mobile-top-actions .header-email-mobile a { color: #475569; font-size: 15px; text-decoration: none; }

    .header-top-menu-mobile { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px;  }

    .header-top-menu-mobile li a { color: #475569; font-size: 15px; font-weight: 600; text-decoration: none; }

    .customer-login-button-mobile {  display: inline-flex;  align-items: center; justify-content: center; padding: 10px 16px; border-radius: 6px; background-color: #1b4d70; color: #ffffff;  text-decoration: none;  font-size: 14px; font-weight: 700;  margin-top: 8px;  text-align: center;  width: 100%;  box-sizing: border-box;  }
}
