/* ==========================================================================
   Solutions — Process Automation page-specific styles
   Uses tokens from css/brand-v1.6.css. Master-brand / cross-platform page
   (lives under Solutions in nav), so the page accent stays Navy + Teal.
   Indigo and Coral appear only on the Prime/Pulse platform comparison cards,
   matching the convention used on about.html for the platform picker cards.
   Dual-platform split is grounded in real docs: Prime's Business Operations
   layer lists Workflow Automation/Approval Management/Cross Application
   Integration/Process Standardisation; Pulse repeats the same configurable-
   workflows/approval-processes/automated-notifications/audit-trails pattern
   across every module (same grounding used for ai-automation.html).
   ========================================================================== */

/* ---- Hero ---- */

/* ---- Hero visual: workflow with an auto-badge (2026-08-17, Track B
   Cluster A; frame+fill fix 2026-08-17) — 3 connected nodes, the middle
   one carrying a small lightning "auto" badge breaking its corner,
   standing for "configurable workflows, approvals, and notifications"
   (this page's own subtitle). Platform-wide framing (few, larger nodes) —
   deliberately distinct from AI Automation's dense 3x3 module-coverage
   grid, which is about breadth across every Pulse module specifically,
   not a single generic workflow.

   Frame+fill fix: added the missing enclosing .spahv-frame (matching the
   site's established hero-visual convention — see it-consulting.css's
   comment for the full writeup); the 3 nodes were only ~58px tall in a
   ~230px-tall frame, so enlarged them and added short labels underneath
   (Trigger/Automate/Notify, grounded in the page's own subtitle) to use
   real vertical space instead of empty padding. ---- */

.spahv-fallback {
    position: absolute;
    inset: 0;
}

.spahv-frame {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    backdrop-filter: blur(6px);
}

.spahv-flow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
}

.spahv-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.spahv-step .spahv-arrow {
    margin-top: 30px;
}

.spahv-node {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--da-navy-700);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: color-mix(in srgb, var(--da-white) 70%, transparent);
}

.spahv-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--da-white) 70%, transparent);
    white-space: nowrap;
}

.spahv-arrow {
    font-size: 1.2rem;
    color: color-mix(in srgb, var(--da-white) 40%, transparent);
}

.spahv-node--auto {
    border-color: var(--accent, var(--da-teal-400));
    color: var(--accent, var(--da-teal-400));
}

.spahv-auto-badge {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent, var(--da-teal-600));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--da-white);
    box-shadow: 0 4px 10px rgba(8, 25, 47, 0.35);
}

/* ---- Shared section label / title pattern ---- */

/* ---- The Challenge (intro) ---- */

.spa-intro {
    padding: 70px 0 20px;
    background: var(--da-white);
}

/* ---- Before / After visual (sits inside The Challenge section) ---- */

/* ---- What Changes: 4-up feature cards ---- */

.spa-changes {
    padding: 60px 0;
    background: var(--da-gray-100);
}

.spa-changes-text {
    font-size: 1.05rem;
    color: var(--da-gray-500);
    line-height: 1.7;
    width: 100%;
    margin-bottom: 2.5rem;
}

.spa-change-text {
    font-size: 0.92rem;
    color: var(--da-gray-500);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ---- Across Both Platforms: Prime = Indigo, Pulse = Coral ---- */

.spa-platforms {
    padding: 60px 0;
    background: var(--da-white);
}

.spa-platform-card-text {
    font-size: 1rem;
    color: var(--da-gray-500);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* ---- Outcomes: chip row ---- */

.spa-outcomes {
    padding: 20px 0 70px;
    background: var(--da-white);
}

/* ---- Explore Other Solutions ---- */

.spa-explore {
    padding: 20px 0 80px;
    background: var(--da-gray-100);
}

/* ---- Closing CTA band ---- */

.spa-cta-band {
    background: var(--da-navy-700);
    padding: 60px 0;
}

.spa-cta-content {
    text-align: center;
    color: var(--da-white);
}

/* ---- Responsive ---- */

@media (max-width: 991.98px) {
    .spa-hero {
        padding: 130px 0 60px;
    }

    .spa-hero-title {
        font-size: 2.1rem;
    }

    .spa-hero-visual {
        max-width: 380px;
        margin-top: 1rem;
    }

    .spa-section-title {
        font-size: 1.65rem;
    }
}

@media (max-width: 575.98px) {
    .spa-hero-title {
        font-size: 1.75rem;
    }

    .spa-section-title {
        font-size: 1.5rem;
    }

    .spa-cta-title {
        font-size: 1.4rem;
    }

    .spa-baf {
        flex-direction: column;
    }

    .spa-baf-arrow {
        transform: rotate(90deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .spa-change-card,
    .spa-platform-card,
    .spa-explore-card,
    .spa-cta-actions a {
        transition: none;
    }

    .spa-change-card:hover,
    .spa-platform-card:hover,
    .spa-explore-card:hover,
    .spa-cta-actions a:hover {
        transform: none;
    }
}
