/* ========================================
   FABSOFT TRUST COMPONENTS
   fabsoft-trust.css
   
   Trust bars, badges, logos, and social proof
   Requires: fabsoft-variables.css
   ======================================== */

/* ----------------------------------------
   CUSTOMER SUCCESS SECTION - Enhanced
   ---------------------------------------- */
.customer-success-section,
[class*="customer-success"],
section:has(> h2:contains("Customer Success")),
.home-wrapper section:last-of-type:has(img[alt*="Logo"]) {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

    /* Add subtle pattern overlay */
    .customer-success-section::before,
    section:has(h2:contains("Customer Success"))::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(circle at 25px 25px, rgba(0, 113, 227, 0.03) 2px, transparent 0), radial-gradient(circle at 75px 75px, rgba(0, 113, 227, 0.03) 2px, transparent 0);
        background-size: 100px 100px;
        pointer-events: none;
    }

.customer-success-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.customer-success-header {
    text-align: center;
    margin-bottom: 48px;
}

.customer-success-title {
    font-size: 40px;
    font-weight: 700;
    color: #1a365d;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.customer-success-subtitle {
    font-size: 18px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ----------------------------------------
   ENHANCED LOGO GRID
   ---------------------------------------- */
.customer-logos-grid,
.trust-logos,
section:has(h2:contains("Customer Success")) > div:has(img[alt*="Logo"]) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    margin: 0 auto 48px;
    max-width: 1000px;
}

.customer-logo,
.trust-logo,
section:has(h2:contains("Customer Success")) img[alt*="Logo"] {
    height: 48px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

    .customer-logo:hover,
    .trust-logo:hover,
    section:has(h2:contains("Customer Success")) img[alt*="Logo"]:hover {
        filter: grayscale(0%);
        opacity: 1;
        transform: scale(1.1);
    }

/* ----------------------------------------
   TRUST BAR SECTION - Enhanced
   ---------------------------------------- */
.trust-bar {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    padding: 56px 24px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

    .trust-bar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 120px;
        height: 4px;
        background: linear-gradient(90deg, #0071E3, #00A8E3);
        border-radius: 2px;
    }

.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* ----------------------------------------
   TRUST HEADLINES - Enhanced
   ---------------------------------------- */
.trust-headline,
.trust-logos-headline,
.customer-logos-headline {
    font-size: 13px;
    font-weight: 700;
    color: #0071E3;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 28px;
    position: relative;
    display: inline-block;
}

    .trust-headline::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 2px;
        background: linear-gradient(90deg, #0071E3, #00A8E3);
    }

/* ----------------------------------------
   TRUST BADGES GRID - Enhanced
   ---------------------------------------- */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 24px;
    background: white;
    border-radius: 16px;
    min-width: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

    .trust-badge:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0, 113, 227, 0.12);
        border-color: #0071E3;
    }

.trust-badge-icon {
    width: 40px;
    height: 40px;
}

.trust-badge-text {
    font-size: 12px;
    font-weight: 700;
    color: #1a365d;
    text-align: center;
    line-height: 1.4;
}

/* ----------------------------------------
   G2 RATING BADGE - Enhanced
   ---------------------------------------- */
.trust-badge-rating {
    background: linear-gradient(135deg, #ff5722 0%, #ff9800 100%);
    border: none;
}

    .trust-badge-rating:hover {
        border-color: transparent;
    }

.g2-badge {
    text-align: center;
    color: white;
}

.g2-stars {
    font-size: 14px;
    letter-spacing: 2px;
}

.g2-rating {
    font-size: 20px;
    font-weight: 800;
}

.g2-label {
    font-size: 11px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ----------------------------------------
   TRUST LOGOS SECTION - Enhanced
   ---------------------------------------- */
.trust-logos-section {
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 48px;
    padding: 16px 0;
}

/* ----------------------------------------
   TRUST SECTION (Products Page Style)
   ---------------------------------------- */
.trust-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-block {
    text-align: center;
    padding: 32px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

    .trust-block:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    }

.trust-block-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a365d;
    margin: 0 0 16px 0;
}

.trust-block-content {
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
}

/* ----------------------------------------
   TRUST METRICS
   ---------------------------------------- */
.trust-metrics {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trust-metric {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    color: #1a365d;
}

    .trust-metric::before {
        content: '✓';
        color: #10b981;
        font-weight: 700;
        font-size: 16px;
    }

/* ----------------------------------------
   TESTIMONIALS SECTION
   ---------------------------------------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

    .testimonial-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    }

.testimonial-result {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.testimonial-quote {
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
    margin: 0 0 24px;
    font-style: italic;
}

.testimonial-attribution {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.testimonial-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
}

.testimonial-name {
    font-weight: 700;
    color: #1a365d;
    font-size: 14px;
}

.testimonial-company {
    color: #0071E3;
    font-size: 13px;
    font-weight: 600;
}

.testimonial-industry {
    color: #94a3b8;
    font-size: 12px;
}

.testimonial-link {
    color: #0071E3;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

    .testimonial-link:hover {
        text-decoration: underline;
    }

/* ----------------------------------------
   CUSTOMER SUCCESS CTA
   ---------------------------------------- */
.customer-success-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ----------------------------------------
   RESPONSIVE - TABLET (768px+)
   ---------------------------------------- */
@media (min-width: 768px) {
    .trust-bar {
        padding: 64px 40px;
    }

    .trust-badges {
        gap: 20px;
    }

    .trust-badge {
        min-width: 120px;
        padding: 24px 28px;
    }

    .trust-badge-icon {
        width: 48px;
        height: 48px;
    }

    .trust-logos {
        gap: 56px;
    }

    .trust-logo,
    .customer-logo {
        height: 44px;
        max-width: 150px;
    }

    .trust-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .customer-logos-grid,
    .trust-logos,
    section:has(h2:contains("Customer Success")) > div:has(img[alt*="Logo"]) {
        gap: 48px;
        padding: 48px 56px;
    }
}

/* ----------------------------------------
   RESPONSIVE - DESKTOP (1024px+)
   ---------------------------------------- */
@media (min-width: 1024px) {
    .customer-success-section,
    [class*="customer-success"],
    section:has(h2:contains("Customer Success")) {
        padding: 100px 40px;
    }

    .customer-success-title {
        font-size: 48px;
    }

    .trust-bar {
        padding: 72px 60px;
    }

    .trust-badge {
        padding: 28px 32px;
    }

    .trust-badge-icon {
        width: 52px;
        height: 52px;
    }

    .trust-badge-text {
        font-size: 13px;
    }

    .trust-logos {
        gap: 64px;
    }

    .trust-logo,
    .customer-logo {
        height: 52px;
        max-width: 170px;
    }

    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ----------------------------------------
   RESPONSIVE - LARGE DESKTOP (1280px+)
   ---------------------------------------- */
@media (min-width: 1280px) {
    .trust-logos {
        gap: 72px;
    }

    .trust-logo,
    .customer-logo {
        height: 56px;
        max-width: 180px;
    }
}

/* ----------------------------------------
   RESPONSIVE - MOBILE (734px)
   ---------------------------------------- */
@media (max-width: 734px) {
    .customer-success-section,
    [class*="customer-success"],
    section:has(h2:contains("Customer Success")) {
        padding: 60px 16px;
    }

    .customer-success-title {
        font-size: 32px;
    }

    .trust-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .customer-logos-grid,
    .trust-logos,
    section:has(h2:contains("Customer Success")) > div:has(img[alt*="Logo"]) {
        gap: 32px;
        padding: 32px 24px;
    }

    .trust-logo,
    .customer-logo,
    section:has(h2:contains("Customer Success")) img[alt*="Logo"] {
        height: 40px;
        max-width: 100px;
    }
}
