/* ==========================================================================
   Service Selection cards — Contact page only (Phase WP-5).

   Scoped entirely under .service-select-grid so it can never affect any
   other page or existing component. Uses the same CSS custom properties
   (--color-*, --radius-*, --space-*, --font-*) already defined by the
   theme's existing design tokens (assets/css/variables.css, loaded
   before this file) rather than introducing new ones — so cards match
   the site's look automatically without duplicating design decisions.
   ========================================================================== */

.service-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6, 1.5rem);
  margin: var(--space-8, 2rem) 0;
}

.service-select-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2, 0.5rem);
  text-align: left;
  width: 100%;
  padding: var(--space-6, 1.5rem);
  background: var(--color-surface, #fff);
  border: 2px solid var(--color-border, #e5e5e5);
  border-radius: var(--radius-lg, 12px);
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.service-select-card:hover {
  border-color: var(--color-accent, #2f8f5b);
  transform: translateY(-2px);
}

.service-select-card:focus-visible {
  outline: 2px solid var(--color-accent, #2f8f5b);
  outline-offset: 2px;
}

/* Selected state — subtle green border + background tint, per spec */
.service-select-card.is-selected {
  border-color: var(--color-accent, #2f8f5b);
  background-color: var(--color-accent-soft, rgba(47, 143, 91, 0.06));
}

.service-select-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--color-accent, #2f8f5b);
}

.service-select-card__icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.service-select-card__title {
  margin: 0;
  font-family: var(--font-heading, inherit);
  font-size: 1.05rem;
  font-weight: 600;
}

.service-select-card__price {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent, #2f8f5b);
}

.service-select-card__desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted, #666);
  line-height: 1.5;
}

/* "Selected" badge — hidden unless the card carries .is-selected */
.service-select-card__selected {
  display: none;
  align-items: center;
  gap: 0.35em;
  margin-top: var(--space-1, 0.25rem);
  padding: 0.2em 0.65em;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--color-accent, #2f8f5b);
  border-radius: 999px;
}

.service-select-card.is-selected .service-select-card__selected {
  display: inline-flex;
}

/* ---------- Animated icons — CSS/SVG only, no dependencies ----------
   Subtle and slow by design (5–9s loops). Every animation is gated
   behind prefers-reduced-motion: no-preference, so anyone with reduced
   motion enabled simply sees the static icon artwork underneath. */

@media (prefers-reduced-motion: no-preference) {
  /* Website Design — cursor drifting between two content blocks */
  .service-icon--website .service-icon__cursor {
    animation: stractive-cursor-drift 5s ease-in-out infinite;
  }

  /* Branding — palette shapes slowly orbiting the center mark */
  .service-icon--branding .service-icon__rotate {
    transform-box: fill-box;
    transform-origin: center;
    animation: stractive-spin 9s linear infinite;
  }

  /* Social Media — two post cards gently floating, offset in time */
  .service-icon--social .service-icon__card--a {
    animation: stractive-float 4.5s ease-in-out infinite;
  }
  .service-icon--social .service-icon__card--b {
    animation: stractive-float 4.5s ease-in-out infinite;
    animation-delay: -2.25s;
  }

  /* Complete Digital Presence — a small marker slowly orbiting the stack */
  .service-icon--complete .service-icon__orbit-dot {
    transform-box: fill-box;
    transform-origin: center;
    animation: stractive-spin 7s linear infinite;
  }
}

@keyframes stractive-cursor-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-9px); }
}

@keyframes stractive-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes stractive-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
