﻿/* =====================================================================
   Testimonials page -- Nephew's Pizza theme
   Uses the site's design tokens (--npb-*) with fallbacks, so it matches
   NPB-StyleSheet.css (forest green, gold, crust red, cream, Fraunces /
   Space Mono). Class names are unchanged from the old Testimonial.cshtml.
   ===================================================================== */

.TestimonialSection {
    background: var(--npb-paper, #fffbf2);
    padding: 56px 0 80px;
}

.TestimonialContainer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Tabs ---------- */
.TestimonialTabs {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}

.TestimonialTabButton {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 14px;
    background: var(--npb-cream, #f6efdc);
    color: var(--npb-ink, #17140f);
    border: 1px solid var(--npb-line, rgba(23,20,15,.12));
    border-bottom: 3px solid transparent;
    border-radius: 2px;
    font-family: 'Space Mono', monospace;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1.3;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

    .TestimonialTabButton img {
        height: 34px;
        width: auto;
        max-width: 56px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .TestimonialTabButton:hover {
        background: #fff;
        color: var(--npb-crust, #c1401f);
        transform: translateY(-2px);
    }

    /* active tab stays light so the PNG logos remain visible */
    .TestimonialTabButton.active {
        background: #fff;
        color: var(--npb-forest, #24331c);
        border-color: var(--npb-line, rgba(23,20,15,.12));
        border-bottom-color: var(--npb-gold, #e7a73b);
        box-shadow: 0 10px 20px -14px rgba(23,20,15,.45);
        transform: none;
    }

/* ---------- Panels ---------- */
.TestimonialPanels {
    background: #fff;
    border: 1px solid var(--npb-line, rgba(23,20,15,.12));
    border-radius: 2px;
    box-shadow: var(--npb-shadow, 0 18px 40px -18px rgba(23,20,15,.35));
    padding: 22px;
}

.TestimonialTabPanel {
    display: none;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

    .TestimonialTabPanel.active {
        display: block;
    }

/* ---------- Feedback banner ---------- */
.TestimonialFeedbackButtonContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--npb-forest, #24331c);
    border-left: 4px solid var(--npb-gold, #e7a73b);
    border-radius: 2px;
    padding: 22px 26px;
}

.TestimonialFeedbackText {
    margin: 0;
    color: var(--npb-paper, #fffbf2);
    font-size: 15px;
    line-height: 1.6;
    max-width: 70ch;
}

.TestimonialFeedbackButton {
    flex-shrink: 0;
    display: inline-block;
    background: var(--npb-gold, #e7a73b);
    color: var(--npb-ink, #17140f) !important;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-decoration: none;
    padding: 13px 26px;
    border: 1px solid var(--npb-gold, #e7a73b);
    border-radius: 2px;
    transition: transform .25s ease, background .25s ease;
}

    .TestimonialFeedbackButton:hover {
        background: var(--npb-gold-light, #f3c56b);
        transform: translateY(-2px);
    }

/* ---------- Testimonial list ---------- */
.TestimonialList {
    padding: 8px 6px 0;
}

.TestimonialContent {
    padding: 24px 8px;
    border-bottom: 1px dashed rgba(23,20,15,.25);
}

    .TestimonialContent:last-child {
        border-bottom: none;
    }

.TestimonialMessage {
    position: relative;
    padding-left: 34px;
    text-align: left;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: clamp(16px, 2.4vw, 19px);
    line-height: 1.55;
    color: var(--npb-ink, #17140f);
}

    .TestimonialMessage::before {
        content: "\201C";
        position: absolute;
        left: 0;
        top: -6px;
        font-family: 'Fraunces', serif;
        font-size: 44px;
        line-height: 1;
        color: var(--npb-gold, #e7a73b);
    }

.TestimonialUser {
    margin-top: 12px;
    text-align: right;
    font-family: 'Space Mono', monospace;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--npb-crust, #c1401f);
}

    .TestimonialUser::before {
        content: "\2014\00a0";
    }

.TestimonialEmpty {
    text-align: center;
    color: #5b5346;
    font-size: 15px;
}

/* ---------- Embeds (Facebook / Twitter, Public Reviews, Disqus) ---------- */
.TestimonialEmbedWrapper {
    width: 100%;
    max-width: 100%;
    min-height: 200px;
    padding: 12px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    box-sizing: border-box;
}

    .TestimonialEmbedWrapper > * {
        max-width: 100%;
    }

    .TestimonialEmbedWrapper iframe,
    .TestimonialEmbedWrapper .fb-page,
    .TestimonialEmbedWrapper .fb_iframe_widget,
    .TestimonialEmbedWrapper .fb_iframe_widget span {
        max-width: 100% !important;
        width: 100% !important;
    }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .TestimonialTabs {
        flex-wrap: wrap;
    }

    .TestimonialTabButton {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 640px) {
    .TestimonialSection {
        padding: 36px 0 56px;
    }

    .TestimonialContainer {
        padding: 0 14px;
    }

    .TestimonialTabButton {
        flex: 1 1 100%;
        justify-content: flex-start;
        padding: 14px 16px;
    }

    .TestimonialPanels {
        padding: 14px;
    }

    .TestimonialFeedbackButtonContainer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 20px 18px;
    }

    .TestimonialFeedbackButton {
        align-self: center;
    }

    .TestimonialMessage {
        padding-left: 28px;
    }
}
