/* ==========================================================================
   CTA Arrow Link Component
   Animated arrow link for call-to-action
   ========================================================================== */

.cta-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body, 'Work Sans', sans-serif);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--textPrimary, #1a1a1a);
  text-decoration: none;
  transition: color 0.3s ease, font-weight 0.3s ease, transform 0.3s ease;
}

.cta-arrow-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 10px;
  flex-shrink: 0;
  overflow: visible;
}

.cta-arrow-link__icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cta-arrow-link__icon svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  d: path("M0 5H18M18 5L14 1M18 5L14 9");
  transition: d 0.3s ease, stroke 0.3s ease;
}

/* Hover/Focus state */
.cta-arrow-link:hover,
.cta-arrow-link:focus {
  color: var(--accentPrimary, rgb(8, 59, 16));
  font-weight: 500;
  transform: translateX(6px);
}

.cta-arrow-link:hover .cta-arrow-link__icon svg path,
.cta-arrow-link:focus .cta-arrow-link__icon svg path {
  d: path("M0 5H24M24 5L20 1M24 5L20 9");
  stroke: var(--accentPrimary, rgb(8, 59, 16));
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .cta-arrow-link {
    transition: color 0.3s ease;
  }

  .cta-arrow-link__icon svg path {
    transition: stroke 0.3s ease;
  }

  .cta-arrow-link:hover,
  .cta-arrow-link:focus {
    transform: none;
  }

  .cta-arrow-link:hover .cta-arrow-link__icon svg path,
  .cta-arrow-link:focus .cta-arrow-link__icon svg path {
    d: path("M0 5H18M18 5L14 1M18 5L14 9");
  }
}
