/* =====================================
   CLIENT TESTIMONIAL SECTION
===================================== */

.client-testimonial-section {
    position: relative;
    padding: 80px 24px;
    overflow: hidden;
}

.client-testimonial-container {
    position: relative;
    display: grid;
    grid-template-columns: 0.85fr 1.4fr;
    gap: 24px;
    width: 100%;
    max-width: 1300px;
    min-height: 680px;
    margin: 0 auto;
}

/* =====================================
   LEFT CONTENT
===================================== */

.client-testimonial-left {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 10px;
}

.client-testimonial-heading {
    position: relative;
    width: 100%;
    margin-bottom: 8px;
}

.client-testimonial-floral-top {
    display: block;
    width: 100px;
    height: 105px;
    margin-bottom: 14px;
    object-fit: contain;
    object-position: left center;
    opacity: 0.55;
}

.client-testimonial-label {
    margin: 0 0 8px;
    color: #b98269;
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 1.6;
}

.client-testimonial-heading h2 {
    margin: 0;
    color: #34312f;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.3;
}

/* Supporting Image */

.client-testimonial-small-image {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #eee9e2;
}

.client-testimonial-small-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.client-testimonial-small-image:hover img {
    transform: scale(1.03);
}

/* Bottom Floral Decoration */

.client-testimonial-floral-bottom {
    display: block;
    width: 110px;
    height: 125px;
    margin: 22px 0 0 25px;
    object-fit: contain;
    object-position: left center;
    opacity: 0.55;
    transform: rotate(-12deg);
}

/* =====================================
   MAIN BRIDAL IMAGE
===================================== */

.client-testimonial-main-image {
    position: relative;
    width: 100%;
    height: 1100px;
    overflow: hidden;
    background: #eee9e2;
}

.client-testimonial-main-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.client-testimonial-main-image:hover img {
    transform: scale(1.02);
}

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

.client-testimonial-quote {
    position: absolute;
    z-index: 2;
    top: 67%;
    left: 0;
    width: 61%;
    height: fit-content;
    padding: 26px 28px 24px;
    background: #f5f1eb;
    border-left: 3px solid #d99da4;
}

.client-testimonial-quote-mark {
    display: none;
}

.client-testimonial-quote blockquote {
    margin: 0;
    color: #34312f;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.65;
}

.client-testimonial-client-name {
    margin: 12px 0 0;
    color: #a66e77;
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

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

@media (max-width: 991px) {
    .client-testimonial-section {
        padding: 60px 24px;
    }

    .client-testimonial-container {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 20px;
        min-height: 560px;
    }

    .client-testimonial-main-image {
        height: 560px;
    }

    .client-testimonial-floral-top {
        width: 80px;
        height: 85px;
    }

    .client-testimonial-heading h2 {
        font-size: 26px;
    }

    .client-testimonial-small-image {
        max-width: 260px;
    }

    .client-testimonial-quote {
        top: 68%;
        width: 68%;
        padding: 22px;
    }

    .client-testimonial-quote blockquote {
        font-size: 16px;
    }

    .client-testimonial-floral-bottom {
        width: 85px;
        height: 100px;
    }
}

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

@media (max-width: 575px) {
    .client-testimonial-section {
        padding: 45px 18px;
    }

    .client-testimonial-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        min-height: auto;
    }

    .client-testimonial-left {
        display: grid;
        grid-template-columns: 1fr 0.8fr;
        align-items: end;
        gap: 14px;
        padding-top: 0;
    }

    .client-testimonial-heading {
        margin-bottom: 0;
    }

    .client-testimonial-floral-top {
        width: 65px;
        height: 65px;
        margin-bottom: 10px;
    }

    .client-testimonial-label {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .client-testimonial-heading h2 {
        font-size: 25px;
    }

    .client-testimonial-small-image {
        width: 100%;
        max-width: none;
        aspect-ratio: 4 / 5;
    }

    .client-testimonial-floral-bottom {
        display: none;
    }

    .client-testimonial-main-image {
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .client-testimonial-quote {
        position: relative;
        top: auto;
        left: auto;
        width: calc(100% - 16px);
        margin: -55px 0 0 16px;
        padding: 22px 20px;
    }

    .client-testimonial-quote blockquote {
        font-size: 16px;
        line-height: 1.7;
    }

    .client-testimonial-client-name {
        font-size: 9px;
    }
}

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

@media (prefers-reduced-motion: reduce) {
    .client-testimonial-small-image img,
    .client-testimonial-main-image img {
        transition: none;
    }
}


/* ============================================================ */




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

.testimonials-section {
    padding: 75px 24px;
    /* background: #fbfaf8; */
    font-family: "Montserrat", sans-serif;
}

.testimonials-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.testimonials-heading {
    max-width: 650px;
    margin: 0 auto 40px;
    text-align: center;
}

.testimonials-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border: 1px solid #d99da4;
    color: #a66e77;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.testimonials-heading h2 {
    margin: 0 0 12px;
    color: #34312f;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 1.25;
}

.testimonials-heading p {
    margin: 0;
    color: #81766b;
    font-size: 13px;
    line-height: 1.8;
}

/* =====================================
   TESTIMONIAL CARDS
===================================== */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.testimonial-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 24px;
    border: 1px solid #eee7e1;
    background: #ffffff;
    color: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(52, 49, 47, 0.035);

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

.testimonial-card:hover {
    border-color: #d99da4;
    box-shadow: 0 12px 28px rgba(52, 49, 47, 0.08);
    transform: translateY(-3px);
}

.testimonial-card:focus-visible {
    outline: 2px solid #d99da4;
    outline-offset: 4px;
}

.testimonial-quote-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    border: 1px solid #f0e5e3;
    border-radius: 50%;
    color: #d99da4;
    font-family: Georgia, serif;
    font-size: 32px;
    line-height: 1;
}

.testimonial-preview {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
    min-height: 90px;
    margin: 0 0 22px;
    color: #5f5752;
    font-size: 12px;
    line-height: 1.8;
}
/* =====================================
   CLIENT DETAILS
===================================== */

.testimonial-client {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f0ebe7;
}

.testimonial-avatar {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #f4e5e5;
    color: #8f6268;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 15px;
}

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

.testimonial-client-info h3 {
    margin: 0 0 4px;
    color: #34312f;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.testimonial-client-info span {
    display: block;
    color: #92867e;
    font-size: 10px;
    line-height: 1.5;
}

.testimonial-open-icon {
    flex-shrink: 0;
    margin-left: auto;
    color: #b98269;
    font-size: 17px;
    transition: transform 0.25s ease;
}

.testimonial-card:hover .testimonial-open-icon {
    transform: translate(2px, -2px);
}

/* =====================================
   PAGINATION
===================================== */

.testimonials-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 38px;
}

.testimonial-page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.testimonial-page-arrow,
.testimonial-page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #e8ddd7;
    background: #ffffff;
    color: #5f5752;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    cursor: pointer;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.testimonial-page-arrow:hover:not(:disabled),
.testimonial-page-number:hover {
    border-color: #d99da4;
    color: #a66e77;
}

.testimonial-page-number.active {
    border-color: #d99da4;
    background: #d99da4;
    color: #ffffff;
}

.testimonial-page-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.testimonial-page-arrow:focus-visible,
.testimonial-page-number:focus-visible {
    outline: 2px solid #d99da4;
    outline-offset: 3px;
}

.testimonials-page-status {
    margin: 14px 0 0;
    color: #92867e;
    font-size: 11px;
    text-align: center;
}

/* =====================================
   TESTIMONIAL POPUP OVERLAY
   Matches the current HTML:
   .testimonials-modal
===================================== */

.testimonials-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;

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

    padding: 30px 16px;
    overflow-x: hidden;
    overflow-y: auto;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

/* Keep the popup completely hidden when the HTML hidden attribute exists */
.testimonials-modal[hidden] {
    display: none !important;
}

/* Open state added by JavaScript */
.testimonials-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Dark overlay behind the popup */
.testimonial-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(48, 39, 36, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

/* =====================================
   POPUP CONTENT
   Matches .testimonial-modal-dialog
===================================== */

.testimonial-modal-dialog {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 60px);
    margin: auto;
    padding: 65px 55px 55px;

    overflow-y: auto;
    background: #ffffff;
    text-align: center;

    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);

    opacity: 0;
    transform: translateY(20px) scale(0.98);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.testimonials-modal.is-open .testimonial-modal-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Decorative quote */
.testimonial-modal-quote {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;
    margin: 0 auto 24px;

    border: 1px solid #f0e5e3;
    border-radius: 50%;

    color: #d99da4;
    font-family: Georgia, serif;
    font-size: 55px;
    line-height: 1;
}

/* Service name */
.testimonial-modal-service {
    display: block;
    margin-bottom: 12px;

    color: #a66e77;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.6;
    text-transform: uppercase;
}

/* Client name */
.testimonial-modal-name {
    margin: 0;
    color: #302724;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

/* Decorative divider */
.testimonial-modal-name::after {
    display: block;
    width: 55px;
    height: 2px;
    margin: 24px auto;
    background: #d99da4;
    content: "";
}

/* Full testimonial description */
.testimonial-modal-description {
    max-width: 620px;
    margin: 0 auto;

    color: #81766b;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

/* =====================================
   POPUP CLOSE BUTTON
===================================== */

.testimonial-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    z-index: 2;

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

    width: 42px;
    height: 42px;
    padding: 0;

    border: none;
    background: transparent;
    color: #302724;

    font-family: Arial, sans-serif;
    font-size: 34px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.testimonial-modal-close:hover {
    color: #d99da4;
    transform: rotate(90deg);
}

.testimonial-modal-close:focus-visible {
    outline: 2px solid #d99da4;
    outline-offset: 3px;
}

/* Prevent background page scrolling while popup is open */
body.testimonial-modal-open {
    overflow: hidden;
}

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

@media (max-width: 991px) {
    .testimonials-section {
        padding: 60px 22px;
    }

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

    .testimonial-modal-dialog {
        max-width: 650px;
        padding: 55px 35px 40px;
    }
}

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

@media (max-width: 575px) {
    .testimonials-section {
        padding: 45px 16px;
    }

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

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

    .testimonials-heading p {
        font-size: 12px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-preview {
        min-height: auto;
        margin-bottom: 20px;
        font-size: 12px;
    }

    .testimonials-pagination {
        gap: 7px;
        margin-top: 28px;
    }

    .testimonial-page-arrow,
    .testimonial-page-number {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
    }

    /* Popup layout */
    .testimonials-modal {
        align-items: center;
        padding: 16px;
    }

    .testimonial-modal-dialog {
        max-width: 100%;
        max-height: calc(100vh - 32px);
        padding: 55px 22px 30px;
    }

    .testimonial-modal-quote {
        width: 48px;
        height: 48px;
        margin-bottom: 20px;
        font-size: 45px;
    }

    .testimonial-modal-service {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .testimonial-modal-name {
        font-size: 27px;
    }

    .testimonial-modal-name::after {
        margin: 20px auto;
    }

    .testimonial-modal-description {
        font-size: 17px;
        line-height: 1.8;
    }

    .testimonial-modal-close {
        top: 8px;
        right: 8px;
        width: 38px;
        height: 38px;
        font-size: 30px;
    }
}

/* Small phones */
@media (max-width: 360px) {
    .testimonial-modal-dialog {
        padding: 50px 17px 25px;
    }

    .testimonial-modal-name {
        font-size: 24px;
    }

    .testimonial-modal-description {
        font-size: 16px;
        line-height: 1.75;
    }
}

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

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

    .testimonial-card,
    .testimonial-open-icon,
    .testimonial-page-arrow,
    .testimonial-page-number,
    .testimonials-modal,
    .testimonial-modal-dialog,
    .testimonial-modal-close {
        transition: none;
    }
}