/* ==========================================================================
   Client feedback section (WhatsApp screenshots)
   resources/views/website/newdetails/reviews.blade.php
   Used on home, service details, blog details and offers pages.
   Screenshots are always shown whole (natural aspect ratio, never cropped).
   ========================================================================== */

.fb {
    --fb-primary: #421f61;
    --fb-violet: #6b3a93;
    --fb-accent: #dea8e4;
    --fb-soft: #f7f2fa;
    --fb-muted: rgba(66, 31, 97, 0.75);

    position: relative;
    padding-block: clamp(64px, 8vw, 112px);
    background:
        radial-gradient(circle at 10% 0%, rgba(222, 168, 228, 0.35), transparent 40%),
        radial-gradient(circle at 95% 100%, rgba(107, 58, 147, 0.12), transparent 45%),
        #fff;
    overflow: hidden;
    scroll-margin-top: 150px;
}

/* ---------- head ---------- */

.fb__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    margin-bottom: clamp(32px, 4vw, 52px);
}

.fb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--fb-soft);
    color: var(--fb-violet);
    font-size: 13px;
    font-weight: 700;
}

.fb-eyebrow i {
    color: #25d366;
    font-size: 16px;
}

.fb-title {
    color: var(--fb-primary);
    font-weight: 800;
    font-size: clamp(26px, 3.4vw, 42px);
    line-height: 1.35;
    margin: 0;
    max-width: 820px;
}

.fb-lead {
    color: var(--fb-muted);
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.9;
    margin: 0;
    max-width: 760px;
}

/* ---------- screenshots ---------- */

/* phones: one full-width screenshot at a time, swipe for the next */
.fb-shots {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: -16px;
    padding: 6px 16px 16px;
    scrollbar-width: none;
    align-items: flex-start;
}

.fb-shots::-webkit-scrollbar {
    display: none;
}

.fb-shot {
    position: relative;
    display: block;
    flex: 0 0 88%;
    scroll-snap-align: center;
    border-radius: 20px;
    overflow: hidden;
    background: var(--fb-soft);
    box-shadow: 0 16px 36px rgba(66, 31, 97, 0.16);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fb-shot img {
    display: block;
    width: 100%;
    height: auto; /* natural shape: nothing is cropped */
}

/* phones: every slide gets the same frame height and the screenshot is fitted inside it whole,
   so tall and short screenshots sit in an even row with no empty gaps */
@media (max-width: 767px) {
    .fb-shots {
        align-items: stretch;
    }

    .fb-shot {
        height: min(125vw, 560px);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .fb-shot img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

.fb-shot:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(66, 31, 97, 0.24);
}

.fb-shot__zoom {
    position: absolute;
    bottom: 12px;
    inset-inline-end: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.95);
    color: var(--fb-primary);
    font-size: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.fb-shot:hover .fb-shot__zoom {
    transform: scale(1.1);
}

.fb-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 8px;
    color: var(--fb-primary);
    font-weight: 800;
    font-size: 15px;
}

.fb-counter__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(66, 31, 97, 0.2);
    background: #fff;
    color: var(--fb-primary);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.fb-counter__btn:hover {
    background: var(--fb-primary);
    color: #fff;
}

html[dir="ltr"] .fb-counter__btn i {
    transform: scaleX(-1);
}

/* phones: the 3 column wrappers dissolve so every screenshot is a direct slide of the row */
.fb-shots__col {
    display: contents;
}

/* tablets and up: every screenshot visible at once, 3 columns filled by rank
   (1st, 2nd, 3rd across the top row), each screenshot at its natural height */
@media (min-width: 768px) {
    .fb-shots {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
        align-items: start;
        overflow: visible;
        margin-inline: 0;
        padding: 0;
    }

    .fb-shots__col {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .fb-counter {
        display: none;
    }
}

@media (min-width: 1024px) {
    .fb-shots,
    .fb-shots__col {
        gap: 26px;
    }
}

/* ---------- CTA ---------- */

.fb__cta {
    display: flex;
    justify-content: center;
    margin-top: clamp(24px, 3vw, 36px);
}

.fb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 220px;
    padding: 15px 28px;
    border-radius: 14px;
    background: var(--fb-primary);
    color: #fff !important;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(66, 31, 97, 0.3);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.fb-btn i {
    font-size: 20px;
}

.fb-btn:hover {
    transform: translateY(-2px);
    background: #2a123f;
}

.fb a:focus-visible,
.fb button:focus-visible {
    outline: 3px solid var(--fb-accent);
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .fb-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fb-shot, .fb-shot__zoom, .fb-btn {
        transition: none;
    }
}
