/* ============================================================
   Biomarmedical — Header (.site-header)
   Sticky blur header, primary nav, burger toggle for mobile.
   Depends on: global.css (tokens).
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration) var(--ease),
              background var(--duration) var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  height: 78px;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}
.site-header__brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.site-header__wordmark {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 15px;
  color: var(--ink);
}
.site-header__wordmark i {
  font-style: normal;
  color: var(--biomar-green);
  margin: 0 2px;
}
.site-header__nav {
  display: flex;
  gap: var(--space-5);
  margin-left: var(--space-5);
}
.site-header__nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color var(--duration) var(--ease);
}
.site-header__nav a:hover { color: var(--biomar-green); text-decoration: none; }
.site-header__nav a.is-active { color: var(--biomar-green); }
.site-header__nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--biomar-green);
  border-radius: 1px;
}
.site-header__right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

.site-header__burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.site-header__burger:hover { background: var(--biomar-green-mint); border-color: var(--biomar-green-mint); }

/* ============================================================
   Header responsive
   ============================================================ */
@media (max-width: 880px) {
  .site-header__inner { height: 70px; }
  .site-header__brand img { width: 40px; height: 40px; }
  .site-header__nav { display: none; }
  .site-header__burger { display: inline-flex; }

  .site-header.is-open .site-header__nav {
    display: flex;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: var(--space-5) var(--gutter);
    gap: var(--space-4);
    margin-left: 0;
  }
}
