.sub-hero {
  position: relative;
  overflow: hidden;
  background-color: #fbf8f1;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--color-text);
}

.sub-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 253, 248, 0.08) 52%, rgba(250, 248, 243, 0.18)),
    linear-gradient(145deg, transparent 0 42%, var(--sub-hero-accent, rgba(200, 164, 93, 0.08)) 42% 43%, transparent 43% 100%);
  content: "";
  pointer-events: none;
}

.sub-hero::after {
  position: absolute;
  right: clamp(20px, 8vw, 136px);
  bottom: 0;
  width: min(42vw, 520px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 164, 93, 0.55), transparent);
  content: "";
  pointer-events: none;
}

.sub-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  box-sizing: border-box;
  width: min(100% - (var(--container-padding-desktop) * 2), var(--container-max-width));
  min-height: 480px;
  align-content: center;
  justify-items: center;
  margin: 0 auto;
  padding: calc(76px + var(--spacing-12)) 0 var(--spacing-12);
  text-align: center;
}

.sub-hero__eyebrow {
  display: none;
}

.sub-hero__title,
.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.sub-hero__display-title {
  margin: 0;
  color: var(--color-primary-dark);
  font-family: var(--font-family-en);
  font-size: clamp(48px, 6.6vw, 92px);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 1px 18px rgba(255, 255, 255, 0.6);
}

.sub-hero__description {
  max-width: 720px;
  margin: var(--spacing-5) 0 0;
  color: var(--color-muted);
  font-size: var(--font-size-body-lg);
  line-height: var(--line-height-loose);
  text-shadow: 0 1px 16px rgba(255, 255, 255, 0.62);
}

.sub-hero--brand,
.sub-hero--program-face,
.sub-hero--program-skin,
.sub-hero--program-special,
.sub-hero--program,
.sub-hero--review,
.sub-hero--product,
.sub-hero--event,
.sub-hero--tip {
  --sub-hero-accent: rgba(200, 164, 93, 0.08);
}

.sub-hero--brand {
  background-image:
    radial-gradient(circle at center, rgba(255, 252, 246, 0.68) 0%, rgba(255, 252, 246, 0.38) 42%, rgba(255, 252, 246, 0.16) 100%),
    url("/images/brand/brand-title.jpeg");
  background-position: 58% 48%;
}

.sub-hero--brand::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 253, 248, 0.03) 52%, rgba(250, 248, 243, 0.08));
}

.sub-hero--brand .sub-hero__inner {
  min-height: 480px;
  transform: translateY(-4px);
}

.sub-hero--brand .sub-hero__display-title {
  text-shadow: 0 8px 24px rgba(255, 252, 246, 0.72);
}

.sub-hero--brand .sub-hero__description {
  text-shadow: 0 4px 16px rgba(255, 252, 246, 0.86);
}

.sub-hero--program-face {
  background-image:
    radial-gradient(circle at center, rgba(255, 252, 246, 0.68) 0%, rgba(255, 252, 246, 0.38) 42%, rgba(255, 252, 246, 0.16) 100%),
    url("/images/program/face-title.png");
  background-position: 58% 48%;
}

.sub-hero--program-face::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 253, 248, 0.03) 52%, rgba(250, 248, 243, 0.08));
}

.sub-hero--program-face .sub-hero__inner {
  min-height: 480px;
  transform: translateY(-4px);
}

.sub-hero--program-face .sub-hero__display-title {
  text-shadow: 0 8px 24px rgba(255, 252, 246, 0.72);
}

.sub-hero--program-face .sub-hero__description {
  text-shadow: 0 4px 16px rgba(255, 252, 246, 0.86);
}

.sub-hero--program-skin {
  background-image:
    radial-gradient(circle at center, rgba(255, 252, 246, 0.68) 0%, rgba(255, 252, 246, 0.38) 42%, rgba(255, 252, 246, 0.16) 100%),
    url("/images/program/skincare-title.png");
  background-position: 58% 48%;
}

.sub-hero--program-special {
  background-image:
    radial-gradient(circle at center, rgba(255, 252, 246, 0.68) 0%, rgba(255, 252, 246, 0.38) 42%, rgba(255, 252, 246, 0.16) 100%),
    url("/images/program/body-title.png");
  background-position: 58% 48%;
}

.sub-hero--program-skin::before,
.sub-hero--program-special::before,
.sub-hero--review::before,
.sub-hero--product::before,
.sub-hero--event::before,
.sub-hero--tip::before,
.sub-hero--program::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 253, 248, 0.03) 52%, rgba(250, 248, 243, 0.08));
}

.sub-hero--program-skin .sub-hero__inner,
.sub-hero--program-special .sub-hero__inner,
.sub-hero--review .sub-hero__inner,
.sub-hero--product .sub-hero__inner,
.sub-hero--event .sub-hero__inner,
.sub-hero--tip .sub-hero__inner,
.sub-hero--program .sub-hero__inner {
  min-height: 480px;
  transform: translateY(-4px);
}

.sub-hero--program-skin .sub-hero__display-title,
.sub-hero--program-special .sub-hero__display-title,
.sub-hero--review .sub-hero__display-title,
.sub-hero--product .sub-hero__display-title,
.sub-hero--event .sub-hero__display-title,
.sub-hero--tip .sub-hero__display-title,
.sub-hero--program .sub-hero__display-title {
  text-shadow: 0 8px 24px rgba(255, 252, 246, 0.72);
}

.sub-hero--program-skin .sub-hero__description,
.sub-hero--program-special .sub-hero__description,
.sub-hero--review .sub-hero__description,
.sub-hero--product .sub-hero__description,
.sub-hero--event .sub-hero__description,
.sub-hero--tip .sub-hero__description,
.sub-hero--program .sub-hero__description {
  text-shadow: 0 4px 16px rgba(255, 252, 246, 0.86);
}

.sub-hero--program {
  background-image: url("/images/programs/contour-care.png");
}

.sub-hero--review {
  background-image:
    radial-gradient(circle at center, rgba(255, 252, 246, 0.68) 0%, rgba(255, 252, 246, 0.38) 42%, rgba(255, 252, 246, 0.16) 100%),
    url("/images/review/review-title.png");
  background-position: 58% 48%;
}

.sub-hero--product {
  background-image:
    radial-gradient(circle at center, rgba(255, 252, 246, 0.68) 0%, rgba(255, 252, 246, 0.38) 42%, rgba(255, 252, 246, 0.16) 100%),
    url("/images/products/product-title.png");
  background-position: 58% 48%;
}

.sub-hero--event {
  background-image:
    radial-gradient(circle at center, rgba(255, 252, 246, 0.68) 0%, rgba(255, 252, 246, 0.38) 42%, rgba(255, 252, 246, 0.16) 100%),
    url("/images/events/event-title.png");
  background-position: 58% 48%;
}

.sub-hero--tip {
  background-image:
    radial-gradient(circle at center, rgba(255, 252, 246, 0.68) 0%, rgba(255, 252, 246, 0.38) 42%, rgba(255, 252, 246, 0.16) 100%),
    url("/images/tip/caretip-title.png");
  background-position: 58% 48%;
}

.program-detail__hero,
.review-detail__hero,
.event-detail__hero {
  display: none;
}

@media (max-width: 900px) {
  .sub-hero__inner {
    width: min(100% - (var(--container-padding-mobile) * 2), var(--container-max-width));
    min-height: 380px;
    padding-top: calc(68px + var(--spacing-10));
  }

  .sub-hero--brand {
    background-position: center;
  }

  .sub-hero--program-face {
    background-position: center;
  }

  .sub-hero--program-skin {
    background-position: center;
  }

  .sub-hero--program-special {
    background-position: center;
  }

  .sub-hero--review,
  .sub-hero--product,
  .sub-hero--event,
  .sub-hero--tip {
    background-position: center;
  }

  .sub-hero--brand .sub-hero__inner {
    min-height: 380px;
    transform: translateY(0);
  }

  .sub-hero--program-face .sub-hero__inner {
    min-height: 380px;
    transform: translateY(0);
  }

  .sub-hero--program-skin .sub-hero__inner,
  .sub-hero--program-special .sub-hero__inner,
  .sub-hero--review .sub-hero__inner,
  .sub-hero--product .sub-hero__inner,
  .sub-hero--event .sub-hero__inner,
  .sub-hero--tip .sub-hero__inner,
  .sub-hero--program .sub-hero__inner {
    min-height: 380px;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .sub-hero__inner {
    min-height: 320px;
    padding-top: calc(68px + var(--spacing-8));
    padding-bottom: var(--spacing-10);
  }

  .sub-hero__display-title {
    font-size: clamp(42px, 13vw, 64px);
  }

  .sub-hero__description {
    margin-top: var(--spacing-4);
    font-size: clamp(14px, 4vw, 16px);
  }

  .sub-hero--brand .sub-hero__inner {
    min-height: 320px;
    transform: translateY(0);
  }

  .sub-hero--program-face .sub-hero__inner {
    min-height: 320px;
    transform: translateY(0);
  }

  .sub-hero--program-skin .sub-hero__inner,
  .sub-hero--program-special .sub-hero__inner,
  .sub-hero--review .sub-hero__inner,
  .sub-hero--product .sub-hero__inner,
  .sub-hero--event .sub-hero__inner,
  .sub-hero--tip .sub-hero__inner,
  .sub-hero--program .sub-hero__inner {
    min-height: 320px;
    transform: translateY(0);
  }
}
