/* ============================================
   TRUST BAR - COMPLETE FIXED
   Spinny Energy + Apple Smoothness
   ============================================ */

/* ============================================
   SECTION WRAPPER
============================================ */
.trust-bar {
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
    padding: 32px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    display: block;
}

/* Container */
.trust-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ============================================
   TRUST CONTAINER - GRID
============================================ */
.trust-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ============================================
   TRUST ITEM - BASE STYLES
============================================ */
.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
    width: 100%;
    
    /* Initial hidden state */
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

/* ============================================
   VISIBLE STATE (Added by JS)
============================================ */
.trust-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ============================================
   STAGGERED DELAYS
============================================ */
.trust-item:nth-child(1) { transition-delay: 0.05s; }
.trust-item:nth-child(2) { transition-delay: 0.12s; }
.trust-item:nth-child(3) { transition-delay: 0.19s; }
.trust-item:nth-child(4) { transition-delay: 0.26s; }

/* ============================================
   SHIMMER EFFECT
============================================ */
.trust-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 42, 0, 0.03),
        rgba(255, 183, 3, 0.03),
        transparent
    );
    transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.trust-item:hover::before {
    left: 100%;
}

/* ============================================
   HOVER EFFECTS
============================================ */
.trust-item:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: #FF2A00;
    box-shadow: 
        0 12px 40px rgba(255, 42, 0, 0.10),
        0 4px 16px rgba(15, 23, 42, 0.06);
}

.trust-item:active {
    transform: scale(0.96);
    transition-duration: 0.1s;
}

/* ============================================
   BORDER ANIMATION
============================================ */
.trust-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF2A00, #FFB703);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-50%);
    pointer-events: none;
}

.trust-item:hover::after {
    width: 80%;
}

/* ============================================
   TRUST ICON
============================================ */
.trust-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 42, 0, 0.06), rgba(255, 183, 3, 0.06));
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-item:hover .trust-icon {
    background: linear-gradient(135deg, rgba(255, 42, 0, 0.12), rgba(255, 183, 3, 0.12));
    transform: scale(1.05) rotate(-5deg);
}

.trust-icon .icon {
    font-size: 1.8rem;
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-item:hover .trust-icon .icon {
    transform: scale(1.1) rotate(5deg);
}

/* ============================================
   TRUST CONTENT
============================================ */
.trust-content {
    flex: 1;
    min-width: 0;
}

.trust-content h4 {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0F172A;
    margin: 0 0 2px 0;
    transition: color 0.3s ease;
    font-family: 'Outfit', 'Inter', sans-serif;
}

.trust-item:hover .trust-content h4 {
    color: #FF2A00;
}

.trust-content p {
    font-size: 0.8rem;
    color: #64748B;
    margin: 0;
    transition: color 0.3s ease;
}

.trust-item:hover .trust-content p {
    color: #475569;
}

/* ============================================
   RESPONSIVE - TABLET
============================================ */
@media (max-width: 1024px) {
    .trust-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .trust-item {
        padding: 18px 20px;
    }
    
    .trust-icon {
        width: 44px;
        height: 44px;
    }
    
    .trust-icon .icon {
        font-size: 1.6rem;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (CENTERED)
============================================ */
@media (max-width: 768px) {
    .trust-bar {
        padding: 24px 0;
    }
    
    .trust-bar .container {
        padding: 0 12px;
    }
    
    .trust-container {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .trust-item {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 16px 12px;
        border-radius: 14px;
        gap: 8px;
        min-height: 100px;
    }
    
    .trust-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto;
    }
    
    .trust-icon .icon {
        font-size: 1.4rem;
    }
    
    .trust-content {
        text-align: center;
        width: 100%;
    }
    
    .trust-content h4 {
        font-size: 0.8rem;
        text-align: center;
        margin-bottom: 1px;
    }
    
    .trust-content p {
        font-size: 0.65rem;
        text-align: center;
        line-height: 1.3;
    }
    
    /* Mobile touch feedback */
    .trust-item:active {
        transform: scale(0.95);
        border-color: #FF2A00;
        background: #FFF5F5;
    }
    
    /* Disable hover animations on mobile */
    @media (hover: none) {
        .trust-item:hover {
            transform: none;
        }
        
        .trust-item:hover::before {
            left: -100%;
        }
        
        .trust-item:hover::after {
            width: 0;
        }
        
        .trust-item:hover .trust-content h4 {
            color: #0F172A;
        }
        
        .trust-item:hover .trust-icon {
            transform: none;
        }
        
        .trust-item:hover .trust-icon .icon {
            transform: none;
        }
    }
}

/* ============================================
   RESPONSIVE - SMALL PHONES
============================================ */
@media (max-width: 480px) {
    .trust-bar {
        padding: 20px 0;
    }
    
    .trust-bar .container {
        padding: 0 10px;
    }
    
    .trust-container {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .trust-item {
        padding: 14px 10px;
        min-height: 80px;
        border-radius: 12px;
        gap: 6px;
    }
    
    .trust-icon {
        width: 36px;
        height: 36px;
    }
    
    .trust-icon .icon {
        font-size: 1.2rem;
    }
    
    .trust-content h4 {
        font-size: 0.7rem;
    }
    
    .trust-content p {
        font-size: 0.55rem;
    }
}

/* ============================================
   RESPONSIVE - VERY SMALL
============================================ */
@media (max-width: 380px) {
    .trust-container {
        gap: 8px;
    }
    
    .trust-item {
        padding: 12px 8px;
        min-height: 70px;
        border-radius: 10px;
    }
    
    .trust-icon {
        width: 32px;
        height: 32px;
    }
    
    .trust-icon .icon {
        font-size: 1rem;
    }
    
    .trust-content h4 {
        font-size: 0.65rem;
    }
    
    .trust-content p {
        font-size: 0.5rem;
    }
}

/* ============================================
   DARK MODE
============================================ */
@media (prefers-color-scheme: dark) {
    .trust-bar {
        background: #0F172A;
        border-color: #1E293B;
    }
    
    .trust-item {
        background: #1E293B;
        border-color: #334155;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .trust-item:hover {
        background: #1E293B;
        border-color: #FFB703;
        box-shadow: 
            0 12px 40px rgba(255, 183, 3, 0.08),
            0 4px 16px rgba(0, 0, 0, 0.3);
    }
    
    .trust-icon {
        background: linear-gradient(135deg, rgba(255, 183, 3, 0.08), rgba(255, 42, 0, 0.08));
    }
    
    .trust-item:hover .trust-icon {
        background: linear-gradient(135deg, rgba(255, 183, 3, 0.15), rgba(255, 42, 0, 0.15));
    }
    
    .trust-content h4 {
        color: #F8FAFC;
    }
    
    .trust-item:hover .trust-content h4 {
        color: #FFB703;
    }
    
    .trust-content p {
        color: #94A3B8;
    }
    
    .trust-item:hover .trust-content p {
        color: #CBD5E1;
    }
    
    .trust-item::after {
        background: linear-gradient(90deg, #FFB703, #FF2A00);
    }
    
    .trust-item:active {
        background: #1E293B;
        border-color: #FFB703;
    }
}

/* ============================================
   REDUCED MOTION
============================================ */
@media (prefers-reduced-motion: reduce) {
    .trust-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .trust-item::before,
    .trust-item::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================
   PRINT STYLES
============================================ */
@media print {
    .trust-bar {
        background: white !important;
        border: 1px solid #ddd !important;
        padding: 20px 0 !important;
    }
    
    .trust-item {
        background: white !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .trust-item::before,
    .trust-item::after {
        display: none !important;
    }
}