/**
 * Homepage — Onze diensten: mobiel 2 kolommen, desktop 4 kolommen.
 */

.home-services {
  --svc-green: var(--color-brand-green);
  --svc-black: #0a0a0a;
  background: #f4f6f5;
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(2.25rem, 5vw, 3.25rem);
}

.home-services__container {
  width: 100%;
  max-width: var(--header-max-width);
  margin: 0 auto;
  padding: 0 max(var(--header-padding-x), env(safe-area-inset-left, 0px)) 0
    max(var(--header-padding-x), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

.home-services__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: clamp(1.15rem, 3vw, 1.5rem);
}

.home-services__title {
  margin: 0;
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--svc-black);
  line-height: 1.2;
}

.home-services__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--svc-green);
  border: 2px solid var(--svc-green);
  border-radius: 4px;
  transition: filter var(--duration-fast, 180ms) var(--ease-standard, ease);
}

.home-services__more:hover {
  filter: brightness(0.94);
}

.home-services__more:focus-visible {
  outline: 2px solid var(--svc-green);
  outline-offset: 3px;
}

.home-services__more-icon {
  display: inline-flex;
}

.home-services__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* Mobiel: 2 per rij */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .home-services__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (min-width: 960px) {
  .home-services__grid {
    gap: 1rem;
  }
}

.home-services__cell {
  margin: 0;
  min-width: 0;
}

.home-services__card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  color: var(--svc-black);
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(15, 21, 18, 0.1);
  box-shadow: none;
  background: #fff;
}

.home-services__media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-services__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Lichte PNG/illustratie: minder crop, minder zwarte onder-fade */
.home-services__card--illustration .home-services__media {
  background: #ffffff;
}

.home-services__card--illustration .home-services__img {
  object-fit: contain;
  padding: clamp(0.35rem, 2vw, 0.65rem);
  box-sizing: border-box;
}

/* Geen onder-fade / schaduw-overlay: titel staat op vaste lichte balk */
.home-services__card--illustration .home-services__fade,
.home-services__fade {
  display: none;
}

.home-services__caption {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* Mobiel: lagere balk */
  padding: 0.3rem 0.45rem;
  background: #fff;
  border-top: 1px solid rgba(15, 21, 18, 0.08);
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .home-services__caption {
    padding: 0.5rem 0.65rem;
  }
}

.home-services__label {
  font-size: clamp(0.7rem, 2.5vw, 0.875rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--svc-black);
}

@media (min-width: 768px) {
  .home-services__label {
    font-size: clamp(0.75rem, 2.8vw, 0.875rem);
    line-height: 1.25;
  }
}

