/* ==========================================================================
   MBH — header.css
   Sticky header: transparent over the hero, solid green once scrolled
   ========================================================================== */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: height 0.45s var(--ease),
              background-color 0.45s var(--ease),
              border-color 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}

/* Inner pages open on a solid header */
.header--solid,
.header.is-stuck {
  height: var(--header-h-sm);
  background: var(--green-900);
  border-bottom-color: var(--line-dk);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.header__logo {
  flex: none;
  display: block;
  width: clamp(96px, 9vw, 118px);
  transition: width 0.45s var(--ease);
}

.header.is-stuck .header__logo { width: clamp(88px, 8vw, 104px); }

/* --------------------------------------------------------- nav */
.nav { display: none; }

@media (min-width: 1060px) {
  .nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 1.8vw, 28px);
    margin-left: auto;
  }
}

.nav__link {
  position: relative;
  padding-block: 6px;
  color: rgba(254, 254, 254, 0.82);
  font-size: 0.75rem;
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--paper); }

.nav__link:hover::after,
.nav__link[aria-current="page"]::after { width: 100%; }

.header__cta { display: none; }

@media (min-width: 1060px) {
  .header__cta { display: inline-flex; margin-left: 4px; padding: 10px 18px; font-size: 0.75rem; }
}

/* --------------------------------------------------------- burger */
.burger {
  display: grid;
  gap: 6px;
  width: 26px;
  margin-left: auto;
  padding: 6px 0;
}

@media (min-width: 1060px) { .burger { display: none; } }

.burger span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--paper);
  transition: transform 0.4s var(--ease), opacity 0.25s var(--ease);
}

.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* --------------------------------------------------------- mobile panel */
.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  background: var(--green-900);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease);
  overflow-y: auto;
}

.menu.is-open { clip-path: inset(0 0 0 0); }

@media (min-width: 1060px) { .menu { display: none; } }

.menu__list { display: grid; gap: 4px; }

.menu__link {
  display: block;
  padding-block: 12px;
  color: var(--paper);
  font-size: clamp(1.5rem, 7vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  opacity: 0;
  transform: translateY(22px);
}

.menu.is-open .menu__link {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}

.menu.is-open .menu__link:nth-child(1) { transition-delay: 0.16s; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: 0.22s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: 0.28s; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: 0.34s; }
.menu.is-open .menu__link:nth-child(5) { transition-delay: 0.40s; }
.menu.is-open .menu__link:nth-child(6) { transition-delay: 0.46s; }
.menu.is-open .menu__link:nth-child(7) { transition-delay: 0.52s; }

.menu__foot {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dk);
  display: grid;
  gap: 18px;
}

.menu__foot .btn { justify-content: center; }

.menu__contact {
  color: var(--muted-dk);
  font-size: var(--fs-small);
}

.menu__contact a { color: var(--paper); }
