/* =========================================================
   WISHWAA INTERIOR DESIGNING
   TESTIMONIALS
   File: wishwaa-testimonials.css
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --wsh-blue: #0755A5;
    --wsh-blue-dark: #063B73;

    --wsh-gold: #B88A4A;
    --wsh-gold-light: #D2AD72;

    --wsh-black: #171717;
    --wsh-white: #FFFFFF;

    --wsh-text: #222222;
    --wsh-muted: #707070;

    --wsh-light: #F7F5F0;
    --wsh-border: #E4E0D8;

    --wsh-container: 1380px;
}


/* =========================================================
   SECTION
   ========================================================= */

.wsh-testimonials-section {
    position: relative;

    width: 100%;

    padding: 105px 0 90px;

    background: var(--wsh-light);

    overflow: hidden;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.wsh-testimonials-container {
    width: calc(100% - 80px);

    max-width: var(--wsh-container);

    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.wsh-testimonials-header {
    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(320px, 0.85fr);

    align-items: end;

    gap: 80px;

    margin-bottom: 55px;
}


/* =========================================================
   EYEBROW
   ========================================================= */

.wsh-testimonials-eyebrow {
    position: relative;

    display: inline-flex;
    align-items: center;

    margin-bottom: 18px;

    padding-left: 45px;

    color: var(--wsh-blue);

    font-family: "DM Sans", sans-serif;

    font-size: 11px;
    font-weight: 700;

    line-height: 1.3;

    letter-spacing: 2.5px;

    text-transform: uppercase;
}


.wsh-testimonials-eyebrow::before {
    content: "";

    position: absolute;

    left: 0;
    top: 50%;

    width: 32px;
    height: 1px;

    background: var(--wsh-gold);

    transform: translateY(-50%);
}


/* =========================================================
   HEADING
   ========================================================= */

.wsh-testimonials-heading h2 {
    margin: 0;

    color: var(--wsh-black);

    font-family: "DM Sans", sans-serif;

    font-size: clamp(36px, 4vw, 58px);

    font-weight: 500;

    line-height: 1.08;

    letter-spacing: -1.8px;
}


.wsh-testimonials-heading h2 span {
    color: var(--wsh-blue);
}


/* =========================================================
   INTRO
   ========================================================= */

.wsh-testimonials-intro {
    max-width: 480px;

    justify-self: end;
}


.wsh-testimonials-intro p {
    margin: 0;

    color: #666666;

    font-family: "DM Sans", sans-serif;

    font-size: 16px;

    font-weight: 400;

    line-height: 1.8;
}


/* =========================================================
   SLIDER
   ========================================================= */

.wsh-testimonials-slider {
    position: relative;

    width: 100%;

    overflow: hidden;
}


/* =========================================================
   TRACK
   ========================================================= */

.wsh-testimonials-track {
    display: flex;

    align-items: stretch;

    width: max-content;

    gap: 18px;

    transform: translate3d(0, 0, 0);

    transition:
        transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);

    will-change: transform;
}


/* =========================================================
   TESTIMONIAL CARD
   ========================================================= */

.wsh-testimonial-slide {
    position: relative;

    flex: 0 0 425px;

    width: 425px;

    min-height: 385px;

    padding: 34px 34px 28px;

    display: flex;

    flex-direction: column;

    box-sizing: border-box;

    background: var(--wsh-white);

    border: 1px solid var(--wsh-border);

    transition:
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.35s ease;
}


.wsh-testimonial-slide:hover {
    border-color: #D8C3A3;

    box-shadow:
        0 18px 45px rgba(20, 30, 45, 0.08);

    transform: translateY(-4px);
}


/* =========================================================
   CARD TOP
   ========================================================= */

.wsh-testimonial-top {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    width: 100%;

    gap: 25px;
}


/* =========================================================
   CLIENT
   ========================================================= */

.wsh-testimonial-client {
    flex: 1 1 auto;

    min-width: 0;

    display: block;
}


.wsh-testimonial-client-info {
    display: block;
}


/* =========================================================
   CLIENT NAME
   ========================================================= */

.wsh-testimonial-client-info h3 {
    display: block;

    margin: 0 0 5px;

    color: var(--wsh-black);

    font-family: "DM Sans", sans-serif;

    font-size: 17px;

    font-weight: 700;

    line-height: 1.3;

    white-space: nowrap;
}


/* =========================================================
   CLIENT CATEGORY
   ========================================================= */

.wsh-testimonial-client-info span {
    display: block;

    margin: 0;

    color: #999999;

    font-family: "DM Sans", sans-serif;

    font-size: 12px;

    font-weight: 400;

    line-height: 1.4;

    white-space: nowrap;
}


/* =========================================================
   STARS
   ========================================================= */

.wsh-testimonial-stars {
    flex: 0 0 auto;

    display: flex;

    align-items: center;

    gap: 4px;

    padding-top: 3px;

    color: var(--wsh-gold);

    font-size: 13px;

    line-height: 1;

    white-space: nowrap;
}


.wsh-testimonial-stars i {
    display: block;

    font-style: normal;
}


/* =========================================================
   CONTENT
   ========================================================= */

.wsh-testimonial-content {
    margin-top: 30px;
}


/* =========================================================
   QUOTE
   ========================================================= */

.wsh-testimonial-quote {
    margin: 0 0 13px;

    color: #DCC9A8;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 38px;

    font-weight: 700;

    line-height: 0.75;
}


/* =========================================================
   REVIEW
   ========================================================= */

.wsh-testimonial-content p {
    margin: 0;

    color: #555555;

    font-family: "DM Sans", sans-serif;

    font-size: 17px;

    font-weight: 400;

    line-height: 1.75;

    letter-spacing: 0;
}


/* =========================================================
   CARD BOTTOM
   ========================================================= */

.wsh-testimonial-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: auto;

    padding-top: 23px;

    border-top: 1px solid #E9E5DD;
}


/* =========================================================
   BOTTOM LABEL
   ========================================================= */

.wsh-testimonial-bottom span {
    color: var(--wsh-blue);

    font-family: "DM Sans", sans-serif;

    font-size: 11px;

    font-weight: 700;

    line-height: 1.4;

    letter-spacing: 1.8px;

    text-transform: uppercase;
}


/* =========================================================
   BOTTOM ARROW
   ========================================================= */

.wsh-testimonial-bottom i {
    color: var(--wsh-gold);

    font-size: 13px;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}


.wsh-testimonial-slide:hover
.wsh-testimonial-bottom i {

    color: var(--wsh-blue);

    transform: translateX(4px);
}


/* =========================================================
   CONTROLS
   ========================================================= */

.wsh-testimonials-controls {
    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 100%;

    margin-top: 32px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.wsh-testimonial-prev,
.wsh-testimonial-next {
    flex: 0 0 56px;

    width: 56px;
    height: 56px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #D9D4CA;

    background: transparent;

    color: var(--wsh-blue);

    font-size: 16px;

    cursor: pointer;

    appearance: none;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


.wsh-testimonial-prev:hover,
.wsh-testimonial-next:hover {

    background: var(--wsh-blue);

    border-color: var(--wsh-blue);

    color: var(--wsh-white);
}


.wsh-testimonial-prev:hover {
    transform: translateX(-3px);
}


.wsh-testimonial-next:hover {
    transform: translateX(3px);
}


/* =========================================================
   PROGRESS
   ========================================================= */

.wsh-testimonial-progress {
    display: flex;

    align-items: center;

    width: min(360px, 40%);

    gap: 18px;
}


.wsh-testimonial-current,
.wsh-testimonial-total {
    flex: 0 0 auto;

    color: var(--wsh-blue);

    font-family: "DM Sans", sans-serif;

    font-size: 11px;

    font-weight: 700;

    line-height: 1;

    letter-spacing: 1px;
}


.wsh-testimonial-total {
    color: #777777;
}


/* =========================================================
   PROGRESS LINE
   ========================================================= */

.wsh-testimonial-progress-line {
    position: relative;

    flex: 1;

    height: 1px;

    background: #D8D2C7;

    overflow: hidden;
}


.wsh-testimonial-progress-line span {
    position: absolute;

    left: 0;
    top: 0;

    width: 16.66%;
    height: 100%;

    background: var(--wsh-gold);

    transition: width 0.5s ease;
}


/* =========================================================
   LARGE LAPTOP
   ========================================================= */

@media (max-width: 1200px) {

    .wsh-testimonials-container {
        width: calc(100% - 60px);
    }

    .wsh-testimonials-header {
        gap: 50px;
    }

    .wsh-testimonial-slide {
        flex-basis: 400px;
        width: 400px;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .wsh-testimonials-section {
        padding: 90px 0 80px;
    }

    .wsh-testimonials-container {
        width: calc(100% - 40px);
    }

    .wsh-testimonials-header {
        grid-template-columns: 1fr 1fr;

        gap: 40px;

        margin-bottom: 45px;
    }

    .wsh-testimonials-heading h2 {
        font-size: 44px;
    }

    .wsh-testimonials-intro p {
        font-size: 15px;
    }

    .wsh-testimonial-slide {
        flex-basis: 380px;
        width: 380px;

        min-height: 375px;

        padding: 30px 28px 26px;
    }

    .wsh-testimonial-content p {
        font-size: 16px;

        line-height: 1.7;
    }

    .wsh-testimonial-client-info h3 {
        font-size: 16px;
    }

}


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (max-width: 850px) {

    .wsh-testimonials-header {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .wsh-testimonials-intro {
        max-width: 620px;

        justify-self: start;
    }

    .wsh-testimonial-slide {
        flex-basis: 350px;
        width: 350px;
    }

    .wsh-testimonial-progress {
        width: 280px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .wsh-testimonials-section {
        padding: 75px 0 65px;
    }

    .wsh-testimonials-container {
        width: calc(100% - 24px);
    }


    /* Header */

    .wsh-testimonials-header {
        gap: 18px;

        margin-bottom: 35px;
    }

    .wsh-testimonials-eyebrow {
        margin-bottom: 15px;

        padding-left: 38px;

        font-size: 10px;

        letter-spacing: 2px;
    }

    .wsh-testimonials-eyebrow::before {
        width: 27px;
    }

    .wsh-testimonials-heading h2 {
        font-size: 35px;

        line-height: 1.12;

        letter-spacing: -1px;
    }

    .wsh-testimonials-intro {
        max-width: 100%;
    }

    .wsh-testimonials-intro p {
        font-size: 15px;

        line-height: 1.7;
    }


    /* Card */

    .wsh-testimonial-slide {
        flex: 0 0 calc(100vw - 24px);

        width: calc(100vw - 24px);

        min-height: 370px;

        padding: 28px 24px 24px;
    }


    /* Top */

    .wsh-testimonial-top {
        gap: 15px;
    }


    /* Client */

    .wsh-testimonial-client-info h3 {
        font-size: 16px;
    }

    .wsh-testimonial-client-info span {
        font-size: 11px;
    }


    /* Stars */

    .wsh-testimonial-stars {
        gap: 3px;

        font-size: 11px;
    }


    /* Content */

    .wsh-testimonial-content {
        margin-top: 25px;
    }

    .wsh-testimonial-quote {
        margin-bottom: 11px;

        font-size: 34px;
    }

    .wsh-testimonial-content p {
        font-size: 16px;

        line-height: 1.7;
    }


    /* Bottom */

    .wsh-testimonial-bottom {
        padding-top: 20px;
    }

    .wsh-testimonial-bottom span {
        font-size: 10px;

        letter-spacing: 1.5px;
    }

    .wsh-testimonial-bottom i {
        font-size: 12px;
    }


    /* Controls */

    .wsh-testimonials-controls {
        margin-top: 25px;
    }

    .wsh-testimonial-prev,
    .wsh-testimonial-next {

        flex-basis: 48px;

        width: 48px;
        height: 48px;

        font-size: 14px;
    }

    .wsh-testimonial-progress {
        width: 42%;

        gap: 10px;
    }

    .wsh-testimonial-current,
    .wsh-testimonial-total {
        font-size: 10px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .wsh-testimonials-section {
        padding: 65px 0 55px;
    }

    .wsh-testimonials-container {
        width: calc(100% - 20px);
    }

    .wsh-testimonials-heading h2 {
        font-size: 31px;
    }

    .wsh-testimonial-slide {
        flex-basis: calc(100vw - 20px);

        width: calc(100vw - 20px);

        min-height: 360px;

        padding: 25px 20px 22px;
    }

    .wsh-testimonial-top {
        gap: 10px;
    }

    .wsh-testimonial-client-info h3 {
        font-size: 15px;
    }

    .wsh-testimonial-client-info span {
        font-size: 10px;
    }

    .wsh-testimonial-stars {
        gap: 2px;

        font-size: 10px;
    }

    .wsh-testimonial-content p {
        font-size: 15.5px;

        line-height: 1.7;
    }

    .wsh-testimonial-bottom span {
        font-size: 9px;

        letter-spacing: 1.3px;
    }

    .wsh-testimonial-prev,
    .wsh-testimonial-next {
        flex-basis: 44px;

        width: 44px;
        height: 44px;
    }

    .wsh-testimonial-progress {
        width: 45%;

        gap: 8px;
    }

}


/* =========================================================
   FOCUS
   ========================================================= */

.wsh-testimonial-prev:focus-visible,
.wsh-testimonial-next:focus-visible {

    outline: 2px solid var(--wsh-gold);

    outline-offset: 3px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .wsh-testimonials-track {
        transition: none;
    }

    .wsh-testimonial-slide {
        transition: none;
    }

    .wsh-testimonial-prev,
    .wsh-testimonial-next {
        transition: none;
    }

    .wsh-testimonial-progress-line span {
        transition: none;
    }

}