/*
 * Customer reviews as text — template-parts/review-card.php.
 *
 * Loaded on the homepage and the service pages, after every other page
 * stylesheet except footer.css, so it wins ties with front-page.css.
 *
 * On the homepage a card is also .rn-testimonials__item, which front-page.css
 * gives a frame, a 3-column grid and a phone swipe carousel; the load-more
 * script pages through it by that class. On the service pages front-page.css is
 * not loaded at all, so .rn-review carries a complete card of its own and
 * .rn-reviews-grid its own grid. Both paths end up looking the same.
 */

.rn-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1rem;
}

.rn-review {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem 1.3rem;
    border-radius: 1rem;
    background: linear-gradient(155deg, rgba(24, 24, 42, 0.92), rgba(6, 6, 14, 0.96));
    border: 1.5px solid rgba(208, 177, 212, 0.22);
    box-shadow: 0 12px 28px rgba(5, 5, 15, 0.45);
    color: var(--ct-text);
    text-align: start;
}

/* The homepage frame was built for a screenshot that opened a lightbox: tight
   padding, a pointer cursor, and a lift on hover inviting the click. Text cards
   open nothing, so none of that applies. */
.rn-testimonials__item.rn-review {
    padding: 1.25rem 1.3rem;
    cursor: auto;
}

.rn-testimonials__item.rn-review:hover {
    transform: none;
}

.rn-review__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rn-review__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--ct-accent-gradient);
    color: var(--ct-primary);
    font-weight: 800;
    font-size: 1.1rem;
}

.rn-review__who {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.rn-review__name {
    color: var(--ct-text);
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rn-review__meta {
    color: var(--ct-muted);
    font-size: 0.8rem;
}

.rn-review__source {
    flex-shrink: 0;
    color: var(--ct-muted);
    font-size: 1.1rem;
}

/* Google's own star colour, so the row reads as a Google rating at a glance. */
.rn-review__stars {
    display: flex;
    gap: 0.15rem;
    color: #fbbc04;
    font-size: 0.95rem;
}

.rn-review__text {
    margin: 0;
    flex: 1;
}

.rn-review__text p {
    margin: 0;
    color: rgba(244, 244, 251, 0.88);
    line-height: 1.85;
    font-size: 0.98rem;
}

.rn-review__services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.rn-review__chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: rgba(191, 171, 211, 0.1);
    border: 1px solid rgba(208, 177, 212, 0.3);
    color: var(--ct-accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

a.rn-review__chip:hover,
a.rn-review__chip:focus-visible {
    color: var(--ct-accent-light);
    border-color: var(--ct-accent);
}

/* The link to the full list on Google — the reviews' proof of origin. */
.rn-reviews-source {
    margin-top: 1.25rem;
    text-align: center;
}

.rn-reviews-source a {
    color: var(--ct-accent);
    font-weight: 600;
}

.rn-reviews-source a:hover {
    color: var(--ct-accent-light);
}

@media (max-width: 767.98px) {
    /* front-page.css sets the phone carousel card to 0.35rem of padding so a
       screenshot could use every pixel of width. Text needs breathing room. */
    .rn-testimonials__item.rn-review {
        padding: 1rem 1.05rem;
    }
}
