.service-grid article {
  isolation: isolate;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.service-grid article::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(13, 15, 13, .12), rgba(13, 15, 13, .92) 82%);
  transition: background .28s ease;
}

.service-grid article::after {
  content: 'FOSTER\'S GRADING';
  position: absolute;
  top: 27px;
  right: 25px;
  color: rgba(255, 255, 255, .8);
  font: 500 8px 'DM Mono', monospace;
  letter-spacing: .1em;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .25s ease, transform .25s ease;
}

.service-grid article:hover {
  background-color: transparent;
  transform: translateY(-5px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, .32);
}

.service-grid article:hover::before {
  background: linear-gradient(180deg, rgba(13, 15, 13, .02), rgba(13, 15, 13, .82) 88%);
}

.service-grid article:hover::after {
  opacity: 1;
  transform: none;
}

.service-grid article > * { position: relative; }
.service-grid article > span { color: #ff9a70; }
.service-grid article p { color: #e7e5dd; text-shadow: 0 1px 5px rgba(0, 0, 0, .48); }
.service-grid article h3 { text-shadow: 0 2px 12px rgba(0, 0, 0, .62); }
.service-grid .featured { background-color: #262820; }
.service-grid .featured::before { background: linear-gradient(90deg, rgba(13, 15, 13, .94) 0%, rgba(13, 15, 13, .72) 52%, rgba(13, 15, 13, .18) 100%); }
.service-grid .featured:hover::before { background: linear-gradient(90deg, rgba(13, 15, 13, .91) 0%, rgba(13, 15, 13, .62) 54%, rgba(13, 15, 13, .08) 100%); }
.featured li { background: rgba(16, 18, 15, .34); backdrop-filter: blur(3px); }

.service-grading { background-image: url('./service-grading.webp') !important; background-position: center; }
.service-pads { background-image: url('./service-pads.webp'); background-position: center 58%; }
.service-pool { background-image: url('./service-pool.webp'); background-position: center; }
.service-utility { background-image: url('./service-utility.webp'); background-position: 62% center; }
.service-clearing { background-image: url('./service-clearing.webp'); background-position: 57% center; }

@media (max-width: 800px) {
  .service-grid article::after { opacity: .9; transform: none; content: 'FOSTER\'S GRADING'; }
  .service-grid article::before { background: linear-gradient(180deg, rgba(13, 15, 13, .1), rgba(13, 15, 13, .94) 86%); }
  .service-grid .featured::before { background: linear-gradient(90deg, rgba(13, 15, 13, .94), rgba(13, 15, 13, .55)); }
}

@media (prefers-reduced-motion: reduce) {
  .service-grid article::after { transition: none; }
}
