/* =========================================================
   TESTIMONIALS PAGE
========================================================= */

/* Page Layout */

.testimonials-page {
    width: 100%;
    padding: 0 0 90px;
    background: var(--body-bg);
    color: var(--heading);
}

.testimonials-container {
    width: 90%;
    max-width: 1380px;
    margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.testimonials-hero {
    width: 100%;
    padding: 50px 0 35px;
    text-align: center;
}

.testimonials-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    font-family: var(--font-family);
    font-size: 68px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    text-align: center;
    text-transform: uppercase;
}

.testimonials-black {
    color: #111111;
}

.testimonials-red {
    color: var(--accent);
}

.testimonials-intro {
    max-width: 720px;
    margin: 20px auto 0;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--text);
    text-align: center;
}


/* =========================================================
   TESTIMONIAL GRID
========================================================= */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 45px;
    row-gap: 75px;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
}


/* =========================================================
   TESTIMONIAL BUBBLES
========================================================= */

.testimonial-bubble,
.testimonial-bubble.bubble-solid,
.testimonial-bubble.bubble-outline {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 355px;
    padding: 40px 38px 36px;
    overflow: visible;
    border: none !important;
    border-radius: 52px !important;
    outline: none !important;
    background: #111111 !important;
    background-image: none !important;
    color: #ffffff;
    font-family: var(--font-family);
    box-shadow:
        0 0 8px rgba(193, 18, 31, .70),
        0 0 18px rgba(193, 18, 31, .55),
        0 0 34px rgba(193, 18, 31, .38),
        0 0 55px rgba(193, 18, 31, .22),
        0 14px 30px rgba(0, 0, 0, .16) !important;
    transition:
        transform .35s ease,
        box-shadow .35s ease;
    animation: testimonialFloat 5s ease-in-out infinite;
}


/* Red Bubbles */

.testimonials-grid .testimonial-bubble:nth-child(2),
.testimonials-grid .testimonial-bubble:nth-child(5) {
    border: none !important;
    border-radius: 52px !important;
    outline: none !important;
    background: var(--accent) !important;
    background-image: none !important;
    box-shadow:
        0 0 8px rgba(0, 0, 0, .60),
        0 0 18px rgba(0, 0, 0, .45),
        0 0 34px rgba(0, 0, 0, .30),
        0 0 52px rgba(0, 0, 0, .18),
        0 14px 30px rgba(0, 0, 0, .16) !important;
}


/* Remove Legacy Quotation Marks */

.testimonial-quote,
.bubble-solid .testimonial-quote,
.bubble-outline .testimonial-quote {
    display: none !important;
}


/* =========================================================
   SPEECH TAIL
========================================================= */

.testimonial-bubble::before {
    display: none !important;
    content: none !important;
}

.testimonial-bubble::after {
    content: "" !important;
    display: block !important;
    position: absolute;
    bottom: -25px;
    left: 52px;
    z-index: 1;
    width: 0;
    height: 0;
    border-top: 30px solid #111111;
    border-right: 34px solid transparent;
    filter:
        drop-shadow(3px 4px 3px rgba(193, 18, 31, .55))
        drop-shadow(5px 7px 7px rgba(193, 18, 31, .28));
}

.testimonials-grid .testimonial-bubble:nth-child(2)::after,
.testimonials-grid .testimonial-bubble:nth-child(5)::after {
    border-top-color: var(--accent);
    filter:
        drop-shadow(3px 4px 3px rgba(0, 0, 0, .45))
        drop-shadow(5px 7px 7px rgba(0, 0, 0, .25));
}


/* =========================================================
   STARS
========================================================= */

.testimonial-stars,
.bubble-solid .testimonial-stars,
.bubble-outline .testimonial-stars {
    position: relative;
    z-index: 3;
    margin: 0 0 21px;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 4px;
    color: var(--accent) !important;
}

.testimonials-grid .testimonial-bubble:nth-child(2) .testimonial-stars,
.testimonials-grid .testimonial-bubble:nth-child(5) .testimonial-stars {
    color: #ffffff !important;
}


/* =========================================================
   REVIEW TEXT
========================================================= */

.testimonial-text,
.bubble-solid .testimonial-text,
.bubble-outline .testimonial-text {
    position: relative;
    z-index: 3;
    margin: 0 0 30px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
    color: #eeeeee !important;
}

.testimonials-grid .testimonial-bubble:nth-child(2) .testimonial-text,
.testimonials-grid .testimonial-bubble:nth-child(5) .testimonial-text {
    color: #ffffff !important;
}


/* =========================================================
   CLIENT INFORMATION
========================================================= */

.testimonial-client {
    position: relative;
    z-index: 3;
    margin-top: 0;
}

.testimonial-client h3,
.bubble-solid .testimonial-client h3,
.bubble-outline .testimonial-client h3 {
    margin: 0 0 6px;
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff !important;
}

.testimonial-client span,
.bubble-solid .testimonial-client span,
.bubble-outline .testimonial-client span {
    display: block;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 500;
    color: #aaaaaa !important;
}

.testimonials-grid .testimonial-bubble:nth-child(2) .testimonial-client span,
.testimonials-grid .testimonial-bubble:nth-child(5) .testimonial-client span {
    color: rgba(255, 255, 255, .82) !important;
}


/* =========================================================
   FLOATING ANIMATION
========================================================= */

@keyframes testimonialFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

.testimonial-bubble:nth-child(1) {
    animation-delay: 0s;
}

.testimonial-bubble:nth-child(2) {
    animation-delay: .5s;
}

.testimonial-bubble:nth-child(3) {
    animation-delay: 1s;
}

.testimonial-bubble:nth-child(4) {
    animation-delay: .25s;
}

.testimonial-bubble:nth-child(5) {
    animation-delay: .75s;
}

.testimonial-bubble:nth-child(6) {
    animation-delay: 1.25s;
}


/* =========================================================
   HOVER EFFECTS
========================================================= */

.testimonials-grid .testimonial-bubble:hover {
    animation-play-state: paused;
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 0 6px rgba(193, 18, 31, .75),
        0 0 12px rgba(193, 18, 31, .55),
        0 0 20px rgba(193, 18, 31, .35),
        0 12px 24px rgba(0, 0, 0, .18) !important;
}

.testimonials-grid .testimonial-bubble:nth-child(2):hover,
.testimonials-grid .testimonial-bubble:nth-child(5):hover {
    box-shadow:
        0 0 10px rgba(0, 0, 0, .75),
        0 0 22px rgba(0, 0, 0, .55),
        0 0 42px rgba(0, 0, 0, .36),
        0 0 65px rgba(0, 0, 0, .22),
        0 18px 34px rgba(0, 0, 0, .20) !important;
}


/* =========================================================
   RESPONSIVE
========================================================= */

/* Tablet */

@media (max-width: 1100px) {
    .testimonials-heading {
        font-size: 58px;
    }

    .testimonials-hero {
        padding-bottom: 32px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 35px;
        row-gap: 70px;
    }

    .testimonial-bubble,
    .testimonial-bubble.bubble-solid,
    .testimonial-bubble.bubble-outline {
        min-height: 345px;
        border-radius: 48px !important;
    }
}


/* Mobile */

@media (max-width: 768px) {
    .testimonials-page {
        padding-bottom: 70px;
    }

    .testimonials-container {
        width: 92%;
    }

    .testimonials-hero {
        padding-bottom: 28px;
    }

    .testimonials-heading {
        gap: 8px;
        font-size: 44px;
        letter-spacing: -1px;
    }

    .testimonials-intro {
        margin-top: 17px;
        font-size: 13px;
        line-height: 1.7;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        row-gap: 62px;
    }

    .testimonial-bubble,
    .testimonial-bubble.bubble-solid,
    .testimonial-bubble.bubble-outline {
        min-height: auto;
        padding: 33px 29px 31px;
        border-radius: 42px !important;
    }

    .testimonial-stars {
        font-size: 18px;
        letter-spacing: 3px;
    }

    .testimonial-text {
        font-size: 14px;
        line-height: 1.75;
    }

    .testimonial-client h3 {
        font-size: 17px;
    }
}


/* Small Mobile */

@media (max-width: 480px) {
    .testimonials-heading {
        flex-wrap: wrap;
        gap: 6px;
        font-size: 35px;
    }

    .testimonials-hero {
        padding-bottom: 25px;
    }

    .testimonial-bubble,
    .testimonial-bubble.bubble-solid,
    .testimonial-bubble.bubble-outline {
        padding: 29px 24px 28px;
        border-radius: 35px !important;
    }

    .testimonial-stars {
        margin-bottom: 17px;
        font-size: 16px;
        letter-spacing: 2px;
    }

    .testimonial-text {
        margin-bottom: 25px;
        font-size: 13px;
        line-height: 1.7;
    }

    .testimonial-client h3 {
        font-size: 16px;
    }

    .testimonial-client span {
        font-size: 12px;
    }

    .testimonial-bubble::after {
        bottom: -21px;
        left: 40px;
        border-top-width: 25px;
        border-right-width: 29px;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .testimonial-bubble {
        animation: none !important;
        transition: none !important;
    }
}