/*
 * Testimonial block — scoped styles
 *
 * Whyso Design System — auto-generated from the Whyso hub.
 * Project: Contenze Test
 * Generated: 2026-05-10T14:58:03+00:00
 *
 * Scoped to .testimonial — relies on tokens.css being loaded.
 * One breakpoint maximum (structural layout shifts only — never size or
 * colour, those come from the fluid scales in tokens.css).
 */

.testimonial {
    padding-block: var(--space-2xl);
    /* Surface default — overridden by [data-surface] variants below */
    background: var(--color-bg);
    color: var(--color-text);
}

.testimonial__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Surface variants */

.testimonial[data-bg="light"] {
    background: var(--color-bg);
    color: var(--color-text);
}

.testimonial[data-bg="alt"] {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.testimonial[data-bg="dark"] {
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
}

/* Layout variants */

.testimonial[data-layout="single"] .testimonial__inner {
    /* TODO: style single layout */
}

.testimonial[data-layout="grid"] .testimonial__inner {
    /* TODO: style grid layout */
}

.testimonial[data-layout="carousel"] .testimonial__inner {
    /* TODO: style carousel layout */
}




/* ------------------------------------------------------------------
 * Block polish — from preview_sample.extra_css
 * Plus CSS for every component + animation the block references.
 * Matches byte-for-byte what /library preview inlines, so the
 * deployed block renders the same on a real WordPress site.
 * ------------------------------------------------------------------ */

/* --- preview_sample.extra_css --- */
.testimonial { padding-block: var(--space-2xl); }
.testimonial[data-size="lg"] { padding-block: var(--space-3xl); }
.testimonial__inner > * + * { margin-top: var(--space-xl); }
.testimonial__header { text-align: center; max-width: 48ch; margin-inline: auto; }
.testimonial__items { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.testimonial__item { margin: 0; padding: var(--space-lg); background: var(--color-bg); border-radius: var(--radius-lg); box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px -12px rgba(0,0,0,0.08); display: flex; flex-direction: column; gap: var(--space-sm); }
.testimonial__item-quote { margin: 0; font-size: var(--text-lg); line-height: 1.5; }
.testimonial__item-quote::before { content: "“"; font-size: 2.4em; line-height: 0; vertical-align: -0.3em; margin-right: 0.08em; color: var(--color-accent, var(--brand-neutral-400)); }
.testimonial__item-meta { display: flex; align-items: center; gap: var(--space-sm); font-size: var(--text-sm); margin-top: auto; }
.testimonial__item-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-neutral-300), var(--brand-neutral-500)); flex: none; }
.testimonial__item-byline { display: flex; flex-direction: column; line-height: 1.3; }
.testimonial__item-name { font-weight: 600; }
.testimonial__item-role { color: var(--color-text-muted); }
.testimonial[data-layout="single"] .testimonial__items { max-width: 56ch; margin-inline: auto; text-align: center; }
.testimonial[data-layout="single"] .testimonial__item { background: transparent; box-shadow: none; padding: 0; align-items: center; }
.testimonial[data-layout="single"] .testimonial__item-quote { font-size: var(--text-xl); }
.testimonial[data-layout="carousel"] .testimonial__items { grid-auto-flow: column; grid-auto-columns: minmax(min(100%, 340px), 1fr); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--container-pad); scrollbar-width: none; padding-bottom: var(--space-xs); }
.testimonial[data-layout="carousel"] .testimonial__items::-webkit-scrollbar { display: none; }
.testimonial[data-layout="carousel"] .testimonial__item { scroll-snap-align: start; }
.testimonial[data-surface="dark"] { background: var(--color-bg-dark); color: var(--color-text-inverse, #fff); }
.testimonial[data-surface="dark"] .testimonial__item { background: color-mix(in srgb, #fff 6%, transparent); box-shadow: none; }
.testimonial[data-surface="dark"] .testimonial__item-role { color: color-mix(in srgb, currentColor 65%, transparent); }
@media (min-width: 48rem) {
  .testimonial[data-layout="grid"] .testimonial__items { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* --- Components used — heading-h2 --- */
.heading-h2 {
    font-family: var(--brand-font-heading, inherit);
    font-weight: 700;
    font-size: var(--text-3xl);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
}


/* --- Animations used — reveal-stagger --- */
@keyframes wy-stagger-up {
  from { opacity: 0; transform: translateY(var(--anim-distance, 20px)); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal-stagger {
    > * {
    animation: wy-stagger-up var(--anim-duration, 400ms) var(--anim-easing, cubic-bezier(.16, 1, .3, 1)) both;
    animation-delay: calc(var(--i, 0) * var(--anim-stagger-step, 80ms));
    }
}

