/* Header — independent of page templates */

.mhm-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--mhm-white);
  border-bottom: 1px solid rgba(14, 61, 50, 0.06);
}

.mhm-header__inner {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  min-height: var(--mhm-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mhm-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.mhm-logo-mark {
  display: block;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.mhm-logo__text {
  display: flex;
  flex-direction: column;
}

.mhm-logo__title {
  font-family: var(--mhm-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--mhm-green-deep);
  letter-spacing: -0.2px;
  line-height: 1.15;
}

.mhm-logo__tagline {
  margin-top: 3px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: #7a9189;
}

.mhm-nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mhm-nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--mhm-text);
}

.mhm-nav a:hover,
.mhm-nav a.is-active {
  color: var(--mhm-green-mid);
  font-weight: 700;
}

.mhm-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.mhm-social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #edf2f0;
  color: var(--mhm-green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.mhm-social:hover {
  background: #dfe7e4;
}

.mhm-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 10px 9px;
  cursor: pointer;
}

.mhm-menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--mhm-green-deep);
  border-radius: 2px;
}

.mhm-mobile-nav {
  display: none;
  padding: 8px 24px 24px;
  border-top: 1px solid var(--mhm-border);
  background: #fff;
}

.mhm-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mhm-mobile-nav a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  font-weight: 600;
  color: var(--mhm-green-deep);
  border-bottom: 1px solid var(--mhm-border);
}

.mhm-mobile-nav__cta {
  margin-top: 16px;
  width: 100%;
}

@media (max-width: 1024px) {
  .mhm-nav {
    display: none;
  }

  .mhm-header .mhm-btn--dark {
    display: none;
  }

  .mhm-menu-toggle {
    display: block;
  }

  .mhm-mobile-nav.is-open {
    display: block;
  }

  .mhm-header__inner {
    width: min(1280px, calc(100% - 32px));
    min-height: 72px;
  }
}

@media (max-width: 640px) {
  .mhm-logo__title {
    font-size: 15px;
  }

  .mhm-logo__tagline {
    font-size: 7.5px;
    letter-spacing: 1.1px;
  }
}
