/* RLBC Regina — Unified Hero System (Phase 3)
   Template B: .rl-hero (interior photo hero)
   Template C: .rl-hero--simple (solid navy legal/simple hero)
   Zero !important declarations. */

.rl-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 520px;
  padding: 44px 0;
  background-color: var(--rl-navy, #062B33);
  color: #FFFFFF;
  box-sizing: border-box;
}

.rl-hero:not(.rl-hero--simple)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(6, 43, 51, 0.94) 0%,
    rgba(6, 43, 51, 0.80) 45%,
    rgba(6, 43, 51, 0.35) 100%
  );
  pointer-events: none;
}

.rl-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  pointer-events: none;
}

/* Per-page focal points so faces are not hidden behind the text column or cropped at top */
.rl-hero__media--about { object-position: 65% 38%; }
.rl-hero__media--beliefs { object-position: 60% 20%; }
.rl-hero__media--visit { object-position: 65% 35%; }
.rl-hero__media--sermons { object-position: 72% 18%; }
.rl-hero__media--ministries { object-position: 70% 25%; }
.rl-hero__media--events { object-position: 65% 32%; }
.rl-hero__media--give { object-position: 68% 35%; }
.rl-hero__media--contact { object-position: 60% 22%; }
.rl-hero__media--gallery { object-position: 80% 30%; }
.rl-hero__media--articles { object-position: 80% 50%; }

.rl-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1228px;
  margin-inline: auto;
  padding-inline: 20px;
  box-sizing: border-box;
  text-align: left;
}

.rl-hero .rl-eyebrow,
.rl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--rl-font, 'Ubuntu', system-ui, sans-serif);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rl-gold);
}

.rl-hero .rl-eyebrow::before,
.rl-eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 2px;
  background-color: var(--rl-gold);
  flex-shrink: 0;
}

main .rl-hero h1,
.rl-hero h1 {
  margin: 0 0 18px;
  max-width: 640px;
  font-family: var(--rl-font, 'Ubuntu', system-ui, sans-serif);
  font-size: 60px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  text-transform: none;
}

.rl-hero .rl-hl,
.rl-hl {
  color: var(--rl-gold);
  font-style: normal;
}

.rl-hero .rl-hero__lead,
.rl-hero__lead {
  margin: 0 0 26px;
  max-width: 560px;
  font-family: var(--rl-font, 'Ubuntu', system-ui, sans-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.rl-hero .rl-hero__lead:last-child,
.rl-hero__lead:last-child {
  margin-bottom: 0;
}

.rl-hero .rl-btn-group {
  margin: 0;
}

/* Template C: Simple Hero (Privacy, Terms, Accessibility) */
.rl-hero.rl-hero--simple,
.rl-hero--simple {
  min-height: 320px;
  padding: 48px 0;
  background: var(--rl-navy, #062B33);
}

main .rl-hero--simple h1,
.rl-hero--simple h1 {
  max-width: 780px;
}

.rl-hero .rl-hero__updated,
.rl-hero__updated {
  margin: 14px 0 0;
  font-family: var(--rl-font, 'Ubuntu', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

/* Tablet */
@media (max-width: 1100px) {
  .rl-hero {
    min-height: 460px;
    padding: 48px 0;
  }

  .rl-hero__inner {
    padding-inline: 16px;
  }

  main .rl-hero h1,
  .rl-hero h1 {
    font-size: 48px;
    max-width: 560px;
  }

  .rl-hero.rl-hero--simple,
  .rl-hero--simple {
    min-height: 280px;
  }
}

/* Mobile */
@media (max-width: 650px) {
  .rl-hero {
    min-height: 0;
    height: auto;
    padding: 64px 0 56px;
  }

  .rl-hero:not(.rl-hero--simple)::after {
    background: rgba(6, 43, 51, 0.82);
  }

  .rl-hero__inner {
    padding-inline: 20px;
  }

  main .rl-hero h1,
  .rl-hero h1 {
    font-size: 40px;
    margin-bottom: 14px;
  }

  .rl-hero .rl-hero__lead,
  .rl-hero__lead {
    font-size: 16px;
    margin-bottom: 22px;
  }

  .rl-hero.rl-hero--simple,
  .rl-hero--simple {
    min-height: 240px;
    padding: 48px 0 40px;
  }
}
