/**
 * WWW Testimonials — full-width section with contained card grid.
 * Defaults match the Conway reference design; colors are overridable per
 * instance via the element's style controls.
 */

.www-testimonials {
    position: relative;
    padding-top: 90px;
    padding-bottom: 90px;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.www-testimonials--fullwidth {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.www-testimonials__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.www-testimonials__container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 30px;
    padding-right: 30px;
}

.www-testimonials__viewport {
    overflow: hidden;
}

.www-testimonials__track {
    display: flex;
    gap: 40px;
    transition: transform 0.5s ease;
}

.www-testimonials__card {
    flex: 0 0 calc((100% - 80px) / 3);
}

.www-testimonials__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
    color: #ee8a31;
    line-height: 0;
}

.www-testimonials__arrow svg {
    width: 30px;
    height: 30px;
}

.www-testimonials__arrow--prev {
    left: -14px;
}

.www-testimonials__arrow--next {
    right: -14px;
}

.www-testimonials__card {
    background-color: rgba(25, 25, 25, 0.5);
    padding: 40px;
    box-sizing: border-box;
}

.www-testimonials__icon {
    display: block;
    color: #ee8a31;
    margin-bottom: 22px;
}

.www-testimonials__icon svg {
    width: 44px;
    height: 30px;
}

.www-testimonials__quote {
    margin: 0 0 26px;
    padding: 0;
    border: 0;
    font-style: italic;
    font-size: 15px;
    line-height: 1.8;
    color: #cfcfcf;
}

.www-testimonials__name {
    color: #ee8a31;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.www-testimonials__location {
    color: #999999;
    font-size: 13px;
}

@media (max-width: 1024px) {
    .www-testimonials__card {
        flex-basis: calc((100% - 40px) / 2);
    }
}

@media (max-width: 700px) {
    .www-testimonials {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .www-testimonials__track {
        gap: 24px;
    }

    .www-testimonials__card {
        flex-basis: 100%;
        padding: 30px;
    }

    .www-testimonials__arrow--prev {
        left: -6px;
    }

    .www-testimonials__arrow--next {
        right: -6px;
    }
}

/* Kill theme blockquote skin on our quotes. */
.www-testimonials__card blockquote.www-testimonials__quote {
    background: none !important;
    color: #cfcfcf !important;
    padding: 0 !important;
    margin: 0 0 26px !important;
    border: 0 !important;
    box-shadow: none !important;
    font-style: italic !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
}
.www-testimonials__card blockquote.www-testimonials__quote:before,
.www-testimonials__card blockquote.www-testimonials__quote:after {
    display: none !important;
    content: none !important;
}

/* Image quote icon replacing inline SVG. */
.www-testimonials__icon svg {
    display: none;
}
.www-testimonials__icon {
    width: 44px;
    height: 32px;
    background-image: url(/wp-content/uploads/2026/08/quote.png);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
}

/* Mobile pass: centered card, visible arrows, tighter padding. */
@media (max-width: 700px) {
    .www-testimonials__container {
        padding-left: 26px;
        padding-right: 26px;
    }
    .www-testimonials__viewport {
        width: 100%;
    }
    .www-testimonials__card {
        width: 100%;
        padding: 28px 24px;
    }
    .www-testimonials__arrow svg {
        width: 24px;
        height: 24px;
    }
    .www-testimonials__arrow--prev {
        left: 0;
    }
    .www-testimonials__arrow--next {
        right: 0;
    }
}

/* Mobile fixes v2: card contained and centered, arrows in the gutter. */
@media (max-width: 700px) {
    .www-testimonials .www-testimonials__container {
        padding-left: 44px;
        padding-right: 44px;
    }
    .www-testimonials .www-testimonials__viewport {
        overflow: hidden;
        max-width: 100%;
    }
    .www-testimonials .www-testimonials__card {
        flex-basis: 100%;
        width: 100%;
        max-width: 100%;
    }
}

/* Mobile v3: hard-lock card to viewport width, kill min-content inflation. */
@media (max-width: 700px) {
    .www-testimonials .www-testimonials__track {
        gap: 0;
    }
    .www-testimonials .www-testimonials__card {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

/* Container was content-box: 100% width + padding overflowed the viewport. */
.www-testimonials__container,
.www-testimonials__container * {
    box-sizing: border-box;
}

/* Breathing room above the cards. */
.www-testimonials {
    padding-top: 0px !important;
    padding-bottom: 40px !important;
}

/* Quote icon hangs above the card edge per design. */
.www-testimonials__track {
    padding-top: 40px;
}
.www-testimonials__icon {
    margin-top: -55px;
}

/* Card fill per design. */
.www-testimonials .www-testimonials__card {
    background-color: rgba(25, 25, 25, 0.2) !important;
}

@media (max-width: 700px) {
    .www-testimonials {
        padding-top: 30px !important;
        padding-bottom: 40px !important;
    }
}
