/*
 * SedaSend Testimonials Section
 * All selectors are scoped to .sedasend-testimonials.
 */

/* White section shell and brand variables */
.sedasend-testimonials {
    --testimonials-orange: #e25541;
    --testimonials-white: #ffffff;
    --testimonials-black: #000000;
    padding: clamp(72px, 8vw, 112px) 20px;
    background: var(--testimonials-white);
}

/* Centered reusable content wrapper */
.sedasend-testimonials__container {
    width: min(1200px, 100%);
    margin: 0 auto;
}

/* Large centered headline */
.sedasend-testimonials__title {
    margin: 0 0 clamp(40px, 6vw, 68px);
    color: var(--testimonials-orange);
    font-size: clamp(2.8rem, 6vw, 5.8rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.055em;
    text-align: center;
}

/* Optional title word fills orange once, then stays orange */
.sedasend-testimonials__title-word {
    display: inline-block;
    color: var(--testimonials-white);
    background: linear-gradient(90deg, var(--testimonials-orange) 0 50%, var(--testimonials-white) 50% 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    background-clip: text;
    -webkit-background-clip: text;
    transition: color 400ms ease, background-position 4s linear;
}

.sedasend-testimonials__title-word.is-filling { color: transparent; background-position: 0 0; }
.sedasend-testimonials__title.is-complete .sedasend-testimonials__title-word { color: var(--testimonials-orange); background: none; }

/* Desktop and tablet display three evenly spaced cards */
.sedasend-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 32px);
}

/* White card reveals upward and supports hover/click highlighting */
.sedasend-testimonials__card {
    min-width: 0;
    padding: clamp(26px, 3vw, 36px);
    color: var(--testimonials-black);
    background: var(--testimonials-white);
    border: 3px solid transparent;
    border-radius: 22px;
    box-shadow: 0 15px 36px rgba(0, 0, 0, 0.16);
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(46px);
    transition: opacity 600ms ease, transform 350ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.sedasend-testimonials__card.is-visible { opacity: 1; transform: translateY(0); }
.sedasend-testimonials__card:hover,.sedasend-testimonials__card:focus-visible,.sedasend-testimonials__card.is-active{border-color:var(--testimonials-orange);box-shadow:0 20px 44px rgba(226,85,65,.28);transform:translateY(-6px);outline:none}

/* Circular proportional PNG portrait with orange border */
.sedasend-testimonials__avatar {
    width: clamp(110px, 13vw, 160px);
    aspect-ratio: 1;
    display: block;
    margin: 0 auto 22px;
    object-fit: cover;
    border: 4px solid var(--testimonials-orange);
    border-radius: 50%;
    background: transparent;
}

.sedasend-testimonials__name {
    margin: 0;
    color: var(--testimonials-orange);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 900;
    line-height: 1.25;
}

.sedasend-testimonials__quote {
    margin: 18px 0 0;
    color: var(--testimonials-black);
    font-size: 1rem;
    line-height: 1.7;
}

/* Mobile stacks testimonial cards vertically */
@media (max-width: 700px) {
    .sedasend-testimonials {
        padding-inline: 14px;
    }

    .sedasend-testimonials__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .sedasend-testimonials__title-word,.sedasend-testimonials__card { opacity:1;transform:none;transition-duration:0.01ms!important; }
}
