/* 02 / WASH YOUR WAY — split heading and the four-card service grid. */
.services-section {
  padding-top: 20px;
}

.split-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 20px;
}

.split-heading > p {
  font-size: 13px;
  color: var(--ink-soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}

.service-card {
  position: relative;
  padding: 28px 23px;
  border-right: 1px solid var(--line);
}

.service-card:last-child {
  border: 0;
}

.service-number {
  position: absolute;
  top: 24px;
  right: 22px;
  font: 11px Arial;
  color: #919888;
}

.service-symbol {
  font: 64px/1 Arial;
  color: #d36d2f;
  display: block;
  margin: 20px 0 35px;
}

.service-symbol .ui-icon {
  display: block;
  vertical-align: 0;
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 11px;
}

.service-card p {
  font-size: 11px;
  color: var(--ink-soft);
}

.service-en {
  display: block;
  margin-top: 30px;
  font: 8px Arial;
  letter-spacing: 1.3px;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  /* .section in layout.css sets the shared padding later in the original sheet's
     source order, so it wins over .services-section below 900px; restated here
     because layout.css now loads before this file. */
  .services-section {
    padding-top: 65px;
  }

  .split-heading > p {
    font-size: 14px;
    line-height: 1.8;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card:nth-child(2) {
    border-right: 0;
  }

  .service-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .service-card p {
    font-size: 14px;
    line-height: 1.8;
  }

  .service-en {
    font-size: 10px;
    letter-spacing: 0.8px;
  }
}

@media (max-width: 600px) {
  /* Same reason as the 900px block above. */
  .services-section {
    padding-top: 55px;
  }

  .split-heading {
    display: block;
    margin-bottom: 25px;
  }

  .split-heading > p {
    margin-top: 16px;
  }

  .service-card {
    padding: 24px 18px;
  }

  .service-card p br {
    display: none;
  }

  .service-symbol {
    margin: 13px 0 23px;
    font-size: 52px;
  }

  .service-en {
    margin-top: 20px;
  }
}

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

  .service-card:nth-child(n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  /* Must follow the :nth-child(n) rule above: equal specificity, later wins. */
  .service-card:last-child {
    border-bottom: 0;
  }
}
