/* Home Reviews — static cards. Up to three reviews (Google + testimonials),
   3-across on desktop, stacked on mobile. Markup: HomeReviewsStaticRenderer. */

.hr-reviews {
    background: #eef2f7;
    padding: 44px 16px 52px;
    font-family: inherit;
    box-sizing: border-box;
    /* Matches .specials-1card / .specials-3card, the content panels this block
       sits between — it was the only square-cornered box in the stack. */
    border-radius: 30px;
    /* Decorative circles (::before/::after) are positioned against this box
       and clipped to it; cards/heading sit above them via z-index. */
    position: relative;
    overflow: hidden;
}

/* Two large soft circles drifting behind the cards (mockup style): one pale
   near the upper-left, one slightly deeper near the lower-right. Subtle on
   purpose — the tint difference against the base is a few percent. */
.hr-reviews::before,
.hr-reviews::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hr-reviews::before {
    width: 720px;
    height: 720px;
    left: -180px;
    top: -260px;
    background: rgba(255, 255, 255, 0.75);
}

.hr-reviews::after {
    width: 900px;
    height: 900px;
    right: -280px;
    bottom: -420px;
    background: rgba(172, 188, 213, 0.4);
}

.hr-reviews * { box-sizing: border-box; }

.hr-heading {
    text-align: center;
    margin: 0 0 32px;
    font-size: 2rem;
    font-weight: 700;
    color: #1c1f24;
    position: relative;
    z-index: 1;
}

.hr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hr-grid[data-card-count="2"] {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
}

.hr-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    position: relative;
    /* Pro themes center everything inside <main>; reviews read better ragged-right */
    text-align: left;
}

.hr-gbadge {
    position: absolute;
    top: 16px;
    right: 16px;
    line-height: 0;
}

.hr-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    /* keep clear of the corner badge */
    padding-right: 28px;
}

.hr-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.hr-avatar img {
    /* Override theme rule "#content img { margin-left: 10px }" which would
       push the photo off-center inside its circular wrapper. */
    margin: 0 !important;
}

.hr-who {
    font-weight: 700;
    font-size: 1rem;
    color: #1c1f24;
    line-height: 1.3;
}

.hr-date {
    color: #8a939e;
    font-size: 0.85rem;
}

.hr-stars {
    margin-bottom: 10px;
    line-height: 1;
}

.hr-star {
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.hr-star-full { color: #f5b015; }
.hr-star-empty { color: #ddd; }

.hr-quote {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #444;
}

/* More/Less expander for long quotes (mirrors the carousel's tc-* pattern) */
.hr-quote-short { display: inline; }
.hr-quote-full { display: none; }

.hr-card.hr-expanded .hr-quote-short { display: none; }
.hr-card.hr-expanded .hr-quote-full { display: inline; }

.hr-more-link {
    display: inline-block;
    margin-left: 4px;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: #1e88e5;
    cursor: pointer;
}

.hr-more-link:hover { text-decoration: underline; }
.hr-more-link:focus { outline: 2px solid #1e88e5; outline-offset: 2px; border-radius: 2px; }

/* Mobile: stacked cards */
@media (max-width: 700px) {
    .hr-reviews { padding: 32px 16px 40px; }
    .hr-heading { font-size: 1.5rem; margin-bottom: 22px; }
    /* The desktop-sized circles are wider than a phone: their edges cross the
       stacked cards as stray bands. Shrink them to corner accents whose full
       curvature is visible, so the shape reads deliberate. */
    .hr-reviews::before {
        width: 240px;
        height: 240px;
        left: -90px;
        top: -70px;
    }
    .hr-reviews::after {
        width: 320px;
        height: 320px;
        right: -110px;
        bottom: -100px;
    }
    .hr-grid,
    .hr-grid[data-card-count="2"] {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
}
