/* ==========================================================
   JT MAISON — Process Widget
   ========================================================== */

.jtm-process {
    width: 100%;
    margin: 0 auto;
    padding: 100px 10px;
    background: var(--jtm-white);
    box-sizing: border-box;
}

.jtm-process__inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Background Grid Lines */
.jtm-process__lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    pointer-events: none;
    z-index: 1;
}

.jtm-process__lines .line {
    border-right: 1px solid rgba(0,0,0,0.06); /* Very faint gray line */
}

.jtm-process__lines .line:last-child {
    border-right: none;
}

/* Content Grid */
.jtm-process__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
}

/* Header (Col 1) */
.jtm-process__header {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 120px;
}

.jtm-process__subtitle {
    font-family: var(--jtm-font-ui);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--jtm-dark);
    text-transform: uppercase;
    margin: 0 0 16px 0;
    font-weight: 500;
}

.jtm-process__title {
    font-family: var(--jtm-font-ui);
    font-size: 32px;
    font-weight: bold;
    color: var(--jtm-dark);
    margin: 0;
}

/* Steps */
.jtm-process__step {
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.jtm-process__step-num {
    font-family: var(--jtm-font-ui);
    font-size: 18px;
    letter-spacing: 0.05em;
    color: rgba(0,0,0,0.6);
    margin-bottom: 24px;
}

.jtm-process__step-name {
    font-family: var(--jtm-font-ui);
    font-size: 32px;
    font-weight: bold;
    color: var(--jtm-dark);
    margin: 0 0 16px 0;
}

.jtm-process__step-desc {
    font-family: var(--jtm-font-ui);
    font-size: 18px;
    color: rgba(0,0,0,0.5);
    line-height: 1.6;
    margin: 0;
}

/* Positioning the 4 steps on Desktop */
.jtm-process__step--1 { grid-column: 1 / 2; grid-row: 2 / 3; }
.jtm-process__step--2 { grid-column: 2 / 3; grid-row: 2 / 3; padding-top: 140px; }
.jtm-process__step--3 { grid-column: 3 / 4; grid-row: 2 / 3; }
.jtm-process__step--4 { grid-column: 4 / 5; grid-row: 2 / 3; padding-top: 140px; padding-right: 0; }

/* Responsive Mobile */
@media (max-width: 768px) {
    .jtm-process {
        padding: 60px 24px;
    }
    
    .jtm-process__lines {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .jtm-process__lines .line:nth-child(n+3) {
        display: none; /* Only show 2 lines to create a central divider */
    }
    
    .jtm-process__lines .line:nth-child(2) {
        border-right: none; /* Remove the line on the far right edge */
    }
    
    .jtm-process__grid {
        display: flex;
        flex-direction: column;
    }
    
    .jtm-process__header {
        width: 100%;
        margin-bottom: 60px;
        padding-right: 0;
        background: var(--jtm-white); /* Hides the central line behind the text */
        box-sizing: border-box;
    }
    
    .jtm-process__step {
        width: 50%;
        box-sizing: border-box;
        margin-bottom: 40px;
        padding-top: 0; /* Reset desktop padding */
    }
    
    /* Left side items (Step 1, Step 3 -> which are DOM children 2 and 4 -> EVEN) */
    .jtm-process__step:nth-child(even) {
        align-self: flex-start;
        padding-right: 24px;
        padding-left: 0;
    }
    
    /* Right side items (Step 2, Step 4 -> which are DOM children 3 and 5 -> ODD) */
    .jtm-process__step:nth-child(odd) {
        align-self: flex-end;
        padding-left: 24px;
        padding-right: 0;
    }
}
