/* ════════════════════════════════════════════════════════════
   Testimonials wall — auto-scrolling 2-column showcase
   ════════════════════════════════════════════════════════════ */
.tw-sec {
    position: relative;
    padding: 100px 0 110px;
    overflow: hidden;
    background: #f5f4f0;
    color: #1a1a1a;
}
.tw-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 40% at 80% 0%, rgba(232, 52, 122, 0.06), transparent 60%),
        radial-gradient(ellipse 50% 40% at 12% 100%, rgba(205, 160, 127, 0.10), transparent 70%);
}
.tw-vline {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(205, 160, 127, 0.5);
    z-index: 3;
    pointer-events: none;
}
.tw-vline-l { left: 16px; }
.tw-vline-r { right: 16px; }

.tw-shell {
    position: relative;
    z-index: 1;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (min-width: 768px)  { .tw-shell { padding: 0 48px; } }
@media (min-width: 1024px) { .tw-shell { padding: 0 64px; } }

.tw-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}
@media (min-width: 1024px) {
    .tw-grid { grid-template-columns: 0.85fr 1.15fr; gap: 80px; }
}

/* ─── Header ─── */
.tw-head { display: flex; flex-direction: column; gap: 24px; }
.tw-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(232, 52, 122, 0.1);
    border: 1px solid rgba(232, 52, 122, 0.28);
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: #b91c5c;
    width: fit-content;
}
.tw-eyebrow-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #e8347a;
    box-shadow: 0 0 0 0 rgba(232, 52, 122, 0.7);
    animation: twPing 1.8s ease-out infinite;
}
@keyframes twPing {
    0%   { box-shadow: 0 0 0 0 rgba(232, 52, 122, 0.55); }
    70%  { box-shadow: 0 0 0 10px rgba(232, 52, 122, 0); }
    100% { box-shadow: 0 0 0 0 rgba(232, 52, 122, 0); }
}
.tw-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #1a1a1a;
    margin: 0;
}
.tw-title em {
    font-style: italic;
    font-weight: 400;
    font-family: "PlayfairDisplay", "Times New Roman", serif;
    background: linear-gradient(135deg, #e8347a 0%, #cda07f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tw-sub {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(42, 42, 42, 0.7);
    max-width: 480px;
    margin: 0;
    font-weight: 300;
}
.tw-sub strong { color: #1a1a1a; font-weight: 600; }

.tw-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 460px;
}
.tw-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid rgba(205, 160, 127, 0.28);
    border-radius: 14px;
}
.tw-stat-num {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    line-height: 1;
}
.tw-stat-stars {
    font-size: 11px;
    color: #f59e0b;
    letter-spacing: 0.04em;
    line-height: 1;
}
.tw-stat-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(42, 42, 42, 0.5);
    margin-top: 2px;
}

.tw-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.22s ease;
    width: fit-content;
}
.tw-cta svg { width: 16px; height: 16px; transition: transform 0.22s; }
.tw-cta:hover {
    background: linear-gradient(135deg, #e8347a 0%, #f472b6 100%);
    transform: translateY(-2px);
    box-shadow: 0 18px 38px -14px rgba(232, 52, 122, 0.6);
}
.tw-cta:hover svg { transform: translateX(4px); }

/* ─── The wall ─── */
.tw-wall {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    height: 640px;
    overflow: hidden;
    /* Top + bottom fade so cards drift in/out softly */
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
@media (min-width: 640px) { .tw-wall { grid-template-columns: 1fr 1fr; gap: 20px; } }

.tw-col {
    position: relative;
    overflow: hidden;
}
.tw-track {
    display: flex;
    flex-direction: column;
    gap: 16px;
    will-change: transform;
}
.tw-col-up   .tw-track { animation: twScrollUp   60s linear infinite; }
.tw-col-down .tw-track { animation: twScrollDown 70s linear infinite; }
@keyframes twScrollUp {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
@keyframes twScrollDown {
    0%   { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

/* ─── Cards ─── */
.tw-card {
    background: #fff;
    border: 1px solid rgba(205, 160, 127, 0.25);
    border-radius: 16px;
    padding: 22px 22px 18px;
    box-shadow: 0 18px 40px -28px rgba(42, 42, 42, 0.18);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.tw-card:hover {
    border-color: rgba(232, 52, 122, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 24px 50px -28px rgba(232, 52, 122, 0.28);
}
.tw-card-tag {
    align-self: flex-start;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fdf2f8;
    border: 1px solid rgba(232, 52, 122, 0.22);
    color: #b91c5c;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.tw-card-quote {
    font-size: 14.5px;
    line-height: 1.55;
    color: rgba(42, 42, 42, 0.85);
    margin: 0;
    font-weight: 400;
}
.tw-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(205, 160, 127, 0.22);
    gap: 12px;
}
.tw-card-stars {
    font-size: 12px;
    color: #f59e0b;
    letter-spacing: 0.06em;
    line-height: 1;
}
.tw-card-attr {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    line-height: 1.25;
    min-width: 0;
}
.tw-card-attr strong {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}
.tw-card-attr span {
    font-size: 11.5px;
    color: rgba(42, 42, 42, 0.55);
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .tw-col-up .tw-track,
    .tw-col-down .tw-track { animation: none; }
    .tw-wall { mask-image: none; -webkit-mask-image: none; height: auto; max-height: 720px; overflow-y: auto; }
}

@media (max-width: 640px) {
    .tw-sec { padding: 70px 0 80px; }
    /* Grid items default to min-width:auto which lets stats balloon past the
       viewport. Force them to obey the parent column width. */
    .tw-grid > * { min-width: 0; }
    .tw-head { min-width: 0; max-width: 100%; }
    .tw-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        max-width: 100%;
        width: 100%;
    }
    .tw-stat { padding: 10px 8px; min-width: 0; overflow: hidden; }
    .tw-stat-num { font-size: 16px; }
    .tw-stat-label { font-size: 9.5px; letter-spacing: 0.06em; }
    .tw-stat-stars { font-size: 10px; }

    /* ─── Mobile: convert auto-scroll wall to swipeable horizontal carousel ─── */
    .tw-wall {
        display: block;
        height: auto;
        overflow: visible;
        -webkit-mask-image: none;
                mask-image: none;
        margin: 0 -24px;
    }
    .tw-col-down { display: none; }
    .tw-col,
    .tw-col-up { overflow: visible; }
    .tw-col-up .tw-track {
        animation: none !important;
        flex-direction: row;
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 24px;
        padding: 4px 24px 14px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .tw-col-up .tw-track::-webkit-scrollbar { display: none; }
    .tw-col-up .tw-track > .tw-card[aria-hidden="true"] { display: none; }
    .tw-card {
        flex: 0 0 82%;
        max-width: 320px;
        scroll-snap-align: start;
        padding: 18px 18px 16px;
    }
    .tw-card-quote {
        font-size: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}
