/* ════════════════════════════════════════════════════════════════════
   KABEX — usp-bar.css
   Sekcja: USP BAR (4 trust boxy pod hero)

   Layout: poziomy grid 4-kol (3-6 elastycznie), ciemne tło, żółte ikony.
   ════════════════════════════════════════════════════════════════════ */

.usp-bar {
    padding-block: var(--sp-6);
    background: transparent;
}

.usp-bar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--sp-3);
}

.usp-bar__item {
    display: flex;
}

.usp-bar__box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-5);
    background: var(--color-primary);           /* #1E5BA8 KABEX brand blue */
    color: #fff;
    border-radius: var(--r-md);
    text-decoration: none;
    transition: transform var(--t-base), box-shadow var(--t-base), background var(--t-fast);
    position: relative;
    overflow: hidden;
    min-height: 96px;
}

/* Subtle yellow accent line on left edge */
.usp-bar__box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-accent);
    opacity: 0;
    transition: opacity var(--t-fast);
}

a.usp-bar__box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--color-primary-dark);      /* #144378 — ciemniejszy KABEX blue */
}
a.usp-bar__box:hover::before {
    opacity: 1;
}

/* ── Ikona (po lewej, żółta) ─────────────────────────────────────── */
.usp-bar__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);                 /* #F5D32E yellow */
    background: rgba(245, 211, 46, 0.08);
    border-radius: var(--r-md);
    transition: background var(--t-fast), color var(--t-fast);
}
a.usp-bar__box:hover .usp-bar__icon {
    background: rgba(245, 211, 46, 0.15);
}
.usp-bar__icon svg {
    width: 28px;
    height: 28px;
    color: inherit;
}

/* ── Content (label + opis stack) ────────────────────────────────── */
.usp-bar__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.usp-bar__label {
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    font-weight: 800;
    color: var(--color-accent);                 /* yellow */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.usp-bar__description {
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.4;
}

/* ╔══════════════════════════════════════════════════════════════════╗
   ║ RESPONSIVE                                                       ║
   ╚══════════════════════════════════════════════════════════════════╝ */
@media (max-width: 767px) {
    /* Mobile — 2 boxy per row */
    .usp-bar__list {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-2);
    }
    .usp-bar__box {
        padding: var(--sp-3);
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: var(--sp-2);
        min-height: 110px;
    }
    .usp-bar__icon {
        width: 36px;
        height: 36px;
    }
    .usp-bar__icon svg {
        width: 22px;
        height: 22px;
    }
    .usp-bar__description {
        font-size: var(--fs-xs);
    }
}

@media (max-width: 479px) {
    /* Bardzo wąskie ekrany — 1 box per row */
    .usp-bar__list {
        grid-template-columns: 1fr;
    }
    .usp-bar__box {
        flex-direction: row;
        align-items: center;
        min-height: 80px;
    }
}
