/*
 * Front-page hero – the stacked and cover layouts (partials/content-hero.php).
 * The original split layout keeps its Reactor styles (style.css, arx-fixes.css).
 * Colours and type follow the theme: Ubuntu headings, Open Sans text, red #A20014.
 */

.sp-hero {
  --sp-red: #A20014;
  --sp-red-dark: #7d0010;
  position: relative;
  /* Full width out of the page container. */
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
html { overflow-x: clip; } /* 100vw includes the scrollbar on some systems */

.sp-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.sp-hero__title {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
.sp-hero__title span { position: relative; white-space: nowrap; }
.sp-hero__title span::after {
  content: "";
  position: absolute;
  left: -2%;
  bottom: -0.12em;
  width: 104%;
  height: 0.09em;
  min-height: 4px;
  background: var(--sp-red);
}

.sp-hero__sub {
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.3rem);
  line-height: 1.55;
  margin: 1.4rem auto 0;
  max-width: 40em;
  text-wrap: balance;
}

.sp-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
  margin-top: 2.2rem;
}

.sp-btn {
  display: inline-block;
  padding: 0.85em 1.7em;
  font-family: "Ubuntu", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.sp-btn--primary { background: var(--sp-red); border-color: var(--sp-red); color: #fff; }
.sp-btn--primary:hover,
.sp-btn--primary:focus-visible { background: var(--sp-red-dark); border-color: var(--sp-red-dark); color: #fff; }
.sp-btn:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

/* ── Stacked: text above a framed image ─────────────────────────── */

.sp-hero--stacked { padding: clamp(3rem, 2rem + 4vw, 6rem) 0 0; }
.sp-hero--stacked .sp-hero__title { color: #000; }
.sp-hero--stacked .sp-hero__sub { color: #444; }
.sp-hero--stacked .sp-btn--secondary { border-color: #000; color: #000; }
.sp-hero--stacked .sp-btn--secondary:hover,
.sp-hero--stacked .sp-btn--secondary:focus-visible { background: #000; color: #fff; }
.sp-hero__frame {
  max-width: 1280px;
  margin: clamp(2.5rem, 2rem + 3vw, 4.5rem) auto 0;
  padding: 0 24px;
}
.sp-hero__frame .sp-hero__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 14px;
}

/* ── Cover: full-width image with the text on it ────────────────── */

.sp-hero--cover {
  display: flex;
  align-items: center;
  min-height: clamp(520px, 78vh, 820px);
  padding: 5rem 0;
  overflow: hidden;
  background: #111;
}
.sp-hero--cover .sp-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.sp-hero--cover::after { /* keeps the text readable on the busy auditorium */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .35) 70%),
    linear-gradient(to bottom, rgba(0, 0, 0, .25), rgba(0, 0, 0, .45));
}
.sp-hero--cover .sp-hero__inner { width: 100%; }
.sp-hero--cover .sp-hero__title,
.sp-hero--cover .sp-hero__sub { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.sp-hero--cover .sp-hero__title span::after { background: #d1102a; }
.sp-hero--cover .sp-btn--secondary { border-color: #fff; color: #fff; }
.sp-hero--cover .sp-btn--secondary:hover,
.sp-hero--cover .sp-btn--secondary:focus-visible { background: #fff; color: #000; }

/* ── The long intro text, just below the hero ───────────────────── */

.sp-hero-intro {
  max-width: 760px;
  margin: clamp(3rem, 2rem + 3vw, 5rem) auto;
  padding: 0 24px;
  text-align: center;
  font-size: 1.05em;
  color: #444;
}

@media (max-width: 480px) {
  .sp-hero__title span { white-space: normal; }
  .sp-hero__buttons { flex-direction: column; align-items: stretch; max-width: 320px; margin-inline: auto; }
  .sp-btn { text-align: center; }
  .sp-hero__frame .sp-hero__img { aspect-ratio: 4 / 3; border-radius: 10px; }
  .sp-hero--cover { min-height: 560px; }
}
