/* Closing CTA — structure and theming.
   Colours, sizes and spacing arrive as custom properties emitted per instance
   by module.html, so this file is instance-agnostic and is served once
   however many times the module appears on a page. */

/* ========================================================== section shell */

.ccta {
  position: relative;
  padding: var(--c-pady, 120px) 24px;
  font-family: var(--c-font-body, inherit);
  color: var(--c-support, rgba(250, 250, 250, 0.74));
  box-sizing: border-box;
  overflow: hidden;
}

.ccta *,
.ccta *::before,
.ccta *::after { box-sizing: border-box; }

.ccta__inner {
  position: relative;
  z-index: 1;
  max-width: var(--c-max, 980px);
  margin: 0 auto;
}

/* ============================================================= background */

.ccta__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--c-beam, 0.6);
}

.ccta__glow-a,
.ccta__glow-b {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.ccta__glow-a {
  width: 52%;
  height: 120%;
  left: -8%;
  top: -30%;
  background: rgba(var(--c-accent-rgb), 0.34);
}

.ccta__glow-b {
  width: 46%;
  height: 110%;
  right: -6%;
  bottom: -34%;
  background: rgba(var(--c-glow-rgb), 0.26);
}

/* ================================================================== panel */

.ccta__panel {
  position: relative;
  padding: var(--c-panelpad, 64px);
  border-radius: var(--c-radius, 24px);
  background: var(--c-panel, rgba(6, 18, 41, 0.78));
  border: 1px solid var(--c-line, rgba(12, 83, 148, 0.62));
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 50px 100px -60px rgba(0, 0, 0, 0.95);
}

/* A gradient border, masked rather than border-image so the radius stays
   honest at every corner. */
.ccta--edge .ccta__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(var(--c-accent-rgb), 0.9),
    rgba(var(--c-glow-rgb), 0.45) 38%,
    transparent 66%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.ccta__texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(var(--c-accent-rgb), 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--c-accent-rgb), 0.14) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(80% 100% at 50% 0%, #000 0%, transparent 74%);
  mask-image: radial-gradient(80% 100% at 50% 0%, #000 0%, transparent 74%);
  opacity: 0.5;
}

.ccta--d-open .ccta__panel {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ccta--d-open .ccta__panel::before { display: none; }

.ccta--d-bleed .ccta__panel {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(var(--c-panelpad, 64px), calc(50vw - var(--c-max, 980px) / 2 + 24px));
  padding-right: max(var(--c-panelpad, 64px), calc(50vw - var(--c-max, 980px) / 2 + 24px));
}

/* ================================================================ content */

.ccta__content { position: relative; z-index: 1; }

.ccta--align-center .ccta__content { text-align: center; }
.ccta--align-center .ccta__kicker { justify-content: center; }
.ccta--align-center .ccta__statement,
.ccta--align-center .ccta__support { margin-inline: auto; }
.ccta--align-center .ccta__actions { justify-content: center; }

.ccta__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-recap-label, #1481ff);
}

.ccta__statement {
  margin: 0 0 22px;
  max-width: 16ch;
  font-family: var(--c-font-head, inherit);
  font-size: var(--c-stmt-size, 52px);
  font-weight: var(--c-stmt-weight, 300);
  line-height: 1.08;
  letter-spacing: var(--c-stmt-track, -1.4px);
  /* The real colour is set first and the gradient only clips over it, so an
     unsupported or failed clip leaves readable text rather than nothing. */
  color: var(--c-statement, #fafafa);
  text-wrap: balance;
}

.ccta--align-center .ccta__statement { max-width: 18ch; }

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .ccta--grad .ccta__statement {
    background-image: linear-gradient(
      104deg,
      var(--c-statement, #fafafa) 8%,
      rgba(var(--c-accent-rgb), 1) 52%,
      rgba(var(--c-glow-rgb), 1) 92%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.ccta__support {
  max-width: var(--c-copyw, 56ch);
  margin: 0 0 36px;
  font-size: var(--c-support-size, 19px);
  line-height: 1.64;
  color: var(--c-support, rgba(250, 250, 250, 0.74));
}

.ccta__support p { margin: 0 0 0.85em; }
.ccta__support p:last-child { margin-bottom: 0; }
.ccta__support strong { font-weight: 500; color: var(--c-statement, #fafafa); }

/* ================================================================ actions */

.ccta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 40px;
}

.ccta__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 36px;
  font-family: var(--c-font-body, inherit);
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 200ms ease,
              background-color 200ms ease,
              border-color 200ms ease;
}

.ccta__btn span { position: relative; z-index: 1; }

.ccta__btn--primary {
  background: var(--c-btn-bg, #be02df);
  color: var(--c-btn-ink, #fff);
  box-shadow: 0 14px 36px -14px rgba(var(--c-btn-rgb), 0.95);
}

/* Transform rather than width so the wash composites instead of forcing
   layout on every frame. */
.ccta__btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.3), transparent 60%);
  transform: translateX(-102%);
  transition: transform 440ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ccta__btn--ghost {
  background: transparent;
  color: var(--c-btn2-ink, #fafafa);
  border-color: var(--c-line, rgba(12, 83, 148, 0.62));
}

@media (hover: hover) {
  .ccta__btn--primary:hover {
    background: var(--c-btn-bg-hover, #d42bf0);
    transform: translateY(-2px);
    box-shadow: 0 22px 48px -16px rgba(var(--c-btn-rgb), 1);
  }

  .ccta__btn--primary:hover::before { transform: translateX(0); }

  .ccta__btn--ghost:hover {
    border-color: rgba(var(--c-accent-rgb), 0.9);
    background: rgba(var(--c-accent-rgb), 0.1);
    transform: translateY(-2px);
  }
}

.ccta__btn:active { transform: translateY(0); }

.ccta__btn:focus-visible {
  outline: 2px solid var(--c-accent, #1550ff);
  outline-offset: 3px;
}

/* =============================================================== date cards

   The same stack as the hero, and for the same reason: two dates are two
   events, so they never sit side by side. A visitor who has read this far
   should not scroll back up to find out which date is which. */

.ccta__sessions {
  display: grid;
  gap: 0;
  margin: 0 0 22px;
  padding: 24px 0 0;
  border-top: 1px solid var(--c-line, rgba(12, 83, 148, 0.62));
  list-style: none;
  text-align: left;
}

.ccta__session {
  position: relative;
  padding: 18px 0;
}

.ccta__session-city {
  margin: 0 0 5px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-recap-label, #1481ff);
}

.ccta__session-date {
  margin: 0;
  font-family: var(--c-font-head, inherit);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.2px;
  color: var(--c-statement, #fafafa);
}

/* The dot belongs to the second item, so a card with no time yet shows the
   venue alone rather than a separator with nothing before it. */
.ccta__session-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
  margin: 7px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--c-recap-value, rgba(250, 250, 250, 0.88));
}

.ccta__session-meta > * + *::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: 10px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
  vertical-align: middle;
}

.ccta__session-detail {
  margin: 3px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--c-note, rgba(250, 250, 250, 0.5));
}

.ccta__session-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  color: var(--c-btn-ink, #ffffff);
  background: var(--c-btn-bg, #be02df);
  transition: background 200ms ease, box-shadow 200ms ease;
}

.ccta__session-cta::after {
  content: "\2192";
  font-size: 14px;
  line-height: 1;
  transition: transform 200ms ease;
}

.ccta__session-cta:hover {
  background: var(--c-btn-bg-hover, #d42bf0);
  box-shadow: 0 10px 24px rgba(var(--c-btn-rgb, 190, 2, 223), 0.3);
}

.ccta__session-cta:hover::after { transform: translateX(3px); }

.ccta__session-cta:focus-visible {
  outline: 2px solid var(--c-accent, #1550ff);
  outline-offset: 3px;
}

/* Rows: a hairline between dates, nothing else. */
.ccta--sess-rows .ccta__session + .ccta__session {
  border-top: 1px solid var(--c-line, rgba(12, 83, 148, 0.62));
}

/* Cards: a panel per date with a lit edge, matching the hero. Side by side
   borrows the same panel — two bare columns with no edge between them read as
   one block of text in two halves. */
.ccta--sess-cards .ccta__sessions,
.ccta--sess-split .ccta__sessions {
  gap: 12px;
  padding-top: 22px;
}

.ccta--sess-cards .ccta__session,
.ccta--sess-split .ccta__session {
  padding: 18px 22px 18px 24px;
  background: rgba(var(--c-accent-rgb, 21, 80, 255), 0.05);
  border: 1px solid var(--c-line, rgba(12, 83, 148, 0.62));
  border-radius: calc(var(--c-radius, 24px) * 0.55);
}

.ccta--sess-cards .ccta__session::before,
.ccta--sess-split .ccta__session::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--c-accent, #1550ff), var(--c-glow, #be02df));
}

/* Side by side: columns rather than a stack. auto-fit with a floor does the
   collapsing, so the columns become a stack the moment two of them would be
   narrower than a date fits in — at any width, in any panel, without a
   breakpoint that has to be kept in step with the section's own padding. */
.ccta--sess-split .ccta__sessions {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

/* Equal-height columns: a card with no second venue line should not sit
   shorter than the one beside it. */
.ccta--sess-split .ccta__session { height: 100%; }

/* A centred section centres the stack, not the words inside a card: a date
   read left to right is easier to scan than one centred under a city name. */
.ccta--align-center .ccta__sessions {
  max-width: 520px;
  margin-inline: auto;
}

/* Two columns need the room the stack was giving back. */
.ccta--align-center.ccta--sess-split .ccta__sessions { max-width: none; }


.ccta__note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--c-note, rgba(250, 250, 250, 0.5));
}

/* ================================================================= reveal */

.ccta--armed .ccta__content > * {
  opacity: 0;
  transform: translateY(18px);
}

.ccta--armed.ccta--in .ccta__content > * {
  opacity: 1;
  transform: none;
  transition:
    opacity 780ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--c-i, 0) * var(--c-stagger, 100ms)),
    transform 780ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--c-i, 0) * var(--c-stagger, 100ms));
}

/* ============================================================= responsive */

@media (max-width: 780px) {
  .ccta { padding: var(--c-pady-m, 72px) 20px; }

  .ccta__panel { padding: clamp(26px, 7vw, var(--c-panelpad, 64px)); }

  .ccta--d-bleed .ccta__panel {
    padding-left: clamp(20px, 6vw, var(--c-panelpad, 64px));
    padding-right: clamp(20px, 6vw, var(--c-panelpad, 64px));
  }

  .ccta__statement,
  .ccta--align-center .ccta__statement { max-width: 100%; }

  .ccta__btn { width: 100%; }

  .ccta__session-date { font-size: 17.5px; }
  .ccta__session-cta { width: 100%; justify-content: center; }
  .ccta--sess-cards .ccta__session,
  .ccta--sess-split .ccta__session { padding: 16px 16px 16px 20px; }
}

/* ======================================================== reduced motion */

@media (prefers-reduced-motion: reduce) {
  .ccta__btn,
  .ccta__btn--primary::before { transition: none; }

  .ccta--armed .ccta__content > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* The CMS Elevate theme colours every anchor with
   `a:not(.hs-elevate-button, …)` and underlines it on hover. A :not() carrying
   a class takes that class's specificity, so the theme's rule is (0,1,1) —
   stronger than a bare button class at (0,1,0) — and its link blue was winning
   over the button ink, printing blue text on the magenta fill at about 1.3:1
   contrast, with an underline drawn under every button the pointer touched.
   Scoping to the section root outranks it, and naming the states explicitly
   covers the theme's own :hover/:visited rules, which are more specific again.
   Specificity rather than !important, so a page-level override can still win.

   text-decoration is set on every state, not only :hover: a theme that
   underlines on :focus or :visited would otherwise put the line back with a
   keyboard rather than a pointer, which is the harder version to notice. */

.ccta .ccta__btn--primary,
.ccta .ccta__btn--primary:link,
.ccta .ccta__btn--primary:visited,
.ccta .ccta__btn--primary:hover,
.ccta .ccta__btn--primary:focus,
.ccta .ccta__btn--primary:active {
  color: var(--c-btn-ink, #fff);
  text-decoration: none;
}

.ccta .ccta__btn--ghost,
.ccta .ccta__btn--ghost:link,
.ccta .ccta__btn--ghost:visited,
.ccta .ccta__btn--ghost:hover,
.ccta .ccta__btn--ghost:focus,
.ccta .ccta__btn--ghost:active {
  color: var(--c-btn2-ink, #fafafa);
  text-decoration: none;
}

/* The date cards can carry their own buttons, and they are anchors like any
   other as far as the theme is concerned. */
.ccta .ccta__session-cta,
.ccta .ccta__session-cta:link,
.ccta .ccta__session-cta:visited,
.ccta .ccta__session-cta:hover,
.ccta .ccta__session-cta:focus,
.ccta .ccta__session-cta:active {
  color: var(--c-btn-ink, #fff);
  text-decoration: none;
}
