.services-section {
  padding: 6rem 0;
  background-color: var(--color-slate-50, #f8fafc);
}

.services-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.services-header {
  text-align: center;
  margin-bottom: 3rem;
}

.services-headline {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-slate-900, #0f172a);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .services-headline {
    font-size: 2.25rem;
  }
}

.services-headline-accent {
  color: var(--brand-primary);
}

.services-subheadline {
  font-size: 1.125rem;
  color: var(--color-slate-600, #475569);
  max-width: 42rem;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  position: relative;
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--color-slate-200, #e2e8f0);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out both;
  animation-delay: var(--delay, 0s);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.service-icon-wrapper {
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--color-slate-50, #f8fafc);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon-wrapper--editable {
  position: relative;
  cursor: pointer;
  border: none;
  padding: 0;
  background-color: var(--color-slate-50, #f8fafc);
  appearance: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-icon-wrapper--editable:hover {
  box-shadow: 0 0 0 2px #60a5fa, 0 0 0 4px #ffffff;
}

.service-icon-wrapper--editable:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.service-icon-edit-indicator {
  position: absolute;
  bottom: -0.35rem;
  right: -0.35rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #3b82f6;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 10px rgba(15, 23, 42, 0.15);
}

.service-icon-wrapper svg {
  width: 2rem;
  height: 2rem;
  color: var(--color-slate-900, #0f172a);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-slate-900, #0f172a);
  margin-bottom: 0.75rem;
}

.service-description {
  color: var(--color-slate-600, #475569);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.services-empty {
  text-align: center;
  padding: 3rem 0;
  color: var(--color-slate-500, #64748b);
}

.services-empty svg {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  color: var(--color-slate-400, #94a3b8);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    translate: 0 20px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card {
    animation: none;
  }
  .service-card:hover {
    transform: none;
  }
}
