/* ── PAGE HEADER ── */

.events-header {
  padding: 9rem 2rem 6rem;
  text-align: center;
  background: var(--bark);
  position: relative;
  overflow: hidden;
}

.events-header-ring {
  position: absolute;
  border-radius: 50%;
  border: 0.5px solid rgba(237,207,200,0.07);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.events-header-ring-1 { width: 700px; height: 700px; }
.events-header-ring-2 { width: 460px; height: 460px; }

.events-header-inner { position: relative; z-index: 1; }

.events-eyebrow {
  color: var(--dusty-rose);
  display: block;
  margin-bottom: 1.5rem;
}

.events-title {
  color: var(--linen);
  display: block;
}

.events-header-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 2rem 0 1.75rem;
}

.events-header-line {
  width: 52px;
  height: 0.5px;
  background: rgba(237,207,200,0.25);
}

.events-header-diamond {
  width: 5px;
  height: 5px;
  background: var(--dusty-rose);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.events-header-sub {
  color: rgba(242,235,224,0.45);
  display: block;
}

/* ── PHOTO BANNER ── */

.events-photo-banner {
  height: 440px;
  overflow: hidden;
  background: var(--parchment);
}

.events-photo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.events-photo-banner.events-photo-missing {
  display: none;
}


/* ── TIMELINE SECTION ── */

.timeline-section {
  background: var(--ivory);
  padding: 5rem 3rem 8rem;
}

.timeline-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 1280px;
  margin: 0 auto;
  align-items: start;
}

.timeline-left { min-width: 0; }

.timeline-right {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.events-photo {
  width: 95%;
  height: auto;
  display: block;
  margin: 1.5rem 0;
}

.rose-col {
  width: calc(95% * 0.3);
  display: block;
  pointer-events: none;
  filter: brightness(0) invert(1) sepia(1) saturate(4) hue-rotate(50deg) brightness(0.7);
  opacity: 0.65;
}

.rose-col--flip {
  transform: rotate(180deg);
}

.timeline-hint {
  color: rgba(212,145,122,0.5);
  margin-bottom: 3.5rem;
  text-align: center;
}

/* ── TIMELINE SPINE ── */

.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0.5px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--blush) 4%,
    var(--blush) 96%,
    transparent
  );
  z-index: 0;
}

/* ── TIMELINE ITEM ── */

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
}
.timeline-item:last-child { margin-bottom: 0; }

/* Left content block */
.tl-main {
  flex: 1;
  text-align: right;
  padding-right: 2.75rem;
  position: relative;
  min-width: 0;
}

/* Arm connector (right side by default) */
.tl-main::after {
  content: '';
  position: absolute;
  top: 2.95rem;
  right: 0;
  width: 2.75rem;
  height: 0.5px;
  background: var(--blush);
}

/* Center marker */
.tl-mark {
  flex: 0 0 14px;
  display: flex;
  justify-content: center;
  padding-top: 2.6rem;
  position: relative;
  z-index: 1;
}

.tl-diamond {
  width: 8px;
  height: 8px;
  background: var(--ivory);
  border: 1px solid var(--dusty-rose);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s;
}

/* Right blank spacer */
.tl-blank {
  flex: 1;
  padding-left: 2.75rem;
}

/* ── EVEN ITEMS — flip to right side ── */

.timeline-item:nth-child(even) .tl-main {
  order: 3;
  text-align: left;
  padding-right: 0;
  padding-left: 2.75rem;
}

.timeline-item:nth-child(even) .tl-main::after {
  right: auto;
  left: 0;
}

.timeline-item:nth-child(even) .tl-blank {
  order: 1;
  padding-left: 0;
  padding-right: 2.75rem;
}

.timeline-item:nth-child(even) .tl-mark {
  order: 2;
}

/* ── TYPOGRAPHY ── */

.tl-time {
  color: var(--dusty-rose);
  display: block;
  margin-bottom: 0.2rem;
}

.tl-title {
  color: var(--bark);
  display: block;
  cursor: default;
  transition: color 0.2s;
  line-height: var(--leading-snug);
}

/* Description — hidden by default */
.tl-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  color: var(--mist);
  transition: max-height 0.55s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

/* ── HOVER REVEAL ── */

.tl-title:hover { color: var(--deep-rose); }

.tl-title:hover ~ .tl-body {
  max-height: 280px;
  opacity: 1;
  margin-top: 0.75rem;
}

.timeline-item:has(.tl-title:hover) .tl-diamond {
  background: var(--dusty-rose);
  border-color: var(--deep-rose);
}

/* ═══════════════════════════════════════
   MOBILE — 768px
═══════════════════════════════════════ */

@media (max-width: 768px) {
  .events-header { padding: 6rem 1.5rem 4rem; }
  .events-photo-banner { height: 220px; }

  .timeline-section { padding: 3rem 1.5rem 4rem; }
  .timeline-layout { grid-template-columns: 1fr; }
  .timeline-right { display: none; }
  .timeline-hint { text-align: left; margin-bottom: 2rem; }

  /* Left-side spine */
  .timeline::before { left: 3px; transform: none; }

  /* All items left-aligned, remove alternating */
  .tl-blank { display: none; }
  .tl-main { text-align: left; padding-right: 0; padding-left: 1.25rem; }
  .tl-main::after { display: none; }
  .tl-mark { padding-top: 0.2rem; flex: 0 0 8px; }

  .timeline-item:nth-child(even) .tl-main {
    order: unset;
    text-align: left;
    padding-left: 1.25rem;
    padding-right: 0;
  }
  .timeline-item:nth-child(even) .tl-main::after { display: none; }
  .timeline-item:nth-child(even) .tl-blank { display: none; }
  .timeline-item:nth-child(even) .tl-mark { order: unset; }

  /* Always show descriptions on touch (no hover) */
  .tl-body { max-height: none; opacity: 1; margin-top: 0.5rem; }
}
