/* =========================================================
   ABOUT TIMELINE BLOCK — BEM
   White bg | sticky header LEFT | milestone rail RIGHT
   ========================================================= */

.smartfix-about-timeline {
    background: var(--sf-bg-white);
    padding: var(--sf-padding-section) 80px;
}

.smartfix-about-timeline__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}

/* ── LEFT: header ── */
.smartfix-about-timeline__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    /* Offset clears the sticky site header so the title never tucks
       underneath it while the milestones scroll past. */
    position: sticky;
    top: 120px;
}

.smartfix-about-timeline__headline {
    font-family: var(--sf-font-heading);
    font-weight: 700;
    font-size: var(--sf-fs-h2);
    line-height: 1.12;
    color: var(--sf-text-dark);
    margin: 0;
}

.smartfix-about-timeline__headline .sf-highlight {
    color: var(--sf-color-primary);
}

.smartfix-about-timeline__sub {
    font-family: var(--sf-font-body);
    font-size: var(--sf-fs-body);
    line-height: var(--sf-lh-body);
    color: var(--sf-text-muted);
    margin: 0;
}

.smartfix-about-timeline__sub p {
    margin: 0;
}

/* ── RIGHT: milestone rail ── */
.smartfix-about-timeline__list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

/* The rail itself — a 1px line the markers sit on */
.smartfix-about-timeline__list::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 7px;
    width: 1px;
    background: var(--sf-border-color);
}

.smartfix-about-timeline__item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 40px;
}

.smartfix-about-timeline__item:last-child {
    padding-bottom: 0;
}

/* Marker dot */
.smartfix-about-timeline__item::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--sf-bg-white);
    border: 3px solid var(--sf-color-primary);
    z-index: 1;
}

.smartfix-about-timeline__year {
    display: inline-block;
    font-family: var(--sf-font-heading);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sf-color-primary);
    margin-bottom: 8px;
}

.smartfix-about-timeline__item-title {
    font-family: var(--sf-font-heading);
    font-weight: 700;
    font-size: var(--sf-fs-h4);
    color: var(--sf-text-dark);
    margin: 0 0 8px;
}

.smartfix-about-timeline__item-desc {
    font-family: var(--sf-font-body);
    font-size: var(--sf-fs-body);
    line-height: var(--sf-lh-body);
    color: var(--sf-text-muted);
    margin: 0;
}

.smartfix-about-timeline__item-desc p {
    margin: 0;
}

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

@media (max-width: 1280px) {
    .smartfix-about-timeline__headline {
        font-size: clamp(30px, 4vw, var(--sf-fs-h2));
    }
}

@media (max-width: 1024px) {
    .smartfix-about-timeline {
        padding: var(--sf-padding-section) 48px;
    }

    .smartfix-about-timeline__inner {
        gap: 40px;
    }
}

@media (max-width: 834px) {
    .smartfix-about-timeline {
        padding: 48px 20px;
    }

    .smartfix-about-timeline__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Sticky makes no sense once the header sits above the rail
       rather than beside it. */
    .smartfix-about-timeline__header {
        position: static;
    }

    .smartfix-about-timeline__headline {
        font-size: 26px;
    }

    .smartfix-about-timeline__item {
        padding-left: 32px;
        padding-bottom: 28px;
    }
}

@media (max-width: 375px) {
    .smartfix-about-timeline {
        padding: 40px 16px;
    }
}
