/* ==========================================================================
   Events page hero: header-readability scrims + upcoming events slider
   Loaded only by events.php
   ========================================================================== */

/* --- Scrims (behind hero content, never intercept input) --- */
.hero-scrim {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-scrim--top {
  top: 0;
  height: 20%;
  min-height: 120px;
  background: linear-gradient(to bottom,
    rgba(12, 9, 10, 0.72) 0%,
    rgba(12, 9, 10, 0.48) 35%,
    rgba(12, 9, 10, 0.18) 70%,
    rgba(12, 9, 10, 0) 100%);
}
.hero-scrim--bottom {
  bottom: 0;
  height: 14%;
  background: linear-gradient(to top,
    rgba(12, 9, 10, 0.55) 0%,
    rgba(12, 9, 10, 0.22) 50%,
    rgba(12, 9, 10, 0) 100%);
}

/* --- Events slider --- */
.hero-events {
  --he-burgundy: #800020;
  --he-gold: #c5a880;
  --he-cream: #faf8f5;
  width: min(420px, 100%);
  padding: 14px 14px 12px;
  text-align: left;
  color: var(--he-cream);
  background: rgba(18, 10, 12, 0.46);
  border: 1px solid rgba(197, 168, 128, 0.28);
  border-radius: 18px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
}

.hero-events__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  min-height: 32px;
}
.hero-events__eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--he-gold);
}
.hero-events__nav { display: flex; gap: 6px; }
.hero-events__arrow {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(250, 248, 245, 0.25);
  color: var(--he-cream);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.hero-events__arrow svg { width: 15px; height: 15px; }
.hero-events__arrow:hover { border-color: var(--he-gold); color: var(--he-gold); }

.hero-events__viewport { overflow: hidden; border-radius: 12px; touch-action: pan-y; }
.hero-events__track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.hero-events__slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  gap: 14px;
  align-items: stretch;
}
.hero-events__poster {
  flex: 0 0 96px;
  height: 128px;
  border-radius: 10px;
  overflow: hidden;
  background: #0d0709;
}
.hero-events__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-events__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.hero-events__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 21px;
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-events__meta {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(250, 248, 245, 0.82);
}
.hero-events__price {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--he-gold);
}
.hero-events__cta {
  align-self: flex-start;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--he-burgundy);
  border: 1px solid rgba(197, 168, 128, 0.45);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.hero-events__cta:hover { background: #9a0a2c; }
.hero-events__cta:active { transform: scale(0.97); }
.hero-events__title a { color: inherit; text-decoration: none; }
.hero-events__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-events__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.hero-events__actions .hero-events__cta { margin-top: 0; }
.hero-events__link { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--he-gold); text-decoration: underline; text-underline-offset: 4px; }
.hero-events__link:hover { color: #fff; }

.hero-events__dots { display: flex; justify-content: center; gap: 2px; margin-top: 8px; }
.hero-events__dot {
  width: 24px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.hero-events__dot::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(250, 248, 245, 0.35);
  transition: width 0.3s ease, background-color 0.3s ease;
}
.hero-events__dot[aria-current="true"]::after { width: 16px; background: var(--he-gold); }

.hero-events :focus-visible { outline: 2px solid var(--he-gold); outline-offset: 2px; }

/* Desktop: float the slider in the open upper-right of the hero, clear of the centred headline */
@media (min-width: 1024px) {
  .hero-events {
    position: absolute;
    top: clamp(104px, 15vh, 156px);
    right: calc((100% - 100vw) / 2 + clamp(24px, 3vw, 56px));
    width: 380px;
    margin: 0;
  }
  .hero-events__poster { flex-basis: 104px; height: 140px; }
  .hero-events__title { font-size: 23px; }
}

/* Mobile: one compact card, keep the hero from growing */
@media (max-width: 639px) {
  .hero-events { padding: 10px 10px 8px; border-radius: 14px; }
  .hero-events__head { margin-bottom: 8px; }
  .hero-events__poster { flex-basis: 76px; height: 100px; }
  .hero-events__title { font-size: 18px; }
  .hero-events__cta { min-height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-events__track { transition: none; }
}
