/* AB Detailing Trust Points Widget Styles - Premium Engineering Theme */

.ab-trust-section {
    padding: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-bottom: 3px solid #2563EB;
}

.ab-trust-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 0;
}

.ab-trust-item {
    display: flex;
    align-items: center;
    flex: 1 1 250px;
    gap: 16px;
    padding: 28px 30px;
    position: relative;
    transition: background-color 0.4s ease;
}

/* Vertical dividers between items */
.ab-trust-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background-color: rgba(255,255,255,0.1);
}

.ab-trust-item:hover {
    background-color: rgba(96, 165, 250, 0.06);
}

.ab-trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.25);
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(.22,.61,.36,1),
                background-color 0.35s ease,
                box-shadow 0.35s ease,
                border-color 0.35s ease;
}

.ab-trust-icon i,
.ab-trust-icon svg {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #60a5fa;
    fill: #60a5fa;
}

.ab-trust-item:hover .ab-trust-icon {
    background-color: rgba(37, 99, 235, 0.25);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
    transform: translateY(-3px) scale(1.06);
}

.ab-trust-icon i,
.ab-trust-icon svg {
    transition: transform 0.35s cubic-bezier(.22,.61,.36,1);
}

.ab-trust-item:hover .ab-trust-icon i,
.ab-trust-item:hover .ab-trust-icon svg {
    transform: scale(1.08);
}

.ab-trust-content {
    display: flex;
    flex-direction: column;
}

.ab-trust-title {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 3px 0;
    letter-spacing: -0.3px;
}

.ab-trust-num {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

.ab-trust-content {
    transition: transform 0.35s cubic-bezier(.22,.61,.36,1);
}

.ab-trust-item:hover .ab-trust-content {
    transform: translateX(2px);
}

.ab-trust-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .ab-trust-container {
        justify-content: center;
    }
    .ab-trust-item:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .ab-trust-container {
        flex-direction: column;
    }
    .ab-trust-item {
        flex: 1 1 100%;
        padding: 20px 25px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .ab-trust-item:last-child {
        border-bottom: none;
    }
}

/* ==========================================================
   Smooth entrance animation (enabled per widget)
   ========================================================== */

.ab-trust-anim {
    position: relative;
    border-bottom: 0;
    padding-bottom: 3px;
}

/* Animated accent line (replaces the static bottom border) */
.ab-trust-anim::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563EB, #60a5fa, #2563EB);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left center;
}

.ab-trust-anim.is-visible::after {
    transform: scaleX(1);
    transition: transform 1s cubic-bezier(.22,.61,.36,1) 0.2s;
    animation: ab-trust-shine 7s ease-in-out 1.2s infinite alternate;
}

/* Hidden until the section scrolls into view */
.ab-trust-anim:not(.is-visible) .ab-trust-item {
    opacity: 0;
}

.ab-trust-anim.is-visible .ab-trust-item {
    animation: var(--ab-anim, ab-trust-fade-up) var(--ab-dur, 700ms) cubic-bezier(.22,.61,.36,1) backwards;
    animation-delay: calc(var(--ab-i, 0) * var(--ab-stagger, 120ms));
}

.ab-trust-anim--fade-up { --ab-anim: ab-trust-fade-up; }
.ab-trust-anim--fade    { --ab-anim: ab-trust-fade; }
.ab-trust-anim--zoom    { --ab-anim: ab-trust-zoom; }
.ab-trust-anim--slide   { --ab-anim: ab-trust-slide; }

/* Icon pops in just after its card */
.ab-trust-anim.is-visible .ab-trust-icon {
    animation: ab-trust-pop calc(var(--ab-dur, 700ms) * 0.9) cubic-bezier(.34,1.56,.64,1) backwards;
    animation-delay: calc(var(--ab-i, 0) * var(--ab-stagger, 120ms) + 160ms);
}

/* Dividers grow in */
.ab-trust-anim.is-visible .ab-trust-item:not(:last-child)::after {
    animation: ab-trust-grow 0.8s ease backwards;
    animation-delay: calc(var(--ab-i, 0) * var(--ab-stagger, 120ms) + 300ms);
}

@keyframes ab-trust-fade-up {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ab-trust-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes ab-trust-zoom {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes ab-trust-slide {
    from { opacity: 0; transform: translateX(-26px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes ab-trust-pop {
    from { opacity: 0; transform: scale(0.5) rotate(-12deg); }
    to   { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes ab-trust-grow {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}

@keyframes ab-trust-shine {
    from { background-position: 0% 0; }
    to   { background-position: 100% 0; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    .ab-trust-anim:not(.is-visible) .ab-trust-item {
        opacity: 1;
    }
    .ab-trust-anim.is-visible .ab-trust-item,
    .ab-trust-anim.is-visible .ab-trust-icon,
    .ab-trust-anim.is-visible .ab-trust-item:not(:last-child)::after,
    .ab-trust-anim.is-visible::after {
        animation: none;
    }
    .ab-trust-anim::after {
        transform: scaleX(1);
    }
    .ab-trust-item,
    .ab-trust-icon,
    .ab-trust-icon i,
    .ab-trust-icon svg,
    .ab-trust-content {
        transition: none;
    }
}
