/* ============================================================
   MORETECH -- PROCESS FLOW
   First-party markup + CSS (see partials/process_flow.php's own header
   for the full rationale) -- not derived from the shared platform's own
   03-sections-home.css. Every recurring visual value is a real --mt-*
   token.
   ============================================================ */

.mt-process {
    padding: var(--mt-section-py) 0;
    background: var(--mt-surface-sunken);
    font-family: var(--mt-font-sans);
}

.mt-process__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--mt-space-10);
}

.mt-process__eyebrow {
    display: inline-block;
    font-size: var(--mt-text-xs);
    font-weight: var(--mt-weight-bold);
    letter-spacing: var(--mt-tracking-wider);
    text-transform: uppercase;
    color: var(--mt-accent);
    margin-bottom: var(--mt-space-3);
}

.mt-process__title {
    font-size: var(--mt-text-2xl);
    font-weight: var(--mt-weight-black);
    color: var(--mt-text-strong);
    margin: 0 0 var(--mt-space-3);
}

.mt-process__subtitle {
    font-size: var(--mt-text-md);
    color: var(--mt-text-muted);
    margin: 0;
}

.mt-process__number {
    display: block;
    font-size: var(--mt-text-sm);
    font-weight: var(--mt-weight-bold);
    color: var(--mt-text-subtle);
    letter-spacing: var(--mt-tracking-wide);
    margin-bottom: var(--mt-space-2);
}

.mt-process__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--mt-radius-full);
    background: var(--mt-brand-primary-soft);
    color: var(--mt-brand-primary);
    font-size: var(--mt-text-lg);
    margin-bottom: var(--mt-space-3);
}

.mt-process__step-title {
    font-size: var(--mt-text-md);
    font-weight: var(--mt-weight-bold);
    color: var(--mt-text-strong);
    margin: 0 0 var(--mt-space-2);
}

.mt-process__step-desc {
    font-size: var(--mt-text-sm);
    color: var(--mt-text-muted);
    line-height: var(--mt-leading-normal);
    margin: 0;
}

/* ------------------------------------------------------------
   Composition: scroll -- horizontal scrollable card track with
   arrow nav + drag, the real, already-proven interaction.
   ------------------------------------------------------------ */

.mt-process__wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--mt-space-4);
}

.mt-process__scroll {
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    cursor: grab;
}

.mt-process__scroll::-webkit-scrollbar {
    display: none;
}

.mt-process__scroll:active {
    cursor: grabbing;
}

.mt-process__track {
    display: flex;
    gap: var(--mt-space-6);
    list-style: none;
    margin: 0;
    padding: var(--mt-space-2) 0;
}

.mt-process__track .mt-process__step {
    flex: 0 0 260px;
    scroll-snap-align: start;
    padding: var(--mt-space-6);
    border: 1px solid var(--mt-border-light);
    border-radius: var(--mt-radius-lg);
    background: var(--mt-surface-card);
    box-shadow: var(--mt-shadow-xs);
}

.mt-process__nav {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--mt-radius-full);
    border: 1px solid var(--mt-border-light);
    background: var(--mt-surface-card);
    color: var(--mt-text-strong);
    cursor: pointer;
    transition: background var(--mt-duration-normal) var(--mt-ease-default);
}

.mt-process__nav:hover {
    background: var(--mt-brand-primary-soft);
}

@media (max-width: 767px) {
    .mt-process__nav {
        display: none;
    }
}

/* ------------------------------------------------------------
   Composition: vertical -- a connected timeline, steps stacked
   top to bottom. Well suited to fewer steps or a narrative
   reading style.
   ------------------------------------------------------------ */

.mt-process--vertical .mt-process__timeline {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 640px;
    position: relative;
}

.mt-process--vertical .mt-process__step {
    display: flex;
    gap: var(--mt-space-5);
    position: relative;
    padding-bottom: var(--mt-space-8);
}

.mt-process--vertical .mt-process__step:last-child {
    padding-bottom: 0;
}

.mt-process--vertical .mt-process__step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: 0;
    width: 2px;
    background: var(--mt-border-light);
}

.mt-process--vertical .mt-process__icon {
    margin-bottom: 0;
    flex-shrink: 0;
    z-index: 1;
}

.mt-process--vertical .mt-process__body {
    flex: 1;
    min-width: 0;
}

.mt-process--vertical .mt-process__number {
    display: inline;
    margin-bottom: 0;
    margin-right: var(--mt-space-2);
}
