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

.testimonials-page {
    background: #fbf7f1;
}


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

.testimonials-hero {
    position: relative;

    min-height: 560px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    text-align: center;

    background:
        linear-gradient(rgba(35, 29, 24, .58),
            rgba(35, 29, 24, .72)),
        url("../img/new-born.webp") center / cover no-repeat;

    color: #fff;
}


.testimonials-hero-inner {
    position: relative;

    z-index: 2;

    width: min(850px, 90%);

    margin: 0 auto;

    padding-top: 50px;
}


.testimonials-hero .portfolio-eyebrow {
    color: rgba(255, 255, 255, .75);
}


.testimonials-hero h1 {
    margin: 25px 0 0;

    font-family: var(--fh);

    font-size:
        clamp(58px, 8vw, 105px);

    font-weight: 400;

    line-height: .9;

    letter-spacing: -.05em;
}


.testimonials-hero h1 em {
    color: #d6aa70;

    font-style: italic;
}


.testimonials-hero .portfolio-script {
    margin-top: 24px;

    color: #e2c59f;

    font-family: var(--fs);

    font-size: 24px;
}


.testimonials-hero .portfolio-intro {
    max-width: 650px;

    margin: 25px auto 0;

    color: rgba(255, 255, 255, .82);

    font-size: 14px;

    line-height: 1.9;
}


/* =========================================================
   DECORATION
========================================================= */

.testimonials-hero-decoration {
    position: absolute;

    color: rgba(214, 170, 112, .4);

    font-size: 28px;

    animation:
        testimonialFloat 5s ease-in-out infinite;
}


.decoration-left {
    left: 12%;

    top: 28%;
}


.decoration-right {
    right: 12%;

    bottom: 25%;

    animation-delay: 1.5s;
}


@keyframes testimonialFloat {

    0%,
    100% {
        transform:
            translateY(0) rotate(0deg);
    }

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

}


/* =========================================================
   INTRO
========================================================= */

.testimonials-intro {
    padding: 110px 24px 70px;

    background: #fbf7f1;
}


.testimonials-container {
    width: min(1280px, 100%);

    margin: 0 auto;
}


/* =========================================================
   TESTIMONIAL LIST
========================================================= */

.testimonials-list-section {
    padding: 40px 24px 120px;
}


.testimonials-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


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

.testimonial-page-card {
    position: relative;

    display: flex;

    flex-direction: column;

    min-height: 410px;

    padding: 35px;

    overflow: hidden;

    background: #fffdf9;

    border:
        1px solid rgba(40, 34, 29, .08);

    box-shadow:
        0 12px 40px rgba(40, 34, 29, .045);

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}


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

    box-shadow:
        0 25px 60px rgba(40, 34, 29, .10);
    background:
        linear-gradient(145deg,
            #f2e2d0,
            #fffaf4);
}


.testimonial-page-card.featured {
    background:
        linear-gradient(145deg,
            #f2e2d0,
            #fffaf4);
}


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

.testimonial-card-top {
    display: flex;

    align-items: center;

    justify-content: space-between;
}


.testimonial-card-top>span {
    color: #b59a7a;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .18em;
}


.testimonial-stars {
    color: #c89b62;

    font-size: 11px;

    letter-spacing: 2px;
}


/* =========================================================
   QUOTE
========================================================= */

.testimonial-large-quote {
    margin-top: 25px;

    color: #c89b62;

    font-family: Georgia, serif;

    font-size: 68px;

    line-height: .5;
}


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

.testimonial-page-card>p {
    flex: 1;

    margin:
        22px 0 30px;

    color: #635b54;

    font-size: 14px;

    line-height: 1.85;
}


/* =========================================================
   AUTHOR
========================================================= */

.testimonial-page-author {
    display: flex;

    align-items: center;

    gap: 13px;

    padding-top: 20px;

    border-top:
        1px solid rgba(40, 34, 29, .09);
}


.testimonial-page-avatar {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 42px;

    height: 42px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #29231f;

    color: #fff;

    font-family: var(--fh);

    font-size: 17px;
}


.testimonial-page-author strong {
    display: block;

    color: #29231f;

    font-size: 12px;
}


.testimonial-page-author span {
    display: block;

    margin-top: 4px;

    color: #9a7551;

    font-size: 8px;

    letter-spacing: .1em;

    text-transform: uppercase;
}


/* =========================================================
   CTA
========================================================= */

.testimonials-cta {
    position: relative;

    padding: 120px 24px;

    overflow: hidden;

    text-align: center;

    color: #fff;

    background:
        linear-gradient(rgba(38, 31, 26, .86),
            rgba(38, 31, 26, .94));
}


.testimonials-cta-inner {
    position: relative;

    z-index: 2;

    width: min(800px, 100%);

    margin: 0 auto;
}


.testimonials-cta-inner>span {
    display: block;

    margin-bottom: 20px;

    color: #d6aa70;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .25em;
}


.testimonials-cta h2 {
    margin: 0;

    font-family: var(--fh);

    font-size:
        clamp(45px, 6vw, 78px);

    font-weight: 400;

    line-height: 1;
}


.testimonials-cta h2 em {
    color: #d6aa70;

    font-style: italic;
}


.testimonials-cta p {
    margin:
        25px auto 35px;

    color:
        rgba(255, 255, 255, .65);

    font-size: 14px;
}


.testimonials-cta-button {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    padding:
        14px 23px;

    border:
        1px solid rgba(214, 170, 112, .6);

    color: #fff;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .14em;

    text-decoration: none;

    transition:
        background .25s ease,
        color .25s ease;
}


.testimonials-cta-button span {
    font-size: 16px;
}


.testimonials-cta-button:hover {
    background: #d6aa70;

    color: #29231f;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .testimonials-hero {
        min-height: 500px;
    }

    .testimonials-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .testimonials-hero {
        min-height: 480px;
    }


    .testimonials-hero-inner {
        padding-top: 40px;
    }


    .testimonials-hero h1 {
        font-size: 58px;
    }


    .testimonials-hero .portfolio-script {
        font-size: 20px;
    }


    .testimonials-hero .portfolio-intro {
        font-size: 13px;

        line-height: 1.8;
    }


    .testimonials-intro {
        padding:
            75px 16px 40px;
    }


    .testimonials-list-section {
        padding:
            30px 16px 80px;
    }


    .testimonials-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }


    .testimonial-page-card {
        min-height: 0;

        padding: 28px 24px;
    }


    .testimonial-page-card>p {
        font-size: 13px;

        line-height: 1.8;
    }


    .testimonials-cta {
        padding:
            85px 20px;
    }


    .testimonials-cta h2 {
        font-size: 48px;
    }


    .decoration-left {
        left: 7%;
    }


    .decoration-right {
        right: 7%;
    }

}


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

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

    .testimonials-hero-decoration,
    .testimonial-page-card {
        animation: none;

        transition: none;
    }

}