/* ============================================================
   Circus Extreme — Buttons
   ------------------------------------------------------------
   One canonical button family, replacing the ~14 competing .btn
   redefinitions spread across app.scss and the Cirloxo template.

   Base + modifier, e.g.
     <a class="ce-btn ce-btn--primary">…</a>
     <a class="ce-btn ce-btn--pink ce-btn--outline">…</a>

   Contact Form 7's submit input is styled to match, since CF7
   controls that markup and cannot be given our classes. These
   selectors are deliberately unscoped: the subscribe form lives
   in the footer, outside .ce-scope, and was rendering as a bare
   browser button while the rules were scoped to block output.
   ============================================================ */

.ce-btn,
.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;

  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  letter-spacing: .01em;

  /* The League Spartan cap-height sits high in its em box, so the
     padding is deliberately asymmetric to look optically centred. */
  padding: 15px 24px 12px;
  border-radius: 50px;
  border: 2px solid transparent;

  cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

.ce-btn:focus-visible,
.wpcf7-submit:focus-visible {
  outline: 3px solid var(--circus-yellow);
  outline-offset: 3px;
}

/* ── Primary: yellow fill, purple text ───────────────────── */

.ce-btn--primary,
.wpcf7-submit {
  background: var(--circus-yellow);
  border-color: var(--circus-yellow);
  color: var(--circus-purple);
}

.ce-btn--primary:hover,
.ce-btn--primary:focus-visible,
.wpcf7-submit:hover,
.wpcf7-submit:focus-visible {
  background: var(--circus-pink);
  border-color: var(--circus-pink);
  color: var(--circus-yellow);
}

/* ── Pink ────────────────────────────────────────────────── */

.ce-btn--pink {
  background: var(--circus-pink);
  border-color: var(--circus-pink);
  color: var(--circus-yellow);
}

.ce-btn--pink:hover,
.ce-btn--pink:focus-visible {
  background: var(--circus-yellow);
  border-color: var(--circus-yellow);
  color: var(--circus-purple);
}

/* ── White ───────────────────────────────────────────────── */

.ce-btn--white {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--circus-purple);
}

.ce-btn--white:hover,
.ce-btn--white:focus-visible {
  background: var(--circus-yellow);
  border-color: var(--circus-yellow);
  color: var(--circus-purple);
}

/* ── Outline modifier ─────────────────────────────────────
   Composes with a colour modifier: strips the fill and adopts
   that colour for the border and text.
   ────────────────────────────────────────────────────────── */

.ce-btn--outline {
  background: transparent;
}

.ce-btn--primary.ce-btn--outline {
  border-color: var(--circus-yellow);
  color: var(--circus-yellow);
}

.ce-btn--primary.ce-btn--outline:hover,
.ce-btn--primary.ce-btn--outline:focus-visible {
  background: transparent;
  border-color: var(--circus-pink);
  color: var(--circus-pink);
}

.ce-btn--pink.ce-btn--outline {
  border-color: var(--circus-pink);
  color: var(--circus-pink);
}

.ce-btn--pink.ce-btn--outline:hover,
.ce-btn--pink.ce-btn--outline:focus-visible {
  background: transparent;
  border-color: var(--circus-yellow);
  color: var(--circus-yellow);
}

.ce-btn--white.ce-btn--outline {
  border-color: var(--color-white);
  color: var(--color-white);
}

.ce-btn--white.ce-btn--outline:hover,
.ce-btn--white.ce-btn--outline:focus-visible {
  background: transparent;
  border-color: var(--circus-yellow);
  color: var(--circus-yellow);
}

/* ── Transparent: a link that sits on the button baseline ── */

.ce-btn--transparent {
  background: transparent;
  border-color: transparent;
  color: var(--color-white);
}

.ce-btn--transparent:hover,
.ce-btn--transparent:focus-visible {
  color: var(--circus-yellow);
}

/* ── Size and emphasis modifiers ─────────────────────────── */

.ce-btn--sm {
  font-size: .875rem;
  padding: 11px 18px 9px;
}

.ce-btn--lg {
  font-size: 1.125rem;
  padding: 19px 32px 16px;
}

.ce-btn--pulse {
  animation: ce-pulse 2s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ce-btn--pulse {
    animation: none;
  }
}

.ce-btn__icon {
  display: inline-flex;
  flex-shrink: 0;
}

/* ── Button groups ───────────────────────────────────────── */

.ce-btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}
