/* =========================================================
   REVIEWS PAGE
========================================================= */

.reviews-container {
    width: min(1200px, 90%);
    margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.reviews-hero {
    position: relative;
    min-height: 560px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            rgba(17, 48, 82, 0.60),
            rgba(17, 48, 82, 0.60)
        ),
        url("../images/hero/reviews-hero.jpg") center / cover no-repeat;

    text-align: center;
    color: #ffffff;
}

.reviews-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 42, 72, 0.10);
}

.reviews-hero-content {
    position: relative;
    z-index: 2;

    width: min(850px, 90%);
    margin: 0 auto;
    padding: 90px 0 70px;
}

.reviews-hero .section-eyebrow {
    color: #d5a54a;
}

.reviews-hero h1 {
    margin: 18px 0 22px;

    color: #ffffff;
    font-family: var(--heading-font);
    font-size: clamp(3.5rem, 6vw, 5.8rem);
    font-weight: 500;
    line-height: 0.98;
}

.reviews-hero p:not(.section-eyebrow) {
    max-width: 680px;
    margin: 0 auto;

    color: rgba(255, 255, 255, 0.92);

    font-size: 1.08rem;
    line-height: 1.8;
}


/* =========================================================
   REVIEWS SECTION
========================================================= */

.reviews-section {
    padding: 110px 0 65px;
    background: #ffffff;
}

.reviews-heading {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

.reviews-heading h2 {
    margin: 15px 0 20px;

    color: var(--text);
    font-family: var(--heading-font);
    font-size: clamp(2.8rem, 4.5vw, 4.2rem);
    font-weight: 500;
    line-height: 1.05;
}

.reviews-heading p:last-child {
    max-width: 680px;
    margin: 0 auto;

    color: var(--text-light);
    line-height: 1.8;
}


/* =========================================================
   ZILLOW CARD
========================================================= */

.zillow-review-card {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 28px;

    padding: 42px;

    background: #f5f7f9;
    border: 1px solid #e2e6ea;
    border-radius: 10px;

    box-shadow: 0 18px 45px rgba(20, 45, 75, 0.08);
}

.zillow-review-icon {
    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(213, 165, 74, 0.13);
    color: #c99532;

    font-size: 1.5rem;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 6px;
}

.rating-number {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 700;
}

.stars {
    color: #d5a54a;
    letter-spacing: 2px;
}

.zillow-review-content h3 {
    margin: 0 0 3px;

    color: var(--text);
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 600;
}

.zillow-review-content p {
    margin: 0 0 5px;

    color: var(--text-light);
}

.review-count {
    color: var(--text-light);
    font-size: 0.85rem;
}

.zillow-review-action .btn-primary {
    white-space: nowrap;
}


/* =========================================================
   BOTTOM CONTENT
========================================================= */

.reviews-bottom {
    margin-top: 100px;
    padding: 85px 70px;

    background: #f5f7f9;
    border-radius: 10px;
}

.reviews-bottom-content {
    max-width: 650px;
}

.reviews-bottom h2 {
    margin: 15px 0 22px;

    color: var(--text);
    font-family: var(--heading-font);
    font-size: clamp(2.8rem, 4.5vw, 4.2rem);
    font-weight: 500;
    line-height: 1.05;
}

.reviews-bottom p:not(.section-eyebrow) {
    margin: 0 0 30px;

    color: var(--text-light);
    line-height: 1.8;
}


/* =========================================================
   CTA
========================================================= */

.reviews-cta {
    padding: 90px 0;

    background: var(--primary);
    color: #ffffff;
    text-align: center;
}

.reviews-cta .section-eyebrow {
    color: #d5a54a;
}

.reviews-cta h2 {
    margin: 15px 0 18px;

    color: #ffffff;
    font-family: var(--heading-font);
    font-size: clamp(3rem, 5vw, 4.8rem);
    font-weight: 500;
    line-height: 1;
}

.reviews-cta p {
    max-width: 650px;
    margin: 0 auto 30px;

    color: rgba(255, 255, 255, 0.84);
    line-height: 1.8;
}

.reviews-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.reviews-cta .btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
    background: transparent;
}

.reviews-cta .btn-secondary:hover {
    background: #ffffff;
    color: var(--primary);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .zillow-review-card {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .review-rating {
        justify-content: center;
    }

    .zillow-review-action {
        width: 100%;
    }

    .zillow-review-action .btn-primary {
        width: 100%;
    }

    .reviews-bottom {
        padding: 55px 30px;
    }
}


@media (max-width: 600px) {

    .reviews-hero {
        min-height: 500px;
    }

    .reviews-hero-content {
        padding: 70px 0 55px;
    }

    .reviews-hero h1 {
        font-size: 3rem;
    }

    .reviews-section {
        padding: 75px 0 85px;
    }

    .zillow-review-card {
        padding: 30px 22px;
    }

    .reviews-bottom {
        margin-top: 65px;
        padding: 45px 25px;
    }

    .reviews-cta {
        padding: 70px 0;
    }

    .reviews-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .reviews-cta-buttons a {
        width: 100%;
        max-width: 280px;
        box-sizing: border-box;
        text-align: center;
    }
}

/* =========================================================
   TESTIMONIALS
========================================================= */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;

    margin-top: 55px;
}

.testimonial-card {
    position: relative;

    padding: 35px 30px;

    background: #ffffff;

    border: 1px solid #e2e6ea;
    border-radius: 10px;

    box-shadow: 0 12px 30px rgba(20, 45, 75, 0.06);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 18px 40px rgba(20, 45, 75, 0.10);
}

.testimonial-stars {
    color: #d5a54a;
    letter-spacing: 2px;
    font-size: 0.95rem;
}

.testimonial-quote {
    margin: 25px 0 12px;

    color: #d5a54a;
    font-size: 1.5rem;
}

.testimonial-text {
    margin: 0 0 28px;

    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 3px;

    padding-top: 20px;

    border-top: 1px solid #e5e8ec;
}

.testimonial-author strong {
    color: var(--text);
    font-size: 0.95rem;
}

.testimonial-author span,
.testimonial-author small {
    color: var(--text-light);
    font-size: 0.82rem;
}

.reviews-source {
    margin-top: 35px;
    margin-bottom: 0px;
    text-align: center;
}

.reviews-source p {
    margin-bottom: 8px;

    color: var(--text-light);
    font-size: 0.85rem;
}

.reviews-source a {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.reviews-source a:hover {
    color: #c99532;
}

.reviews-error {
    grid-column: 1 / -1;

    padding: 50px;

    text-align: center;

    background: #f5f7f9;
    border-radius: 10px;
}


/* =========================================================
   TESTIMONIAL MOBILE
========================================================= */

@media (max-width: 950px) {

    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 650px) {

    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .testimonial-card {
        padding: 30px 25px;
    }

}