/* ── General Hero ─────────────────────────────────────── */

/* Clears the fixed header — tracks --header-height so the two can't drift */
.general-hero__spacer {
  height: var(--header-height);
}

.general-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding-block: var(--space-2xl);
  overflow: hidden;
  background:
    radial-gradient(
      120% 140% at 15% 0%,
      rgba(171, 5, 52, 0.55) 0%,
      transparent 60%
    ),
    linear-gradient(135deg, #2a0511 0%, #1a0a0f 45%, var(--azcp-black) 100%);
}

/* ── Image variant ──
   Full-viewport, running under the fixed header the way the home hero does */
.general-hero--has-img {
  min-height: 100vh; /* fallback for browsers without svh */
  min-height: 100svh;
  padding-top: calc(var(--header-height) + var(--space-2xl));
  padding-bottom: var(--space-2xl);
  background: var(--azcp-black);
}

/* Don't let the admin bar push the page into a scroll */
.admin-bar .general-hero--has-img {
  min-height: calc(100vh - 32px);
  min-height: calc(100svh - 32px);
}

.general-hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.general-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Scrim — dark under the header, dark again at the base so the title and the
   accent line hold up over any photo */
.general-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      100% 90% at 50% 100%,
      rgba(143, 0, 34, 0.35) 0%,
      transparent 65%
    ),
    linear-gradient(
      to bottom,
      rgba(10, 10, 10, 0.85) 0%,
      rgba(10, 10, 10, 0.45) 45%,
      rgba(10, 10, 10, 0.8) 100%
    );
}

/* Thin red glow line at the bottom */
.general-hero__accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    to right,
    transparent,
    var(--cardinal-red),
    transparent
  );
  opacity: 0.9;
}

/* Content */
.general-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-inline: var(--azcp-gutter);
}

.general-hero__subtitle {
  font-family: var(--font-family);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cardinal-red-light);
  margin: 0 0 var(--space-sm);
}

.general-hero__title {
  font-family: "Arizona Cardinals", sans-serif;
  font-size: clamp(2.25rem, 6vw, 3.7rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.05;

  /* Subtle text shadow for legibility over any image */
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);

  margin: 0;
}

.general-hero__title span {
  display: block;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .general-hero {
    min-height: 200px;
    padding-block: var(--space-xl);
  }

  .general-hero--has-img {
    padding-top: calc(var(--header-height) + var(--space-xl));
    padding-bottom: var(--space-xl);
  }

  .admin-bar .general-hero--has-img {
    min-height: calc(100vh - 46px);
    min-height: calc(100svh - 46px);
  }
}

@media (max-width: 480px) {
  .general-hero--has-img {
    padding-top: calc(var(--header-height) + var(--space-lg));
  }
  .general-hero__title {
    font-size: 1.75rem;
  }
}
