/* Harbor services: final shared rules and responsive variants. */
.hb-service-row {
  display: grid;
  grid-template-columns: 64px 300px minmax(0, 1fr) 184px;
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--ocf-border);
  border-radius: 0;
  color: var(--ocf-heading);
  text-decoration: none;
}

.hb-service-row:first-child {
  border-top: 1px solid var(--ocf-border);
}

.hb-service-row > * {
  margin: 0;
}

.hb-service-row__number {
  font: 500 14px/20px var(--font-body);
  color: var(--hb-accent-text);
}

.hb-service-row:hover h3 {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hb-services__all {
  display: inline-block;
  margin-top: 40px;
}

@media (max-width: 1199px) {
  .hb-service-row {
    grid-template-columns: 40px minmax(180px, 1fr) minmax(0, 1.2fr);
    gap: 24px;
  }
  .hb-service-row > .hb-text-link {
    grid-column: 2/-1;
  }
}

@media (max-width: 599px) {
  .hb-service-row {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 16px;
    padding-block: 24px;
  }
  .hb-service-row > p {
    grid-column: 2;
  }
  .hb-service-row > .hb-text-link {
    grid-column: 2;
  }
  .hb-service-row__number {
    align-self: start;
    padding-top: 6px;
  }
}

.home main > .hb-services {
  background: var(--ocf-bg);
}

.hb-services .hb-service-row__number {
  display: none;
}

.hb-services .hb-service-row {
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr) 184px;
}

.hb-services .hb-service-row > .hb-text-link {
  grid-column: auto;
}

@media (max-width: 1199px) {
  .hb-services .hb-service-row {
    grid-template-columns: minmax(180px, 1fr) minmax(0, 1.2fr);
  }
  .hb-services .hb-service-row > .hb-text-link {
    grid-column: 2;
  }
}

@media (max-width: 599px) {
  .hb-services .hb-service-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .hb-services .hb-service-row > p {
    grid-column: 1;
  }
  .hb-services .hb-service-row > .hb-text-link {
    grid-column: 1;
  }
}

.hb-services .hb-service-row > .hb-text-link {
  color: var(--ocf-secondary);
}

.hb-services .hb-service-row > .hb-text-link:hover {
  color: var(--ocf-secondary);
}
