/**
 * ZenGo Services grid — CarelystCategories, select_style = "four"
 * Matches index-1.psd "category" group (bbox 322,1197 – 1594,2283): 3-up
 * image cards, dark gradient overlay, white title + "Book Appointment" link
 * bottom-left over the photo.
 */

.zg-services-grid .row {
  --bs-gutter-y: 28px;
}
.zg-service-card-col {
  margin-bottom: 28px;
}

.zg-service-card {
  position: relative;
  display: block;
  border-radius: var(--zg-radius-card);
  overflow: hidden;
  aspect-ratio: 405 / 440;
  text-decoration: none;
}

.zg-service-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.zg-service-card:hover .zg-service-card-img {
  transform: scale(1.06);
}

.zg-service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.65) 100%);
}

.zg-service-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zg-service-card-title {
  font-family: var(--zg-font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  color: var(--zg-white);
}

.zg-service-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--zg-font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--zg-white);
}
.zg-service-card-cta svg {
  transition: transform .2s ease;
}
.zg-service-card:hover .zg-service-card-cta svg {
  transform: translateX(3px);
}

@media (max-width: 767px) {
  .zg-service-card-title {
    font-size: 19px;
  }
}
