/* A quiet green/pink halo on primary actions. */
.services-card__cta,
.contact-submit {
  position: relative;
  isolation: isolate;
  overflow: visible;
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}
.services-card__cta::before,
.contact-submit::before {
  content: '';
  position: absolute;
  inset: -6px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from 35deg, #c9ddd8, #8fb6a4, #c9d5ea, #e091b5, #c9ddd8);
  filter: blur(13px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
@media (hover: hover) {
  html[data-theme] .services-card__cta:hover,
  html[data-theme] .contact-submit:hover {
    transform: none;
    background-color: #fffaf0;
    color: #26352f;
    border-color: #d9ded5;
    box-shadow: none;
  }
  .services-card__cta:hover::before,
  .contact-submit:hover::before { opacity: .65; }
  html[data-theme="dark"] .services-card__cta:hover,
  html[data-theme="dark"] .contact-submit:hover {
    background-color: #26272c;
    color: #fffaf0;
    border-color: #a2b3a780;
  }
}
.services-card__cta:focus-visible::before,
.contact-submit:focus-visible::before { opacity: .65; }
.services-card__cta:focus-visible,
.contact-submit:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.contact-submit:disabled::before { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .services-card__cta, .contact-submit,
  .services-card__cta::before, .contact-submit::before { transition: none; }
}

/* Shared primary button shape, type, spacing, and iOS-like arrow. */
html[data-theme] .services-card__cta,
html[data-theme] .contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
}
.button-arrow { flex: 0 0 18px; width: 18px; height: 18px; }
/* Solid black hover surface, with the gradient kept outside. */
html[data-theme] .services-card__cta,
html[data-theme] .contact-submit {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-text-secondary);
}
.services-card__cta::before,
.contact-submit::before { z-index: -2; }
.services-card__cta::after,
.contact-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: inherit;
  border-radius: inherit;
  pointer-events: none;
}
@media (hover: hover) {
  html[data-theme] .services-card__cta:hover,
  html[data-theme] .contact-submit:hover {
    background-color: #1a1922;
    color: #fffaf0;
    border-color: #1a1922;
  }
}
/* Keep the colored light tight to the edge, not spread across the form. */
.services-card__cta::before,
.contact-submit::before {
  inset: 0;
  filter: blur(6px);
  background: linear-gradient(120deg, #e091b5, #c9d5ea 48%, #8fb6a4);
}
@media (hover: hover) {
  .services-card__cta:hover::before,
  .contact-submit:hover::before { opacity: .32; }
}
.services-card__cta:focus-visible::before,
.contact-submit:focus-visible::before { opacity: .32; }
html[data-theme] .services-card__cta,
html[data-theme] .contact-submit { border-width: 1px; }
/* Strong, clean green hover instead of a blurred halo. */
.services-card__cta::before,
.services-card__cta::after,
.contact-submit::before,
.contact-submit::after { content: none; }
@media (hover: hover) {
  html[data-theme] .services-card__cta:hover,
  html[data-theme] .contact-submit:hover {
    background-color: #41cc78;
    border-color: #41cc78;
    color: #1a1922;
    box-shadow: none;
  }
}
