/* Solution pages — header matches About sizes/positions; color variant for dark hero */

.about-header--on-hero {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--header-height);
  padding: 0.8rem 2.05rem;
  color: var(--white);
  background: transparent;
}

.about-header--on-hero .about-header__menu-btn,
.about-header--on-hero .about-header__menu-close {
  display: none;
}

.about-header--on-hero .about-header__menu-icon {
  display: block;
  width: 100%;
  height: 100%;
}

.about-header--on-hero .about-header__logo {
  margin-right: 0;
}

.about-header--on-hero .about-header__right {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.about-header--on-hero .about-header__about,
.about-header--on-hero .about-header__contact,
.about-header--on-hero .about-header__search {
  align-self: center;
}

.about-header--on-hero .about-header__nav {
  display: flex;
  flex: 1;
  min-width: 0;
}

.about-header--on-hero .about-header__nav-list {
  display: flex;
  flex-wrap: nowrap;
  margin-left: 4rem;
  list-style: none;
  min-width: 0;
}

.about-header--on-hero .about-header__nav-item {
  position: relative;
  flex-shrink: 0;
}

.about-header--on-hero .about-header__nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background-color: currentcolor;
  opacity: 0.2;
}

.about-header--on-hero .about-header__nav-item:last-child::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background-color: currentcolor;
  opacity: 0.2;
}

.about-header--on-hero .about-header__nav-link {
  display: block;
  padding: 0.55rem 2.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: normal;
  white-space: nowrap;
  transition: opacity 0.3s ease-out;
}

.about-header--on-hero .about-header__nav-link:hover {
  opacity: 0.7;
}

.about-header--on-hero .about-header__nav-link.is-active span {
  position: relative;
}

.about-header--on-hero .about-header__nav-link.is-active span::before {
  content: "";
  position: absolute;
  bottom: -0.15rem;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentcolor;
}

.about-header--on-hero .about-header__nav-mobile {
  display: none;
}

.about-header--on-hero .about-header__about {
  display: block;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: normal;
  white-space: nowrap;
}

.about-header--on-hero .about-header__contact {
  width: 9rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50rem;
  font-family: var(--font-grotzec);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  background: transparent;
  color: inherit;
  transition: opacity 0.3s ease-out, border-color 0.3s ease-out;
}

.about-header--on-hero .about-header__contact:hover {
  border-color: rgba(255, 255, 255, 0.9);
}

.about-header--on-hero .about-header__contact--mobile {
  width: auto;
  padding: 0.25rem 1.25rem;
  font-size: 0.8rem;
  line-height: 1.75;
}

.about-header--on-hero .about-header__search {
  --size: 1.45rem;
  display: block;
  flex-shrink: 0;
  width: var(--size);
  height: var(--size);
  transition: opacity 0.3s ease-out;
}

.about-header--on-hero .about-header__search:hover {
  opacity: 0.7;
}

.about-header--on-hero .about-header__search svg {
  width: 100%;
  height: 100%;
}

@media only screen and (max-width: 1023px) {
  .about-header--on-hero {
    position: fixed;
    top: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 0.7rem 0.9rem var(--container-padding);
    background: var(--black-6);
    color: var(--white);
  }

  .about-header--on-hero .about-header__menu-btn {
    position: relative;
    z-index: 2;
    display: block;
    width: 0.9rem;
    height: 0.7rem;
    grid-column: 1;
    grid-row: 1;
  }

  .about-header--on-hero .about-header__logo {
    justify-self: center;
    grid-column: 2;
    grid-row: 1;
    width: 7rem;
  }

  .about-header--on-hero .about-header__nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    opacity: 0;
    background-color: var(--black-6);
    padding: 0.5rem var(--container-padding) 2rem;
    transition: opacity 0.3s ease-out;
    color: var(--white);
    pointer-events: none;
    z-index: 20;
  }

  .about-header--on-hero.is-open .about-header__nav {
    opacity: 1;
    pointer-events: all;
  }

  .about-header--on-hero .about-header__menu-close {
    --size: 1.25rem;
    align-self: flex-start;
    display: block;
    width: var(--size);
    height: var(--size);
    margin-bottom: 3.55rem;
    transform: translate(-0.2rem, 0.5rem);
  }

  .about-header--on-hero .about-header__nav-list {
    flex-direction: column;
    margin-left: 0;
    margin-bottom: auto;
  }

  .about-header--on-hero .about-header__nav-item::before,
  .about-header--on-hero .about-header__nav-item:last-child::after {
    content: none;
  }

  .about-header--on-hero .about-header__nav-link {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    padding: 0;
    font-family: var(--font-grotzec);
    font-weight: 600;
    font-size: 2rem;
    line-height: 1.6;
    letter-spacing: -0.04rem;
    white-space: normal;
  }

  .about-header--on-hero .about-header__nav-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.375;
    letter-spacing: -0.02rem;
  }

  .about-header--on-hero .about-header__right {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    gap: 0;
    margin-left: 0;
  }

  .about-header--on-hero .about-header__about,
  .about-header--on-hero .about-header__right .about-header__contact {
    display: none;
  }

  .about-header--on-hero .about-header__search {
    margin-right: 0;
  }
}
