/**
 * Homepage conversion blocks (paths, spotlight, trust)
 */

.b2b-home-paths,
.b2b-home-spotlight,
.b2b-home-trust {
    --home-ink: #0f172a;
    --home-muted: #64748b;
    --home-line: #e2e8f0;
    --home-teal: #0f766e;
    --home-teal-bright: #14b8a6;
    --home-blue: #1d4ed8;
    max-width: 1140px;
    margin: 28px auto;
    padding: 0 16px;
}

.b2b-home-paths-inner,
.b2b-home-spotlight-inner,
.b2b-home-trust-inner {
    background: #fff;
    border: 1px solid var(--home-line);
    border-radius: 20px;
    padding: 36px 28px 40px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.b2b-home-kicker {
    margin: 0 0 8px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--home-teal);
}

.b2b-home-title {
    margin: 0 0 10px;
    text-align: center;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1.2;
    color: var(--home-ink);
    letter-spacing: -0.02em;
}

.b2b-home-lead {
    margin: 0 auto 28px;
    max-width: 640px;
    text-align: center;
    color: var(--home-muted);
    font-size: 1.02rem;
    line-height: 1.55;
}

.b2b-home-paths-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.b2b-home-path-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 220px;
    padding: 22px 18px;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--home-line);
    background: #f8fafc;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.b2b-home-path-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
    text-decoration: none;
    color: inherit;
}

.b2b-home-path-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.b2b-home-path-card h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--home-ink);
}

.b2b-home-path-card p {
    margin: 0;
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--home-muted);
}

.b2b-home-path-cta {
    font-size: 0.88rem;
    font-weight: 700;
}

.b2b-home-path-teal .b2b-home-path-icon { background: #f0fdfa; color: var(--home-teal); }
.b2b-home-path-teal .b2b-home-path-cta { color: var(--home-teal); }
.b2b-home-path-teal:hover { border-color: #99f6e4; }

.b2b-home-path-blue .b2b-home-path-icon { background: #eff6ff; color: var(--home-blue); }
.b2b-home-path-blue .b2b-home-path-cta { color: var(--home-blue); }
.b2b-home-path-blue:hover { border-color: #bfdbfe; }

.b2b-home-path-navy .b2b-home-path-icon { background: #eef2ff; color: #3730a3; }
.b2b-home-path-navy .b2b-home-path-cta { color: #3730a3; }
.b2b-home-path-navy:hover { border-color: #c7d2fe; }

.b2b-home-path-slate .b2b-home-path-icon { background: #f1f5f9; color: #334155; }
.b2b-home-path-slate .b2b-home-path-cta { color: #334155; }
.b2b-home-path-slate:hover { border-color: #cbd5e1; }

/* ——— Category rows (classified / marketplace style) ——— */
.b2b-home-category-rows {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.b2b-home-cat-row {
    min-width: 0;
}

.b2b-home-cat-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 0 2px;
}

.b2b-home-cat-head h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 750;
    color: var(--home-ink);
    letter-spacing: -0.02em;
}

.b2b-home-cat-more {
    flex-shrink: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--home-blue);
    text-decoration: none;
}

.b2b-home-cat-more:hover {
    text-decoration: underline;
}

.b2b-home-cat-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.b2b-home-cat-track::-webkit-scrollbar {
    height: 6px;
}

.b2b-home-cat-track::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.b2b-home-cat-card {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    min-width: 220px;
    max-width: 280px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--home-line);
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.b2b-home-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    border-color: #99f6e4;
    color: inherit;
}

.b2b-home-cat-media {
    position: relative;
    aspect-ratio: 16 / 9;
    max-height: 118px;
    background-size: cover;
    background-position: center;
    background-color: #0f766e;
}

.b2b-home-cat-badge {
    position: absolute;
    left: 8px;
    top: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.b2b-home-cat-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 11px 12px;
}

.b2b-home-cat-price {
    order: 3;
    margin-top: 2px;
    font-size: 0.72rem;
    font-weight: 650;
    color: #64748b;
    letter-spacing: 0;
}

.b2b-home-cat-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--home-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.b2b-home-cat-sub {
    margin: 0;
    font-size: 0.78rem;
    color: var(--home-muted);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.b2b-home-cat-meta {
    margin-top: 4px;
    font-size: 0.72rem;
    color: #94a3b8;
}

.b2b-home-spot-empty {
    margin: 0;
    padding: 18px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px dashed var(--home-line);
    font-size: 0.9rem;
    color: var(--home-muted);
}

.b2b-home-spotlight-cta {
    margin-top: 28px;
    text-align: center;
}

.b2b-home-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.b2b-home-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 118, 110, 0.35);
    color: #fff !important;
}

.b2b-home-note {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: var(--home-muted);
}

.b2b-home-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.b2b-home-trust-card {
    padding: 18px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid var(--home-line);
}

.b2b-home-trust-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--home-ink);
}

.b2b-home-trust-card p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--home-muted);
}

@media (min-width: 981px) {
    .b2b-home-cat-track {
        grid-auto-flow: dense;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        overflow: visible;
    }

    .b2b-home-cat-card {
        max-width: none;
        min-width: 0;
    }
}

@media (max-width: 980px) {
    .b2b-home-paths-grid,
    .b2b-home-trust-grid {
        grid-template-columns: 1fr 1fr;
    }

    .b2b-home-cat-track {
        grid-auto-columns: minmax(210px, 70%);
    }
}

@media (max-width: 640px) {
    .b2b-home-paths-inner,
    .b2b-home-spotlight-inner,
    .b2b-home-trust-inner {
        padding: 26px 16px 30px;
    }

    .b2b-home-paths-grid,
    .b2b-home-trust-grid {
        grid-template-columns: 1fr;
    }

    .b2b-home-path-card {
        min-height: 0;
    }

    .b2b-home-cat-head h3 {
        font-size: 1.05rem;
    }

    .b2b-home-cat-track {
        grid-auto-columns: minmax(200px, 78%);
    }
}
