/* Split Screen Grid header – Style 2 */

.mp-header--split {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--color-surface);
  border-bottom: 2px solid var(--color-text);
  box-shadow: none;
  backdrop-filter: none;
}

.mp-header__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-16);
  min-height: var(--header-height);
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.mp-header__brand {
  justify-self: start;
}

.mp-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-12);
  color: var(--color-text);
}

.mp-header__logo-link:hover,
.mp-header__logo-link:focus-visible {
  color: var(--color-text);
}

.mp-header__logo-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-mustard) 100%);
  box-shadow: var(--shadow-subtle);
}

.mp-header__logo-text {
  display: flex;
  flex-direction: column;
}

.mp-header__logo-title {
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mp-header__logo-subtitle {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
}

.mp-header__nav {
  justify-self: center;
}

.mp-header__nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-20);
  flex-wrap: wrap;
}

.mp-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0;
  transition: color var(--transition-base);
}

.mp-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.mp-header__nav-link:hover,
.mp-header__nav-link:focus-visible {
  color: var(--color-text);
}

.mp-header__nav-link:hover::after,
.mp-header__nav-link:focus-visible::after {
  width: 100%;
}

.mp-header__utilities {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

.mp-header__utility-link {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-forest);
  letter-spacing: 0.04em;
  transition: color var(--transition-base);
}

.mp-header__utility-link:hover,
.mp-header__utility-link:focus-visible {
  color: var(--color-link-hover);
}

.mp-header__cta {
  white-space: nowrap;
}

.mp-header__toggle {
  display: none;
  justify-self: end;
  border-color: var(--color-border-subtle);
  background: var(--color-surface);
}

.mp-header__toggle span {
  background-color: var(--color-text);
}

@media (max-width: 1023.98px) {
  :root {
    --header-height: 60px;
  }

  .mp-header__grid {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "brand utils toggle";
    gap: var(--space-8) var(--space-12);
    min-height: 60px;
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .mp-header__brand {
    grid-area: brand;
    min-width: 0;
  }

  .mp-header__logo-link {
    gap: var(--space-8);
    min-width: 0;
  }

  .mp-header__logo-mark {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .mp-header__logo-text {
    min-width: 0;
  }

  .mp-header__logo-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mp-header__logo-subtitle {
    display: none;
  }

  .mp-header__toggle {
    display: inline-flex;
    grid-area: toggle;
    flex-shrink: 0;
  }

  .mp-header__utilities {
    grid-area: utils;
    justify-self: end;
    padding-bottom: 0;
    gap: var(--space-8);
    flex-shrink: 0;
  }

  .mp-header__utility-link {
    display: none;
  }

  .mp-header__cta {
    padding: 0.45rem 0.9rem;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
  }

  .mp-header__nav {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 60;
    width: 100vw;
    margin-left: -50vw;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    background: var(--color-surface);
    border-bottom: 2px solid var(--color-text);
    box-shadow: var(--shadow-medium);
    transition: max-height var(--transition-slow), opacity var(--transition-base), visibility var(--transition-base);
  }

  .mp-header__nav--open {
    max-height: min(80vh, 520px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }

  .mp-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-8) var(--space-16) var(--space-16);
  }

  .mp-header__nav-link {
    display: block;
    padding: var(--space-12) 0;
    font-size: var(--font-size-md);
    border-bottom: 1px solid var(--color-border-subtle);
  }

  .mp-header__nav-item:last-child .mp-header__nav-link {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .mp-header__logo-mark {
    width: 28px;
    height: 28px;
  }

  .mp-header__cta {
    padding: 0.4rem 0.7rem;
    font-size: 0.6rem;
  }
}
