/* RefineX homepage: one shared introduction standard for card-based sections.
   Parent theme retains all colour, type, card, spacing and responsive design tokens. */
.site-main--front-page #services .services-section__inner,
.site-main--front-page #materials .materials-section__inner,
.site-main--front-page #process .process-section__inner { display: block; }

/* Old service heading was a flex row for a different content structure. */
.site-main--front-page #services .services-section__heading {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
}
/* Match the existing Process full-width introduction; remove the inconsistent
   legacy Services title spacing and Who We Work With width restriction. */
.site-main--front-page #services .services-section__title,
.site-main--front-page #materials .materials-section__title,
.site-main--front-page #process .process-section__title,
.site-main--front-page #why-refinex .why-refinex-section__title {
    max-width: none;
    margin-bottom: 21px !important;
}
.site-main--front-page #services .services-section__description,
.site-main--front-page #materials .materials-section__description,
.site-main--front-page #process .process-section__description,
.site-main--front-page #why-refinex .why-refinex-section__description {
    max-width: none;
    margin-block: 0;
}
/* Existing grid and feature preserve their parent styles. CTA follows the feature. */
.site-main--front-page #services .services-section__inner > .refinex-services-detail-cta {
    margin: 26px 0 0;
    text-align: start;
}
.site-main--front-page #services .refinex-services-detail-cta__button {
    max-width: 100%;
    white-space: normal;
    text-align: center;
}
@media (max-width: 750px) {
    .site-main--front-page #services .services-section__title,
    .site-main--front-page #materials .materials-section__title,
    .site-main--front-page #process .process-section__title,
    .site-main--front-page #why-refinex .why-refinex-section__title { margin-bottom: 20px !important; }
}

/* Shared closing notes for card-based sections. Keep all wording and links intact. */
.site-main--front-page #materials .rx-v2-exclusion,
.site-main--front-page #process .rx-v2-process-footnote {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 24px 0 26px;
    font-size: var(--rx-size-body, 1rem);
    line-height: 1.65;
}
/* Match the breathing room between headings and cards elsewhere on the homepage. */
.site-main--front-page #process .rx-v2-outcomes-heading {
    margin: 24px 0 16px;
}
.site-main--front-page #materials .materials-section__inner > .button,
.site-main--front-page #process .process-section__inner > .button {
    margin-block-start: 0;
    justify-self: start;
    max-width: 100%;
    white-space: normal;
    text-align: center;
}
