/* dc-jilpaq-testimonials widget (developercode-core). Colours come from the widget controls via Elementor selectors. */
.dc-jilpaq-testimonials {
    --p: #C8102E;
    --d: #0A0A0A;
    --bg: #FFF8EE;
}
.dc-jilpaq-testimonials *, .dc-jilpaq-testimonials *::before, .dc-jilpaq-testimonials *::after { box-sizing: border-box; }

.dc-jilpaq-testimonials .jq-tst {
    position: relative; background: var(--bg); color: var(--d);
    padding: clamp(56px, 9vh, 110px) clamp(20px, 4vw, 56px);
    overflow: hidden;
    font-family: 'Inter','Poppins',system-ui,sans-serif;
}
.dc-jilpaq-testimonials .jq-tst__inner {
    max-width: 1180px; margin: 0 auto; position: relative;
}

/* Header — groot bold à la design-006 */
.dc-jilpaq-testimonials .jq-tst__header {
    max-width: 880px; margin: 0 0 clamp(56px, 7vh, 84px);
}
.dc-jilpaq-testimonials .jq-tst__eyebrow { margin-bottom: 28px; }
.dc-jilpaq-testimonials .jq-tst__title {
    font-family: 'Poppins','Inter','DM Sans',system-ui,sans-serif;
    font-size: clamp(38px, 6vw, 76px);
    font-weight: 800; line-height: 1.05; letter-spacing: -.025em;
    margin: 0 0 18px; color: var(--d);
}
.dc-jilpaq-testimonials .jq-tst__title em {
    font-style: normal; color: var(--p);
}
.dc-jilpaq-testimonials .jq-tst__lead {
    font-size: clamp(17px, 1.6vw, 22px);
    font-weight: 500; line-height: 1.45;
    color: var(--p); margin: 0;
    max-width: 760px;
}

/* Stack */
.dc-jilpaq-testimonials .jq-tst__stack {
    position: relative;
    width: 100%;
    height: clamp(620px, 70vw, 760px);
    margin-top: 32px;
}

.dc-jilpaq-testimonials .jq-tst__card {
    position: absolute;
    background: #fff;
    border-radius: 18px;
    padding: 22px 24px 24px;
    box-shadow:
        0 22px 50px -28px rgba(10,10,10,.22),
        0 4px 12px -4px rgba(10,10,10,.06);
    border: 1px solid rgba(10,10,10,.05);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform .55s cubic-bezier(.22,1,.36,1), box-shadow .45s ease, z-index 0s linear;
    opacity: 0;
    transform: translateY(28px) rotate(var(--rot, 0deg));
    will-change: transform;
}
.dc-jilpaq-testimonials .jq-tst__card.is-in {
    opacity: 1;
    transform: translateY(0) rotate(var(--rot, 0deg));
}
.dc-jilpaq-testimonials .jq-tst__card:hover {
    transform: translateY(-6px) rotate(0deg) scale(1.02);
    z-index: 30 !important;
    box-shadow:
        0 36px 80px -32px color-mix(in srgb, var(--p) 35%, transparent),
        0 6px 16px -4px rgba(10,10,10,.08);
}

/* Card kop — avatar / icoon + zaak naam (zoals "ChatGPT", "Copilot" in design) */
.dc-jilpaq-testimonials .jq-tst__card-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.dc-jilpaq-testimonials .jq-tst__avatar {
    width: 32px; height: 32px; border-radius: 50%;
    overflow: hidden; background: color-mix(in srgb, var(--p) 10%, transparent);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--p); font-weight: 700; font-size: 13px;
    flex-shrink: 0;
    border: 1px solid rgba(10,10,10,.06);
}
.dc-jilpaq-testimonials .jq-tst__avatar img { width: 100%; height: 100%; object-fit: cover; }
.dc-jilpaq-testimonials .jq-tst__shop {
    font-family: 'Inter','Poppins',sans-serif;
    font-size: 14px; font-weight: 600; color: var(--d);
    letter-spacing: -.01em;
}

/* Quote */
.dc-jilpaq-testimonials .jq-tst__quote {
    font-family: 'Inter','Poppins',sans-serif;
    font-size: 14px; line-height: 1.55;
    color: rgba(10,10,10,.78); margin: 4px 0 0;
}

/* Meta (sterren + naam · stad) */
.dc-jilpaq-testimonials .jq-tst__meta {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(10,10,10,.06);
}
.dc-jilpaq-testimonials .jq-tst__stars {
    display: inline-flex; gap: 2px; color: var(--p);
}
.dc-jilpaq-testimonials .jq-tst__stars svg { width: 13px; height: 13px; fill: currentColor; }
.dc-jilpaq-testimonials .jq-tst__person {
    font-size: 12px; color: rgba(10,10,10,.55); font-weight: 500;
    text-align: right; line-height: 1.3;
}
.dc-jilpaq-testimonials .jq-tst__person b {
    font-weight: 700; color: var(--d);
}

/* Rode pill badge (zoals "Geen grip" / "Data lek" in design) */
.dc-jilpaq-testimonials .jq-tst__badge {
    position: absolute;
    top: -12px; right: 18px;
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--p); color: #fff;
    padding: 7px 14px;
    border-radius: 100px;
    font-size: 12px; font-weight: 700; letter-spacing: .01em;
    box-shadow: 0 8px 18px -6px color-mix(in srgb, var(--p) 55%, transparent);
}
.dc-jilpaq-testimonials .jq-tst__badge svg {
    width: 13px; height: 13px;
}
.dc-jilpaq-testimonials .jq-tst__badge--left {
    right: auto; left: 18px;
}

/* Donkere @handle tooltip popover */
.dc-jilpaq-testimonials .jq-tst__tooltip {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex; align-items: center;
    background: rgba(20,20,20,.88);
    color: #fff;
    padding: 7px 16px;
    border-radius: 100px;
    font-family: 'Inter',sans-serif;
    font-size: 13px; font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 10px 28px -10px rgba(0,0,0,.45);
    z-index: 20;
}
.dc-jilpaq-testimonials .jq-tst__tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px; height: 10px;
    background: rgba(20,20,20,.88);
    border-radius: 2px;
}

/* Posities + rotaties per kaart (staircase) */
.dc-jilpaq-testimonials .jq-tst__card:nth-child(1) {
    --rot: -3deg;
    top: 0; left: 2%; width: 46%;
    z-index: 5;
}
.dc-jilpaq-testimonials .jq-tst__card:nth-child(2) {
    --rot: 1deg;
    top: 12%; left: 28%; width: 48%;
    z-index: 6;
}
.dc-jilpaq-testimonials .jq-tst__card:nth-child(3) {
    --rot: -1deg;
    top: 32%; left: 8%; width: 50%;
    z-index: 7;
}
.dc-jilpaq-testimonials .jq-tst__card:nth-child(4) {
    --rot: 2deg;
    top: 52%; left: 36%; width: 50%;
    z-index: 8;
}
.dc-jilpaq-testimonials .jq-tst__card:nth-child(5) {
    --rot: -2deg;
    top: 72%; left: 14%; width: 48%;
    z-index: 9;
}
.dc-jilpaq-testimonials .jq-tst__card:nth-child(n+6) { display: none; }

@media (max-width: 1024px) {
    .dc-jilpaq-testimonials .jq-tst__stack {
        height: auto;
        display: flex; flex-direction: column; gap: 18px;
        margin-top: 24px;
    }
    .dc-jilpaq-testimonials .jq-tst__card {
        position: relative;
        top: auto; left: auto;
        width: 100%;
        --rot: 0deg;
    }
    .dc-jilpaq-testimonials .jq-tst__card:nth-child(n+6) { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
    .dc-jilpaq-testimonials .jq-tst__card,
    .dc-jilpaq-testimonials .jq-tst__card.is-in {
        opacity: 1; transition: none;
        transform: translateY(0) rotate(var(--rot, 0deg));
    }
}
