/* All rules are restricted to this one homepage replacement. */
#gerhman-mechanical-delivery { scroll-margin-top: 140px; }
#gerhman-airport-displacement { scroll-margin-top: 140px; }
.grh-section.grh-project-services {
  --grh-services-surface: var(--surface, rgba(38, 38, 38, .9));
  --grh-services-border: var(--line, rgba(255, 255, 255, .11));
  --grh-services-text: var(--ink, #f5f5f7);
  --grh-services-muted: var(--muted, #bcbcc2);
  --grh-services-accent: var(--accent, #f26372);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scroll-margin-top: 140px;
  color: var(--grh-services-text);
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="light"] .grh-section.grh-project-services,
.grh-section.grh-project-services[data-theme="light"] {
  --grh-services-surface: var(--surface, rgba(255, 255, 255, .94));
  --grh-services-border: var(--line, rgba(24, 24, 28, .13));
  --grh-services-text: var(--ink, #242428);
  --grh-services-muted: var(--muted, #66666c);
  --grh-services-accent: var(--accent, #bf263c);
}

.grh-project-services .grh-project-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
  width: 100%;
}

.grh-project-services .grh-service-card {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(170px, auto) auto minmax(78px, auto);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--grh-services-border);
  border-radius: var(--radius, 28px);
  background: var(--grh-services-surface);
}

.grh-project-services .grh-service-card__header {
  padding: 30px 28px 28px;
}

.grh-project-services .grh-service-card__category {
  margin: 0 0 13px;
  padding: 0;
  color: var(--grh-services-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.grh-project-services .grh-service-card__title {
  margin: 0;
  padding: 0;
  color: var(--grh-services-text);
  font-family: inherit;
  font-size: 33.6px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -1.176px;
  text-wrap: pretty;
}

.grh-project-services .grh-service-card__title > span {
  display: block;
}

.grh-project-services .grh-service-card__media {
  width: 100%;
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  background: #242428;
}

.grh-project-services .grh-service-card__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: 50% 50%;
}

/* Gentle, reversible tonal matching; source photographs remain untouched. */
.grh-project-services .grh-service-card--production .grh-service-card__image {
  object-position: 40% 50%;
  filter: contrast(.975) brightness(1.015);
}
.grh-project-services .grh-service-card--delivery .grh-service-card__image {
  filter: sepia(.045) saturate(.93) contrast(.99) brightness(1.02);
}
.grh-project-services .grh-service-card--support .grh-service-card__image {
  object-position: 72% 50%;
  filter: saturate(.93) brightness(.965) contrast(.985);
}

.grh-project-services .grh-service-card__footer {
  display: flex;
  align-items: center;
  padding: 17px 28px;
}

.grh-project-services .grh-service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--grh-services-accent);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  text-underline-offset: 4px;
}
.grh-project-services .grh-service-card__link:hover {
  color: var(--grh-services-accent);
  text-decoration: underline;
}
.grh-project-services .grh-service-card__link:focus-visible {
  outline: 2px solid var(--grh-services-accent);
  outline-offset: 5px;
  border-radius: 3px;
}

/* All three headers share the same row height, even when a title uses three lines. */
@media (min-width: 981px) and (max-width: 1199px) {
  .grh-project-services .grh-service-card {
    grid-template-rows: minmax(211px, auto) auto minmax(78px, auto);
  }
}

@supports (grid-template-rows: subgrid) {
  @media (min-width: 981px) {
    .grh-project-services .grh-project-services__grid {
      row-gap: 0;
    }
    .grh-project-services .grh-service-card {
      grid-row: span 3;
      grid-template-rows: subgrid;
      row-gap: 0;
    }
  }
}

@media (max-width: 980px) {
  .grh-project-services .grh-project-services__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .grh-project-services .grh-service-card {
    grid-row: auto;
    grid-template-rows: auto auto auto;
  }
  .grh-project-services .grh-service-card__header {
    padding: 27px 28px;
  }
  .grh-project-services .grh-service-card__title {
    font-size: clamp(28px, 6.8vw, 33.6px);
    letter-spacing: -.98px;
  }
  .grh-project-services .grh-service-card__title > span {
    display: inline;
  }
}

@media (max-width: 380px) {
  .grh-project-services .grh-service-card__header {
    padding: 24px;
  }
  .grh-project-services .grh-service-card__footer {
    padding-right: 24px;
    padding-left: 24px;
  }
}
