/* ==========================================================================
   Kandryn Performance - Testimonials page (/testimonials)
   Gradient hero + equal-height review cards, 2 per row, each with a teal
   user-icon avatar beside the stars and a "Read more" toggle for long text.
   Reuses global eyebrow / button / section / container classes.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.tm-hero {
    position: relative;
    background:
        radial-gradient(130% 130% at 82% 8%, rgba(255,255,255,0.10), transparent 55%),
        linear-gradient(120deg, var(--teal-dark) 0%, var(--teal-deep) 55%, var(--charcoal) 100%);
    color: #fff;
    text-align: center;
    padding-block: clamp(4rem, 11vw, 7.5rem);
}
.tm-hero .eyebrow { color: #7de0df; }
.tm-hero h1 { color: #fff; margin-bottom: 0.9rem; font-size: clamp(2.4rem, 5.2vw, 3.7rem); }
.tm-hero p { color: #e4eaec; font-size: 1.18rem; line-height: 1.6; max-width: 44rem; margin: 0 auto; }

/* --------------------------------------------------------------------------
   Review wall - 2 per row, equal height
   -------------------------------------------------------------------------- */
.tm-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1040px;
    margin-inline: auto;
    align-items: stretch;
}
.tm-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--grey-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2.1rem 2.1rem 1.9rem;
    overflow: hidden;
}
/* teal accent bar along the top of each card */
.tm-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--teal);
}

/* Header: teal user avatar + gold stars */
.tm-card__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.1rem;
}
.tm-card__avatar {
    flex: 0 0 auto;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--teal);
    color: #fff;
    font-size: 1.2rem;
}
.tm-card__stars {
    color: #f4b400;
    letter-spacing: 0.14em;
    font-size: 0.98rem;
}

/* Quote text */
.tm-card__quote { margin: 0; position: relative; }
.tm-card__quote p { color: var(--ink); font-size: 1.02rem; line-height: 1.7; margin: 0; }
.tm-card__quote p + p { margin-top: 0.9rem; }

/* Collapsible behaviour is enabled by JS (graceful fallback: full text shown) */
.tm-card.is-collapsible .tm-card__quote { height: 11rem; overflow: hidden; }
.tm-card.is-collapsible.is-truncated .tm-card__quote::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3.2rem;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
    pointer-events: none;
}
.tm-card.is-collapsible.is-expanded .tm-card__quote { height: auto; overflow: visible; }
.tm-card.is-collapsible.is-expanded .tm-card__quote::after { display: none; }

/* Read more / less toggle - reserves its slot so all cards stay equal height */
.tm-card__more {
    display: none;
    align-self: flex-start;
    margin-top: 1rem;
    align-items: center;
    gap: 0.45rem;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--teal-dark);
}
.tm-card.is-collapsible .tm-card__more { display: inline-flex; visibility: hidden; }
.tm-card.is-collapsible.is-truncated .tm-card__more { visibility: visible; }
.tm-card__more:hover { color: var(--teal); }
.tm-card__more i { font-size: 0.8rem; transition: transform 0.25s var(--ease); }
.tm-card.is-expanded .tm-card__more i { transform: rotate(180deg); }

/* Attribution - pinned to the foot of the card */
.tm-card__by {
    margin-top: 1.5rem;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--charcoal);
    font-size: 1rem;
}
.tm-card__by span {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.tm-cta { text-align: center; }
.tm-cta h2 { margin-bottom: 0.8rem; }
.tm-cta p { max-width: 620px; margin: 0 auto 2rem; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
    .tm-list { grid-template-columns: 1fr; max-width: 560px; }
}
