/* ════════════════════════════════════════════
   Data Bar V2 — light companion to Hero V7
   Full-width white stat band with gradient
   numbers (solid-color fallback) and optional
   light dividers.
   Depends on scw-base (tokens).
   ════════════════════════════════════════════ */

.scw-db2 {
    background: var(--scw-db2-bg, #FFFFFF);
    padding: 48px 0;
    font-family: var(--scw-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.scw-db2 *,
.scw-db2 *::before,
.scw-db2 *::after {
    box-sizing: border-box;
}

.scw-db2__inner {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(var(--scw-db2-cols, 4), 1fr);
}

/* ── Individual item ── */
.scw-db2__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    text-align: center;
}

/* Divider lines between items */
.scw-db2--dividers .scw-db2__item + .scw-db2__item {
    border-left: 1px solid var(--scw-db2-div, #EAEAF0);
}

/* ── Number — accent gradient, solid fallback ── */
.scw-db2__number {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    /* Solid color is the built-in fallback for non-text-fill browsers */
    color: var(--scw-db2-a2, #EC4899);
    background: linear-gradient(98deg, var(--scw-db2-a1, #A855F7) 0%, var(--scw-db2-a2, #EC4899) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.scw-db2__label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--scw-db2-lbl, #52525B);
}

/* ════════════════════════════════════════════
   Responsive — Tablet (≤ 768px)
   ════════════════════════════════════════════ */
@media (max-width: 768px) {
    .scw-db2 {
        padding: 36px 0;
    }

    .scw-db2__inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 0;
    }

    /* Reset left borders, re-apply only on even items in 2-col */
    .scw-db2--dividers .scw-db2__item + .scw-db2__item {
        border-left: none;
    }

    .scw-db2--dividers .scw-db2__item:nth-child(even) {
        border-left: 1px solid var(--scw-db2-div, #EAEAF0);
    }
}

/* ════════════════════════════════════════════
   Responsive — Small mobile (≤ 480px)
   ════════════════════════════════════════════ */
@media (max-width: 480px) {
    .scw-db2 {
        padding: 28px 0;
    }

    .scw-db2__inner {
        gap: 20px 0;
    }

    .scw-db2__number {
        font-size: 28px;
    }

    .scw-db2__label {
        font-size: 11px;
    }
}

/* ── Elementor Editor Overrides ── */
.elementor-editor-active .scw-db2 {
    min-height: 80px;
}
