/* ============================================================
   DESNORA TESTIMONIALS - testimonials.css (loaded only on testimonials.php)
   Builds on css/headers.css, css/about.css (stats band, sections, CTA)
   and css/case-studies.css (lightbox). Reviews are transcribed word for
   word from the Fiverr screenshots; "View original review" opens them.
   ============================================================ */

.tm-hero {
    padding-bottom: 9rem;
}

.tm-hero .ph-crumbs {
    justify-content: center;
}

.tm-h2 {
    margin-top: 1.25rem;
}

/* ---- cards ---- */
.tm-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.6rem;
    border-radius: 20px;
    background: linear-gradient(160deg, #141418, #0a0a0d 75%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px -35px rgba(0, 0, 0, 0.95);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tm-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 244, 238, 0.3);
    box-shadow: 0 26px 50px -28px rgba(37, 244, 238, 0.35);
}

.tm-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.tm-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tm-stars span {
    font-size: 1rem;
    letter-spacing: 2px;
    color: #FFC24B;
}

.tm-stars b {
    font: 700 0.85rem 'Poppins', sans-serif;
    color: #fff;
}

.tm-source {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1dbf73;
}

.tm-quote {
    position: relative;
    margin: 0;
    padding: 0;
    border: 0;
}

.tm-quote p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.75;
    color: #d4d4da;
}

.tm-person {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tm-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font: 700 1rem 'Poppins', sans-serif;
    color: #05070d;
    background: linear-gradient(135deg, #FE2C55, #25F4EE);
}

.tm-who {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tm-who b {
    font: 600 0.92rem 'Poppins', sans-serif;
    color: #fff;
    overflow-wrap: anywhere;
}

.tm-who span {
    font-size: 0.78rem;
    color: #8b8b95;
}

.tm-repeat {
    margin-left: auto;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #25F4EE;
    background: rgba(37, 244, 238, 0.08);
    border: 1px solid rgba(37, 244, 238, 0.28);
}

.tm-original {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: none;
    font: 500 0.78rem 'Inter', sans-serif;
    color: #8b8b95;
    text-decoration: underline;
    text-decoration-color: rgba(139, 139, 149, 0.4);
    text-underline-offset: 3px;
    cursor: zoom-in;
}

.tm-original:hover,
.tm-original:focus-visible {
    color: #25F4EE;
    text-decoration-color: #25F4EE;
}

.tm-original:focus-visible {
    outline: 2px solid #25F4EE;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---- featured ---- */
.tm-featured {
    position: relative;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.tm-featured-label {
    display: block;
    margin-bottom: 0.9rem;
    text-align: center;
    font: 700 0.72rem 'Poppins', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8b8b95;
}

.tm-card-featured {
    padding: 2.5rem 2.75rem 2rem;
    border: 0;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95), 0 0 70px -25px rgba(254, 44, 85, 0.35), 0 0 70px -25px rgba(37, 244, 238, 0.3);
    isolation: isolate;
}

.tm-card-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(254, 44, 85, 0.85), rgba(255, 255, 255, 0.08) 45%, rgba(37, 244, 238, 0.85));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    pointer-events: none;
}

.tm-card-featured .tm-quote::before {
    content: '\201C';
    position: absolute;
    top: -2.2rem;
    left: -0.5rem;
    font: 700 6rem/1 'Poppins', sans-serif;
    color: rgba(254, 44, 85, 0.18);
    pointer-events: none;
}

.tm-card-featured .tm-quote p {
    position: relative;
    font: 500 clamp(1.1rem, 1.8vw, 1.35rem)/1.65 'Poppins', sans-serif;
    color: #fff;
}

.tm-card-featured:hover {
    transform: none;
}

/* ---- masonry grid ---- */
.tm-grid {
    columns: 3 300px;
    column-gap: 1.25rem;
}

.tm-grid .tm-card {
    break-inside: avoid;
    margin-bottom: 1.25rem;
}

/* ---- responsive ---- */
@media (max-width: 768px) {
    .tm-hero {
        padding-bottom: 7rem;
    }

    .tm-card-featured {
        padding: 1.75rem 1.35rem 1.5rem;
    }

    .tm-card-featured .tm-quote p {
        font-size: 1.05rem;
    }

    .tm-card-featured .tm-quote::before {
        font-size: 4.5rem;
        top: -1.6rem;
    }

    .tm-grid {
        columns: 1;
    }
}

@media (max-width: 420px) {
    .tm-card {
        padding: 1.3rem 1.1rem;
    }

    .tm-repeat {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tm-card {
        transition: none;
    }

    .tm-card:hover {
        transform: none;
    }
}
