/* ============================================================
   process.css — "Our Process" page
   (Shared inner-page styles are in assets/css/inner.css.)
   ============================================================ */

/* Banner background image for this page. */
.page-banner {
    background-image: url('../images/banner/process.jpg');
}

/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.proc-section { padding: 72px 0; }

.proc-track { position: relative; margin-top: 10px; }

/* ---- the spine + scroll-fill ---- */
.proc-line {
    position: absolute; top: 6px; bottom: 6px; left: 21px;
    width: 2px; background: var(--card-border); border-radius: 2px;
}
.proc-line-fill {
    position: absolute; top: 0; left: 0; width: 100%; height: 0;
    background: linear-gradient(var(--cyan), var(--blue));
    box-shadow: 0 0 12px var(--cyan-glow);
    border-radius: 2px;
    transition: height .12s linear;
}

.proc-steps { position: relative; }

/* ---- each step ---- */
.proc-step {
    position: relative; width: 100%; box-sizing: border-box;
    padding-left: 60px; margin-bottom: 34px;
    transition: opacity .6s ease, transform .6s ease;
}
.proc-step:not(.revealed) { opacity: 0; transform: translateY(24px); }
.proc-step.revealed { opacity: 1; transform: none; }

/* node on the spine */
.proc-node {
    position: absolute; top: 0; left: -2px;
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--card-bg); border: 2px solid var(--card-border);
    color: var(--text-muted); font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 14px;
    z-index: 2; transition: color .35s ease, border-color .35s ease, background .35s ease, box-shadow .35s ease;
}
.proc-step.is-active .proc-node {
    border-color: var(--cyan); color: #fff;
    background: linear-gradient(140deg, var(--cyan), var(--blue));
    box-shadow: 0 0 0 6px var(--cyan-glow), 0 8px 22px var(--cyan-glow);
}

/* card */
.proc-card {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 16px; padding: 20px 22px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    transition: border-color .35s ease, box-shadow .35s ease;
}
.proc-step.is-active .proc-card {
    border-color: var(--cyan-border);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32), 0 0 24px var(--cyan-glow);
}
.proc-stage {
    display: inline-block; font-family: 'Manrope', sans-serif; font-weight: 700;
    font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--cyan); margin-bottom: 10px;
}
.proc-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.proc-icon {
    width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(34, 211, 238, 0.10); color: var(--cyan);
}
.proc-icon svg { width: 22px; height: 22px; }
.proc-title {
    font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1.25rem;
    color: var(--text-main); text-transform: uppercase; letter-spacing: 0.01em; margin: 0;
}
.proc-art {
    margin: 4px 0 14px; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--card-border);
    background: linear-gradient(160deg, var(--card-elevated), var(--bg-secondary));
}
.proc-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.proc-desc { color: var(--text-secondary); font-size: 14.5px; line-height: 1.7; margin: 0 0 14px; }
.proc-list {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 18px;
}
.proc-list li { position: relative; padding-left: 20px; font-size: 13.5px; color: var(--text-secondary); }
.proc-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }

/* illustration scene classes (theme-aware) */
.p-card   { fill: var(--card-bg); stroke: var(--card-border); stroke-width: 1.5; }
.p-line   { stroke: var(--card-border); fill: none; stroke-width: 1.5; }
.p-muted  { fill: var(--card-border); }
.p-cyan   { fill: #22d3ee; }
.p-blue   { fill: #3b82f6; }
.p-cyan-s { stroke: #22d3ee; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   DESKTOP: centered spine + alternating (zig-zag) cards
   ============================================================ */
@media (min-width: 900px) {
    .proc-line { left: 50%; transform: translateX(-50%); }

    .proc-step { width: 50%; padding-left: 0; margin-bottom: 52px; }
    .proc-step.left  { padding-right: 48px; }
    .proc-step.right { margin-left: 50%; padding-left: 48px; }

    /* slide in from the side (staggered) */
    .proc-step.left:not(.revealed)  { transform: translate(-30px, 18px); }
    .proc-step.right:not(.revealed) { transform: translate(30px, 18px); }

    .proc-node { top: 2px; }
    .proc-step.left  .proc-node { left: auto; right: -23px; }
    .proc-step.right .proc-node { left: -23px; }

    /* connector line from the node to the card */
    .proc-step.left .proc-node::before,
    .proc-step.right .proc-node::before {
        content: ''; position: absolute; top: 50%; height: 2px; width: 26px;
        background: var(--card-border); transform: translateY(-50%);
        transition: background .35s ease;
    }
    .proc-step.left .proc-node::before  { right: 100%; }
    .proc-step.right .proc-node::before { left: 100%; }
    .proc-step.is-active .proc-node::before { background: var(--cyan); }

    .proc-step.left  .proc-card { margin-left: auto; max-width: 460px; }
    .proc-step.right .proc-card { max-width: 460px; }
}

@media (prefers-reduced-motion: reduce) {
    .proc-step { opacity: 1 !important; transform: none !important; transition: none; }
    .proc-line-fill { transition: none; }
}
