/* =========================================================
   Bizmantra - Our Services
   assets/css/home-services.css?v=1
   - Dark glowing section (same look in light and dark theme).
   - Desktop: card grid with cursor spotlight. Mobile: compact rows.
   ========================================================= */
.bms {
    --s-bg1: #12235A;
    --s-bg2: #0A1330;
    --s-card: rgba(255,255,255,.05);
    --s-card-h: rgba(255,255,255,.09);
    --s-line: rgba(255,255,255,.13);
    --s-text: #FFFFFF;
    --s-sub: rgba(255,255,255,.72);
    --s-acc: #A8D75E;
    --s-blue: #7FA2FF;

    position: relative; overflow: hidden; isolation: isolate;
    padding-block: clamp(60px, 8vw, 112px);
    background: linear-gradient(165deg, var(--s-bg1), var(--s-bg2));
    color: var(--s-text);
    font-family: var(--bm-font, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif);
}
:root[data-theme="dark"] .bms { --s-bg1: #0D1940; --s-bg2: #070D22; }

/* decoration: glows + dot grid */
.bms::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(520px 420px at 8% 0%, rgba(90,130,232,.35), transparent 70%),
        radial-gradient(480px 420px at 100% 100%, rgba(154,205,79,.20), transparent 70%);
}
.bms::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.16) 1.2px, transparent 1.4px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 5%, transparent 75%);
            mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 5%, transparent 75%);
}

:where(.bms) *, :where(.bms) *::before, :where(.bms) *::after { box-sizing: border-box; }
:where(.bms) h2, :where(.bms) h3, :where(.bms) p { margin: 0; }
:where(.bms) a { color: inherit; text-decoration: none; }
:where(.bms) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(.bms) svg { display: block; flex: none; }
.bms :focus-visible { outline: 2px solid var(--s-acc); outline-offset: 3px; border-radius: 10px; }

.bms__container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
.bms__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- HEAD ---------------- */
.bms__head { display: grid; gap: 18px; align-items: end; }
.bms__eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--s-acc);
}
.bms__eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--s-acc); }
.bms__title {
    margin-top: 14px; max-width: 18ch;
    font-size: clamp(28px, 4vw, 48px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance;
}
.bms__lead { max-width: 52ch; font-size: clamp(15px, 1.3vw, 16.5px); line-height: 1.7; color: var(--s-sub); }
.bms__count { margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--s-sub); }
.bms__count strong { font-size: 22px; font-weight: 800; color: var(--s-acc); margin-right: 4px; }

/* ---------------- TABS ---------------- */
.bms__tabs {
    display: flex; gap: 10px; margin-top: clamp(26px, 3.4vw, 40px);
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px 0 6px;
}
.bms__tabs::-webkit-scrollbar { display: none; }
.bms__tabs[hidden] { display: none; }
.bms__tab {
    flex: none; padding: 10px 20px; border-radius: 999px;
    font-size: 14px; font-weight: 700; color: var(--s-sub);
    background: var(--s-card); border: 1px solid var(--s-line);
    transition: background .2s, color .2s, border-color .2s;
}
.bms__tab:hover { border-color: rgba(255,255,255,.35); color: #fff; }
.bms__tab.is-active { background: linear-gradient(135deg, #A8D75E, #86B83F); border-color: transparent; color: #17306B; }

/* ---------------- GRID + CARDS ---------------- */
.bms__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 18px; }

.bms__card {
    --mx: 50%; --my: 0%;
    position: relative; overflow: hidden; min-width: 0;
    display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 14px;
    padding: 14px 16px; border-radius: 18px;
    background: var(--s-card); border: 1px solid var(--s-line);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s, background .3s;
}
.bms__card[hidden] { display: none; }
.bms__card.is-in { animation: bms-in .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--d, 0) * 45ms); }
@keyframes bms-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* cursor spotlight */
.bms__card::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(260px circle at var(--mx) var(--my), rgba(168,215,94,.20), transparent 70%);
}
/* accent bar that draws in on hover */
.bms__card::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, #7FA2FF, #A8D75E); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.7,.2,1);
}

.bms__no {
    position: absolute; top: 14px; right: 20px; display: none;
    font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1;
    color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.2); transition: -webkit-text-stroke-color .3s;
}
.bms__icon {
    position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px;
    background: linear-gradient(135deg, rgba(127,162,255,.38), rgba(127,162,255,.12));
    border: 1px solid rgba(127,162,255,.35); color: #fff;
    transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.bms__icon svg { width: 22px; height: 22px; }
.bms__body { min-width: 0; }
.bms__tag {
    display: none; width: max-content; padding: 4px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    color: var(--s-acc); background: rgba(168,215,94,.12);
}
.bms__name { font-size: 16px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.bms__desc {
    margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--s-sub);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* link: stretched over the whole card */
.bms__go { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--s-acc); }
.bms__go::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.bms__go > span:first-child { display: none; }
.bms__go svg { width: 34px; height: 34px; padding: 9px; border-radius: 50%; background: rgba(168,215,94,.14); transition: transform .3s, background .3s, color .3s; }

/* hover (mouse devices only) */
@media (hover: hover) {
    .bms__card:hover { transform: translateY(-6px); border-color: rgba(168,215,94,.55); background: var(--s-card-h); }
    .bms__card:hover::before { opacity: 1; }
    .bms__card:hover::after { transform: scaleX(1); }
    .bms__card:hover .bms__no { -webkit-text-stroke-color: rgba(168,215,94,.7); }
    .bms__card:hover .bms__icon { background: linear-gradient(135deg, #A8D75E, #86B83F); border-color: transparent; color: #17306B; transform: rotate(-6deg) scale(1.05); }
    .bms__card:hover .bms__go svg { transform: translateX(3px); background: var(--s-acc); color: #17306B; }
}

/* show more */
.bms__morewrap { display: flex; justify-content: center; }
.bms__more {
    margin-top: 18px; padding: 12px 26px; border-radius: 999px; font-size: 14px; font-weight: 700;
    background: var(--s-card); border: 1px solid var(--s-line); transition: border-color .2s, background .2s;
}
.bms__more:hover { border-color: var(--s-acc); background: var(--s-card-h); }
.bms__more[hidden] { display: none; }

/* ---------------- CTA BAR ---------------- */
.bms__cta {
    display: grid; gap: 18px; align-items: center; margin-top: clamp(36px, 5vw, 60px);
    padding: clamp(22px, 3vw, 32px); border-radius: 24px;
    background: linear-gradient(120deg, rgba(168,215,94,.18), rgba(127,162,255,.14));
    border: 1px solid var(--s-line);
}
.bms__ctatext strong { display: block; font-size: clamp(18px, 2vw, 22px); font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.bms__ctatext span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--s-sub); }
.bms__ctabtns { display: flex; flex-wrap: wrap; gap: 12px; }
.bms-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 10px 24px;
    border-radius: 12px; font-size: 15px; font-weight: 800; white-space: nowrap; transition: transform .2s, background .2s, border-color .2s;
}
.bms-btn svg { width: 17px; height: 17px; }
.bms-btn--primary { background: linear-gradient(135deg, #A8D75E, #86B83F); color: #17306B !important; box-shadow: 0 14px 26px -12px rgba(134,184,63,.9); }
.bms-btn--primary svg { transition: transform .2s; }
.bms-btn--primary:hover { transform: translateY(-1px); }
.bms-btn--primary:hover svg { transform: translateX(3px); }
.bms-btn--ghost { border: 1.5px solid rgba(255,255,255,.35); color: #fff !important; }
.bms-btn--ghost:hover { border-color: #fff; transform: translateY(-1px); }

/* ---------------- RESPONSIVE ---------------- */
@media (min-width: 768px) {
    .bms__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .bms__card {
        display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 26px 24px 22px;
        min-height: 260px; border-radius: 22px;
    }
    .bms__no { display: block; }
    .bms__icon { width: 56px; height: 56px; border-radius: 17px; }
    .bms__icon svg { width: 25px; height: 25px; }
    .bms__body { margin-top: 22px; }
    .bms__tag { display: inline-block; margin-bottom: 10px; }
    .bms__name { font-size: 19px; }
    .bms__desc { margin-top: 8px; font-size: 14px; -webkit-line-clamp: 3; }
    .bms__go { margin-top: auto; padding-top: 20px; }
    .bms__go > span:first-child { display: inline; }
    .bms__go svg { width: 30px; height: 30px; padding: 7px; }
    .bms__morewrap { display: none; }
}
@media (min-width: 900px) {
    .bms__head { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; }
    .bms__cta { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; }
}
@media (min-width: 1024px) { .bms__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .bms__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

@media (max-width: 599px) {
    .bms__container { padding-inline: 16px; }
    .bms__title { max-width: none; }
    .bms__ctabtns { flex-direction: column; }
    .bms-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .bms__card.is-in { animation: none; }
    .bms * { transition-duration: .01ms !important; }
}