:root {
  --cta-custom-color: #2f6fed;
  --cta-custom-hover: #285eca;
  --cta-custom-text: #ffffff;
  --cta-custom-shadow: rgba(47, 111, 237, 0.24);
}

/*
 * Custom CTA colours are deliberately scoped to actions. Decorative brand-blue
 * elements keep their normal colour so changing CTAs does not recolour the site.
 */
html[data-cta-theme="custom"] :is(
  .button-primary,
  .service-card a,
  .home-service-link,
  .home-problem-button,
  .home-process-link,
  .split-template-text-link,
  .dropdown-template-text-link,
  .dropdown-next-links a,
  .contact-method-action,
  .latest-news-card-link,
  .contact-details-action
) {
  --color-accent: var(--cta-custom-color);
  --color-accent-strong: var(--cta-custom-hover);
  --color-focus-ring: var(--cta-custom-shadow);
  --color-accent-border: var(--cta-custom-shadow);
  --color-text-inverse: var(--cta-custom-text);
}

html[data-cta-theme="custom"] .button-primary {
  background: var(--cta-custom-color);
  color: var(--cta-custom-text);
  box-shadow: 0 10px 24px var(--cta-custom-shadow);
}

html[data-cta-theme="custom"] :is(.button-primary:hover, .button-primary:focus-visible) {
  background: var(--cta-custom-hover);
  color: var(--cta-custom-text);
}

html[data-cta-theme="custom"] :is(
  .footer-cta .button-primary,
  .home-cta-band .button-primary
) {
  background: linear-gradient(135deg, var(--cta-custom-color) 0%, var(--cta-custom-color) 100%);
  box-shadow: 0 18px 36px var(--cta-custom-shadow);
}

html[data-cta-theme="custom"] :is(
  .service-card a,
  .home-service-link,
  .home-problem-button,
  .home-process-link,
  .split-template-text-link,
  .dropdown-template-text-link,
  .dropdown-next-links a,
  .contact-method-action,
  .latest-news-card-link,
  .contact-details-action
) {
  color: var(--cta-custom-color);
}

html[data-cta-theme="custom"] :is(
  .home-problem-button:hover,
  .home-problem-button:focus-visible,
  .split-template-text-link:hover,
  .split-template-text-link:focus-visible,
  .dropdown-template-text-link:hover,
  .dropdown-template-text-link:focus-visible,
  .contact-method-action:hover,
  .contact-method-action:focus-visible
) {
  color: var(--cta-custom-hover);
}
