/**
 * ============================================================================
 * LUMIVERSE SOLUTIONS - COMMON SERVICES HUB DESIGN SYSTEM & ARCHITECTURE
 * File: public/css/services-hub.css
 * Version: 3.2.0 (Isolated Neural Rail, Zero-Clip Bezier Lines & Category Spotlight Blur)
 * ============================================================================
 */

/* ============================================================================
   1. ROOT DESIGN TOKENS & CSS CUSTOM PROPERTIES
============================================================================ */
:root {
    /* Core Brand Colors */
    --srv-primary: #b100e8;
    --srv-primary-rgb: 177, 0, 232;
    --srv-deep-purple: #6528F7;
    --srv-deep-purple-rgb: 101, 40, 247;
    --srv-cyan: #048AFF;
    --srv-cyan-rgb: 4, 138, 255;
    --srv-neon-teal: #00F0FF;
    --srv-emerald: #10B981;
    --srv-emerald-rgb: 16, 185, 129;

    /* Base Neutral Palette */
    --srv-dark: #0F172A;
    --srv-slate-900: #0F172A;
    --srv-slate-800: #1E293B;
    --srv-slate-700: #334155;
    --srv-slate-600: #475569;
    --srv-slate-500: #64748B;
    --srv-slate-400: #94A3B8;
    --srv-slate-300: #CBD5E1;
    --srv-slate-200: #E2E8F0;
    --srv-slate-100: #F1F5F9;
    --srv-slate-50: #F8FAFC;
    --srv-white: #FFFFFF;

    /* 6 Pillar Domain Color Tokens (Strict Lumiverse Brand Guidelines: Purple, Cyan, Magenta) */
    --srv-offensive-accent: #6528F7;
    --srv-offensive-bg: #FAF8FF;
    --srv-offensive-border: #EDE9FE;
    --srv-offensive-glow: rgba(101, 40, 247, 0.2);

    --srv-managed-accent: #048AFF;
    --srv-managed-bg: #F0F8FF;
    --srv-managed-border: #E0F2FE;
    --srv-managed-glow: rgba(4, 138, 255, 0.2);

    --srv-compliance-accent: #b100e8;
    --srv-compliance-bg: #FDF4FF;
    --srv-compliance-border: #FAE8FF;
    --srv-compliance-glow: rgba(177, 0, 232, 0.2);

    --srv-incident-accent: #6528F7;
    --srv-incident-bg: #FAF8FF;
    --srv-incident-border: #EDE9FE;
    --srv-incident-glow: rgba(101, 40, 247, 0.2);

    --srv-bfsi-accent: #048AFF;
    --srv-bfsi-bg: #F0F8FF;
    --srv-bfsi-border: #E0F2FE;
    --srv-bfsi-glow: rgba(4, 138, 255, 0.2);

    --srv-industry-accent: #b100e8;
    --srv-industry-bg: #FDF4FF;
    --srv-industry-border: #FAE8FF;
    --srv-industry-glow: rgba(177, 0, 232, 0.2);

    /* Gradients */
    --srv-grad-hero: linear-gradient(135deg, #b100e8 0%, #048AFF 100%);
    --srv-grad-root: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #2e1065 100%);
    --srv-grad-primary-btn: linear-gradient(135deg, #6528F7 0%, #b100e8 100%);
    --srv-grad-badge: linear-gradient(135deg, rgba(101, 40, 247, 0.08) 0%, rgba(4, 138, 255, 0.08) 100%);

    /* Shadows & Elevation */
    --srv-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.03);
    --srv-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --srv-shadow-md: 0 6px 18px rgba(15, 23, 42, 0.06);
    --srv-shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.08);

    /* Transitions & Easings */
    --srv-ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --srv-ease-fast: 0.18s ease;
    --srv-ease-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);

    /* Radii */
    --srv-radius-xs: 6px;
    --srv-radius-sm: 10px;
    --srv-radius-md: 14px;
    --srv-radius-lg: 18px;
    --srv-radius-xl: 22px;
    --srv-radius-2xl: 28px;
    --srv-radius-full: 9999px;
}

/* ============================================================================
   2. BASE PAGE LAYOUT & CONTAINER SCOPE
============================================================================ */
.services-hub-page {
    font-family: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--srv-dark);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    text-align: left;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: transparent;
}

.services-hub-page * {
    box-sizing: border-box;
}

.services-hub-page .container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ============================================================================
   3. HERO SECTION & INTERACTIVE VIEW MODE SWITCHER
============================================================================ */
.services-hub-page .hub-hero-section {
    padding: 3.5rem 0 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.services-hub-page .hub-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--srv-grad-badge);
    border: 1px solid rgba(101, 40, 247, 0.16);
    border-radius: var(--srv-radius-full);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--srv-deep-purple);
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 10px rgba(101, 40, 247, 0.04);
    letter-spacing: 0.01em;
}

.services-hub-page .hub-badge svg {
    color: var(--srv-deep-purple);
    flex-shrink: 0;
}

.services-hub-page .hub-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1.18;
    color: #0F172A;
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.services-hub-page .hub-hero-title .gradient-text {
    background: var(--srv-grad-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.services-hub-page .hub-hero-desc {
    font-size: 1.12rem;
    color: var(--srv-slate-500);
    max-width: 820px;
    margin: 0 auto 2.2rem;
    line-height: 1.7;
    font-weight: 500;
}

/* View Mode Switcher */
.services-hub-page .view-switcher-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 3.2rem;
}

.services-hub-page .view-toggle-btn {
    padding: 10px 22px;
    border-radius: var(--srv-radius-full);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    color: var(--srv-slate-600);
    transition: all var(--srv-ease-normal);
    outline: none;
    box-shadow: var(--srv-shadow-xs);
    user-select: none;
}

.services-hub-page .view-toggle-btn:hover {
    border-color: rgba(101, 40, 247, 0.35);
    color: var(--srv-deep-purple);
    transform: translateY(-1px);
    box-shadow: var(--srv-shadow-sm);
}

.services-hub-page .view-toggle-btn.active {
    background: var(--srv-grad-primary-btn);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(101, 40, 247, 0.28);
}

.services-hub-page .view-toggle-btn.active svg {
    stroke: #ffffff;
}

/* ============================================================================
   4. CYBER SECURITY TREE ARCHITECTURE (CURVED NEURAL BUS & LIGHT MINIMALISM)
============================================================================ */
.services-hub-page .tree-architecture-wrapper {
    position: relative;
    padding: 0.5rem 0 4.5rem;
}

/* ─── 4.1 Master Root Header Node ─── */
.services-hub-page .tree-root-box {
    max-width: 420px;
    margin: 0 auto;
    background: var(--srv-grad-root);
    border-radius: var(--srv-radius-lg);
    padding: 1.1rem 1.6rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(30, 27, 75, 0.16);
    position: relative;
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: all var(--srv-ease-normal);
}

.services-hub-page .tree-root-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(30, 27, 75, 0.26);
    border-color: rgba(255, 255, 255, 0.3);
}

.services-hub-page .tree-root-icon {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--srv-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #C084FC;
    transition: transform var(--srv-ease-normal);
}

.services-hub-page .tree-root-box:hover .tree-root-icon {
    transform: scale(1.05) rotate(3deg);
    background: rgba(255, 255, 255, 0.18);
}

.services-hub-page .tree-root-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.2;
    margin-bottom: 2px;
    color: #ffffff;
}

.services-hub-page .tree-root-sub {
    font-size: 0.82rem;
    color: #CBD5E1;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ─── 4.2 Curved SVG Branching Bus (Smooth Cubic Bezier Lines) ─── */
.services-hub-page .tree-branch-svg-wrap {
    width: 100%;
    height: 64px;
    position: relative;
    margin: -3px 0 -4px;
    z-index: 2;
    pointer-events: none;
}

.services-hub-page .tree-branch-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Base Inactive Curved Lines */
.services-hub-page .wire-base {
    stroke: rgba(148, 163, 184, 0.45);
    stroke-width: 2;
    fill: none;
    transition: stroke var(--srv-ease-normal);
}

/* Flowing Electric Pulses along Curved Bezier Paths */
.services-hub-page .wire-pulse {
    stroke: url(#wirePulseGrad);
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-dasharray: 14 160;
    fill: none;
    animation: curvePulseTravel 2.5s linear infinite;
}

@keyframes curvePulseTravel {
    0% {
        stroke-dashoffset: 340;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* ─── 4.3 4-Column Primary Pillar Grid & 2-Column Secondary Grid ─── */
.services-hub-page .tree-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    z-index: 3;
}

.services-hub-page .tree-pillars-secondary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 1.5rem;
    position: relative;
    z-index: 3;
}

/* ─── 4.4 Pillar Tree Card Component (Minimalist & Refined) ─── */
.services-hub-page .tree-pillar-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: var(--srv-radius-xl);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: box-shadow var(--srv-ease-normal), border-color var(--srv-ease-normal), transform var(--srv-ease-normal);
}

.services-hub-page .tree-pillar-card:hover {
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.07);
    border-color: #CBD5E1;
}

/* Pillar Card Header (Light Tinted Minimalist Style) */
.services-hub-page .tree-pillar-header {
    padding: 1.35rem 1.2rem 1.1rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    transition: background var(--srv-ease-normal);
}

.services-hub-page .tree-pillar-header-badge {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: var(--srv-radius-sm);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    transition: transform var(--srv-ease-normal), box-shadow var(--srv-ease-normal);
}

.services-hub-page .tree-pillar-card:hover .tree-pillar-header-badge {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.07);
}

.services-hub-page .tree-pillar-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.04rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 2px;
    line-height: 1.2;
    color: var(--srv-dark);
}

.services-hub-page .tree-pillar-tagline {
    font-size: 0.78rem;
    color: var(--srv-slate-500);
    font-weight: 600;
}

/* ============================================================================
   5. INTEGRATED NODE CARDS DECK & SMOOTH INNER CAPABILITY DRAWER
   Eliminates all floating lines, line cut-offs, and disjointed gaps permanently
============================================================================ */
.services-hub-page .tree-nodes-deck {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 1.25rem 1rem;
    position: relative;
    flex-grow: 1;
}

/* ─── Category-Scoped Spotlight Blur on Node Hover ─── */
.services-hub-page .tree-nodes-deck .tree-node-card {
    transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* When mouse enters a pillar deck, subtly dim sibling nodes */
.services-hub-page .tree-nodes-deck:hover .tree-node-card {
    filter: blur(0.8px);
    opacity: 0.65;
}

/* Actively hovered card stays sharp, elevated, and focused */
.services-hub-page .tree-nodes-deck .tree-node-card:hover,
.services-hub-page .tree-nodes-deck .tree-node-card.is-open {
    filter: blur(0px) !important;
    opacity: 1 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    border-color: rgba(101, 40, 247, 0.35);
    z-index: 10;
}

/* Individual Service Node Card */
.services-hub-page .tree-node-card {
    background: #ffffff;
    border: 1px solid var(--srv-slate-200);
    border-radius: var(--srv-radius-md);
    box-shadow: var(--srv-shadow-xs);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    user-select: none;
}

/* Card Header Row (Icon, Titles, Badge) */
.services-hub-page .tree-node-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}

.services-hub-page .tree-node-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--srv-radius-sm);
    background: var(--srv-slate-100);
    border: 1px solid var(--srv-slate-200);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--srv-ease-normal);
}

.services-hub-page .tree-node-card:hover .tree-node-icon,
.services-hub-page .tree-node-card.is-open .tree-node-icon {
    background: var(--srv-grad-primary-btn);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(101, 40, 247, 0.25);
    transform: rotate(-3deg);
}

.services-hub-page .tree-node-info {
    flex-grow: 1;
    min-width: 0;
}

.services-hub-page .tree-node-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--srv-dark);
    line-height: 1.25;
    margin-bottom: 2px;
    transition: color var(--srv-ease-fast);
}

.services-hub-page .tree-node-card:hover .tree-node-title,
.services-hub-page .tree-node-card.is-open .tree-node-title {
    color: var(--srv-deep-purple);
}

.services-hub-page .tree-node-sub {
    font-size: 0.72rem;
    color: var(--srv-slate-500);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Expand Pill & Chevron */
.services-hub-page .tree-node-badge {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--srv-radius-sm);
    background: rgba(101, 40, 247, 0.07);
    color: var(--srv-deep-purple);
    margin-left: auto;
    flex-shrink: 0;
    transition: all var(--srv-ease-normal);
}

.services-hub-page .tree-node-chevron {
    font-size: 0.76rem;
    transition: transform var(--srv-ease-normal);
    display: inline-block;
}

.services-hub-page .tree-node-card:hover .tree-node-badge {
    background: rgba(101, 40, 247, 0.12);
}

.services-hub-page .tree-node-card.is-open .tree-node-badge {
    background: var(--srv-grad-primary-btn);
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(101, 40, 247, 0.22);
}

.services-hub-page .tree-node-card.is-open .tree-node-chevron {
    transform: rotate(90deg);
}

/* ============================================================================
   6. INNER SUB-SERVICES ACCORDION DRAWER
   Strict Click-to-Toggle (Zero accidental hover open)
============================================================================ */
.services-hub-page .tree-node-drawer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Opens and closes strictly when user clicks the card (.is-open) */
.services-hub-page .tree-node-card.is-open .tree-node-drawer {
    grid-template-rows: 1fr;
}

.services-hub-page .tree-drawer-inner {
    overflow: hidden;
    padding: 0 10px 10px 10px;
}

.services-hub-page .sub-services-deck {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 8px;
    border-top: 1px dashed var(--srv-slate-200);
}

/* Individual Sub-Service Chip */
.services-hub-page .sub-service-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 9px;
    border-radius: var(--srv-radius-sm);
    background: var(--srv-slate-50);
    border: 1px solid var(--srv-slate-200);
    text-decoration: none;
    color: var(--srv-slate-700);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--srv-ease-fast);
}

.services-hub-page .sub-chip-left {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.services-hub-page .sub-chip-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--srv-deep-purple);
    flex-shrink: 0;
    transition: all var(--srv-ease-fast);
}

.services-hub-page .sub-chip-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.services-hub-page .sub-chip-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: 6px;
}

.services-hub-page .sub-chip-tag {
    font-size: 0.64rem;
    padding: 2px 5px;
    border-radius: var(--srv-radius-xs);
    background: #ffffff;
    border: 1px solid var(--srv-slate-200);
    color: var(--srv-slate-500);
    font-weight: 700;
    transition: all var(--srv-ease-fast);
}

.services-hub-page .sub-chip-arrow {
    font-size: 0.82rem;
    color: var(--srv-slate-400);
    transition: transform var(--srv-ease-fast), color var(--srv-ease-fast);
}

.services-hub-page .sub-service-chip:hover {
    background: #ffffff;
    border-color: var(--srv-deep-purple);
    color: var(--srv-deep-purple);
    transform: translateX(3px);
    box-shadow: 0 4px 10px rgba(101, 40, 247, 0.08);
}

.services-hub-page .sub-service-chip:hover .sub-chip-bullet {
    background: var(--srv-deep-purple);
    transform: scale(1.3);
}

.services-hub-page .sub-service-chip:hover .sub-chip-tag {
    background: rgba(101, 40, 247, 0.08);
    border-color: rgba(101, 40, 247, 0.2);
    color: var(--srv-deep-purple);
}

.services-hub-page .sub-service-chip:hover .sub-chip-arrow {
    transform: translateX(2px);
    color: var(--srv-deep-purple);
}

/* Explore Hub Link at Drawer Bottom */
.services-hub-page .sub-hub-explore-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    padding: 5px 6px 2px;
    margin-top: 4px;
    transition: all var(--srv-ease-fast);
}

.services-hub-page .sub-hub-explore-link:hover {
    transform: translateX(3px);
    filter: brightness(0.85);
}

/* ============================================================================
   7. BENTO DIRECTORY GRID & LIVE INSTANT SEARCH
============================================================================ */
.services-hub-page .bento-directory-wrapper {
    display: none;
    padding-bottom: 4.5rem;
}

.services-hub-page .bento-directory-wrapper.active {
    display: block;
}

.services-hub-page .hub-search-box {
    max-width: 620px;
    margin: 0 auto 1.8rem;
    position: relative;
}

.services-hub-page .hub-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--srv-slate-400);
    pointer-events: none;
    transition: color var(--srv-ease-fast);
}

.services-hub-page .hub-search-input {
    width: 100%;
    padding: 0.95rem 1.4rem 0.95rem 3.2rem;
    border-radius: var(--srv-radius-full);
    border: 1.5px solid var(--srv-slate-200);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    font-size: 0.98rem;
    color: var(--srv-dark);
    box-shadow: 0 4px 18px rgba(101, 40, 247, 0.04);
    transition: all var(--srv-ease-normal);
    outline: none;
}

.services-hub-page .hub-search-input:focus {
    border-color: var(--srv-deep-purple);
    box-shadow: 0 0 0 3px rgba(101, 40, 247, 0.12), 0 8px 25px rgba(101, 40, 247, 0.08);
}

.services-hub-page .hub-search-input:focus + .hub-search-icon {
    color: var(--srv-deep-purple);
}

/* Category Filter Tabs with Smooth Horizontal Mobile Scroll */
.services-hub-page .filter-nav {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2.5rem;
}

.services-hub-page .filter-btn {
    padding: 7px 16px;
    border-radius: var(--srv-radius-full);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid var(--srv-slate-200);
    background: rgba(255, 255, 255, 0.8);
    color: var(--srv-slate-600);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--srv-ease-fast);
    outline: none;
    user-select: none;
    white-space: nowrap;
}

.services-hub-page .filter-btn:hover {
    border-color: var(--srv-deep-purple);
    color: var(--srv-deep-purple);
    transform: translateY(-1px);
}

.services-hub-page .filter-btn.active {
    background: var(--srv-dark);
    color: #ffffff;
    border-color: var(--srv-dark);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.services-hub-page .filter-count {
    font-size: 0.72rem;
    padding: 2px 6px;
    border-radius: var(--srv-radius-full);
    background: rgba(148, 163, 184, 0.2);
    color: inherit;
    font-weight: 800;
}

.services-hub-page .filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Directory Cards Grid with Hover Spotlight */
.services-hub-page .services-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.services-hub-page .services-cards-grid:hover .service-hub-card {
    filter: blur(0.8px);
    opacity: 0.65;
    transform: scale(0.99);
}

.services-hub-page .services-cards-grid .service-hub-card:hover {
    filter: blur(0px) !important;
    opacity: 1 !important;
    transform: translateY(-4px) scale(1.02) !important;
    z-index: 10;
}

.services-hub-page .service-hub-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--srv-slate-200);
    border-radius: var(--srv-radius-lg);
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--srv-shadow-xs);
    transition: all var(--srv-ease-normal);
    position: relative;
    overflow: hidden;
}

.services-hub-page .card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.services-hub-page .card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--srv-radius-md);
    background: rgba(101, 40, 247, 0.08);
    color: var(--srv-deep-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--srv-ease-fast);
}

.services-hub-page .service-hub-card:hover .card-icon {
    background: var(--srv-grad-primary-btn);
    color: #ffffff;
    transform: rotate(-4deg);
}

.services-hub-page .card-badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--srv-radius-xs);
    background: var(--srv-slate-100);
    color: var(--srv-slate-600);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.services-hub-page .card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--srv-dark);
    line-height: 1.3;
    margin-bottom: 0.6rem;
    transition: color var(--srv-ease-fast);
}

.services-hub-page .service-hub-card:hover .card-title {
    color: var(--srv-deep-purple);
}

.services-hub-page .card-desc {
    font-size: 0.88rem;
    color: var(--srv-slate-500);
    line-height: 1.55;
    margin-bottom: 1.4rem;
}

.services-hub-page .card-footer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--srv-deep-purple);
    padding-top: 0.8rem;
    border-top: 1px solid var(--srv-slate-100);
}

.services-hub-page .card-arrow {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(101, 40, 247, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--srv-ease-fast);
    font-size: 1.1rem;
    line-height: 1;
}

.services-hub-page .service-hub-card:hover .card-arrow {
    background: var(--srv-grad-hero);
    color: #ffffff;
    transform: translateX(4px);
}

/* ============================================================================
   8. EMBEDDED BITRIX24 CONSULTATION & SCOPE SECTION
============================================================================ */
.services-hub-page .consultation-section {
    padding: 3.5rem 0 4.5rem;
}

.services-hub-page .consultation-box {
    background: #ffffff;
    border: 1px solid var(--srv-slate-200);
    border-radius: var(--srv-radius-2xl);
    padding: 3.5rem 3rem;
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.06);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.services-hub-page .consultation-content {
    text-align: left;
}

.services-hub-page .consultation-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--srv-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.services-hub-page .consultation-desc {
    font-size: 1.02rem;
    color: var(--srv-slate-500);
    margin-bottom: 2rem;
    line-height: 1.65;
}

.services-hub-page .consultation-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-hub-page .consultation-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--srv-slate-700);
    margin-bottom: 12px;
}

.services-hub-page .check-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    color: var(--srv-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 800;
}

.services-hub-page .consultation-form-card {
    background: var(--srv-slate-50);
    border: 1px solid var(--srv-slate-200);
    border-radius: var(--srv-radius-xl);
    padding: 2.2rem;
}

.services-hub-page .form-card-header {
    margin-bottom: 1.4rem;
    text-align: left;
}

.services-hub-page .form-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--srv-dark);
    margin-bottom: 4px;
}

.services-hub-page .form-card-sub {
    font-size: 0.85rem;
    color: var(--srv-slate-500);
}

/* ============================================================================
   9. FAQ ACCORDION SECTION
============================================================================ */
.services-hub-page .faq-section {
    padding: 3rem 0 5rem;
}

.services-hub-page .faq-container {
    max-width: 860px;
    margin: 0 auto;
}

.services-hub-page .faq-item {
    background: #ffffff;
    border: 1px solid var(--srv-slate-200);
    border-radius: var(--srv-radius-lg);
    margin-bottom: 14px;
    overflow: hidden;
    transition: all var(--srv-ease-normal);
    box-shadow: var(--srv-shadow-xs);
}

.services-hub-page .faq-item.active {
    border-color: rgba(101, 40, 247, 0.35);
    box-shadow: 0 8px 24px rgba(101, 40, 247, 0.08);
}

.services-hub-page .faq-question {
    padding: 1.25rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--srv-dark);
    cursor: pointer;
    user-select: none;
}

.services-hub-page .faq-icon-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(101, 40, 247, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--srv-deep-purple);
    font-size: 1.2rem;
    font-weight: 600;
    transition: transform var(--srv-ease-normal), background var(--srv-ease-normal), color var(--srv-ease-normal);
    flex-shrink: 0;
    margin-left: 12px;
}

.services-hub-page .faq-item.active .faq-icon-toggle {
    transform: rotate(45deg);
    background: var(--srv-deep-purple);
    color: #ffffff;
}

.services-hub-page .faq-answer {
    padding: 0 1.6rem 1.4rem;
    font-size: 0.95rem;
    color: var(--srv-slate-600);
    line-height: 1.65;
    display: none;
}

.services-hub-page .faq-item.active .faq-answer {
    display: block;
}

/* ============================================================================
   10. RESPONSIVE BREAKPOINTS & TOUCH OPTIMIZATION
============================================================================ */

/* ─── 10.1 Desktop & Laptop Viewports (1025px to 1280px) ─── */
@media (max-width: 1280px) {
    .services-hub-page .tree-pillars-grid {
        gap: 16px;
    }
    .services-hub-page .tree-node-name {
        font-size: 0.84rem;
    }
    .services-hub-page .services-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─── 10.2 Tablet Viewports (769px to 1024px) ─── */
@media (max-width: 1024px) {
    .services-hub-page .tree-pillars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .services-hub-page .tree-branch-svg-wrap {
        display: none;
    }
    .services-hub-page .tree-root-box {
        margin-bottom: 2rem;
    }
    .services-hub-page .tree-pillars-secondary {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .services-hub-page .consultation-box {
        grid-template-columns: 1fr;
        padding: 2.8rem 2.2rem;
    }
}

/* ─── 10.3 Mobile Viewports (<= 768px - Touch-Friendly & Clean) ─── */
@media (max-width: 768px) {
    .services-hub-page .hub-hero-section {
        padding: 2.5rem 0 1.5rem;
    }
    .services-hub-page .hub-hero-title {
        font-size: 2.1rem;
        letter-spacing: -0.015em;
    }
    .services-hub-page .hub-hero-desc {
        font-size: 0.98rem;
        margin-bottom: 1.8rem;
    }
    .services-hub-page .tree-pillars-grid,
    .services-hub-page .tree-pillars-secondary {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .services-hub-page .tree-branch-svg-wrap {
        display: none;
    }
    .services-hub-page .tree-root-box {
        margin-bottom: 1.8rem;
        padding: 1rem 1.2rem;
    }
    .services-hub-page .tree-node-item {
        padding: 10px 12px;
        min-height: 48px;
    }
    .services-hub-page .sub-branch-link-row {
        padding: 8px 10px;
        min-height: 42px;
    }
    .services-hub-page .services-cards-grid {
        grid-template-columns: 1fr;
    }
    .services-hub-page .consultation-box {
        grid-template-columns: 1fr;
        padding: 2rem 1.4rem;
    }
    .services-hub-page .consultation-form-card {
        padding: 1.6rem 1.2rem;
    }
    .services-hub-page .view-switcher-bar {
        flex-direction: column;
        width: 100%;
    }
    .services-hub-page .view-toggle-btn {
        width: 100%;
        justify-content: center;
    }
    .services-hub-page .filter-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        justify-content: flex-start;
        scrollbar-width: none;
    }
    .services-hub-page .filter-nav::-webkit-scrollbar {
        display: none;
    }
}

/* ─── 10.4 Compact Mobile Devices (<= 480px) ─── */
@media (max-width: 480px) {
    .services-hub-page .container {
        padding: 0 16px;
    }
    .services-hub-page .hub-hero-title {
        font-size: 1.85rem;
    }
    .services-hub-page .tree-root-box {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem 1rem;
        gap: 10px;
    }
    .services-hub-page .tree-pillar-header {
        padding: 1.2rem 1rem 1rem;
    }
    .services-hub-page .tree-nodes-body {
        padding: 1.2rem 0.6rem 1rem 0.8rem;
    }
    .services-hub-page .tree-node-sub {
        display: none;
    }
    .services-hub-page .faq-question {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }
    .services-hub-page .faq-answer {
        padding: 0 1.2rem 1.2rem;
        font-size: 0.88rem;
    }
}

/* ─── 10.5 Accessibility Focus States ─── */
.services-hub-page button:focus-visible,
.services-hub-page a:focus-visible,
.services-hub-page input:focus-visible {
    outline: 2px solid var(--srv-deep-purple);
    outline-offset: 2px;
}

/* ─── 10.6 Reduced Motion Preference Support ─── */
@media (prefers-reduced-motion: reduce) {
    .services-hub-page *,
    .services-hub-page .wire-pulse {
        animation: none !important;
        transition: none !important;
    }
}


/* ============================================================================
   9. REFERENCE DESIGN: COMPREHENSIVE SECURITY SOLUTIONS PATTERN
   ============================================================================ */
.services-pattern-section {
    padding: 5rem 0 6rem;
    position: relative;
    background: #FFFFFF;
    overflow: hidden;
}

.pattern-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 3.5rem;
    position: relative;
    z-index: 2;
}

.pattern-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    color: #4F46E5;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.9rem;
}

.pattern-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.85rem;
    font-weight: 850;
    color: #0F172A;
    line-height: 1.22;
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
}

.pattern-accent-bar {
    width: 52px;
    height: 3.5px;
    background: #6528F7;
    border-radius: 4px;
    margin: 0 auto 1.25rem;
}

.pattern-subtitle {
    font-size: 1.05rem;
    color: #64748B;
    line-height: 1.6;
    margin: 0 auto;
}

/* Outer Side Dots (Decorative background flanks) */
.pattern-grid-wrapper {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.pattern-side-dots {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
    opacity: 0.55;
}

.pattern-side-dots-left {
    left: -60px;
}

.pattern-side-dots-right {
    right: -60px;
}

/* 3x2 Cards Grid */
.pattern-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
    z-index: 2;
}

/* Individual Card */
.pattern-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 2.3rem 2.1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
    overflow: hidden;
}

.pattern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(101, 40, 247, 0.08);
    border-color: #DDD6FE;
}

/* Icon Box */
.pattern-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.25s ease;
}

.pattern-card:hover .pattern-icon-box {
    transform: scale(1.05);
}

.pattern-icon-purple {
    background: rgba(101, 40, 247, 0.07);
}

.pattern-icon-cyan {
    background: rgba(4, 138, 255, 0.07);
}

.pattern-icon-magenta {
    background: rgba(177, 0, 232, 0.07);
}

.pattern-icon-blue {
    background: rgba(37, 99, 235, 0.07);
}

/* Card Typography */
.pattern-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.28rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.34;
    margin: 0 0 0.75rem 0;
    transition: color 0.2s ease;
}

.pattern-card:hover .pattern-card-title {
    color: #6528F7;
}

.pattern-card-desc {
    font-size: 0.94rem;
    color: #64748B;
    line-height: 1.58;
    margin: 0 0 1.8rem 0;
}

/* Card Link */
.pattern-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.94rem;
    font-weight: 700;
    color: #6528F7;
    margin-top: auto;
    transition: color 0.2s ease;
}

.pattern-card-link svg {
    transition: transform 0.2s ease;
}

.pattern-card:hover .pattern-card-link svg {
    transform: translateX(4px);
}

/* Subtle 5x4 Dot Matrix inside Card (Bottom-Right) */
.pattern-corner-dots {
    position: absolute;
    bottom: 18px;
    right: 20px;
    pointer-events: none;
    opacity: 0.45;
}

/* Explore All Services Pill Button */
.pattern-explore-wrap {
    text-align: center;
    margin-top: 3.5rem;
    position: relative;
    z-index: 2;
}

.pattern-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 2.2rem;
    border-radius: 50px;
    border: 1.5px solid #6528F7;
    background: transparent;
    color: #6528F7;
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 10px rgba(101, 40, 247, 0.06);
}

.pattern-explore-btn:hover {
    background: #6528F7;
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(101, 40, 247, 0.25);
    transform: translateY(-2px);
}

.pattern-explore-btn svg {
    transition: transform 0.2s ease;
}

.pattern-explore-btn:hover svg {
    transform: translateX(4px);
}

/* ============================================================================
   OVERHAUL FULL CATALOG SERVICE CARDS (MATCHING REFERENCE PATTERN)
   ============================================================================ */
/* Remove blur on grid hover */
.services-hub-page .services-cards-grid:hover .service-hub-card {
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.services-hub-page .services-cards-grid .service-hub-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 14px 32px rgba(101, 40, 247, 0.08) !important;
    border-color: #DDD6FE !important;
}

.services-hub-page .service-hub-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 2rem 1.8rem 1.8rem;
    position: relative;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.02);
    transition: all 0.25s ease;
}

.services-hub-page .service-hub-card .card-header-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1.25rem;
}

.services-hub-page .service-hub-card .card-badge {
    display: none; /* Removed ugly gray pill badge */
}

.services-hub-page .service-hub-card .card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(101, 40, 247, 0.07);
    color: #6528F7;
}

.services-hub-page .service-hub-card .card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.35;
    margin-bottom: 0.65rem;
}

.services-hub-page .service-hub-card:hover .card-title {
    color: #6528F7;
}

.services-hub-page .service-hub-card .card-desc {
    font-size: 0.92rem;
    color: #64748B;
    line-height: 1.56;
    margin-bottom: 1.5rem;
}

.services-hub-page .service-hub-card .card-footer-link {
    border-top: none;
    padding-top: 0;
    color: #6528F7;
    font-size: 0.92rem;
    font-weight: 700;
    justify-content: flex-start;
    gap: 6px;
}

.services-hub-page .service-hub-card .card-arrow {
    display: none; /* Replaced by inline arrow SVG */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .pattern-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pattern-side-dots {
        display: none;
    }
}

@media (max-width: 640px) {
    .pattern-title {
        font-size: 2.1rem;
    }
    .pattern-cards-grid {
        grid-template-columns: 1fr;
    }
}
