/* =========================================================
   FM HAIRSTYLE — CLIENT REVIEWS (Editorial Carousel)
   Shares the ivory/coral identity of Why Choose Us.
========================================================= */

.fm-reviews {
    position: relative;
    padding: 5rem 0 6rem;
    background: #FBF6F1;
    overflow: hidden;
}

/* Ambient soft blobs — same warmth as Why Choose Us */
.fm-reviews::before {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(217, 140, 107, 0.5) 0%, rgba(217, 140, 107, 0) 70%);
    top: -100px;
    right: -120px;
}

.fm-reviews > .container {
    position: relative;
    z-index: 1;
}


/* =========================================================
   SECTION INTRO — editorial, matches Why Choose Us
========================================================= */
.fm-reviews-intro {
    max-width: 640px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.fm-reviews-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #D98C6B;
    margin-bottom: 1.1rem;
}

.fm-reviews-eyebrow::before,
.fm-reviews-eyebrow::after {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: #D98C6B;
}

.fm-reviews-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: #24191A;
    margin: 0 0 1rem;
    letter-spacing: -0.5px;
}

.fm-reviews-title em {
    font-style: italic;
    background: linear-gradient(135deg, #D98C6B 0%, #D96A8A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fm-reviews-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    color: #6B5E5A;
    margin: 0;
}


/* =========================================================
   EDITORIAL FRAME — soft coral border around carousel
   Matches the Why Choose Us frame treatment.
========================================================= */
.fm-reviews-frame {
    position: relative;
    padding: 3rem 3rem 2.5rem;
    border: 1px solid rgba(217, 140, 107, 0.35);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.35);
    box-shadow:
        0 1px 2px rgba(18, 15, 16, 0.02),
        0 24px 60px -28px rgba(217, 140, 107, 0.25);
    isolation: isolate;
}

/* Soft inner highlight so the border feels layered, not flat */
.fm-reviews-frame::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(217, 140, 107, 0.15);
    border-radius: 14px;
    pointer-events: none;
    z-index: 0;
}

/* Make sure carousel + dots sit above the inner border */
.fm-reviews-frame > .fm-reviews-carousel,
.fm-reviews-frame > .fm-reviews-dots {
    position: relative;
    z-index: 1;
}

/* =========================================================
   CORNER TICKS — small cross marks at each corner
========================================================= */
.fm-reviews-frame-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    pointer-events: none;
    z-index: 2;
}

.fm-reviews-frame-corner::before,
.fm-reviews-frame-corner::after {
    content: '';
    position: absolute;
    background: #D98C6B;
}

.fm-reviews-frame-corner::before {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
}

.fm-reviews-frame-corner::after {
    height: 100%;
    width: 1px;
    left: 50%;
    top: 0;
}

.fm-reviews-frame-corner--tl { top: -7px; left: -7px; }
.fm-reviews-frame-corner--tr { top: -7px; right: -7px; }
.fm-reviews-frame-corner--bl { bottom: -7px; left: -7px; }
.fm-reviews-frame-corner--br { bottom: -7px; right: -7px; }


/* =========================================================
   CAROUSEL WRAPPER — outer flex: [btn] [viewport] [btn]
========================================================= */
.fm-reviews-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}


/* =========================================================
   ARROW BUTTONS — far left / far right, coral accent
========================================================= */
.fm-reviews-arrow {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1.5px solid rgba(217, 140, 107, 0.35);
    color: #D98C6B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 6px 18px -8px rgba(217, 140, 107, 0.35);
    z-index: 3;
}

.fm-reviews-arrow:hover:not(:disabled) {
    background: linear-gradient(135deg, #D98C6B 0%, #D96A8A 100%);
    border-color: transparent;
    color: #FFFFFF;
    transform: scale(1.06);
    box-shadow: 0 12px 26px -10px rgba(217, 140, 107, 0.6);
}

.fm-reviews-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
}


/* =========================================================
   VIEWPORT — overflow hidden, shows track
========================================================= */
.fm-reviews-viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    padding: 0.75rem 0.25rem; /* room for card shadows */
    margin: -0.75rem -0.25rem;
}

.fm-reviews-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}


/* =========================================================
   REVIEW CARD
========================================================= */
.fm-review-card {
    flex: 0 0 calc((100% - 3rem) / 3); /* 3 cards desktop */
    background: #FFFFFF;
    border-radius: 14px;
    padding: 2rem 1.75rem 1.75rem;
    border: 1px solid rgba(217, 140, 107, 0.12);
    box-shadow:
        0 1px 2px rgba(18, 15, 16, 0.02),
        0 12px 32px -14px rgba(217, 140, 107, 0.2);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fm-review-card::before {
    content: '\201C'; /* decorative opening quote */
    position: absolute;
    top: -2rem;
    right: 1rem;
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    font-style: italic;
    line-height: 1;
    color: rgba(217, 140, 107, 0.08);
    pointer-events: none;
}

.fm-review-card:hover {
    transform: translateY(-4px);
    border-color: rgba(217, 140, 107, 0.3);
    box-shadow:
        0 1px 2px rgba(18, 15, 16, 0.03),
        0 20px 42px -18px rgba(217, 140, 107, 0.35);
}


/* =========================================================
   STARS
========================================================= */
.fm-review-stars {
    display: inline-flex;
    gap: 3px;
    color: #D98C6B;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.fm-review-stars i {
    transition: transform 0.3s ease;
}

.fm-review-card:hover .fm-review-stars i {
    transform: scale(1.05);
}


/* =========================================================
   REVIEW TEXT
========================================================= */
.fm-review-text {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.65;
    color: #24191A;
    margin: 0 0 1.5rem;
    flex: 1 1 auto;
    position: relative;
    z-index: 1;
}


/* =========================================================
   CLIENT BLOCK — name, location, service
========================================================= */
.fm-review-client {
    border-top: 1px solid rgba(217, 140, 107, 0.15);
    padding-top: 1.1rem;
    position: relative;
    z-index: 1;
}

.fm-review-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #24191A;
    margin: 0 0 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fm-review-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.65rem;
    font-weight: 500;
    color: #D98C6B;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.fm-review-verified i {
    font-size: 0.7rem;
}

.fm-review-service {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #D96A8A;
    margin: 0 0 0.2rem;
}

.fm-review-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 300;
    color: #9A8E8A;
    margin: 0;
}


/* =========================================================
   PAGINATION DOTS + COUNTER (mobile uses counter)
========================================================= */
.fm-reviews-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 2.5rem;
}

.fm-reviews-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(217, 140, 107, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.35s ease;
}

.fm-reviews-dot.active {
    background: linear-gradient(135deg, #D98C6B 0%, #D96A8A 100%);
    width: 24px;
    border-radius: 50px;
}

.fm-reviews-dot:hover:not(.active) {
    background: rgba(217, 140, 107, 0.5);
}

/* Counter — hidden on desktop, shown on mobile */
.fm-reviews-counter {
    display: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: #6B5E5A;
    letter-spacing: 0.5px;
    text-align: center;
    margin: 0 0.5rem;
    min-width: 40px;
}


/* =========================================================
   RESPONSIVE — Tablet (2 cards)
========================================================= */
@media (max-width: 991px) {

    .fm-reviews {
        padding: 4rem 0 4.5rem;
    }

    .fm-reviews-intro {
        margin-bottom: 2.75rem;
    }

    .fm-reviews-frame {
        padding: 2.25rem 1.75rem 2rem;
        border-radius: 16px;
    }

    .fm-review-card {
        flex: 0 0 calc((100% - 1.5rem) / 2); /* 2 cards */
        padding: 1.75rem 1.5rem 1.5rem;
    }

    .fm-reviews-track {
        gap: 1.5rem;
    }
}


/* =========================================================
   RESPONSIVE — Mobile (1 card, counter, swipe)
========================================================= */
@media (max-width: 767px) {

    .fm-reviews {
        padding: 3rem 0 3.5rem;
    }

    .fm-reviews-intro {
        margin-bottom: 2rem;
    }

    .fm-reviews-title {
        font-size: 1.75rem;
    }

    .fm-reviews-subtitle {
        font-size: 0.88rem;
    }

    /* Full-bleed frame on mobile — gives card max width */
    .fm-reviews-frame {
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 1.75rem 0.75rem 1.5rem;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    /* Inner hairline hidden when side borders are gone */
    .fm-reviews-frame::before {
        display: none;
    }

    /* Re-anchor corner ticks to the visible top/bottom edges */
    .fm-reviews-frame-corner {
        width: 11px;
        height: 11px;
    }

    .fm-reviews-frame-corner--tl { top: -5.5px; left: 6px; }
    .fm-reviews-frame-corner--tr { top: -5.5px; right: 6px; }
    .fm-reviews-frame-corner--bl { bottom: -5.5px; left: 6px; }
    .fm-reviews-frame-corner--br { bottom: -5.5px; right: 6px; }

    /* Shrink arrows, still keep them at the sides */
    .fm-reviews-carousel {
        gap: 0.5rem;
    }

    .fm-reviews-arrow {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    .fm-reviews-viewport {
        padding: 0.5rem 0.15rem;
        margin: -0.5rem -0.15rem;
    }

    .fm-review-card {
        flex: 0 0 100%; /* 1 card full width */
        padding: 1.75rem 1.5rem 1.5rem;
    }

    .fm-reviews-track {
        gap: 1rem;
    }

    /* Swap dots for counter on mobile */
    .fm-reviews-dots {
        gap: 0;
    }

    .fm-reviews-dot {
        display: none;
    }

    .fm-reviews-counter {
        display: inline-block;
    }
}


/* =========================================================
   RESPONSIVE — Small phones
========================================================= */
@media (max-width: 420px) {

    .fm-reviews-title {
        font-size: 1.5rem;
    }

    .fm-reviews-frame {
        padding: 1.5rem 0.5rem 1.25rem;
    }

    .fm-review-card {
        padding: 1.5rem 1.25rem 1.35rem;
    }

    .fm-review-text {
        font-size: 0.95rem;
    }

    .fm-reviews-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
}