/* ===================================================================
 * Process Section - Complete Fix
 * Fixes all CSS issues in the "How We Work" process steps section
 * ================================================================ */

/* ===================================================================
 * PROCESS GRID LAYOUT
 * ================================================================ */

#how-it-works .process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    align-items: stretch;
}

/* ===================================================================
 * PROCESS STEP CONTAINER
 * ================================================================ */

#how-it-works .process-step {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    
    /* Remove all backgrounds, borders, shadows from container */
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    
    /* Remove padding from container - let card handle it */
    padding: 0 !important;
    margin-bottom: 0 !important;
}

/* ===================================================================
 * PROCESS NUMBER STYLING
 * ================================================================ */

#how-it-works .process-number {
    /* Size and shape */
    width: 72px;
    height: 72px;
    border-radius: 16px;
    flex-shrink: 0;
    
    /* Typography - OVERRIDE transparent text from components.css */
    font-family: "montserrat-extrabold", sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff !important;
    line-height: 1;
    text-align: center;
    
    /* CRITICAL: Override background-clip that makes text transparent */
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: border-box !important;
    
    /* Layout */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Positioning - overlap top-left of card */
    position: absolute;
    top: -20px;
    left: 24px;
    z-index: 2;
    
    /* Ensure text is visible */
    opacity: 1 !important;
    visibility: visible !important;
    
    /* Background - gradient shine */
    background: linear-gradient(135deg,
        #1a1a1a 0%,
        #0d0d0d 100%
    ) !important;
    
    /* Border */
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Shadow */
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    
    /* Transition */
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#how-it-works .process-step:hover .process-number {
    transform: translateY(-4px) rotate(5deg);
    background: linear-gradient(135deg,
        #242424 0%,
        #121212 100%
    ) !important;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ===================================================================
 * PROCESS CARD STYLING
 * ================================================================ */

#how-it-works .process-card {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    
    /* Spacing - add top margin for overlapping number */
    margin-top: 36px;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    
    /* Background - gradient shine */
    background: linear-gradient(135deg,
        #050505 0%,
        #1a1a1a 100%
    ) !important;
    
    /* Border */
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Shadow */
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.12),
        0 4px 8px rgba(255, 255, 255, 0.03),
        0 12px 24px rgba(255, 255, 255, 0.02),
        0 24px 48px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    
    /* Transition */
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#how-it-works .process-card:hover {
    transform: translateY(-6px);
    
    /* Brighter gradient on hover */
    background: linear-gradient(135deg,
        #0a0a0a 0%,
        #242424 100%
    ) !important;
    
    border-color: rgba(255, 255, 255, 0.2);
    
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(255, 255, 255, 0.05),
        0 20px 40px rgba(255, 255, 255, 0.03),
        0 32px 64px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ===================================================================
 * PROCESS CARD CONTENT
 * ================================================================ */

#how-it-works .process-card h3 {
    font-family: "montserrat-bold", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

#how-it-works .process-duration {
    font-family: "montserrat-medium", sans-serif;
    font-size: 0.875rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: block;
}

#how-it-works .process-card p {
    font-family: "montserrat-regular", sans-serif;
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin: 0;
}

#how-it-works .process-card p:not(.process-duration) {
    margin-top: 0;
}

/* ===================================================================
 * MOBILE RESPONSIVE
 * ================================================================ */

@media (max-width: 768px) {
    #how-it-works .process-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    #how-it-works .process-number {
        width: 64px;
        height: 64px;
        font-size: 1.75rem;
    }
    
    #how-it-works .process-card {
        padding: 2.5rem 2rem;
        border-radius: 18px;
    }
    
    #how-it-works .process-card h3 {
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    #how-it-works .process-grid {
        gap: 1.5rem;
    }
    
    #how-it-works .process-step {
        gap: 1.25rem;
    }
    
    #how-it-works .process-number {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        border-radius: 14px;
    }
    
    #how-it-works .process-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    #how-it-works .process-card h3 {
        font-size: 1.25rem;
    }
    
    #how-it-works .process-card p {
        font-size: 0.95rem;
    }
}
