/* ============================================================
   TS FAST AUTO LOGISTICS, LLC — "HOW IT WORKS" STEPS SECTION
   File: assets/css/steps.css
   Purpose: 3-step process with numbered cards + icons
   Depends on: style.css (design tokens)
   ============================================================ */

/* ------------------------------------------------------------
   1. SECTION WRAPPER
   ------------------------------------------------------------ */
.steps-section {
    padding: var(--space-16) 0;
    background-color: var(--color-bg);
}

.steps-inner {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ------------------------------------------------------------
   2. SECTION HEADING
   ------------------------------------------------------------ */
.steps-head {
    text-align: center;
    max-width: 820px;
    margin: 0 auto var(--space-12);
}

.steps-head h2 {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-extrabold);
    color: var(--color-heading);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    margin-bottom: var(--space-4);
}

.steps-head p {
    font-size: var(--fs-md);
    color: var(--color-text-muted);
    line-height: var(--lh-relaxed);
    margin: 0;
}

/* ------------------------------------------------------------
   3. STEPS GRID (3 columns)
   ------------------------------------------------------------ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    position: relative;
}

/* Horizontal connector line between steps (desktop only) */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--color-border) 15%,
            var(--color-border) 85%,
            transparent 100%);
    z-index: 0;
}

/* ------------------------------------------------------------
   4. INDIVIDUAL STEP
   ------------------------------------------------------------ */
.step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-6) var(--space-4);
}

/* Icon circle */
.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-5);
    background-color: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-primary);
    position: relative;
    transition: all var(--transition-base);
}

.step:hover .step-icon {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-icon svg {
    width: 34px;
    height: 34px;
}

/* Number badge on the icon */
.step-number {
    position: absolute;
    top: -6px;
    right: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--color-cta);
    color: var(--color-cta-text);
    border: 3px solid var(--color-bg);
    border-radius: 50%;
    font-size: var(--fs-xs);
    font-weight: var(--fw-extrabold);
    line-height: 1;
}

.step:hover .step-number {
    background-color: var(--color-cta-hover);
}

/* Step title */
.step-title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--color-heading);
    margin-bottom: var(--space-3);
    letter-spacing: var(--ls-tight);
}

/* Step description */
.step-desc {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    line-height: var(--lh-relaxed);
    margin: 0 auto;
    max-width: 320px;
}

/* Small CTA under the description */
.step-cta {
    display: inline-block;
    margin-top: var(--space-4);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.step-cta:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* ------------------------------------------------------------
   5. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 900px) {
    .steps-section {
        padding: var(--space-12) 0;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    /* Hide horizontal connector on mobile */
    .steps-grid::before {
        display: none;
    }

    .steps-head {
        margin-bottom: var(--space-10);
    }

    .steps-head h2 {
        font-size: var(--fs-2xl);
    }
}

@media (max-width: 640px) {

    .step {
        padding: var(--space-4) 0;
    }

    .step-icon {
        width: 68px;
        height: 68px;
    }

    .step-icon svg {
        width: 28px;
        height: 28px;
    }

    .step-title {
        font-size: var(--fs-md);
    }
}