/**
 * /assets/css/components/testimonials.css
 *
 * Testimonials component — Rara Avis
 * Restraint is luxury. Typography leads; structure disappears.
 */

/* ============================================================
   SECTION
   ============================================================ */
.testimonials-section {
    position: relative;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 5rem;
}

.testimonials-subtitle {
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    font-weight: 300;
    text-transform: uppercase;
}


/* ============================================================
   GRID
   ============================================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1060px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}


/* ============================================================
   CARD
   Transparent by default — just a hairline border.
   The dark page shows through; nothing competes with the text.
   ============================================================ */
.testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.018);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1rem;
    padding: 3rem 2.75rem 2.25rem;
    overflow: hidden;
    transition: border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                background   0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    border-color: rgba(212, 175, 55, 0.22);
    background: rgba(255, 255, 255, 0.026);
}


/* ============================================================
   WATERMARK QUOTE MARK
   Barely visible — felt more than seen.
   ============================================================ */
.testimonial-quote-mark {
    position: absolute;
    top: 1.25rem;
    right: 2rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 9rem;
    line-height: 1;
    color: var(--gold);
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.6s ease;
}

.testimonial-card:hover .testimonial-quote-mark {
    opacity: 0.09;
}


/* ============================================================
   DATE
   ============================================================ */
.testimonial-date {
    display: inline-block;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.65;
    font-weight: 400;
    margin-bottom: 1.5rem;
    transition: opacity 0.4s ease;
}

.testimonial-card:hover .testimonial-date {
    opacity: 0.9;
}


/* ============================================================
   GREETING
   ============================================================ */
.testimonial-greeting {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.9rem;
    color: rgba(248, 246, 241, 0.32);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}


/* ============================================================
   BODY  — the centrepiece
   ============================================================ */
.testimonial-body {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.85;
    color: rgba(248, 246, 241, 0.82);
    margin: 0;
    flex-grow: 1;
    quotes: none;
    transition: color 0.4s ease;
}

.testimonial-card:hover .testimonial-body {
    color: rgba(248, 246, 241, 0.93);
}


/* ============================================================
   DIVIDER — a quiet hairline
   ============================================================ */
.testimonial-divider {
    width: 2rem;
    height: 1px;
    background: rgba(212, 175, 55, 0.35);
    margin: 2rem 0 1.75rem;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.5s ease;
}

.testimonial-card:hover .testimonial-divider {
    width: 3.5rem;
    background: rgba(212, 175, 55, 0.55);
}


/* ============================================================
   FOOTER
   ============================================================ */
.testimonial-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
}

.testimonial-sig-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.testimonial-signature {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: rgba(248, 246, 241, 0.55);
    font-weight: 300;
}

.testimonial-origin {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    color: rgba(248, 246, 241, 0.3);
    font-weight: 300;
    text-transform: uppercase;
}


/* ============================================================
   VIEW ORIGINAL — bare text link, no pill
   ============================================================ */
.testimonial-view-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    border: none;
    background: transparent;
    color: rgba(248, 246, 241, 0.28);
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.35s ease;
    white-space: nowrap;
}

.testimonial-view-btn svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.testimonial-view-btn:hover:not(:disabled) {
    color: rgba(212, 175, 55, 0.6);
}

.testimonial-view-btn:hover:not(:disabled) svg {
    opacity: 1;
    transform: scale(1.15);
}

.testimonial-view-btn--placeholder {
    opacity: 0.2;
    cursor: default;
}

.testimonial-view-btn:focus-visible {
    outline: 1px solid rgba(212, 175, 55, 0.5);
    outline-offset: 4px;
    border-radius: 2px;
}


/* ============================================================
   LIGHTBOX
   ============================================================ */
.t-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.t-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.t-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 2, 4, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.t-lightbox__inner {
    position: relative;
    z-index: 1;
    max-width: min(88vw, 800px);
    max-height: 90vh;
    width: 100%;
    padding: 1.25rem;
}

.t-lightbox__figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.t-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.06),
        0 48px 96px rgba(0, 0, 0, 0.75);
    transform: scale(0.97) translateY(6px);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.t-lightbox.is-open .t-lightbox__img {
    transform: scale(1) translateY(0);
}

.t-lightbox__caption {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(248, 246, 241, 0.25);
}

.t-lightbox__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    background: transparent;
    color: rgba(248, 246, 241, 0.35);
    cursor: pointer;
    transition:
        border-color 0.3s ease,
        color        0.3s ease,
        transform    0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.t-lightbox__close svg {
    width: 15px;
    height: 15px;
}

.t-lightbox__close:hover {
    border-color: rgba(212, 175, 55, 0.3);
    color: rgba(248, 246, 241, 0.8);
    transform: rotate(90deg);
}

.t-lightbox__close:focus-visible {
    outline: 1px solid rgba(212, 175, 55, 0.5);
    outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .testimonial-card,
    .testimonial-divider,
    .testimonial-body,
    .testimonial-date,
    .testimonial-quote-mark,
    .testimonial-view-btn svg,
    .t-lightbox,
    .t-lightbox__img,
    .t-lightbox__close {
        transition: none;
    }
}
