/* ============================================================
   SPT LP – Hero banner
   ============================================================ */
.spt-hero {
  --spt-hero-tint: #D40F7D;
  --spt-hero-min-h: 620px;
  --spt-hero-max-w: 1140px;
  position: relative;
  isolation: isolate;
  z-index: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: var(--spt-hero-min-h);
  background-color: var(--spt-hero-tint);
  color: #fff;
  font-family: inherit;
}

/* ---------- media layers ---------- */
.spt-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.spt-hero__bg,
.spt-hero__slide--tinted {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(1.08) contrast(1.05);
}

.spt-hero__bg { filter: grayscale(1) brightness(1.1) blur(2px); transform: scale(1.03); }

/* Tint: multiply the brand colour over the greyscale photo = duotone */
.spt-hero__tint {
  position: absolute;
  inset: 0;
  background: var(--spt-hero-tint);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* If a browser can't blend, fall back to a see-through tint rather than a solid block */
@supports not (mix-blend-mode: multiply) {
  .spt-hero__tint { opacity: .7; }
}

/* Soft shade behind the text so white copy always passes contrast */
.spt-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .12) 45%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

/* ---------- rotating slides ---------- */
.spt-hero__slide {
  opacity: 0;
  transition: opacity 1.2s ease;
}
.spt-hero__slide.is-active { opacity: 1; }

/* ---------- layout ---------- */
.spt-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--spt-hero-max-w);
  margin: 0 auto;
  padding: 96px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  box-sizing: border-box;
}

.spt-hero--bubble .spt-hero__inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.spt-hero__content { max-width: 520px; }

.spt-hero__heading {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.25rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.spt-hero__sub {
  margin: 0 0 12px;
  font-size: clamp(1.125rem, 1rem + .4vw, 1.375rem);
  line-height: 1.35;
  font-weight: 300;
}

.spt-hero__tagline {
  margin: 0 0 24px;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  font-weight: 300;
}

/* ---------- buttons ---------- */
.spt-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.spt-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 26px;
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.spt-hero__btn--primary { background: #fff; color: var(--spt-hero-tint); }
.spt-hero__btn--primary:hover,
.spt-hero__btn--primary:focus-visible { background: transparent; color: #fff; }

.spt-hero__btn--secondary { background: transparent; color: #fff; }
.spt-hero__btn--secondary:hover,
.spt-hero__btn--secondary:focus-visible { background: #fff; color: var(--spt-hero-tint); }

.spt-hero__btn:hover { transform: translateY(-1px); text-decoration: none; }
.spt-hero__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---------- bubble variant ---------- */
.spt-hero__bubble {
  position: relative;
  justify-self: end;
  width: min(100%, 460px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
  background: rgba(255, 255, 255, .15);
}
.spt-hero__bubble .spt-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .spt-hero--bubble .spt-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .spt-hero__bubble { justify-self: center; width: min(78vw, 360px); order: -1; }
}

@media (max-width: 767px) {
  .spt-hero { min-height: 0; }
  .spt-hero__inner { padding: 64px 20px; gap: 32px; }
  .spt-hero--fullbleed .spt-hero__inner { padding-top: 55vw; }
  /* keep faces in shot on narrow screens (overrides the focal-point field) */
  .spt-hero--fullbleed .spt-hero__slide { object-position: 68% 15% !important; }
  .spt-hero--fullbleed .spt-hero__media::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, .35) 100%);
  }
  .spt-hero__sub { margin-bottom: 10px; }
  .spt-hero__btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .spt-hero__slide { transition: none; }
  .spt-hero__btn { transition: none; }
}

/* Wide screens: let the banner grow a little with the viewport so tall portraits
   aren't cropped as hard top and bottom */
@media (min-width: 1440px) {
  .spt-hero { min-height: max(var(--spt-hero-min-h), 34vw); }
}

/* Spacing between subheading and tagline – stronger selectors so theme
   paragraph styles (e.g. p { margin-bottom: 20px }) can't override them */
.spt-hero .spt-hero__content p.spt-hero__sub {
  margin: 0 0 12px !important;
  padding: 0 !important;
}
.spt-hero .spt-hero__content p.spt-hero__tagline {
  margin: 0 0 24px !important;
  padding: 0 !important;
}
@media (max-width: 767px) {
  .spt-hero .spt-hero__content p.spt-hero__sub { margin-bottom: 10px !important; }
}