/**
 * Unified page hero patterns (ministry, simple, carousel).
 */

.page-hero {
  position: relative;
  color: #fff;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.page-hero .hero-container,
.page-hero .page-hero__inner {
  position: relative;
  z-index: 2;
}

.page-hero--ministry.hero {
  height: 60vh;
  min-height: 380px;
  max-height: 720px;
}

.page-hero--ministry.hero:before {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.page-hero--ministry .hero h1,
.page-hero--ministry .hero span {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  letter-spacing: 0.06em;
  text-align: center;
}

.page-hero--ministry .hero h2 {
  font-family: var(--font-heading);
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}

.page-hero--simple {
  min-height: 260px;
  padding: 6rem 1rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
      rgba(0, 0, 0, 0.45),
      rgba(0, 0, 0, 0.55)
    ),
    url("../img/fondohero.jpg") center center / cover no-repeat;
}

.page-hero--simple::before {
  display: none;
}

.page-hero--simple .page-hero__inner {
  max-width: 42rem;
  margin: 0 auto;
}

.page-hero__eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--efrata-green);
  margin-bottom: 0.75rem;
}

.page-hero__title {
  font-family: var(--font-accent);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
}

.page-hero--carousel#hero {
  padding-top: 0;
}

.page-hero--carousel .carousel {
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .page-hero--ministry.hero,
  .page-hero--simple {
    background-attachment: fixed;
  }
}

@media (max-width: 768px) {
  .page-hero--simple {
    min-height: 220px;
    padding-top: 5rem;
  }
}
