/*
 * KIT PART: celebrated calls to action (About hero 4, 10 Oct 2026). The
 * markup, the arguments and the reasoning are in inc/kit-cta.php; the reveal
 * is assets/js/kit-cta.js on the shared scene-motion registry.
 *
 *   a.srk-cta.srk-cta-big     srk_cta_big(): large type and a go disc.
 *   a.srk-cta.srk-cta-orbit   srk_cta_orbit(): icons orbiting a mark.
 *   a.srk-cta.srk-cta-fan     srk_cta_fan(): a fanned stack of portrait cards.
 *
 * Tuning from a page: --srk-cta-accent (the disc and the highlights), --srk-cta-ink
 * (the words), --srk-cta-stage (the orbit's or the fan's size). Nothing here
 * names a page.
 *
 * START STATES ONLY UNDER html.sr-motion AND .is-armed (set by kit-cta.js), so
 * JS off, reduced motion, or a page without the registry show the finished
 * state. Hover, focus and idle motion only under prefers-reduced-motion:
 * no-preference. Only transform and opacity animate.
 *
 * Specificity: every rule starts a.srk-cta or .srk-cta .x (two classes), so it
 * outranks the Elementor Global Kit's link and type rules that print after it.
 */

a.srk-cta {
  --srk-cta-a: var(--srk-cta-accent, var(--srk-accent-live, #5C9DFF));
  --srk-cta-ink: #FFFFFF;
  --srk-cta-soft: rgba(234, 240, 255, 0.8);
  --srk-cta-spring: var(--srk-spring, cubic-bezier(0.34, 1.56, 0.64, 1));
  --srk-cta-ease: var(--srk-ease, cubic-bezier(0.22, 1, 0.36, 1));
  color: var(--srk-cta-ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a.srk-cta:hover,
a.srk-cta:focus,
a.srk-cta:visited {
  color: var(--srk-cta-ink);
  text-decoration: none;
}

a.srk-cta:focus-visible {
  outline: 3px solid #9FC0FF;
  outline-offset: 8px;
  border-radius: 18px;
}

.srk-cta .srk-cta-vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.srk-cta .srk-cta-kicker {
  display: block;
  margin: 0 0 6px;
  color: color-mix(in srgb, var(--srk-cta-a) 55%, #FFFFFF);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- The go disc */

.srk-cta .srk-cta-go {
  position: relative;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: var(--srk-cta-go, 64px);
  height: var(--srk-cta-go, 64px);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--srk-cta-a) 55%, #FFFFFF) 0%, var(--srk-cta-a) 60%, color-mix(in srgb, var(--srk-cta-a) 70%, #0A1033) 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--srk-cta-a) 45%, transparent);
  transition: transform 520ms var(--srk-cta-spring), box-shadow 300ms ease;
}

.srk-cta .srk-cta-go::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--srk-cta-a) 60%, transparent);
  pointer-events: none;
}

.srk-cta .srk-cta-go-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
}

.srk-cta .srk-cta-go-track {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 0;
  width: 200%;
  height: 100%;
  transform: translateX(-50%);
  transition: transform 460ms var(--srk-cta-ease);
}

.srk-cta .srk-cta-go-track svg {
  flex: 0 0 50%;
  width: 50%;
  height: calc(var(--srk-cta-go, 64px) * 0.4);
}

.srk-cta .srk-cta-go--md { --srk-cta-go: 52px; }

.srk-cta .srk-cta-go--sm {
  --srk-cta-go: 44px;
  background: none;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--srk-cta-a) 75%, #FFFFFF);
}

/* ---------------------------------------------------------------- srk_cta_big */

a.srk-cta.srk-cta-big {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  max-width: 100%;
  padding: 6px 0;
}

.srk-cta .srk-cta-big-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.srk-cta .srk-cta-big-title {
  position: relative;
  align-self: flex-start;
  color: var(--srk-cta-ink);
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  padding-bottom: 6px;
}

/* An accent rule under the title: a short stroke at rest, the whole title on hover. */
.srk-cta .srk-cta-big-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--srk-cta-a), color-mix(in srgb, var(--srk-cta-a) 40%, #FFFFFF));
  transform: scaleX(0.18);
  transform-origin: 0 50%;
  transition: transform 520ms var(--srk-cta-ease);
}

.srk-cta .srk-cta-big-sub {
  margin-top: 6px;
  color: var(--srk-cta-soft);
  font-size: 17px;
  line-height: 1.4;
}

.srk-cta.srk-cta-big--secondary .srk-cta-big-title {
  font-size: clamp(19px, 1.6vw, 22px);
  font-weight: 650;
  padding-bottom: 4px;
}

.srk-cta.srk-cta-big--secondary .srk-cta-big-title::after {
  height: 2px;
}

a.srk-cta.srk-cta-big--secondary {
  gap: 16px;
}

/* The price, as the single source gives it: the amount large, its unit and audience beside it. */
.srk-cta .srk-cta-big-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.srk-cta .srk-cta-big-amount {
  display: inline-block;
  font-size: clamp(34px, 3.2vw, 46px);
  font-weight: 780;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums tabular-nums;
  color: #FFFFFF;
  background: linear-gradient(100deg, #FFFFFF 10%, color-mix(in srgb, var(--srk-cta-a) 50%, #FFFFFF) 55%, var(--srk-cta-a) 100%);
  background-size: 200% 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 520ms var(--srk-cta-spring), background-position 700ms var(--srk-cta-ease);
}

.srk-cta .srk-cta-big-unit {
  display: flex;
  flex-direction: column;
  color: var(--srk-cta-soft);
  font-size: 15px;
  line-height: 1.3;
}

.srk-cta .srk-cta-big-label {
  color: var(--srk-cta-ink);
  font-weight: 600;
}

/* ---------------------------------------------------------------- Orbit and fan: the shared frame */

a.srk-cta.srk-cta-moment {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.srk-cta .srk-cta-moment-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.srk-cta .srk-cta-moment-row {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.srk-cta .srk-cta-moment-title {
  color: var(--srk-cta-ink);
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.srk-cta .srk-cta-moment-sub {
  margin-top: 8px;
  color: var(--srk-cta-soft);
  font-size: 17px;
  line-height: 1.4;
  max-width: 30ch;
}

/* Side by side (a phone): the visual on the left, the words on the right. */
a.srk-cta.srk-cta-moment.srk-cta--row {
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 18px;
}

.srk-cta.srk-cta--row .srk-cta-moment-text {
  align-items: flex-start;
}

/* ---------------------------------------------------------------- srk_cta_orbit */

.srk-cta .srk-cta-orbit-stage {
  --r: calc(var(--srk-cta-stage, 240px) * 0.38);
  --mk: calc(var(--srk-cta-stage, 240px) * 0.2);
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: var(--srk-cta-stage, 240px);
  height: var(--srk-cta-stage, 240px);
  /* Room for the marks' hover spring, so a mark at the bottom of the orbit never meets the words under it. */
  margin-bottom: calc(var(--srk-cta-stage, 240px) * 0.07);
}

.srk-cta .srk-cta-orbit-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.srk-cta .srk-cta-orbit-ring circle {
  fill: none;
  stroke: color-mix(in srgb, var(--srk-cta-a) 55%, transparent);
  stroke-width: 0.6;
  stroke-dasharray: 0.012 0.018;
}

.srk-cta .srk-cta-orbit-ring .srk-cta-orbit-ring2 {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-dasharray: none;
  stroke-width: 0.5;
}

.srk-cta .srk-cta-orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36%;
  height: 36%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  transition: transform 620ms var(--srk-cta-spring);
}

.srk-cta .srk-cta-orbit-core img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--srk-cta-a) 70%, transparent));
}

.srk-cta .srk-cta-orbit-spin {
  position: absolute;
  inset: 0;
}

.srk-cta .srk-cta-orbit-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--mk);
  height: var(--mk);
  margin: calc(var(--mk) / -2) 0 0 calc(var(--mk) / -2);
  transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1));
  transition: transform 760ms var(--srk-cta-spring) calc(var(--i, 0) * 70ms), opacity 400ms ease calc(var(--i, 0) * 70ms);
}

.srk-cta .srk-cta-orbit-up,
.srk-cta .srk-cta-orbit-mk {
  display: block;
  width: 100%;
  height: 100%;
}

/* Every mark in an identical box (S4): the icon contained in it, centred. */
.srk-cta .srk-cta-orbit-mk {
  display: grid;
  place-items: center;
  transition: transform 520ms var(--srk-cta-spring) calc(var(--i, 0) * 50ms);
}

.srk-cta .srk-cta-orbit-mk img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(120, 160, 255, 0.35));
}

/* ---------------------------------------------------------------- srk_cta_fan */

.srk-cta .srk-cta-fan-stack {
  --cw: calc(var(--srk-cta-stage, 240px) * 0.5);
  --spread: calc(var(--cw) * 0.36);
  --rot: 7deg;
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: calc(var(--srk-cta-stage, 240px) * 1.5);
  max-width: 100%;
  height: var(--srk-cta-stage, 240px);
}

.srk-cta .srk-cta-fan-card {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: var(--cw);
  height: auto;
  max-width: none;
  aspect-ratio: 4 / 5;
  margin-left: calc(var(--cw) / -2);
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 16px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
  transform-origin: 50% 120%;
  transform: translateX(calc(var(--c) * var(--spread))) translateY(calc(var(--ac) * var(--ac) * 4px)) rotate(calc(var(--c) * var(--rot)));
  transition: transform 760ms var(--srk-cta-spring) calc(var(--ac, 0) * 60ms), opacity 400ms ease;
}

/* ---------------------------------------------------------------- Motion: reveal (armed by kit-cta.js) */

html.sr-motion .srk-cta.is-armed:not(.is-play) .srk-cta-orbit-item {
  transform: rotate(var(--a)) translateY(0) rotate(calc(var(--a) * -1)) scale(0.3);
  opacity: 0;
}

html.sr-motion .srk-cta.is-armed:not(.is-play) .srk-cta-orbit-core {
  transform: translate(-50%, -50%) scale(0.6);
}

html.sr-motion .srk-cta.is-armed:not(.is-play) .srk-cta-orbit-ring circle {
  stroke-dashoffset: 1;
}

html.sr-motion .srk-cta.is-armed:not(.is-play) .srk-cta-fan-card {
  transform: translateX(0) translateY(0) rotate(calc(var(--c) * 1.2deg));
}

/* ---------------------------------------------------------------- Motion: idle, hover and focus */

@media (prefers-reduced-motion: no-preference) {
  @keyframes srk-cta-nudge {
    0%, 70%, 100% { transform: translateX(-50%); }
    80% { transform: translateX(-42%); }
    90% { transform: translateX(-50%); }
  }

  @keyframes srk-cta-ping {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--srk-cta-a) 55%, transparent); }
    100% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--srk-cta-a) 0%, transparent); }
  }

  @keyframes srk-cta-spin {
    to { transform: rotate(360deg); }
  }

  @keyframes srk-cta-unspin {
    to { transform: rotate(-360deg); }
  }

  /* The arrows that move: a nudge every few seconds, and a ring that pings out of the disc. */
  .srk-cta .srk-cta-go-track {
    animation: srk-cta-nudge 3.2s var(--srk-cta-ease) 1.2s infinite;
  }

  .srk-cta .srk-cta-go:not(.srk-cta-go--sm)::before {
    animation: srk-cta-ping 2.4s ease-out 1.6s infinite;
  }

  /* On hover or focus the arrow leaves to the right and the next one arrives from the left. */
  a.srk-cta:hover .srk-cta-go-track,
  a.srk-cta:focus-visible .srk-cta-go-track {
    animation: none;
    transform: translateX(0);
  }

  a.srk-cta:hover .srk-cta-go,
  a.srk-cta:focus-visible .srk-cta-go {
    transform: scale(1.1);
    box-shadow: 0 14px 38px color-mix(in srgb, var(--srk-cta-a) 60%, transparent);
  }

  a.srk-cta:hover .srk-cta-big-title::after,
  a.srk-cta:focus-visible .srk-cta-big-title::after {
    transform: scaleX(1);
  }

  a.srk-cta:hover .srk-cta-big-amount,
  a.srk-cta:focus-visible .srk-cta-big-amount {
    transform: translateY(-4px) scale(1.06);
    background-position: 100% 0;
  }

  /* The orbit turns slowly; each mark turns back, so it stays upright. */
  .srk-cta .srk-cta-orbit-spin {
    animation: srk-cta-spin 48s linear infinite;
  }

  .srk-cta .srk-cta-orbit-up {
    animation: srk-cta-unspin 48s linear infinite;
  }

  a.srk-cta:hover .srk-cta-orbit-spin,
  a.srk-cta:focus-visible .srk-cta-orbit-spin,
  a.srk-cta:hover .srk-cta-orbit-up,
  a.srk-cta:focus-visible .srk-cta-orbit-up {
    animation-play-state: paused;
  }

  /* On hover or focus the marks spring outward and grow; the centre mark pulses up. */
  a.srk-cta:hover .srk-cta-orbit-item,
  a.srk-cta:focus-visible .srk-cta-orbit-item {
    /* Chain 8 review: 1.07 moved the marks 5 to 7px, which read as no hover; 1.2 and a 1.16 grow is a spring a mouse sees (about 20px out), clear of the kicker under the stage. */
    transform: rotate(var(--a)) translateY(calc(var(--r) * -1.2)) rotate(calc(var(--a) * -1));
  }

  a.srk-cta:hover .srk-cta-orbit-mk,
  a.srk-cta:focus-visible .srk-cta-orbit-mk {
    transform: scale(1.16);
  }

  a.srk-cta:hover .srk-cta-orbit-core,
  a.srk-cta:focus-visible .srk-cta-orbit-core {
    transform: translate(-50%, -50%) scale(1.12);
  }

  html.sr-motion .srk-cta.is-armed .srk-cta-orbit-ring circle:first-child {
    transition: stroke-dashoffset 1200ms var(--srk-cta-ease);
  }

  /* On hover or focus the cards spread wider and the middle one lifts. */
  a.srk-cta:hover .srk-cta-fan-stack,
  a.srk-cta:focus-visible .srk-cta-fan-stack {
    --spread: calc(var(--cw) * 0.62);
    --rot: 11deg;
  }

  a.srk-cta:hover .srk-cta-fan-card,
  a.srk-cta:focus-visible .srk-cta-fan-card {
    transform: translateX(calc(var(--c) * var(--spread))) translateY(calc(var(--ac) * var(--ac) * 7px - 10px)) rotate(calc(var(--c) * var(--rot)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .srk-cta *,
  .srk-cta *::before,
  .srk-cta *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------------------------------------------------------------- Phone sizes */

@media (max-width: 699px) {
  a.srk-cta.srk-cta-big {
    gap: 16px;
  }

  .srk-cta .srk-cta-go {
    --srk-cta-go: 52px;
  }

  .srk-cta .srk-cta-go--md { --srk-cta-go: 44px; }
  .srk-cta .srk-cta-go--sm { --srk-cta-go: 40px; }

  .srk-cta .srk-cta-big-title {
    font-size: 22px;
  }

  .srk-cta.srk-cta-big--secondary .srk-cta-big-title {
    font-size: 18px;
  }

  .srk-cta .srk-cta-big-amount {
    font-size: 32px;
  }

  .srk-cta .srk-cta-big-unit {
    font-size: 14px;
  }

  .srk-cta .srk-cta-moment-title {
    font-size: 24px;
  }

  .srk-cta .srk-cta-moment-row {
    gap: 12px;
  }

  .srk-cta .srk-cta-moment-sub {
    font-size: 15px;
  }

  .srk-cta .srk-cta-kicker {
    font-size: 13px;
  }
}
