/* =============================================================================
   EVENT DETAIL — ABOUT / DETAILS BAND
   Three-column section: big date · subtitle + rich text · dark reservation
   card. Sits on the normal (ivory) page background beneath the hero.
   Loaded only by templates/events/events_detail_page.html via extra_css.
   Brand tokens: Deep Charcoal / Soft Ivory / Antique Gold / Burgundy.
   ============================================================================= */

/* Layout is Bootstrap 5: .container-fluid > .row > .col-lg-* (see _about.html).
   This file only carries the bespoke visual styling. */
.event-about {
  position: relative;
  background-color: var(--color-ivory, #f8f4e3);
  /* The watermark is anchored to the bottom and sized to cover, so on a short
     section it overflows the top edge — clip it rather than let it bleed into
     the neighbouring band. */
  overflow: hidden;
}

/* Optional full-width watermark (Event.about_background_image). Bottom-anchored
   and held at 7% so it reads as a texture behind the copy, never as an image.
   The URL is set inline by the template; everything else belongs here. */
.event-about__bg {
  position: absolute;
  inset: 0;
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

/* Lift the content above the watermark. Without this the container creates no
   stacking context of its own and the copy would share z-index 0 with the
   image. */
.event-about > .container {
  position: relative;
  z-index: 1;
}

/* ---- LEFT: date ---- */
.event-about__date {
  display: flex;
  flex-direction: column;
}

.event-about__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem; /* 13px */
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold, #c4a052);
  margin-bottom: 1rem;
}

.event-about__date-stack {
  display: flex;
  flex-direction: column;
  line-height: 0.82;
}

/* Month — big charcoal serif, sized to fill the narrow date column (col-lg-3). */
.event-about__date-month {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 8.5vw, 8.5rem);
  line-height: 0.82;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-charcoal, #2b2b2b);
}

/* Day — larger still, in antique gold (fewer glyphs, so it can run bigger). */
.event-about__date-day {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4rem, 12vw, 11rem);
  line-height: 0.82;
  letter-spacing: -0.02em;
  color: var(--color-gold, #c4a052);
}

/* ---- MIDDLE: subtitle + rich text ---- */
.event-about__subtitle {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
  color: var(--color-charcoal, #2b2b2b);
  margin: 0 0 1.5rem;
}

.event-about__richtext {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(var(--color-charcoal-rgb, 43, 43, 43), 0.8);
}

.event-about__richtext p {
  margin: 0 0 1.25rem;
}

.event-about__richtext p:last-child {
  margin-bottom: 0;
}

.event-about__richtext strong {
  font-weight: 600;
  color: var(--color-charcoal, #2b2b2b);
}

.event-about__richtext a {
  color: var(--color-gold, #c4a052);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.event-about__richtext a:hover,
.event-about__richtext a:focus-visible {
  color: var(--color-burgundy, #6d1a2b);
}

/* ---- RIGHT: reserve strip (stacked ticket deck + shared notes) ---- */
/* Stacked deck — every .event-ticket shares one grid cell so the deck sizes to
   the tallest card; exactly one carries .is-active. Prev/next cycles with an
   animated swap (static/js/events/ticket-deck.js). Portrait "ticket stub"
   proportion via aspect-ratio, capped so it stays sane full-width on mobile. */
.event-about__tickets {
  position: relative;
  display: grid;
  inline-size: min(80%, 256px);
  aspect-ratio: 3 / 4;
  margin-inline: auto;
}

.event-about__tickets > .event-ticket {
  grid-area: 1 / 1;
}

/* Faint stack behind the active card — two offset, tilted ghost layers.
   Charcoal-on-ivory since the About band is light. */
.event-about__tickets::before,
.event-about__tickets::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 1px solid rgba(var(--color-charcoal-rgb, 43, 43, 43), 0.18);
  border-radius: 12px;
  background: rgba(var(--color-charcoal-rgb, 43, 43, 43), 0.04);
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.85, 0, 0.15, 1);
}
.event-about__tickets::before {
  transform: translate(9px, 9px) rotate(2.2deg);
}
.event-about__tickets::after {
  transform: translate(-7px, 6px) rotate(-1.6deg);
}
/* On a flip the ghost layers briefly straighten, then settle back. */
.event-about__tickets.is-swapping::before,
.event-about__tickets.is-swapping::after {
  animation: reserveStraighten 0.66s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Individual ticket card (dark, sharp portrait stub) */
.event-ticket {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background-color: #0f0c0a;
  color: var(--color-ivory, #f8f4e3);
  border: 1px solid rgba(var(--color-ivory-rgb, 248, 244, 227), 0.08);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;

  opacity: 0;
  transform: translateY(12px) scale(0.97);
  pointer-events: none;
  transition:
    opacity 0.45s cubic-bezier(0.85, 0, 0.15, 1),
    transform 0.45s cubic-bezier(0.85, 0, 0.15, 1);
}

.event-ticket.is-active {
  z-index: 2;
  opacity: 1;
  transform: rotate(-3deg);
  pointer-events: auto;
  /* Subtle layered drop shadow — soft ambient + tighter contact. */
  box-shadow:
    0 16px 36px rgba(15, 12, 10, 0.16),
    0 3px 10px rgba(15, 12, 10, 0.1);
}

.event-about__tickets.is-swapping .event-ticket.is-active {
  animation: reserveSwapIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes reserveSwapIn {
  0% {
    transform: translateY(10px) scale(0.98) rotate(-3deg);
  }
  100% {
    transform: rotate(-3deg);
  }
}

@keyframes reserveStraighten {
  45% {
    transform: translate(0, 0) rotate(0deg);
  }
}

.event-ticket__head {
  display: flex;
  flex-direction: column;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  /* Gold hairline — matches the hero front-page column dividers. */
  border-bottom: var(--divider-column-width, 1px) solid
    var(--divider-column-color, rgba(212, 175, 55, 0.55));
}

/* Ticket title above the amount — Playfair display. */
.event-ticket__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.15rem;
  line-height: 1.1;
  color: var(--color-gold, #c4a052);
  margin-bottom: 0.25rem;
}

.event-ticket__price {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--color-ivory, #f8f4e3);
}

.event-ticket__price--text {
  font-size: 1.6rem;
  padding-top: 1.5rem;
}

.event-ticket__member {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(var(--color-ivory-rgb, 248, 244, 227), 0.55);
  margin-top: 0.15rem;
}

.event-ticket__name {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-alabaster, #f8f6f1);
  margin-top: 0.5rem;
}

.event-ticket__desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(var(--color-ivory-rgb, 248, 244, 227), 0.6);
  margin-top: 0.35rem;
  line-height: 1.5;
}

/* What's included — gold-check list */
.event-ticket__includes {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.event-ticket__includes li {
  position: relative;
  padding-left: 1.4rem;
  padding-bottom: 0.55rem;
  margin-bottom: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.4;
  color: rgba(var(--color-ivory-rgb, 248, 244, 227), 0.85);
}
/* Dashed separator between included items — 75% width. */
.event-ticket__includes li::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 75%;
  border-bottom: 1px dashed rgba(var(--color-ivory-rgb, 248, 244, 227), 0.18);
}
.event-ticket__includes li:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
}
.event-ticket__includes li:last-child::after {
  content: none;
}
.event-ticket__includes li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-gold, #c4a052);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Per-ticket CTA — layout only (full width, pinned to the card bottom).
   Visual styling comes from the canonical button classes applied in the
   template (.editorial-cta-btn.dark-bg — the site CTA on dark surfaces). */
.event-ticket__cta {
  width: 100%;
  margin-top: auto;
  text-align: center;
  /* Tighten the editorial CTA's hero-sized padding/font/tracking for this
     narrow card so the label stays on one line. */
  padding: 13px 14px;
  font-size: 12px;
  letter-spacing: 0.4px;
}
/* Sold-out state — no canonical disabled button variant, styled locally to
   match the editorial CTA's size. */
.event-ticket__cta--disabled {
  display: block;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(var(--color-ivory-rgb, 248, 244, 227), 0.35);
  border: 1px solid rgba(var(--color-ivory-rgb, 248, 244, 227), 0.1);
  cursor: not-allowed;
}

/* ---- Deck nav: prev / counter / next (on the ivory band, charcoal + gold) ---- */
.event-about__reserve-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 3rem;
}

.event-about__reserve-btn {
  inline-size: 2.75rem;
  block-size: 2.75rem;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: var(--color-charcoal, #2b2b2b);
  background: transparent;
  border: 1px solid rgba(var(--color-charcoal-rgb, 43, 43, 43), 0.4);
  border-radius: 0;
  cursor: pointer;
  transition:
    background-color var(--transition-base, 0.2s ease),
    color var(--transition-base, 0.2s ease),
    border-color var(--transition-base, 0.2s ease);
}

.event-about__reserve-btn:hover,
.event-about__reserve-btn:focus-visible {
  color: var(--color-charcoal, #2b2b2b);
  background: var(--color-gold, #c4a052);
  border-color: var(--color-gold, #c4a052);
}

.event-about__reserve-btn:focus-visible {
  outline: 2px solid var(--color-gold, #c4a052);
  outline-offset: 2px;
}

.event-about__reserve-count {
  margin: 0;
  min-inline-size: 3rem;
  text-align: center;
  font-family: var(--font-body);
  letter-spacing: 0.1em;
  color: rgba(var(--color-charcoal-rgb, 43, 43, 43), 0.7);
}

.event-about__reserve-count-current {
  color: var(--color-gold, #c4a052);
  font-weight: 600;
}

.event-about__reserve-count-sep {
  margin-inline: 0.3rem;
  color: rgba(var(--color-charcoal-rgb, 43, 43, 43), 0.35);
}

/* Motion opt-out */
@media (prefers-reduced-motion: reduce) {
  .event-ticket,
  .event-about__tickets::before,
  .event-about__tickets::after {
    transition: none;
  }
  .event-about__tickets.is-swapping::before,
  .event-about__tickets.is-swapping::after,
  .event-about__tickets.is-swapping .event-ticket.is-active {
    animation: none;
  }
}

/* Shared event-level info below the strip — on the ivory band (charcoal text) */
.event-about__capacity {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-charcoal, #2b2b2b);
}

.event-about__deadline {
  font-size: 0.8125rem;
  font-weight: 300;
  color: rgba(var(--color-charcoal-rgb, 43, 43, 43), 0.6);
}

.event-about__note {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(var(--color-charcoal-rgb, 43, 43, 43), 0.12);
}

.event-about__note-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold, #c4a052);
}

.event-about__note-body {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(var(--color-charcoal-rgb, 43, 43, 43), 0.8);
  line-height: 1.5;
}

/* ---- Mobile (Bootstrap stacks the columns; these are type/spacing tweaks) ---- */
@media (max-width: 991.98px) {
  .event-about__date-month {
    font-size: clamp(3.5rem, 15vw, 7rem);
  }

  .event-about__date-day {
    font-size: clamp(4.5rem, 20vw, 9rem);
  }
}
