﻿
:root {
    --primary: #0b5d4f;
    --primary-dark: #063f36;
    --primary-light: #117866;

    --gold: #c9a227;
    --gold-dark: #a98416;
    --gold-light: #f5edcf;

    --cream: #faf8f1;
    --white: #ffffff;

    --dark: #17201d;
    --text: #66716c;
    --muted: #8b9490;

    --border: #e7e3d7;

    --shadow:
        0 18px 50px rgba(6, 63, 54, 0.09);

    --container: 1180px;
}


/* =========================================================
   SECTION
========================================================= */

.testimonials-section {
    padding: 100px 0;

    background: var(--cream);
}

.testimonials-container {
    width: min(92%, var(--container));

    margin: auto;
}


/* =========================================================
   HEADING
========================================================= */

.testimonials-heading {
    max-width: 760px;

    text-align: center;

    margin: 0 auto 55px;
}

.testimonial-label {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--gold-dark);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 15px;
}

.testimonials-heading h2 {
    margin: 0 0 15px;

    color: var(--dark);

    font-family: "Playfair Display", serif;

    font-size: clamp(36px, 4vw, 52px);

    line-height: 1.2;
}

.testimonials-heading h2 span {
    color: var(--primary);
}

.testimonials-heading p {
    margin: 0;

    color: var(--text);

    font-size: 15px;

    line-height: 1.8;
}


/* =========================================================
   RATING SUMMARY
========================================================= */

.testimonial-rating-box {
    display: flex;

    align-items: center;

    gap: 45px;

    max-width: 900px;

    margin: 0 auto 55px;

    padding: 30px 40px;

    background: var(--white);

    border: 1px solid var(--border);

    box-shadow: var(--shadow);
}

.rating-number {
    min-width: 170px;

    text-align: center;
}

.rating-number strong {
    display: block;

    color: var(--primary);

    font-family: "Playfair Display", serif;

    font-size: 48px;

    line-height: 1;
}

.rating-stars {
    margin: 8px 0;

    color: var(--gold);

    font-size: 15px;
}

.rating-number span {
    color: var(--muted);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.rating-divider {
    width: 1px;

    height: 75px;

    background: var(--border);
}

.rating-message {
    display: flex;

    gap: 18px;

    align-items: flex-start;
}

.rating-message > i {
    color: var(--gold);

    font-size: 28px;

    margin-top: 3px;
}

.rating-message p {
    margin: 0;

    color: var(--text);

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   TESTIMONIAL GRID
========================================================= */

.testimonials-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}


/* =========================================================
   CARD
========================================================= */

.testimonial-card {
    position: relative;

    padding: 30px;

    background: var(--white);

    border: 1px solid var(--border);

    transition: 0.35s ease;
}

.testimonial-card:hover {
    transform: translateY(-7px);

    border-color: var(--gold);

    box-shadow: var(--shadow);
}


/* =========================================================
   CUSTOMER PROFILE
========================================================= */

.testimonial-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}

.customer-profile {
    display: flex;

    align-items: center;

    gap: 13px;
}

.customer-avatar {
    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: var(--primary);

    color: var(--gold);

    font-family: "Playfair Display", serif;

    font-size: 20px;

    font-weight: 700;

    border-radius: 50%;
}

.customer-profile h3 {
    margin: 0 0 4px;

    color: var(--dark);

    font-family: "Playfair Display", serif;

    font-size: 18px;
}

.customer-profile span {
    color: var(--muted);

    font-size: 10px;
}

.testimonial-quote {
    color: var(--gold-light);

    font-size: 30px;
}


/* =========================================================
   STARS
========================================================= */

.testimonial-stars {
    margin: 22px 0 15px;

    color: var(--gold);

    font-size: 12px;

    letter-spacing: 2px;
}


/* =========================================================
   REVIEW TEXT
========================================================= */

.testimonial-card > p {
    min-height: 115px;

    margin: 0;

    color: var(--text);

    font-size: 13px;

    line-height: 1.9;
}


/* =========================================================
   SERVICE TAG
========================================================= */

.testimonial-service {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-top: 20px;

    padding: 8px 12px;

    background: var(--cream);

    color: var(--primary);

    font-size: 10px;

    font-weight: 700;
}

.testimonial-service i {
    color: var(--gold-dark);
}


/* =========================================================
   CTA
========================================================= */

.testimonial-cta {
    display: flex;

    align-items: center;

    gap: 25px;

    margin-top: 55px;

    padding: 35px 40px;

    background:
        linear-gradient(
            135deg,
            var(--primary-dark),
            var(--primary)
        );

    border-left: 5px solid var(--gold);
}

.testimonial-cta-icon {
    width: 60px;
    height: 60px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: rgba(255,255,255,0.10);

    color: var(--gold);

    font-size: 22px;
}

.testimonial-cta-content {
    flex: 1;
}

.testimonial-cta-content span {
    color: var(--gold);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.7px;
}

.testimonial-cta-content h3 {
    margin: 7px 0;

    color: var(--white);

    font-family: "Playfair Display", serif;

    font-size: 27px;
}

.testimonial-cta-content p {
    margin: 0;

    color: rgba(255,255,255,0.72);

    font-size: 12px;

    line-height: 1.7;
}

.testimonial-cta-btn {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    flex-shrink: 0;

    padding: 14px 22px;

    background: var(--gold);

    color: var(--primary-dark);

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;

    transition: 0.3s ease;
}

.testimonial-cta-btn:hover {
    background: var(--white);

    transform: translateY(-3px);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    .testimonials-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 768px) {

    .testimonials-section {
        padding: 70px 0;
    }

    .testimonial-rating-box {
        flex-direction: column;

        text-align: center;

        gap: 25px;

        padding: 30px 25px;
    }

    .rating-divider {
        width: 80px;

        height: 1px;
    }

    .rating-message {
        text-align: left;
    }

    .testimonial-cta {
        flex-wrap: wrap;

        padding: 30px;
    }

}


@media (max-width: 600px) {

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card > p {
        min-height: auto;
    }

    .testimonial-cta {
        align-items: flex-start;
    }

    .testimonial-cta-content h3 {
        font-size: 24px;
    }

    .testimonial-cta-btn {
        width: 100%;

        justify-content: center;
    }

}
