/* White paper hero, "Image cover" style (templates/partials/whitepaper-hero-cover.twig). */

/* The landing template normally hides the white paper header until you scroll past a
   full-screen hero; this hero is shorter, so keep the header visible. */
body:has(.wp-hero-cover) .navbar-whitepaper {
  opacity: 1 !important;
  visibility: visible !important;
}

.wp-hero-cover {
  --wp-hero-accent: #486A9D;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(26rem, 72vh, 44rem);
  margin-top: 4rem;                       /* fixed header, small screens */
  overflow: hidden;
  color: #fff;
  background: #1E1E1D;
  isolation: isolate;
}

/* Accent strip along the bottom edge, in the white paper's highlight color. */
.wp-hero-cover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: var(--wp-hero-accent);
}

.wp-hero-cover__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.wp-hero-cover__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.wp-hero-cover__media--top img { object-position: center top; }
.wp-hero-cover__media--bottom img { object-position: center bottom; }
.wp-hero-cover__media--left img { object-position: left center; }
.wp-hero-cover__media--right img { object-position: right center; }

/* Darken the lower left so white text always reads, whatever the photo. */
.wp-hero-cover__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(20, 20, 19, 0.88) 0%, rgba(20, 20, 19, 0.55) 38%, rgba(20, 20, 19, 0) 72%),
    linear-gradient(90deg, rgba(20, 20, 19, 0.45) 0%, rgba(20, 20, 19, 0) 60%);
}

.wp-hero-cover__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 6rem 1.5rem 3.25rem;
}

.wp-hero-cover__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-family: Graphik, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wp-hero-cover__eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 3px;
  background: var(--wp-hero-accent);
}

.wp-hero-cover__title {
  max-width: 16ch;
  margin: 0;
  font-family: Graphik, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}

.wp-hero-cover__subtitle {
  max-width: 34ch;
  margin: 1rem 0 0;
  font-family: Graphik, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(1.25rem, 2.3vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.9);
  text-wrap: balance;
}

.wp-hero-cover__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.wp-hero-cover__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  font-family: Graphik, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  color: #fff !important;
  text-decoration: none !important;
  transition: background-color 0.2s, border-color 0.2s;
}

.wp-hero-cover__btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.wp-hero-cover__btn--primary {
  background: var(--wp-hero-accent);
  border-color: var(--wp-hero-accent);
}

.wp-hero-cover__btn--primary:hover {
  background: var(--wp-hero-accent);
  border-color: #fff;
}

.wp-hero-cover__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* "Start reading" lands just below the fixed header. */
.wp-hero-cover__end {
  scroll-margin-top: 4rem;
}

@media (min-width: 768px) {
  .wp-hero-cover__inner {
    padding: 8rem 3rem 4.5rem;
  }
}

@media (min-width: 1024px) {
  .wp-hero-cover {
    margin-top: 5rem;
  }

  .wp-hero-cover__inner {
    padding: 8rem 4rem 5rem;
  }

  .wp-hero-cover__end {
    scroll-margin-top: 5rem;
  }
}

@media print {
  .wp-hero-cover {
    min-height: 0;
    margin-top: 0;
    color: #000;
    background: none;
  }

  .wp-hero-cover__media,
  .wp-hero-cover__shade,
  .wp-hero-cover::after,
  .wp-hero-cover__actions {
    display: none;
  }

  .wp-hero-cover__title,
  .wp-hero-cover__subtitle {
    color: #000;
  }
}
