/* ===== 9. Reviews: photo half + review platforms ===== */
.hm-reviews {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    padding-bottom: 0;
}
.hm-reviews[data-image-side="right"] .hm-reviews__media { order: 2; }

.hm-reviews__media {
    position: relative;
    min-height: clamp(440px, 48vw, 680px);
    overflow: hidden;
    border-radius: var(--hm-radius-media);
}
.hm-reviews__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--focus, 50% 50%);
}

.hm-reviews__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 64px);
    align-content: start;
    padding-inline-start: clamp(32px, 6vw, 120px);
    /* align the right edge with the page container (100% = this half) */
    padding-inline-end: max(var(--hm-gutter), calc(100% - var(--hm-container) / 2));
    padding-bottom: var(--hm-section-y);
}
.hm-reviews__eyebrow { display: none; }
.hm-reviews__title { max-width: 9em; }

.hm-reviews__list {
    display: grid;
    justify-items: center;
    gap: 22px;
    width: 120px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}
.hm-reviews__link {
    display: grid;
    place-items: center;
    width: 120px;
    min-height: 56px;
    text-decoration: none;
    transition: transform var(--hm-dur) var(--hm-ease);
}
.hm-reviews__link:hover { transform: scale(1.06); }
/* Logo is an uploaded image in the CMS: fixed box, contain */
.hm-reviews__logo { display: grid; place-items: center; width: 52px; height: 52px; }
.hm-reviews__logo--wide { width: 100px; height: 32px; }
.hm-reviews__logo-img { width: 100%; height: 100%; object-fit: contain; }
.hm-reviews__name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.hm-reviews__cta { padding-top: clamp(16px, 3.4vw, 48px); }
.hm-reviews__text { margin: 0; max-width: 15em; font-size: 14px; font-weight: 700; line-height: 1.3; }
.hm-reviews__btn { margin-top: 22px; min-width: 164px; }

@media (max-width: 1023px) {
    .hm-reviews { grid-template-columns: 1fr; }
    .hm-reviews[data-image-side="right"] .hm-reviews__media { order: 0; }
    .hm-reviews__media { min-height: 0; aspect-ratio: 16 / 9; }
    .hm-reviews__body {
        padding: clamp(40px, 6vw, 64px) var(--hm-gutter) var(--hm-section-y);
        max-width: calc(var(--hm-container) + var(--hm-gutter) * 2);
        width: 100%;
        margin-inline: auto;
    }
    .hm-reviews__list { display: flex; flex-wrap: wrap; align-items: center; justify-items: start; gap: 12px 20px; width: auto; }
    .hm-reviews__link { width: auto; min-width: 64px; }
}
@media (max-width: 767px) {
    .hm-reviews__media { aspect-ratio: 4 / 3; }
    .hm-reviews__body { grid-template-columns: 1fr; gap: 32px; }
    .hm-reviews__title { max-width: none; }
    .hm-reviews__cta { padding-top: 0; }
    .hm-reviews__btn { width: 100%; }
}
