/* =========================================================
   GLOBAL TARPAULIN COMPANY — CUSTOMER TESTIMONIALS
   Scoped styles; does not modify other website sections.
========================================================= */

.testimonials-section {
    --testimonial-yellow: var(--primary, #f7bf08);
    --testimonial-navy: #111b2b;
    --testimonial-text: #172033;
    --testimonial-muted: #707b8e;
    --testimonial-border: rgba(17, 27, 43, 0.09);

    position: relative;
    padding: 46px 0 90px;
    background: #f6f7f9;
    overflow: hidden;
}

.testimonials-section *,
.testimonials-section *::before,
.testimonials-section *::after {
    box-sizing: border-box;
}

.testimonials-container {
    width: min(1280px, 92%);
    margin: 0 auto;
}

/* Heading */
.testimonials-heading {
    max-width: 850px;
    margin: 0 auto 38px;
    text-align: center;
}

.testimonials-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-bottom: 17px;
    color: #b88700;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
}

.testimonials-eyebrow span:first-child,
.testimonials-eyebrow span:last-child {
    width: 42px;
    height: 1px;
    background: rgba(184, 135, 0, 0.65);
}

.testimonials-heading h2 {
    margin: 0;
    color: var(--testimonial-navy);
    font-family: 'Manrope', sans-serif;
    font-size: clamp(34px, 4.2vw, 55px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.8px;
}

.testimonials-heading h2 span {
    color: var(--testimonial-yellow);
}

.testimonials-heading > p:not(.testimonials-preview-note) {
    max-width: 720px;
    margin: 17px auto 0;
    color: var(--testimonial-muted);
    font-size: 15px;
    line-height: 1.8;
}

.testimonials-preview-note {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 760px;
    margin: 18px auto 0;
    padding: 10px 13px;
    border: 1px solid rgba(184, 135, 0, 0.22);
    border-radius: 9px;
    background: rgba(247, 191, 8, 0.09);
    color: #6f5a18;
    font-size: 11px;
    line-height: 1.55;
    text-align: left;
}

.testimonials-preview-note i {
    flex: 0 0 auto;
    margin-top: 1px;
    font-size: 15px;
}

/* Controls are only shown where the cards become a carousel */
.testimonials-toolbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 15px;
}

.testimonials-status {
    margin: 0;
    color: var(--testimonial-muted);
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.testimonials-controls {
    display: flex;
    align-items: center;
    gap: 9px;
}

.testimonials-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border: 1px solid var(--testimonial-border);
    border-radius: 50%;
    background: #ffffff;
    color: var(--testimonial-navy);
    box-shadow: 0 4px 14px rgba(17, 27, 43, 0.07);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease,
                color .2s ease, transform .2s ease, opacity .2s ease;
}

.testimonials-arrow i {
    font-size: 18px;
    line-height: 1;
}

.testimonials-arrow:hover:not(:disabled) {
    border-color: var(--testimonial-yellow);
    background: var(--testimonial-yellow);
    color: #111111;
    transform: translateY(-1px);
}

.testimonials-arrow:focus-visible {
    outline: 3px solid rgba(247, 191, 8, 0.45);
    outline-offset: 3px;
}

.testimonials-arrow:disabled {
    opacity: .35;
    cursor: not-allowed;
    box-shadow: none;
}

/* Desktop: exactly three cards in a static row */
.testimonials-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
    width: 100%;
    min-width: 0;
}

.testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 280px;
    padding: 25px 25px 23px;
    border: 1px solid var(--testimonial-border);
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 9px 27px rgba(17, 27, 43, 0.055);
    transition: box-shadow .25s ease, border-color .25s ease,
                transform .25s ease;
}

.testimonial-card:hover {
    border-color: rgba(247, 191, 8, 0.35);
    box-shadow: 0 17px 34px rgba(17, 27, 43, 0.09);
    transform: translateY(-4px);
}

.testimonial-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 17px;
}

.testimonial-stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--testimonial-yellow);
    font-size: 15px;
    letter-spacing: 0;
}

.testimonial-quote-mark {
    height: 38px;
    color: rgba(247, 191, 8, 0.55);
    font-family: Georgia, serif;
    font-size: 57px;
    font-weight: 700;
    line-height: 1;
}

.testimonial-review {
    flex: 1 0 auto;
    margin: 0 0 24px;
    color: #4c5668;
    font-size: 14px;
    line-height: 1.8;
}

.testimonial-customer {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 17px;
    border-top: 1px solid rgba(17, 27, 43, 0.08);
}

.testimonial-customer-name {
    color: var(--testimonial-navy);
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
}

.testimonial-customer-location {
    color: #8992a2;
    font-size: 12px;
    line-height: 1.5;
}

/* Tablet: horizontal carousel showing about two cards */
@media (max-width: 991px) {
    .testimonials-section {
        padding: 70px 0 75px;
    }

    .testimonials-heading {
        margin-bottom: 30px;
    }

    .testimonials-toolbar {
        display: flex;
    }

    .testimonials-track {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 20px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 1px 13px;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 1px;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .testimonials-track::-webkit-scrollbar {
        display: none;
    }

    .testimonial-card {
        flex: 0 0 calc((100% - 20px) / 2);
        width: calc((100% - 20px) / 2);
        min-height: 285px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
}

/* Mobile: one card plus a small preview of the next */
@media (max-width: 767px) {
    .testimonials-section {
        padding: 60px 0 65px;
    }

    .testimonials-container {
        width: calc(100% - 32px);
    }

    .testimonials-heading {
        margin-bottom: 25px;
    }

    .testimonials-eyebrow {
        gap: 9px;
        margin-bottom: 14px;
        font-size: 10px;
        letter-spacing: 2.2px;
    }

    .testimonials-eyebrow span:first-child,
    .testimonials-eyebrow span:last-child {
        width: 26px;
    }

    .testimonials-heading h2 {
        font-size: clamp(31px, 8vw, 40px);
        letter-spacing: -1.2px;
    }

    .testimonials-heading > p:not(.testimonials-preview-note) {
        margin-top: 13px;
        font-size: 13.5px;
        line-height: 1.7;
    }

    .testimonials-preview-note {
        margin-top: 14px;
        padding: 9px 10px;
        font-size: 10px;
    }

    .testimonials-toolbar {
        margin-bottom: 12px;
    }

    .testimonials-arrow {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .testimonials-track {
        gap: 14px;
        margin-right: -16px;
        padding-right: 16px;
    }

    .testimonial-card {
        flex: 0 0 88%;
        width: 88%;
        min-height: 275px;
        padding: 22px 20px 20px;
        border-radius: 15px;
    }

    .testimonial-review {
        font-size: 13.5px;
        line-height: 1.75;
        margin-bottom: 21px;
    }

    .testimonial-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonials-track {
        scroll-behavior: auto !important;
    }

    .testimonial-card,
    .testimonials-arrow {
        transition: none;
    }
}
