/**
 * Shared inside-page hero ("Page Header", Figma 548:4786).
 *
 * Used by pages, the blog archive, and the brands archive.
 *
 * @package Atsko
 */

.page-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--atsko-blue-highlight);
  padding: 4.5rem 0;
}

/* Figma BG Shape: 1310x582 at left 290px / top -239px on the 1600px artboard. */
.page-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: 18.125%;
  top: -239px;
  width: 81.875%;
  height: 582px;
  background: url("../images/hero-angle.svg") no-repeat center / 100% 100%;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.page-hero__main {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 49.1875rem;
}

.page-hero__eyebrow {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--atsko-link-light);
}

.page-hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 0.92;
  color: var(--atsko-white);
}

.page-hero__intro {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.2;
  color: var(--atsko-white);
}

/* Stacked variant: intro sits under the title. */
.page-hero__main .page-hero__intro {
  margin-top: 0.25rem;
  max-width: 31rem;
}

/* Split variant: intro sits beside the title behind a vertical rule. */
.page-hero__aside {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 2rem;
  flex: 0 1 auto;
}

.page-hero__rule {
  align-self: stretch;
  width: 1px;
  flex: 0 0 1px;
  background: rgba(255, 255, 255, 0.6);
}

.page-hero__aside .page-hero__intro {
  max-width: 31.25rem;
}

@media (max-width: 1100px) {
  .page-hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .page-hero__main {
    max-width: none;
  }

  .page-hero__aside {
    align-self: stretch;
    gap: 1.25rem;
  }

  .page-hero__aside .page-hero__intro {
    max-width: 40rem;
  }
}

@media (max-width: 700px) {
  .page-hero {
    padding: 3rem 0;
  }

  .page-hero__rule {
    display: none;
  }
}
