/* --- Service Card Link (wraps entire card) --- */
.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card-link:hover {
  text-decoration: none;
  color: inherit;
}

/* --- Services Intro --- */
.services-section {
  margin-bottom: 4em;
}

.services-intro {
  margin-bottom: 3em;
  font-size: 1em;
  line-height: 1.7;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5em;
}

/* --- Service Card --- */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--BrRadius);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--accent);
}

/* --- Card Image --- */
.service-card-img {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.service-card:hover .service-card-img img {
  transform: scale(1.08);
}

/* --- Card Body --- */
.service-card-body {
  padding: 1.2em 1.4em 1.5em;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-body h3 {
  margin: 0 0 0.5em 0;
  color: var(--text-main);
  font-size: 1.15em;
  font-weight: 600;
}

.service-card-body p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9em;
  line-height: 1.6;
  flex: 1;
}

/* --- Responsive --- */
@media (max-width: 700px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
