/**
 * OZEN Parallax Hero
 * Derived from the ozen-fast theme hero treatment (halls-hero / dining-hero):
 * 54svh cinematic height, full-bleed cover image, 90deg dark gradient, Jost
 * light uppercase heading and an 86vw / 1120px inner measure.
 *
 * Component selectors are scoped as `.oph .oph__*` (0,2,0) so editorial theme
 * rules such as `.entry-content h2` and `.entry-content a` cannot override the
 * hero's own typography, colour or image geometry.
 */

.oph {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--oph-min-h, clamp(416px, 54svh, 608px));
  background: #1b211e;
  color: var(--oph-text, #fffaf0);
}

.oph .oph__media {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--oph-bleed, 84px) * -1);
  bottom: calc(var(--oph-bleed, 84px) * -1);
  z-index: 0;
  overflow: hidden;
}

.oph .oph__img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--oph-focal, center 52%);
  transform: translate3d(0, var(--oph-y, 0px), 0) scale(1.025);
  transform-origin: center;
  filter: saturate(0.9) contrast(0.96);
  will-change: transform;
}

.oph .oph__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--oph-shade, 1);
}

/* Dining page gradient, verbatim. */
.oph.oph--dining .oph__shade {
  background: linear-gradient(90deg, rgba(16, 18, 17, 0.7), rgba(16, 18, 17, 0.24) 72%, rgba(16, 18, 17, 0.3));
}

/* Halls page gradient, verbatim. */
.oph.oph--halls .oph__shade {
  background: linear-gradient(90deg, rgba(18, 23, 21, 0.74), rgba(18, 23, 21, 0.32) 72%, rgba(18, 23, 21, 0.18));
}

.oph .oph__inner {
  position: relative;
  z-index: 2;
  width: min(1120px, 86vw);
  margin: 0 auto;
  padding: clamp(50px, 7vw, 92px) 0;
  text-align: left;
}

.oph.oph--align-center .oph__inner {
  text-align: center;
}

.oph.oph--align-right .oph__inner {
  text-align: right;
}

.oph.oph--pos-top {
  align-items: flex-start;
}

.oph.oph--pos-bottom {
  align-items: flex-end;
}

.oph .oph__eyebrow {
  margin: 0 0 22px;
  font-family: Jost, sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.6;
  text-transform: uppercase;
}

.oph.oph--dining .oph__eyebrow {
  margin-bottom: 16px;
  font-size: 16px;
  letter-spacing: 0.18em;
}

.oph .oph__title {
  max-width: 900px;
  margin: 0;
  color: inherit;
  font-family: Jost, sans-serif;
  font-size: clamp(40px, 6vw, 86px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-transform: uppercase;
}

.oph.oph--dining .oph__title {
  max-width: 790px;
  font-size: clamp(40px, 5.3vw, 74px);
}

.oph.oph--align-center .oph__title {
  margin-left: auto;
  margin-right: auto;
}

.oph.oph--align-right .oph__title {
  margin-left: auto;
}

.oph .oph__lede {
  max-width: 760px;
  margin: 26px 0 0;
  color: currentColor;
  font-family: Jost, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.7;
  opacity: 0.9;
}

.oph.oph--align-center .oph__lede {
  margin-left: auto;
  margin-right: auto;
}

.oph.oph--align-right .oph__lede {
  margin-left: auto;
}

/* Hero CTA: carries .button so theme in-page link underlining does not apply. */
.oph .oph__cta.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin: 34px 0 0;
  padding: 15px 21px;
  border: 1px solid rgba(41, 76, 67, 0.18);
  border-radius: 3px;
  background: rgba(229, 238, 226, 0.9);
  color: #294c43;
  font-family: Jost, sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.102em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.oph .oph__cta.button:hover,
.oph .oph__cta.button:focus-visible {
  background: rgba(246, 233, 222, 0.9);
  color: #294c43;
}

.oph .oph__cta.button:focus-visible {
  outline: 3px solid #b56c4d;
  outline-offset: 4px;
}

@media (max-width: 800px) {
  .oph {
    min-height: var(--oph-min-h-m, 416px);
  }

  .oph .oph__inner {
    padding: 50px 0;
  }

  .oph .oph__eyebrow {
    margin-bottom: 14px;
    font-size: 14px;
    letter-spacing: 0.18em;
  }

  .oph .oph__title {
    font-size: 43px;
  }

  .oph.oph--dining .oph__title {
    font-size: 40px;
  }

  .oph .oph__lede {
    margin-top: 20px;
    font-size: 20px;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oph .oph__img {
    transform: none !important;
  }
}
