/* =============================================================
   Fred Element: fred.hero  —  v2
   assets/fred/elements/hero/hero.css
   ============================================================= */

/* ── Shell ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
  color: #ffffff;
}

/* ── Height ────────────────────────────────────────────────── */
.hero--vh100 { min-height: 100vh; }
.hero--vh75  { min-height: 75vh; }
.hero--vh50  { min-height: 50vh; }

/* ── Width ─────────────────────────────────────────────────── */
.hero--full      { /* edge-to-edge, inner container constrains text */ }
.hero--contained {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0.75rem;
}

/* ── Background layer ──────────────────────────────────────── */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* picture / img from pictureSizes */
.hero-picture,
.hero__bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* MP4 video */
.hero__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* YouTube (via video-background lib) / Vimeo iframe */
.hero__bg-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;   /* maintain 16:9 covering full height */
  height: 56.25vw;   /* maintain 16:9 covering full width  */
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

/* Dark overlay — opacity set inline from slider */
.hero__overlay {
  position: absolute;
  inset: 0;
  background-color: #000;
}

/* ── Content layer ─────────────────────────────────────────── */
.hero__content-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/* ── Typography ────────────────────────────────────────────── */
.hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.75rem;
}

.hero__headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero__subheadline {
  opacity: 0.9;
  margin-bottom: 0;
}

/* ── CTA row ───────────────────────────────────────────────── */
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Alignment — driven by Bootstrap justify-content-* on the row,
   but we also nudge the CTA flex container to match */
.hero--left   .hero__ctas { justify-content: flex-start; }
.hero--center .hero__ctas { justify-content: center; }
.hero--right  .hero__ctas { justify-content: flex-end; }

/* ── Button styles ─────────────────────────────────────────── */
.hero__btn--solid,
.hero__btn--outline,
.hero__btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Solid */
.hero__btn--solid {
  background-color: var(--brand-primary, #0072BC);
  color: #ffffff;
  border: 2px solid var(--brand-primary, #0072BC);
}
.hero__btn--solid:hover {
  background-color: var(--brand-primary-dark, #005a96);
  border-color: var(--brand-primary-dark, #005a96);
  color: #ffffff;
}

/* Outline */
.hero__btn--outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}
.hero__btn--outline:hover {
  background-color: #ffffff;
  color: var(--brand-primary, #0072BC);
}

/* Ghost */
.hero__btn--ghost {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 2px solid transparent;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero__btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.28);
}

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .hero__content-wrap {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero--center .hero__ctas { align-items: center; }
  .hero--right  .hero__ctas { align-items: flex-end; }

  .hero__btn--solid,
  .hero__btn--outline,
  .hero__btn--ghost {
    width: 100%;
    max-width: 320px;
  }
}
