/* RR Global Services - Sub-page Styles for MPS, Hardware, Parts, Brands, Locations */

:root {
    --svc-blue: hsl(215, 85%, 52%);
    --svc-blue-glow: hsla(215, 85%, 52%, 0.35);
    --svc-blue-light: hsl(215, 90%, 75%);
    --svc-teal: hsl(185, 80%, 42%);
    --svc-teal-glow: hsla(185, 80%, 42%, 0.35);
    --svc-dark-card: hsla(222, 45%, 11%, 0.88);
    --svc-border: hsla(220, 30%, 35%, 0.35);
    --svc-border-active: hsl(215, 85%, 55%);
}

/* ─── Button Override for Services Blue ─────────────── */
.svc-page .btn-primary {
    background: linear-gradient(135deg, hsl(215, 85%, 42%) 0%, hsl(200, 85%, 48%) 100%) !important;
    box-shadow: 0 4px 15px hsla(215, 85%, 52%, 0.35) !important;
    border: 1px solid hsla(215, 85%, 52%, 0.5) !important;
    color: #ffffff !important;
}

.svc-page .btn-primary:hover {
    background: linear-gradient(135deg, hsl(215, 85%, 48%) 0%, hsl(200, 85%, 55%) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px hsla(215, 85%, 52%, 0.55) !important;
}

/* ─── Badge Override ─────────────────────────────────── */
.svc-page .badge-secondary {
    background: transparent !important;
    border: 1.5px solid var(--svc-blue) !important;
    color: var(--svc-blue-light) !important;
    box-shadow: 0 0 12px hsla(215, 85%, 52%, 0.55) !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-shadow: 0 0 8px hsla(215, 85%, 52%, 0.35) !important;
}

/* ─── Breadcrumb ─────────────────────────────────────── */
.breadcrumb-container {
    background: hsla(222, 55%, 6%, 0.95);
    border-bottom: 1px solid var(--svc-border);
    padding: 96px 0 1rem 0;
    position: relative;
    z-index: 10;
}

.breadcrumb-container + .hero-section {
    padding-top: 2.5rem !important;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.breadcrumb a {
    color: hsl(210, 80%, 75%);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--svc-blue);
}

.breadcrumb .separator {
    color: hsla(210, 40%, 60%, 0.4);
}

.breadcrumb .current {
    color: hsl(210, 30%, 90%);
    font-weight: 500;
}

/* ─── Scope Matrix Grid ──────────────────────────────── */
.scope-matrix {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .scope-matrix {
        grid-template-columns: repeat(2, 1fr);
    }
}

.scope-item {
    background: var(--svc-dark-card);
    border: 1px solid var(--svc-border);
    border-radius: 16px;
    padding: 1.8rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.scope-item:hover {
    border-color: var(--svc-blue);
    transform: translateY(-3px);
}

.scope-item h4 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.scope-item h4 i {
    color: var(--svc-blue-light);
    flex-shrink: 0;
}

.scope-item p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* ─── Service Feature Cards ──────────────────────────── */
.svc-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .svc-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .svc-feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.svc-feature-card {
    background: rgba(18, 24, 36, 0.75);
    border: 1px solid hsla(215, 85%, 52%, 0.35);
    border-radius: 20px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 22px hsla(215, 85%, 52%, 0.15);
    backdrop-filter: blur(14px);
}

.svc-feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--svc-teal);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.65), 0 0 32px var(--svc-teal-glow);
}

.svc-feature-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: hsla(215, 85%, 52%, 0.12);
    color: var(--svc-blue-light);
    border: 1.5px solid var(--svc-blue);
    box-shadow: 0 0 14px hsla(215, 85%, 52%, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
    transition: all 0.3s ease;
}

.svc-feature-card:hover .svc-feature-card-icon {
    background: hsla(185, 80%, 42%, 0.2);
    color: var(--svc-teal);
    border-color: hsla(185, 80%, 42%, 0.5);
    box-shadow: 0 0 18px var(--svc-teal);
    transform: scale(1.1) rotate(5deg);
}

.svc-feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    color: #fff;
}

.svc-feature-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.svc-card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.75rem 1.4rem;
    border-radius: 50px;
    background: transparent !important;
    border: 1.5px solid var(--svc-blue) !important;
    color: var(--svc-blue-light) !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: auto;
    box-shadow: 0 0 14px hsla(215, 85%, 52%, 0.3) !important;
}

.svc-feature-card:hover .svc-card-link {
    background: transparent !important;
    border-color: var(--svc-teal) !important;
    color: hsl(185, 90%, 75%) !important;
    box-shadow: 0 0 18px var(--svc-teal-glow) !important;
    transform: translateY(-2px);
    gap: 0.8rem;
}

/* ─── Cross-Links Box ────────────────────────────────── */
.cross-links-box {
    background: var(--svc-dark-card);
    border: 1px solid var(--svc-border);
    border-radius: 16px;
    padding: 2rem;
}

.cross-links-box h4 {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.cross-links-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.cross-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: hsla(215, 85%, 52%, 0.1);
    border: 1px solid hsla(215, 85%, 52%, 0.3);
    color: var(--svc-blue-light);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.cross-link-pill:hover {
    background: hsla(215, 85%, 52%, 0.2);
    border-color: var(--svc-blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsla(215, 85%, 52%, 0.3);
}

/* ─── Hero Visual Showcase (reuse from GSA but blue) ── */
.svc-page .hero-visual-showcase {
    position: relative;
}

.svc-page .floating-badge {
    border-color: hsla(215, 85%, 52%, 0.4);
    background: hsla(222, 45%, 11%, 0.92);
}

/* ─── Local SEO Map Placeholder ──────────────────────── */
.geo-map-container {
    background: var(--svc-dark-card);
    border: 1px solid var(--svc-border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.geo-map-container h4 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.geo-map-container p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.geo-service-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    text-align: left;
}

.geo-service-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    background: hsla(215, 85%, 52%, 0.08);
    border: 1px solid hsla(215, 85%, 52%, 0.2);
    border-radius: 10px;
    color: hsl(210, 30%, 90%);
    font-size: 0.88rem;
}

.geo-service-item i {
    color: var(--svc-blue-light);
    flex-shrink: 0;
}

/* ─── Stats Row (for hub pages) ──────────────────────── */
.svc-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin: 2.5rem 0;
    padding: 2rem;
    background: var(--svc-dark-card);
    border: 1px solid var(--svc-border);
    border-radius: 16px;
}

.svc-stat {
    text-align: center;
}

.svc-stat-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--svc-blue-light);
    display: block;
    line-height: 1;
}

.svc-stat-label {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.3rem;
}

.svc-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--svc-border);
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
    .svc-stats-row {
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .svc-stat-num {
        font-size: 1.6rem;
    }

    .svc-stat-divider {
        display: none;
    }
}
