/* SERVICES — four cards. Change card shape, photo height, or grid here. */

.services {
  background: var(--color-surface);
}

.services-head {
  display: grid;
  gap: var(--space-4);
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

.services-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  max-width: 14ch;
}

.services-head p {
  color: var(--color-text-muted);
  max-width: 46ch;
}

.service-list {
  display: grid;
  gap: var(--space-4);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-5);
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-xl);
  text-align: left;
  color: inherit;
  cursor: default;
  height: 100%; /* Ensures cards stretch to equal height */
}

/* Optional hover polish without active click behavior */
.service-card:hover {
  box-shadow: var(--shadow-md);
}

.service-card:hover,
.service-card:focus-visible {
  box-shadow: var(--shadow-md);
  border-color: oklch(from var(--color-primary) l c h / 0.45);
}

.service-card:active {
  transform: translateY(1px);
}

.service-card img {
  width: 100%;
  height: 240px; /* Fixed height so titles below sit on the exact same horizontal baseline */
  object-fit: cover;
  border-radius: calc(var(--radius-xl) - var(--space-3));
  background: var(--color-surface-offset);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
}

.service-card p {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.service-tags span {
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
}

.service-cta {
  display: inline-flex;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary-active);
}

[data-theme='dark'] .service-cta {
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .service-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch; /* Keeps cards aligned on the exact same row level */
  }
}

@media (min-width: 1024px) {
  .services-head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
}
