/**
 * Drive - Testimonials Section Component Styles
 *
 * 4-Column Masonry of review cards on clean continuous white background:
 * - Top: Rating pill (5 orange stars), bold title, and subtitle
 * - 4 columns of cards with dark avatar circles, star ratings, and review copy
 * - Featured dark photo testimonial slot card
 * - Floating "VIEW MORE +" dark pill button with soft gradient fade overlay
 *
 * @package Drive
 */

/* ==========================================================================
   1. Section Wrapper & Header
   ========================================================================== */
.testimonials-section {
    background-color: #ffffff !important;
    border: none !important;
    border-bottom: none !important;
    padding: 2rem 0 6rem;
    position: relative;
    color: #0f172a;
}

.testimonials-container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.testimonials-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem;
}

/* Rating Pill */
.testimonials-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 0.45rem 1.25rem;
    margin-bottom: 1.25rem;
}

.stars-row {
    color: #f26419;
    font-size: 0.95rem;
    letter-spacing: 2px;
}

.rating-text {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
}

/* Main Heading */
.testimonials-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e2238;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin: 0 0 0.85rem;
}

/* Subtitle */
.testimonials-subtitle {
    font-size: 1.0625rem;
    color: #64748b;
    margin: 0;
    line-height: 1.55;
}

/* ==========================================================================
   2. Masonry Grid Layout
   ========================================================================== */
.testimonials-grid-wrapper {
    position: relative;
}

.testimonials-masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-height: 540px;
    overflow: hidden;
    transition: max-height 500ms ease;
}

.testimonials-grid-wrapper.is-expanded .testimonials-masonry-grid {
    max-height: 2500px;
}

.testimonials-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ==========================================================================
   3. Review Cards
   ========================================================================== */
.review-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.35rem 1.4rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

/* Review Header */
.review-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.reviewer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #24263a;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.04em;
}

.reviewer-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reviewer-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.review-stars {
    color: #f26419;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

/* Review Body */
.review-body {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.55;
    margin: 0;
    font-weight: 400;
}

/* ==========================================================================
   4. Featured Photo Testimonial Slot Card
   ========================================================================== */
.photo-testimonial-card {
    background: #282a3d;
    border-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    min-height: 220px;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.photo-testimonial-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
}

.photo-slot-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
}

.photo-slot-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 212, 195, 0.1);
    border: 1px solid rgba(0, 212, 195, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    color: #00D4C3;
}

.photo-slot-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.photo-slot-subtitle {
    font-size: 0.8125rem;
    color: #94a3b8;
}

/* ==========================================================================
   5. Bottom Fade Overlay & View More Button
   ========================================================================== */
.testimonials-bottom-action {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding-top: 7rem;
    padding-bottom: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 50%, #ffffff 85%);
    pointer-events: none;
    transition: all 300ms ease;
}

.testimonials-grid-wrapper.is-expanded .testimonials-bottom-action {
    position: static;
    background: none;
    padding-top: 2.5rem;
    padding-bottom: 0;
    pointer-events: auto;
}

.btn-testimonials-view-more {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background-color: #2B2D42; /* Charcoal */
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    padding: 0.8rem 1.75rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    box-shadow: none !important; /* NO GLOW */
    transition: background-color 180ms ease, transform 180ms ease;
}

.btn-testimonials-view-more:hover,
.btn-testimonials-view-more:focus-visible {
    background-color: #383A52; /* Charcoal2 hover */
    transform: translateY(-2px);
    box-shadow: none !important;
    outline: none;
}

.btn-testimonials-view-more .plus-icon {
    font-size: 1.15rem;
    line-height: 1;
    margin-top: -1px;
    transition: transform 200ms ease;
}

.testimonials-grid-wrapper.is-expanded .btn-testimonials-view-more .plus-icon {
    transform: rotate(45deg);
}

/* ==========================================================================
   6. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
    .testimonials-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .testimonials-title {
        font-size: 1.85rem;
    }

    .testimonials-subtitle {
        font-size: 0.95rem;
    }

    .testimonials-masonry-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .review-card {
        padding: 1.15rem 1.25rem;
    }
}

@media (max-width: 360px) {
    .testimonials-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}
