/* 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);
}

/* OCF_AGENT_BLOCK:service-photo-cards START */
.hb-services .hb-services__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}
.hb-services .hb-service-row,
.hb-services .hb-service-row:first-child {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  min-width: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ocf-border);
  border-radius: var(--card-radius, 8px);
  background: var(--ocf-bg);
  color: var(--ocf-heading);
  transition: border-color 160ms ease, background-color 160ms ease;
}
.hb-services .hb-service-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ocf-bg-alt);
}
.hb-services .hb-service-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.hb-services .hb-service-row > h3 {
  margin: 4px 24px 0;
  color: var(--ocf-heading);
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.3;
}
.hb-services .hb-service-row > p {
  margin: 0 24px;
  color: var(--ocf-body);
  line-height: 1.65;
}
.hb-services .hb-service-row > .hb-text-link {
  margin: auto 24px 24px;
  padding-top: 8px;
  color: var(--ocf-primary);
}
.hb-services .hb-service-row:hover {
  border-color: var(--ocf-primary);
  background: var(--ocf-bg-alt);
}
.hb-services .hb-service-row:focus-visible {
  outline: 3px solid var(--ocf-primary);
  outline-offset: 4px;
}
@media (max-width: 1199px) {
  .hb-services .hb-services__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}
@media (max-width: 639px) {
  .hb-services .hb-services__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}
/* OCF_AGENT_BLOCK:service-photo-cards END */

/* OCF_AGENT_BLOCK:center-service-titles START */
.hb-services .hb-section-heading {
  margin-inline: auto;
  text-align: center;
}
.hb-services .hb-section-heading > .hb-label {
  justify-content: center;
}
.hb-services .hb-service-row > h3 {
  text-align: center;
}
/* OCF_AGENT_BLOCK:center-service-titles END */

/* OCF_AGENT_BLOCK:reference-numbered-service-cards START */
.home main > .hb-services {
  background: var(--ocf-bg);
}
.home main > .hb-services .hb-section-heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}
.home main > .hb-services .hb-services__list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.home main > .hb-services .hb-service-row,
.home main > .hb-services .hb-service-row:first-child {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  min-height: 350px;
  padding: 32px 26px 30px calc(34% + 26px);
  border: 1px solid var(--ocf-border-light);
  border-radius: var(--card-radius, 8px);
  background: var(--ocf-bg-alt);
  text-align: center;
  transition: border-color 160ms ease;
}
.home main > .hb-services .hb-service-card__image {
  position: absolute;
  inset: 0 auto 0 0;
  width: 34%;
  height: 100%;
  aspect-ratio: auto;
  background: var(--ocf-bg-alt);
}
.home main > .hb-services .hb-service-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.home main > .hb-services .hb-service-row__number {
  display: block;
  align-self: auto;
  margin: 0;
  padding: 0;
  color: var(--ocf-primary);
  font: 500 40px/1.05 var(--font-heading);
  letter-spacing: -0.03em;
}
.home main > .hb-services .hb-service-row > h3 {
  margin: 0;
  color: var(--ocf-heading);
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.25;
  text-align: center;
}
.home main > .hb-services .hb-service-row > p {
  margin: 0;
  color: var(--ocf-body);
  font-size: 16px;
  line-height: 1.65;
  text-align: left;
}
.home main > .hb-services .hb-service-row > .hb-text-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: auto 0 0;
  padding-top: 8px;
  color: var(--ocf-primary);
  font-size: 15px;
}
.home main > .hb-services .hb-service-row:hover {
  border-color: var(--ocf-primary);
  background: var(--ocf-bg-alt);
}
.home main > .hb-services .hb-services__all {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 36px auto 0;
}
@media (min-width: 640px) and (max-width: 1023px) {
  .home main > .hb-services .hb-services__list {
    grid-template-columns: minmax(0, 1fr);
  }
  .home main > .hb-services .hb-service-row {
    min-height: 300px;
  }
}
@media (max-width: 639px) {
  .home main > .hb-services .hb-section-heading {
    margin-bottom: 30px;
  }
  .home main > .hb-services .hb-services__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .home main > .hb-services .hb-service-row,
  .home main > .hb-services .hb-service-row:first-child {
    min-height: 0;
    padding: 0 0 26px;
    gap: 16px;
  }
  .home main > .hb-services .hb-service-card__image {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .home main > .hb-services .hb-service-row__number {
    margin: 6px 24px 0;
    font-size: 36px;
  }
  .home main > .hb-services .hb-service-row > h3,
  .home main > .hb-services .hb-service-row > p {
    margin: 0 24px;
  }
  .home main > .hb-services .hb-service-row > .hb-text-link {
    margin: auto 24px 0;
  }
}
/* OCF_AGENT_BLOCK:reference-numbered-service-cards END */
