/* ── event.css — Event page styles ─────────────────────────────────────
   Palette: WHITE sections = navy text + BLUE accents (never cyan on white)
            NAVY sections  = white text + CYAN accents (never blue on navy)
   Sequence: hero[navy] → §1 white → §2 navy → §3 white → §4 navy → §5 white
             → back-link (white + hairline, shared) → footer (navy, shared) */

/* ── HERO — NAVY ──────────────────────────────────────────────────────── */
.event-hero {
  background: linear-gradient(180deg, var(--footer-bg-2) 0%, var(--navy) 100%);
  text-align: center;
}
.event-hero .eyebrow { color: var(--cyan); }
.event-hero .h2 { color: var(--on-dark); }

.event-hero__inner {
  max-width: 680px;
  margin-inline: auto;
}

.event-hero__h1 {
  margin-top: var(--s-3);
}

.event-hero__sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--on-dark-muted);
  line-height: 1.7;
  margin-top: var(--s-5);
  max-width: 540px;
  margin-inline: auto;
}

@media (max-width: 600px) {
  /* Push content below the fixed 72px header — section-pad collapses to 64px
     which is less than the header height, clipping the eyebrow */
  .event-hero {
    padding-top: calc(72px + var(--s-5)); /* 72 + 24 = 96px */
  }
}

/* ── SHARED: section heads, navy modifier ────────────────────────────── */
.ev-head {
  max-width: 660px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(var(--s-7), 6vw, 72px);
}
.ev-head--left {
  margin-inline: 0;
  text-align: left;
  max-width: none;
}
.ev-head__sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: var(--s-4);
}

/* Navy sections: white text, cyan accents */
.ev-navy {
  background: var(--navy);
}
.ev-navy .eyebrow { color: var(--cyan); }
.ev-navy .h2 { color: var(--on-dark); }
.ev-navy .ev-head__sub { color: var(--on-dark-muted); }

/* ── SHARED: numbered item (§1 steps, §4 zones) ──────────────────────── */
.ev-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
}
.ev-item__num {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--blue);
}
.ev-item__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.2;
}
.ev-item__rule {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--blue);
}
.ev-item__text {
  font-family: var(--font-body);
  font-size: .98rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.ev-navy .ev-item__num   { color: var(--cyan); }
.ev-navy .ev-item__title { color: var(--on-dark); }
.ev-navy .ev-item__rule  { background: var(--cyan); }
.ev-navy .ev-item__text  { color: var(--on-dark-muted); }

/* Emphasised closing line */
.ev-closing {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  margin-top: clamp(var(--s-7), 6vw, 64px);
}
.ev-navy .ev-closing { color: var(--on-dark); }

/* ── §1 WHAT IS MEMORA FITNESS — WHITE ──────────────────────────────── */
.ev-what {
  background: var(--bg-page);
}
.ev-steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7) var(--s-6);
}
@media (min-width: 601px) { .ev-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 901px) { .ev-steps { grid-template-columns: repeat(4, 1fr); } }

/* ── §2 AT A GLANCE — NAVY ──────────────────────────────────────────── */
.ev-stats {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7) var(--s-6);
  text-align: center;
}
@media (min-width: 601px) { .ev-stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 901px) { .ev-stats { grid-template-columns: repeat(4, 1fr); } }

.ev-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
}
.ev-stat__fig {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 600;
  color: var(--cyan);
  line-height: 1;
}
.ev-stat__rule {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--cyan);
}
.ev-stat__label {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  line-height: 1.5;
  max-width: 220px;
}

/* WHITE card on the NAVY section — navy text, blue accents */
.ev-facts-card {
  margin-top: clamp(var(--s-7), 6vw, 72px);
  background: var(--bg-white);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  display: grid;
  grid-template-columns: 1fr;
  padding: var(--s-2) var(--s-6);
  max-width: 960px;
  margin-inline: auto;
}
.ev-facts-card__item {
  padding: var(--s-5) 0;
  text-align: center;
  border-top: 1px solid var(--border-soft);
}
.ev-facts-card__item:first-child { border-top: 0; }
.ev-facts-card__label {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--s-2);
}
.ev-facts-card__value {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .02em;
}
@media (min-width: 601px) {
  .ev-facts-card { grid-template-columns: repeat(3, 1fr); padding: var(--s-6) var(--s-5); }
  .ev-facts-card__item { padding: var(--s-2) var(--s-4); border-top: 0; border-left: 1px solid var(--border-soft); }
  .ev-facts-card__item:first-child { border-left: 0; }
}

/* ── §3 WHAT'S ON — WHITE ───────────────────────────────────────────── */
.ev-whatson {
  background: var(--bg-page);
}
.ev-rows {
  border-top: 1px solid var(--border-soft);
}
.ev-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2) var(--s-6);
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--border-soft);
}
.ev-row__label {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  border-left: 3px solid var(--blue);
  padding-left: var(--s-3);
  line-height: 1.3;
  align-self: start;
}
.ev-row__content {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}
@media (min-width: 601px) { .ev-row { grid-template-columns: 180px 1fr; align-items: start; } }
@media (min-width: 901px) { .ev-row { grid-template-columns: 220px 1fr; } }

/* ── §4 EXPERIENCE ZONES — NAVY ─────────────────────────────────────── */
.ev-zone-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7) var(--s-8);
  max-width: 900px;
  margin-inline: auto;
}
@media (min-width: 601px) { .ev-zone-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── §5 THE DAY — WHITE. Timeline: horizontal ≥601px, vertical ≤600px ── */
.ev-day {
  background: var(--bg-page);
}

.ev-timeline {
  list-style: none;
  position: relative;
  display: grid;
  gap: var(--s-6);
  /* mobile: vertical rail 7px in from the left (dot is 14px wide) */
  grid-template-columns: 1fr;
  padding-left: calc(14px + var(--s-4));
}
.ev-timeline::before {
  /* the connecting line — pseudo so it never affects layout */
  content: '';
  position: absolute;
  background: var(--border);
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
}
.ev-tl {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.ev-tl__time {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .02em;
}
.ev-tl__dot {
  position: absolute;
  left: calc(-1 * (14px + var(--s-4)));
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 2px solid var(--navy);
  box-sizing: border-box;
}
.ev-tl__label {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.3;
}
.ev-tl__detail {
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.55;
}
/* Feature moment: filled navy dot with blue ring, blue label */
.ev-tl--feature .ev-tl__dot {
  background: var(--navy);
  box-shadow: 0 0 0 4px rgba(1,88,251,.22);
}
.ev-tl--feature .ev-tl__label { color: var(--blue); }

@media (min-width: 601px) {
  .ev-timeline {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--s-4);
    padding-left: 0;
    text-align: center;
  }
  .ev-timeline::before {
    /* horizontal line through the dot row: time (≈1.45rem line) + gap + half dot */
    left: 10%;
    right: 10%;
    top: calc(1.05rem * 1.45 + var(--s-2) + 7px);
    bottom: auto;
    height: 2px;
    width: auto;
  }
  .ev-tl {
    align-items: center;
    gap: var(--s-2);
  }
  .ev-tl__time { line-height: 1.45; }
  .ev-tl__dot {
    position: static;
    margin: 0;
  }
}

.ev-day-note {
  margin-top: clamp(var(--s-7), 6vw, 64px);
  padding: var(--s-5) var(--s-6);
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  background: var(--bg-white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  text-align: center;
  line-height: 1.6;
}
