/* =========================================================================
   Services directory (pages/services.php). Builds on home-page.css (.bh root,
   .bh-card, .bh-rail, .bh-section, .bh-sell); only page-specific parts live here.
   ========================================================================= */
.bsv {
    --bsv-violet: #6d28d9;
    --bsv-violet-soft: #ede9fe;
}

/* ---------- Hero ---------- */
.bsv-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 48px 0 52px;
    background:
        radial-gradient(circle at 88% 12%, rgba(167, 139, 250, 0.38), transparent 42%),
        radial-gradient(circle at 8% 90%, rgba(249, 115, 22, 0.22), transparent 40%),
        linear-gradient(150deg, #021A54 0%, #1e1b6b 58%, #4c1d95 100%);
    color: #fff;
}

.bsv-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 75%);
    mask-image: linear-gradient(90deg, #000 0%, transparent 75%);
}

.bsv-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.bsv-hero h1 {
    margin: 0 0 12px;
    font-family: 'Plus Jakarta Sans', 'Poppins', system-ui, sans-serif;
    font-size: clamp(1.9rem, 4.4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #fff;
    text-wrap: balance;
}

.bsv-hero__text > p {
    max-width: 560px;
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.6;
    color: #cbd5e1;
}

/* Search: keyword + category + button in one white bar */
.bsv-search {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 640px;
    padding: 6px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08), 0 24px 48px -20px rgba(0, 0, 0, 0.55);
}

.bsv-search__field {
    position: relative;
    flex: 1;
    min-width: 0;
    margin: 0;
}

.bsv-search__field i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: var(--bh-muted);
    pointer-events: none;
}

.bsv .bsv-search input,
.bsv .bsv-search select {
    width: 100%;
    height: 48px;
    margin: 0;
    border: none;
    border-radius: 12px !important;
    background: transparent;
    color: var(--bh-ink);
    font-family: inherit;
    font-size: 16px;
    outline: none;
    box-shadow: none;
}

.bsv .bsv-search input {
    padding: 0 10px 0 40px;
    -webkit-appearance: none;
    appearance: none;
}

.bsv .bsv-search select {
    flex: 0 0 auto;
    width: 180px;
    padding: 0 12px;
    background: var(--bh-soft);
    font-size: 14px;
    cursor: pointer;
}

.bsv .bsv-search button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    height: 48px;
    padding: 0 22px;
    border: none;
    border-radius: 12px !important;
    background: var(--bh-orange);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.bsv .bsv-search button:hover {
    background: var(--bh-orange-2);
}

.bsv-hero__stats {
    display: flex;
    gap: 32px;
    margin: 26px 0 0;
}

.bsv-hero__stats div {
    display: flex;
    flex-direction: column-reverse;
}

.bsv-hero__stats dt {
    font-size: 12px;
    color: #a5b4fc;
}

.bsv-hero__stats dd {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 800;
}

/* How hiring works */
.bsv-steps {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 18px;
    list-style: none;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.bsv-steps li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.18);
}

.bsv-steps li > span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff;
    color: var(--bsv-violet);
    font-size: 16px;
}

.bsv-steps strong {
    display: block;
    font-size: 15px;
    color: #fff;
}

.bsv-steps p {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #cbd5e1;
}

/* ---------- Filter bar (sticky under the header) ---------- */
.bsv-filters {
    position: sticky;
    top: var(--bnav-offset, 0px);
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--bh-line);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.bsv-filters__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
}

.bsv-chips {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.bsv-chips::-webkit-scrollbar {
    display: none;
}

.bsv-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--bh-soft);
    border: 1px solid var(--bh-line);
    color: var(--bh-ink);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.bsv-chip small {
    font-size: 11px;
    color: var(--bh-muted);
}

.bsv-chip:hover {
    border-color: var(--bsv-violet);
}

.bsv-chip.is-active {
    background: var(--bh-navy);
    border-color: var(--bh-navy);
    color: #fff;
}

.bsv-chip.is-active small {
    color: #c7d2fe;
}

.bsv-toggle {
    display: flex;
    flex: 0 0 auto;
    padding: 3px;
    border-radius: 999px;
    background: var(--bh-soft);
    border: 1px solid var(--bh-line);
}

.bsv-toggle a {
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--bh-muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.bsv-toggle a.is-active {
    background: #fff;
    color: var(--bsv-violet);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.bsv-banner {
    padding-top: 20px;
}

/* ---------- Results ---------- */
.bsv-results__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.bsv-results__head h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--bh-ink);
}

.bsv-results__head p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--bh-muted);
}

.bsv-clear {
    flex: 0 0 auto;
    color: var(--bh-navy);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.bsv-clear:hover {
    text-decoration: underline;
}

.bsv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.bsv-empty {
    margin-top: 26px;
    padding: 44px 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px dashed #cbd5e1;
    text-align: center;
    color: var(--bh-muted);
}

.bsv-empty > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: var(--bsv-violet-soft);
    color: var(--bsv-violet);
    font-size: 22px;
}

.bsv-empty h2 {
    margin: 0 0 6px;
    font-size: 1.2rem;
    color: var(--bh-ink);
}

.bsv-empty p {
    margin: 0 0 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .bsv-hero__inner {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .bsv-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bsv-steps li {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 760px) {
    .bsv-filters__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .bsv-toggle {
        align-self: flex-start;
    }
}

@media (max-width: 640px) {
    .bsv-hero {
        padding: 28px 0 30px;
    }

    .bsv-hero__text > p {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .bsv-search {
        flex-wrap: wrap;
    }

    .bsv-search__field {
        flex-basis: 100%;
    }

    .bsv .bsv-search select {
        flex: 1;
        width: auto;
        height: 44px;
    }

    .bsv .bsv-search button {
        height: 44px;
        padding: 0 18px;
    }

    .bsv-hero__stats {
        gap: 24px;
        margin-top: 20px;
    }

    .bsv-hero__stats dd {
        font-size: 20px;
    }

    .bsv-steps {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 8px;
    }

    .bsv-steps li {
        flex-direction: row;
        padding: 10px;
    }

    .bsv-steps li > span {
        flex-basis: 34px;
        height: 34px;
        font-size: 14px;
    }

    .bsv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .bsv-results__head {
        flex-direction: column;
        align-items: flex-start;
    }
}
