/**
 * Campaign landing factory — divii.com/event/{slug}
 *
 * BRAND TOKENS ONLY. The body is an uploaded HTML snippet; it may only use the
 * shell classes below (hero, value, cta, btn-primary, …). Inline colours/fonts
 * are stripped on save, so styling can only come from here. The locked header /
 * footer (logo + nav + fonts) are inherited from the theme shell.
 *
 * Matches the class contract in the Notion build doc's "✅ Good" example:
 *   <section class="hero"> … <a class="btn-primary">  / <section class="value">
 */

.event-page {
  /* ---- Divii brand tokens (mirrors theme.json palette + site CSS) ---- */
  --ev-ink: #181818;          /* primary text */
  --ev-ink-soft: #4b4b4b;
  --ev-muted: #686868;        /* theme.json accent-4 */
  --ev-bg: #ffffff;
  --ev-bg-alt: #FBFAF3;       /* theme.json accent-5 */
  --ev-line: #e5e5e5;
  --ev-brand: #5B4FE9;        /* Divii blue/purple */
  --ev-brand-2: #3E27CC;      /* deep purple */
  --ev-brand-grad: linear-gradient(135deg, #5B4FE9 0%, #3E27CC 100%);
  --ev-radius: 16px;
  --ev-maxw: 1180px;

  font-family: "Manrope", sans-serif;  /* locked brand font */
  color: var(--ev-ink);
  background: var(--ev-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ----------------------------------------------------- LAYOUT / SECTIONS */
/* Every top-level body section is a full-bleed band; its inner content is
   centred and capped to a readable measure. */
.event-page .ev-content > section,
.event-page .ev-content > div {
  padding-block: clamp(44px, 5vw, 80px);
  padding-inline: clamp(20px, 5vw, 48px);
}
/* :where() keeps this at ZERO specificity so component widths (.checklist,
   .steps, .value ul, …) always win and aren't stretched to full width. */
:where(.event-page .ev-content > section, .event-page .ev-content > div) > * {
  max-width: 760px;
  margin-inline: auto;
}

/* --------------------------------------------------------------- TYPE */
.event-page h1,
.event-page h2,
.event-page h3,
.event-page h4 {
  color: var(--ev-ink);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.4em;
  /* Override the theme's global `h1,h2,h3{font-family:Montserrat}` reset so
     headings use the brand font, and follow their section's alignment instead
     of any inherited-then-reset default. */
  font-family: "Manrope", sans-serif;
  text-align: inherit;
}
/* Centred sections: force headings to centre (beats the global heading reset). */
.event-page .hero h1,
.event-page .hero h2,
.event-page .value > h2,
.event-page .cta h2,
.event-page .center h1,
.event-page .center h2,
.event-page .center h3,
.event-page .center h4 { text-align: center; }
.event-page h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.event-page h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.event-page h3 { font-size: 1.25rem; }
.event-page p { margin: 0 0 1em; color: var(--ev-ink-soft); }
.event-page a { color: var(--ev-brand); }
.event-page ul, .event-page ol { margin: 0 0 1em; padding-left: 1.3em; }
.event-page li { margin-bottom: 0.5em; }
.event-page img { max-width: 100%; height: auto; border-radius: var(--ev-radius); }

/* ------------------------------------------------------ SHELL HELPERS */
/* Alternating-background band for visual rhythm between white sections. */
.event-page .alt { background: var(--ev-bg-alt); }
/* Eyebrow / kicker above a heading. */
.event-page .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ev-brand);
  margin: 0 0 14px;
}
/* Larger intro paragraph. */
.event-page .lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--ev-muted); }
/* Small reassurance / fine-print note. */
.event-page .note { font-size: 0.9rem; color: var(--ev-muted); margin-top: 1.2em; }
/* Section intro under an h2. */
.event-page .section-intro { max-width: 56ch; margin-inline: auto; color: var(--ev-muted); }
/* Centered text utility. */
.event-page .center { text-align: center; }

/* Numbered agenda / steps list. */
.event-page .steps { list-style: none; counter-reset: step; margin: 1.6em auto 0; padding: 0; max-width: 720px; }
.event-page .steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.4em 60px;
  margin: 0;
}
.event-page .steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ev-brand-grad);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-page .steps li strong { display: block; color: var(--ev-ink); font-size: 1.1rem; margin-bottom: 2px; }

/* Plain check-list (who it's for / inclusions). */
.event-page .checklist { list-style: none; margin: 1.4em auto 0; padding: 0; max-width: 560px; text-align: left; }
.event-page .checklist li { position: relative; padding: 0 0 0.7em 30px; margin: 0; }
.event-page .checklist li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--ev-brand); font-weight: 800; }

/* FAQ rows. */
.event-page .faq { max-width: 720px; margin-inline: auto; text-align: left; }
.event-page .faq h3 { font-size: 1.1rem; margin-top: 1.4em; }
.event-page .faq p { color: var(--ev-muted); }

/* Testimonial. */
.event-page .quote { max-width: 720px; margin-inline: auto; text-align: center; }
.event-page .quote blockquote { border: 0; padding: 0; font-style: normal; font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--ev-ink); line-height: 1.4; }
.event-page .quote .cite { display: block; margin-top: 1em; font-size: 0.95rem; color: var(--ev-muted); }

/* --------------------------------------------------------------- HERO */
.event-page .hero {
  background: var(--ev-bg-alt);
  text-align: center;
  padding-block: clamp(64px, 8vw, 112px);
}
.event-page .hero h1 { max-width: 18ch; margin-inline: auto; }
.event-page .hero p {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--ev-muted);
  max-width: 56ch;
  margin: 0.6em auto 1.4em;
}

/* -------------------------------------------------------------- BUTTONS */
.event-page .btn-primary,
.event-page .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 999px;
  text-decoration: none;
  margin: 6px 6px 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.event-page .btn-primary {
  background: var(--ev-brand-grad);
  color: #fff;
  box-shadow: 0 10px 26px rgba(91, 79, 233, 0.32);
}
.event-page .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(91, 79, 233, 0.42); }
.event-page .btn-secondary {
  background: transparent;
  color: var(--ev-brand);
  border: 1.5px solid currentColor;
}
.event-page .btn-secondary:hover { background: rgba(91, 79, 233, 0.08); }

/* --------------------------------------------------------- VALUE SECTION */
.event-page .value { text-align: center; }
.event-page .value > h2 { margin-bottom: 1.2em; }
.event-page .value ul {
  list-style: none;
  margin: 1.4em auto 0;
  padding: 0;
  max-width: var(--ev-maxw);
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  text-align: left;
}
.event-page .value li {
  background: var(--ev-bg-alt);
  border: 1px solid var(--ev-line);
  border-radius: var(--ev-radius);
  padding: 26px 28px;
  margin: 0;
  color: var(--ev-ink-soft);
}

/* ------------------------------------------------------------- CTA BAND */
.event-page .cta { background: var(--ev-brand-grad); text-align: center; }
.event-page .cta h2 { color: #fff; }
.event-page .cta p { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; max-width: 52ch; margin-inline: auto; margin-bottom: 1.4em; }
.event-page .cta .btn-primary { background: #fff; color: var(--ev-brand-2); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18); }

/* --------------------------------------------------------------- QUOTE */
.event-page blockquote {
  border-left: 3px solid var(--ev-brand);
  padding-left: 22px;
  margin: 1.5em 0;
  color: var(--ev-muted);
  font-style: italic;
}

/* ------------------------------------------------------ MINIMAL FOOTER */
.event-footer {
  background: #181818;
  color: rgba(255, 255, 255, 0.7);
  font-family: "Manrope", sans-serif;
}
.event-footer__inner {
  max-width: var(--ev-maxw, 1180px);
  margin-inline: auto;
  padding: 28px clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.event-footer__logo img { height: 26px; width: auto; display: block; }
.event-footer__copy { margin: 0; font-size: 13px; }

/* ------------------------------------------------------------ RESPONSIVE */
@media (max-width: 600px) {
  .event-page .btn-primary,
  .event-page .btn-secondary { display: flex; margin-inline: 0; }
  .event-footer__inner { flex-direction: column; text-align: center; }
}
