/* Dev homepage variant. Load after home-refresh.css and home-integration.css.
 * Each selector is limited to the existing homepage split sections.
 * No content replacement or changes to the separate service video are needed.
 */
.htc-home-refresh :is(#service, #buses, #careers).refresh-section {
  padding: 0;
}

.htc-home-refresh :is(.service-feature, .bus-feature, .career-feature).container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: none;
  min-height: 560px;
  margin: 0;
  padding: 0;
}

/* Copy supplies the row height, including expanded bus details. */
.htc-home-refresh :is(.bus-feature, .career-feature) > .wp-block-group,
.htc-home-refresh .service-feature > .service-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  min-width: 0;
  padding: clamp(44px, 5vw, 90px) clamp(32px, 4.3vw, 82px);
}

.htc-home-refresh :is(.bus-feature, .career-feature) > .wp-block-image,
.htc-home-refresh .service-feature > .service-photo {
  position: relative;
  display: block;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  height: auto;
  margin: 0;
}

.htc-home-refresh .service-feature > .service-photo > .wp-block-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

.htc-home-refresh :is(.bus-feature, .career-feature) > .wp-block-image > img,
.htc-home-refresh .service-feature > .service-photo > .wp-block-image > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

.htc-home-refresh .career-feature > .wp-block-image > img {
  object-position: 50% 35%;
}

.htc-home-refresh .service-feature > .service-photo > p {
  z-index: 1;
  right: 24px;
  width: fit-content;
  max-width: calc(100% - 48px);
}

.htc-home-refresh .career-feature > .wp-block-group > p:not(.eyebrow),
.htc-home-refresh .service-copy > p:not(.eyebrow) {
  font-size: 17px;
}

.htc-home-refresh :is(.bus-feature, .career-feature) > .wp-block-group > :is(p, h2, .wp-block-buttons, .btn-row, details),
.htc-home-refresh .service-copy > * {
  width: 100%;
  max-width: 650px;
}

.htc-home-refresh .career-feature .wp-block-button__link {
  white-space: normal;
}

@media (max-width: 900px) {
  .htc-home-refresh :is(.service-feature, .bus-feature, .career-feature).container {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .htc-home-refresh :is(.bus-feature, .career-feature) > .wp-block-image,
  .htc-home-refresh .service-feature > .service-photo {
    grid-column: 1;
    grid-row: 1;
    height: clamp(260px, 53vw, 440px);
    min-height: 0;
  }

  .htc-home-refresh :is(.bus-feature, .career-feature) > .wp-block-group,
  .htc-home-refresh .service-feature > .service-copy {
    grid-column: 1;
    grid-row: 2;
    padding: 42px clamp(22px, 5vw, 48px) 48px;
  }

  .htc-home-refresh .service-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .htc-home-refresh .service-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}
