/* Remove framing around featured offers and align it to the shared content width. */
#root .ref-home-offers {
  background: transparent;
}

#root .ref-home-offers-panel {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Keep the offers heading clean as well as its outer panel. */
#root .ref-home-offers-heading {
  border-bottom: 0;
}

/* Product-category headings no longer need a divider below the title row. */
#root .ref-home-product-section .ref-section-heading {
  border-bottom: 0;
}

/* Keep homepage sections on one continuous surface so their edges do not read as white dividers. */
#root .ref-home {
  background: #f5f8fc;
}

#root .ref-home > :is(
  .ref-home-hero,
  .ref-home-intro,
  .ref-home-benefits,
  .ref-home-offers,
  .ref-home-product-section,
  .ref-home-projects,
  .ref-home-news,
  .ref-home-faq,
  .ref-home-locations
) {
  background: transparent;
  border-block: 0;
}

#root .ref-home > .ref-home-locations {
  background: transparent !important;
  border-block: 0 !important;
}

#root .ref-home > :is(.ref-home-product-section, .ref-home-projects, .ref-home-news) {
  border-bottom: 0;
}

/* Keep the four homepage benefits compact on phones. */
@media (max-width: 760px) {
  #root .ref-home-intro {
    padding-bottom: 12px;
  }

  #root .ref-home-benefits {
    padding-block: 0;
  }

  #root .ref-home-benefit-grid {
    gap: 2px 10px;
    padding-block: 6px;
  }

  #root .ref-home-benefit-grid > div {
    min-height: 66px;
    padding: 7px 9px;
    gap: 2px;
  }

  #root .ref-home-benefit-grid b {
    font-size: 30px;
    line-height: 1;
  }

  #root .ref-home-benefit-grid b.ref-home-benefit-word {
    font-size: 21px;
    line-height: 1.1;
  }

  #root .ref-home-benefit-grid span {
    font-size: 12px;
    line-height: 1.25;
  }
}

@media (max-width: 420px) {
  #root .ref-home-benefit-grid {
    gap: 2px 8px;
  }

  #root .ref-home-benefit-grid > div {
    min-height: 62px;
    padding: 6px 7px;
  }

  #root .ref-home-benefit-grid b {
    font-size: 28px;
  }

  #root .ref-home-benefit-grid b.ref-home-benefit-word {
    font-size: 20px;
  }

  #root .ref-home-benefit-grid span {
    font-size: 11px;
  }
}
