/**
 * Reusable Hero banner block (block_content bundle `hero`).
 *
 * Renders through the existing .mooseu-hero contract in mooseu-brand.css
 * but overrides the background, because the old watercolor banner image
 * (sites/default/files/2025-06/mooseu-hero-watercolor-banner.png) no
 * longer exists. The .mooseu-hero--block variant carries its own brand
 * gradient so the hero is self-contained and needs no uploaded asset.
 * Swap the content at /admin/content/block; drop an image on the block
 * to show a visual alongside the text.
 */

.mooseu-hero--block {
  background: linear-gradient(125deg, var(--moose-blue) 0%, var(--moose-teal) 100%) !important;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 3.2rem 2.8rem !important;
}

/* Soft brand-yellow glow in the corner for depth. */
.mooseu-hero--block::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(246, 194, 68, 0.38) 0%, rgba(246, 194, 68, 0) 70%);
  pointer-events: none;
}

.mooseu-hero--block .mooseu-hero-inner {
  position: relative;
  z-index: 1;
}

.mooseu-hero--block .mooseu-hero-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--moose-yellow);
  margin-bottom: 0.7rem;
}

.mooseu-hero--block .mooseu-hero-content h1 {
  color: #fff;
  font-size: 2.6rem;
  line-height: 1.12;
  margin-bottom: 0.45em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.mooseu-hero--block .mooseu-hero-subheadline {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.28rem;
  font-weight: 500;
  max-width: 46rem;
}

.mooseu-hero--block .mooseu-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem 1.6rem;
  margin-top: 1.4rem;
}

/* CTA flips to brand yellow on the gradient for maximum contrast.
   !important guards against the base .mooseu-button-block .btn blue and
   any Bootstrap .btn background coming from the Solo base theme. */
.mooseu-hero--block .mooseu-button-block .btn {
  background: var(--moose-yellow) !important;
  color: var(--moose-blue) !important;
  border: none !important;
}

.mooseu-hero--block .mooseu-button-block .btn:hover {
  background: #fff !important;
  color: var(--moose-blue) !important;
}

/* Secondary action is a quiet underlined link. */
.mooseu-hero--block .mooseu-hero-link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mooseu-hero--block .mooseu-hero-link:hover {
  color: var(--moose-yellow);
}

/* Optional image sits to the left, framed to match brand cards. */
.mooseu-hero--block .mooseu-hero-logo img {
  max-height: 190px;
  border-radius: 1rem;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}

@media (max-width: 900px) {
  .mooseu-hero--block {
    padding: 2.2rem 1.4rem !important;
    text-align: center;
  }
  .mooseu-hero--block .mooseu-hero-content h1 {
    font-size: 2rem;
  }
  .mooseu-hero--block .mooseu-hero-subheadline {
    font-size: 1.12rem;
    margin-left: auto;
    margin-right: auto;
  }
}
