/* ==========================================================================
   header.css  -  HEADER (top menu)
   Used by every page through /partials/header.html.
   ========================================================================== */

.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  background: color-mix(in srgb, var(--navy) 42%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hdr-in {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  display: block;
  background: var(--accent);
  color: var(--navy);
  line-height: 0;
  padding: 7px 11px 9px;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 80% 100%, 0 100%);
}
/* The official logo (images/logo-oxp.svg, navy) sits on the cyan block. Change the height to make it bigger / smaller. */
.logo-img {
  display: block;
  height: 26px;
  width: auto;
}
.logo-word {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: .16em;
  font-size: 19px;
}
.nav {
  display: flex;
  gap: 34px;
  margin-left: auto;
}
.nl {
  position: relative;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 8px 0;
}
.nl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nl:hover::after, .nl.on::after { transform: scaleX(1); }
.burger {
  display: none;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--ice);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mnav {
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  background: color-mix(in srgb, var(--navy) 97%, transparent);
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding: 12px 32px 28px;
  display: flex;
  flex-direction: column;
}
.mnav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  font-size: 34px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mnav a.on { color: var(--accent); }
@keyframes hdrsolid {
  to {
    background: color-mix(in srgb, var(--navy) 94%, transparent);
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
  }
}
@supports (animation-timeline: scroll()) {
  .hdr {
    animation: hdrsolid linear both;
    animation-timeline: scroll();
    animation-range: 0 220px;
  }
}

/* ---------- Tablet / phone adjustments ---------- */
@media (max-width: 1100px) {
  .nav { gap: 22px; }
}
@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: flex; }
  .btn-sm { margin-left: auto; }
}
@media (max-width: 760px) {
  .hdr-in { gap: 12px; }
  .logo-word { display: none; }
  .mnav { padding: 12px 20px 28px; }
}
