/* ==========================================================================
   PAGE HERO COMPONENT STYLE
   ========================================================================== */
.page-hero {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-bottom: 1px solid rgba(215, 170, 48, 0.24);
  background: #050501;
}

.page-hero__media,
.page-hero__overlay {
  position: absolute;
  inset: 0;
}

.page-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

/* Glow accent */
.page-hero::after {
  position: absolute;
  z-index: 1;
  right: 8%;
  bottom: -100px;
  width: 420px;
  height: 220px;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  background: rgba(215, 154, 24, 0.08);
  filter: blur(80px);
}

/* Dark gradient overlay */
.page-hero__overlay {
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(3, 3, 0, 0.86) 0%,
      rgba(3, 3, 0, 0.62) 42%,
      rgba(3, 3, 0, 0.26) 72%,
      rgba(3, 3, 0, 0.42) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.12) 55%,
      rgba(0, 0, 0, 0.62) 100%
    );
}

.page-hero__container {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(1280px, calc(100% - 64px));
  min-height: 390px;
  margin: 0 auto;
  align-items: flex-end;
  padding: 90px 0 54px;
}

.page-hero__content {
  max-width: 820px;
}

.page-hero__eyebrow {
  margin: 0 0 14px;
  color: #ddb645;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.page-hero__title {
  max-width: 900px;
  margin: 0;
  color: #f5f0e5;
  font-size: clamp(38px, 5.2vw, 72px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.page-hero__subtitle {
  max-width: 650px;
  margin: 20px 0 0;
  color: rgba(237, 225, 194, 0.76);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.75;
}

/* Breadcrumb nav */
.page-hero__breadcrumb {
  display: flex;
  margin-top: 24px;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(230, 214, 172, 0.48);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.page-hero__breadcrumb a {
  color: #d7ad39;
  text-decoration: none;
  transition: color 180ms ease;
}

.page-hero__breadcrumb a:hover {
  color: #f2ce5b;
}

/* Load scaling transition effects */
.page-hero__image {
  opacity: 0;
  transform: scale(1.08);
  transition:
    opacity 700ms ease,
    transform 1400ms ease;
}

.page-hero.is-loaded .page-hero__image {
  opacity: 1;
  transform: scale(1.02);
}

.page-hero__content {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 650ms ease 160ms,
    transform 650ms ease 160ms;
}

.page-hero.is-loaded .page-hero__content {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .page-hero__image,
  .page-hero__content {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/* Navigation active indicator */
.site-header a.is-active {
  color: #e6c24b;
}

.site-header a.is-active::after {
  width: 100%;
}

/* ==========================================================================
   IMAGE-ONLY COMPACT BANNER MODE
   ========================================================================== */
.page-hero--image-only {
  min-height: 250px;
}

.page-hero--image-only .page-hero__container {
  display: none;
}

.page-hero--image-only .page-hero__overlay {
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.12),
      rgba(0, 0, 0, 0.36)
    );
}

/* ==========================================================================
   RESPONSIVE TABLET RULES
   ========================================================================== */
@media (max-width: 1024px) {
  .page-hero {
    min-height: 340px;
  }

  .page-hero__container {
    width: calc(100% - 40px);
    min-height: 340px;
    padding: 80px 0 42px;
  }

  .page-hero__content {
    max-width: 700px;
  }

  .page-hero__title {
    font-size: clamp(36px, 7vw, 58px);
  }
}

/* ==========================================================================
   RESPONSIVE MOBILE RULES
   ========================================================================== */
@media (max-width: 640px) {
  .page-hero {
    min-height: 310px;
  }

  .page-hero__container {
    width: calc(100% - 28px);
    min-height: 310px;
    align-items: flex-end;
    padding: 84px 0 30px;
  }

  .page-hero__image {
    object-position: 58% center;
  }

  .page-hero__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(3, 3, 0, 0.38) 0%,
        rgba(3, 3, 0, 0.62) 44%,
        rgba(3, 3, 0, 0.92) 100%
      );
  }

  .page-hero__eyebrow {
    margin-bottom: 10px;
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .page-hero__title {
    font-size: clamp(31px, 10vw, 44px);
    line-height: 1.06;
  }

  .page-hero__subtitle {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.6;
  }

  .page-hero__breadcrumb {
    margin-top: 16px;
    font-size: 10px;
  }
}
