/* =========================================================
   TESTIMONIALS SECTION
========================================================= */

:root {
    --testimonial-black: #101010;
    --testimonial-dark: #171414;
    --testimonial-brown: #3A302E;
    --testimonial-brown-light: #5A493F;

    --testimonial-gold: #F6C777;
    --testimonial-gold-hover: #FFD58D;

    --testimonial-white: #F8F6F2;
    --testimonial-muted: #B9AEA5;

    --testimonial-card: #F8F6F2;
    --testimonial-card-text: #171414;

    --testimonial-border: rgba(246, 199, 119, 0.25);
}


/* =========================================================
   SECTION
========================================================= */

.testimonials-section {
    position: relative;

    width: 100%;

    padding: 120px 0 125px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(90, 73, 63, 0.25),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(246, 199, 119, 0.07),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #101010 0%,
            #171414 55%,
            #211a17 100%
        );

    color: var(--testimonial-white);
}


/* Decorative background */

.testimonials-section::before {
    content: "REVIEWS";

    position: absolute;

    top: 30px;
    right: -20px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(100px, 15vw, 250px);

    font-weight: 400;

    line-height: 1;

    color: rgba(246, 199, 119, 0.025);

    pointer-events: none;

    user-select: none;
}


.testimonials-container {
    position: relative;

    z-index: 2;

    width: min(1450px, calc(100% - 100px));

    margin: 0 auto;
}


/* =========================================================
   HEADING
========================================================= */

.testimonials-heading {
    text-align: center;

    margin-bottom: 60px;
}


.testimonials-eyebrow {
    display: block;

    margin-bottom: 18px;

    color: var(--testimonial-gold);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 5px;
}


.testimonials-heading h2 {
    margin: 0;

    color: var(--testimonial-white);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(42px, 5vw, 70px);

    font-weight: 400;

    line-height: 1.05;

    letter-spacing: -2px;
}


.testimonials-heading-line {
    width: 85px;

    height: 2px;

    margin: 25px auto 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--testimonial-gold),
            transparent
        );
}


/* =========================================================
   SLIDER WRAPPER
========================================================= */

.testimonial-slider-wrapper {
    position: relative;

    width: 100%;

    display: flex;

    align-items: center;
}


.testimonial-slider {
    width: 100%;

    overflow: hidden;

    padding: 15px 0 25px;
}


.testimonial-track {
    display: flex;

    align-items: stretch;

    gap: 24px;

    will-change: transform;

    transition:
        transform 1.2s cubic-bezier(.22, 1, .36, 1);
}


/* =========================================================
   TESTIMONIAL CARD
========================================================= */

.testimonial-card {
    flex: 0 0 calc(
        (100% - 72px) / 4
    );

    min-width: 0;

    min-height: 360px;

    padding: 28px 27px 30px;

    display: flex;

    flex-direction: column;

    background: var(--testimonial-card);

    border: 1px solid
        rgba(246, 199, 119, 0.15);

    border-radius: 5px;

    color: var(--testimonial-card-text);

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.22);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}


.testimonial-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.32);
}


/* =========================================================
   CARD TOP
========================================================= */

.testimonial-card-top {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 20px;
}


.testimonial-user {
    display: flex;

    align-items: center;

    gap: 13px;

    min-width: 0;
}


.testimonial-avatar {
    flex-shrink: 0;

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--testimonial-brown),
            var(--testimonial-brown-light)
        );

    color: var(--testimonial-gold);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 1px;
}


.testimonial-user-info {
    min-width: 0;
}


.testimonial-user-info h3 {
    margin: 0 0 4px;

    color: #171414;

    font-size: 15px;

    font-weight: 700;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.testimonial-user-info span {
    display: block;

    color: #77716C;

    font-size: 12px;
}


/* =========================================================
   GOOGLE LOGO
========================================================= */

.google-logo {
    flex-shrink: 0;
}


.google-g {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 25px;

    font-weight: 700;

    background:
        linear-gradient(
            135deg,
            #4285F4 20%,
            #34A853 40%,
            #FBBC05 65%,
            #EA4335 85%
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}


/* =========================================================
   RATING
========================================================= */

.testimonial-rating {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 20px;
}


.stars {
    color: #F6B928;

    font-size: 17px;

    letter-spacing: 1px;

    line-height: 1;
}


.verified {
    width: 17px;
    height: 17px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #4285F4;

    color: #ffffff;

    font-size: 9px;
}


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

.testimonial-text {
    margin: 0;

    color: #4E4844;

    font-size: 14px;

    line-height: 1.75;

    font-weight: 400;

    display: -webkit-box;

    -webkit-line-clamp: 6;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


.read-more-btn {
    align-self: flex-start;

    margin-top: auto;
    padding: 12px 0 0;

    border: 0;

    background: transparent;

    color: #80643E;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;
}


.read-more-btn:hover {
    color: #171414;
}


/* =========================================================
   SLIDER ARROWS
========================================================= */

.testimonial-arrow {
    position: absolute;

    z-index: 10;

    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid
        rgba(246, 199, 119, 0.45);

    border-radius: 50%;

    background:
        rgba(23, 20, 20, 0.92);

    color: var(--testimonial-gold);

    font-size: 15px;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}


.testimonial-arrow:hover {
    background: var(--testimonial-gold);

    color: #171414;

    border-color: var(--testimonial-gold);

    transform: scale(1.08);
}


.testimonial-prev {
    left: -70px;
}


.testimonial-next {
    right: -70px;
}


/* =========================================================
   GOOGLE RATING
========================================================= */

.google-rating {
    text-align: center;

    margin-top: 45px;
}


.google-rating-stars {
    color: var(--testimonial-gold);

    font-size: 19px;

    letter-spacing: 3px;

    margin-bottom: 10px;
}


.google-rating p {
    margin: 0;

    color: var(--testimonial-muted);

    font-size: 14px;

    line-height: 1.6;
}


.google-rating strong {
    color: var(--testimonial-white);

    font-weight: 600;
}


/* =========================================================
   REVIEW BUTTON
========================================================= */

.review-google-wrapper {
    display: flex;

    justify-content: center;

    margin-top: 30px;
}


.review-google-btn {
    min-height: 56px;

    padding: 0 26px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 13px;

    border: 1px solid
        rgba(246, 199, 119, 0.45);

    border-radius: 3px;

    background: var(--testimonial-white);

    color: #171414;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    transition:
        background 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease,
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


.review-google-btn .google-g {
    font-size: 21px;
}


.review-google-btn i {
    font-size: 12px;

    color: #80643E;
}


.review-google-btn:hover {
    transform: translateY(-4px);

    background: var(--testimonial-gold);

    border-color: var(--testimonial-gold);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.3);
}


/* =========================================================
   1600px+
========================================================= */

@media (min-width: 1600px) {

    .testimonials-container {
        width: min(1500px, calc(100% - 140px));
    }

    .testimonial-card {
        min-height: 375px;

        padding: 31px 30px 32px;
    }

    .testimonial-track {
        gap: 26px;
    }

    .testimonial-card {
        flex-basis: calc(
            (100% - 78px) / 4
        );
    }

}


/* =========================================================
   1401px - 1599px
========================================================= */

@media (min-width: 1401px) and (max-width: 1599px) {

    .testimonial-prev {
        left: -62px;
    }

    .testimonial-next {
        right: -62px;
    }

}


/* =========================================================
   1201px - 1400px
========================================================= */

@media (min-width: 1201px) and (max-width: 1400px) {

    .testimonials-container {
        width: min(1250px, calc(100% - 100px));
    }

    .testimonial-card {
        flex-basis: calc(
            (100% - 48px) / 3
        );
    }

    .testimonial-prev {
        left: -62px;
    }

    .testimonial-next {
        right: -62px;
    }

}


/* =========================================================
   1051px - 1200px
========================================================= */

@media (min-width: 1051px) and (max-width: 1200px) {

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

    .testimonial-card {
        flex-basis: calc(
            (100% - 48px) / 3
        );
    }

    .testimonial-prev {
        left: -58px;
    }

    .testimonial-next {
        right: -58px;
    }

}


/* =========================================================
   901px - 1050px
========================================================= */

@media (min-width: 901px) and (max-width: 1050px) {

    .testimonials-section {
        padding: 105px 0 110px;
    }

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

    .testimonial-card {
        flex-basis: calc(
            (100% - 24px) / 2
        );

        min-height: 355px;
    }

    .testimonial-prev {
        left: -55px;
    }

    .testimonial-next {
        right: -55px;
    }

}


/* =========================================================
   769px - 900px
========================================================= */

@media (min-width: 769px) and (max-width: 900px) {

    .testimonials-section {
        padding: 95px 0 100px;
    }

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

    .testimonial-card {
        flex-basis: calc(
            (100% - 20px) / 2
        );

        min-height: 360px;
    }

    .testimonial-track {
        gap: 20px;
    }

    .testimonial-prev {
        left: -55px;
    }

    .testimonial-next {
        right: -55px;
    }

}


/* =========================================================
   601px - 768px
========================================================= */

@media (min-width: 601px) and (max-width: 768px) {

    .testimonials-section {
        padding: 85px 0 90px;
    }

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

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

    .testimonial-card {
        flex-basis: calc(
            (100% - 20px) / 2
        );

        min-height: 365px;

        padding: 25px;
    }

    .testimonial-track {
        gap: 20px;
    }

    .testimonial-arrow {
        width: 45px;
        height: 45px;
    }

    .testimonial-prev {
        left: -53px;
    }

    .testimonial-next {
        right: -53px;
    }

}


/* =========================================================
   481px - 600px
========================================================= */

@media (min-width: 481px) and (max-width: 600px) {

    .testimonials-section {
        padding: 80px 0 85px;
    }

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

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

    .testimonials-heading h2 {
        font-size: 40px;

        letter-spacing: -1px;
    }

    .testimonial-card {
        flex-basis: 100%;

        min-height: 355px;

        padding: 25px;
    }

    .testimonial-track {
        gap: 0;
    }

    .testimonial-arrow {
        width: 43px;
        height: 43px;
    }

    .testimonial-prev {
        left: -10px;
    }

    .testimonial-next {
        right: -10px;
    }

    .testimonial-slider {
        padding-left: 25px;
        padding-right: 25px;
    }

}


/* =========================================================
   376px - 480px
========================================================= */

@media (min-width: 376px) and (max-width: 480px) {

    .testimonials-section {
        padding: 75px 0 80px;
    }

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

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

    .testimonials-eyebrow {
        font-size: 9px;
        letter-spacing: 3px;
    }

    .testimonials-heading h2 {
        font-size: 35px;

        letter-spacing: -1px;
    }

    .testimonial-card {
        flex-basis: 100%;

        min-height: 365px;

        padding: 23px;
    }

    .testimonial-track {
        gap: 0;
    }

    .testimonial-slider {
        padding-left: 18px;
        padding-right: 18px;
    }

    .testimonial-arrow {
        width: 40px;
        height: 40px;

        font-size: 12px;
    }

    .testimonial-prev {
        left: -7px;
    }

    .testimonial-next {
        right: -7px;
    }

    .google-rating {
        margin-top: 30px;
    }

}


/* =========================================================
   321px - 375px
========================================================= */

@media (min-width: 321px) and (max-width: 375px) {

    .testimonials-section {
        padding: 65px 0 75px;
    }

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

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

    .testimonials-heading h2 {
        font-size: 31px;
    }

    .testimonial-card {
        flex-basis: 100%;

        min-height: 380px;

        padding: 21px;
    }

    .testimonial-track {
        gap: 0;
    }

    .testimonial-slider {
        padding-left: 15px;
        padding-right: 15px;
    }

    .testimonial-arrow {
        width: 36px;
        height: 36px;
    }

    .testimonial-prev {
        left: -4px;
    }

    .testimonial-next {
        right: -4px;
    }

    .testimonial-user-info h3 {
        font-size: 14px;
    }

    .testimonial-text {
        font-size: 13px;
    }

    .review-google-btn {
        width: 100%;

        padding: 0 15px;
    }

}


/* =========================================================
   <= 320px
========================================================= */

@media (max-width: 320px) {

    .testimonials-section {
        padding: 60px 0 70px;
    }

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

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

    .testimonials-heading h2 {
        font-size: 28px;
    }

    .testimonials-eyebrow {
        font-size: 8px;
        letter-spacing: 2px;
    }

    .testimonial-card {
        flex-basis: 100%;

        min-height: 390px;

        padding: 18px;
    }

    .testimonial-track {
        gap: 0;
    }

    .testimonial-slider {
        padding-left: 12px;
        padding-right: 12px;
    }

    .testimonial-arrow {
        width: 33px;
        height: 33px;

        font-size: 10px;
    }

    .testimonial-prev {
        left: -2px;
    }

    .testimonial-next {
        right: -2px;
    }

    .testimonial-avatar {
        width: 42px;
        height: 42px;
    }

    .testimonial-text {
        font-size: 12px;
        line-height: 1.65;
    }

    .review-google-btn {
        width: 100%;

        font-size: 12px;
    }

}


/* =========================================================
   LANDSCAPE PHONES
========================================================= */

@media (max-height: 600px) and (orientation: landscape) {

    .testimonials-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

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

}


/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) and (pointer: coarse) {

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

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

    .review-google-btn:hover {
        transform: none;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .testimonial-track {
        transition: none;
    }

    .testimonial-card,
    .testimonial-arrow,
    .review-google-btn {
        transition: none;
    }

}