/* =============================================
   Testimonial Block — taubenloft/testimonial
   Figma 1:2582 (1920×591)
   ─────────────────────────────────────────────
   Section padding:   120 / 240 / 120 / 240
   itemSpacing:       64 (quote → meta → link)
   Background:        darkened photo (filter exposure -0.39)
   Quote:             48 / 57.6 / 500 / #B9BEC5
   Logo + attribution: 16 / 19.2 / 500 / #B9BEC5
   Link:              14 / 19.1 / 500 / upper / #EAEBE6 + underline + arrow
   ============================================= */

.tl-testimonial {
    position: relative;                  /* anchor for overlay pseudo-element */
    color: #b9bec5;
    font-family: 'Nunito Sans', 'Nunito Sans Fallback', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    padding: 120px 24px;
    background-color: #333a42;
    background-size: cover;
    /* Figma applies imageTransform Y scale 0.231 + Y offset 0.207 → we see only
       the TOP ~23% of the portrait source (the pigeon's head area). Approximate
       with background-position-y ~20% from top. */
    background-position: center 20%;
    background-repeat: no-repeat;
    /* background-image set inline (overlay + photo) */
}

/* Dark overlay — mimics Figma's exposure: -0.39 filter on the bg image.
   Pure black 50% — neutral darkening without color cast (per user-confirmed value). */
.tl-testimonial::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 0;
}

.tl-testimonial__container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 64px;                  /* Figma 2026-05: container itemSpacing = 64 between quote↔logo, attribution↔link */
}

.tl-testimonial__quote {
    margin: 0;
    font-size: 48px;
    line-height: 57.6px;
    font-weight: 500;
    color: #b9bec5;
    letter-spacing: 0;
    quotes: none;
}

.tl-testimonial__meta {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;       /* keep logo at its intrinsic width, left-aligned */
}

.tl-testimonial__logo {
    height: 34px;
    width: auto;
    display: block;
    object-fit: contain;
    /* Figma shows the source logo as a light desaturated mark on the dark bg.
       brightness(0) makes it solid black, invert(1) flips to white, opacity dims. */
    filter: brightness(0) invert(1) opacity(0.75);
}

.tl-testimonial__attribution {
    margin: 0;
    font-size: 16px;
    line-height: 19.2px;
    font-weight: 500;
    color: #b9bec5;
}

/* Link — Figma 2026-05 (verified by image export of node I81:7529;921:4020;679:1982):
   text + underline (ONLY under text, not under icon) + arrow ↘ (down-right).
   Icon name in Figma JSON is misleading ("Arrow up-right") but renders down-right.
   Style: 14/19.1 Medium UPPER #EAEBE6. Arrow 24×24. gap 4. */
.tl-testimonial__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;                              /* Figma itemSpacing */
    font-size: 14px;
    line-height: 19.1px;
    font-weight: 500;
    text-transform: uppercase;
    color: #eaebe6 !important;
    text-decoration: none;                 /* parent <a> — no underline; span carries it */
    width: -moz-fit-content;
    width: fit-content;
    transition: opacity 0.2s;
}
/* Underline lives on the inner <span> so it only spans the text, not the arrow icon */
.tl-testimonial__link > span {
    text-decoration: underline;
    text-decoration-color: #eaebe6;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
}
.tl-testimonial__link:hover,
.tl-testimonial__link:focus {
    color: #eaebe6 !important;
    opacity: 0.85;
    text-decoration: none;
}
.tl-testimonial__link svg {
    display: block;
    width: 17px;                /* per user DevTools tweak: tighter sizing 17×20 */
    height: 20px;
    transition: transform 0.25s ease-out;
}
.tl-testimonial__link:hover svg,
.tl-testimonial__link:focus svg {
    transform: translate(2px, 2px);   /* subtle nudge ↘ on hover (matches arrow direction) */
}

/* ── Laptop ≤1440 ─────────────────────────────────── */
@media (max-width: 1440px) {
    .tl-testimonial { padding: 120px 32px; }  /* keep Figma 120 vertical, tablet 32 horizontal */
    /* Keep quote at 48/57.6 per Figma — only shrink padding, not type */
}

/* ── Tablet ≤1024 ─────────────────────────────────── */
@media (max-width: 1024px) {
    .tl-testimonial { padding: 80px 32px; }
    .tl-testimonial__quote { font-size: 32px; line-height: 40px; }
    .tl-testimonial__container { gap: 36px; }
}

/* ── Mobile ≤767 — Figma 1:2602 (440×658) ─────────
   padding 64/16/64/16, gap 64 between blocks
   Quote: 38/45.6 weight 500
   Logo: 34h, attribution 16/19.2 w 500
   Link: 14/19.1 w 500 upper underline
*/
@media (max-width: 767px) {
    .tl-testimonial { padding: 64px 16px; }
    .tl-testimonial::before { background: rgba(0, 0, 0, 0.7); }  /* darker overlay on mobile */
    .tl-testimonial__container { gap: 48px; }
    .tl-testimonial__quote {
        font-size: 38px;             /* Figma mobile 1:2602: 38/45.6 */
        line-height: 45.6px;
    }
    .tl-testimonial__meta { gap: 16px; }
}
