/* =====================================================
   ██ SERVICES SUB-NAVIGATION (Fixed Height & Scroll)
   ─────────────────────────────────────────────────────
   Prevents vertical stacking and "up/down" wiggle.
   ===================================================== */

.svc-subnav {
    background: var(--white);
    border-bottom: 1px solid var(--gray-2);
    position: sticky;
    top: var(--rail-h); /* Sticks below main header rail */
    z-index: 180;
    width: 100%;
}

.svc-subnav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px; /* Padding-top/bottom handled by links for better hit area */
    position: relative;
}

/* Common Horizontal Scroll Container */
.svc-hubs, 
.svc-spokes {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden; /* CRITICAL: Kills the up/down wiggle */
    gap: 24px;
    margin: 0;
    list-style: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

/* Hide Scrollbars Chrome/Safari */
.svc-hubs::-webkit-scrollbar,
.svc-spokes::-webkit-scrollbar {
    display: none;
}

/* HUB ROW (Main Categories) 
   Increased height and vertical stability
----------------------------------------------------- */
.svc-hubs {
    padding: 8px 0 0 0; /* Creates clearance at top */
}

.svc-hub-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--gray-4);
    white-space: nowrap;
    
    /* Vertical Centering & Height */
    display: inline-flex;
    align-items: center;
    padding: 16px 0 12px 0; /* Increase these numbers to make it even taller */
    line-height: 1;
    
    border-bottom: 3px solid transparent;
    transition: 0.2s ease;
}

.svc-hub-link:hover, 
.svc-active {
    color: var(--black);
    border-bottom-color: var(--gold);
}

/* SPOKE ROW (Sub-Service Pills) 
----------------------------------------------------- */
.svc-spokes {
    gap: 10px;
    padding: 16px 0; /* Give the pills room to breathe */
    border-top: 1px solid var(--gray-1);
}

.svc-spoke-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-5);
    background: var(--gray-1);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1.5px solid transparent;
    white-space: nowrap;
    transition: 0.2s ease;
    display: inline-block;
}

.svc-spoke-link:hover {
    background: var(--gray-2);
    color: var(--black);
}

.svc-spoke-active {
    background: var(--gold-pale);
    border-color: var(--gold);
    color: var(--black);
}

/* MOBILE FADE INDICATOR 
   Shows users there is more content to the right.
----------------------------------------------------- */
@media (max-width: 900px) {
    .svc-subnav-inner::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 50px;
        height: 100%;
        background: linear-gradient(to right, transparent, var(--white));
        pointer-events: none;
        z-index: 2;
    }
}

/* DESKTOP REFINEMENT */
@media (min-width: 1081px) {
    .svc-hubs {
        justify-content: flex-start;
        overflow: visible;
    }
}