/* Open three-service layout preview. */
@media (min-width: 1281px) {
  .services {
    padding-right: 6vw;
    padding-left: 6vw;
  }
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: clamp(30px, 3.2vw, 52px);
}

.service-card,
.service-card.charge,
.service-card.protect {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "photo index"
    "photo copy";
  align-items: start;
  column-gap: clamp(14px, 1.4vw, 22px);
  min-height: 0;
  height: auto;
  padding: 0;
  overflow: visible;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.service-card .service-photo-frame,
.service-card.charge .service-photo-frame {
  grid-area: photo;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.service-card .service-photo-frame::after {
  display: block;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 30%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 242, 224, 0) 0%,
    rgba(255, 242, 224, .12) 26%,
    rgba(255, 242, 224, .58) 68%,
    var(--cream) 100%
  );
}

.service-card .service-photo {
  object-position: center;
  transform: none;
  filter: none;
}

.service-card.charge .service-photo {
  object-position: 46% 52%;
}

.service-card.protect .service-photo {
  object-position: 48% 50%;
  filter: brightness(1.04) saturate(.84) contrast(.98) sepia(.05);
}

.service-card > span {
  grid-area: index;
  position: static;
  align-self: start;
  justify-self: start;
  margin: 0 0 18px;
  padding: 0;
  color: var(--wood);
  background: transparent;
  border-radius: 0;
}

.service-card > div,
.service-card.charge > div {
  grid-area: copy;
  align-self: start;
  margin: 0;
  padding: 0;
}

.service-card div > p:first-child {
  margin-bottom: 10px;
  color: var(--wood);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 1.85vw, 28px);
  line-height: 1.35;
}

.service-card div > p:last-child {
  margin: 0;
  color: #5b4a3d;
  font-size: 13px;
  line-height: 1.8;
}

.service-card > b { display: none; }

@media (max-width: 1280px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .service-card,
  .service-card.charge,
  .service-card.protect {
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "index"
      "copy";
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .service-card .service-photo-frame,
  .service-card.charge .service-photo-frame {
    aspect-ratio: 4 / 3;
  }

  .service-card .service-photo-frame::after {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 24%;
    background: linear-gradient(
      to bottom,
      rgba(255, 242, 224, 0) 0%,
      rgba(255, 242, 224, .22) 30%,
      rgba(255, 242, 224, .72) 72%,
      var(--cream) 100%
    );
  }

  .service-card > span {
    margin: 22px 0 14px;
  }

  .service-card h3 {
    font-size: clamp(28px, 4.2vw, 38px);
  }

  .service-card div > p:last-child {
    font-size: 14px;
    line-height: 1.9;
  }
}

@media (max-width: 850px) {
  .service-grid { gap: 40px; }

  .service-card,
  .service-card.charge,
  .service-card.protect {
    width: 100%;
  }

  .service-card h3 {
    font-size: clamp(29px, 8.5vw, 37px);
  }
}
