/* ============================================================
   History Intro Section
   ============================================================ */

.history-intro {
    background-color: var(--color-bg-light);
    padding: 80px 120px 64px;
}

.history-intro__inner {
    display: flex;
    gap: 64px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Left column ── */
.history-intro__left {
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex: 0 0 568px;
}

.history-intro__title {
    font-family: var(--font-neo);
    font-size: 48px;
    font-weight: 400;
    line-height: 58px;
    letter-spacing: -1.8px;
    color: var(--color-black);
}

.history-intro__desc {
    font-family: var(--font-inter);
    font-size: 19px;
    font-weight: 400;
    line-height: 30px;
    color: var(--color-text-muted);
}

/* Mobile photo hidden by default */
.history-intro__photo--mobile {
    display: none;
}

/* ── Stat cards ── */
.history-intro__stats {
    display: flex;
    gap: 24px;
}

/* Desktop: icon+value in row 1, label spans full width in row 2 */
.history-intro__stat {
    flex: 1;
    background: var(--color-white);
    border-radius: 4px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    padding: 16px 24px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 16px;
    align-items: center;
}

.history-intro__stat-icon {
    grid-area: 1 / 1;
    background: rgba(0, 105, 62, 0.05);
    border-radius: 12px;
    padding: 0;
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.history-intro__stat-icon img {
    width: 84px;
    height: 84px;
    display: block;
}

.history-intro__stat-value {
    grid-area: 1 / 2;
    font-family: var(--font-neo);
    font-size: 48px;
    font-weight: 400;
    line-height: 58px;
    letter-spacing: -1.8px;
    color: var(--color-black);
}

.history-intro__stat-label {
    grid-area: 2 / 1 / 3 / 3;
    font-family: var(--font-inter);
    font-size: 19px;
    font-weight: 400;
    line-height: 30px;
    color: var(--color-text-muted);
    text-align: center;
}

/* ── Right photo (desktop) ── */
.history-intro__photo--desktop {
    flex: 1;
    max-width: 590px;
    height: 496px;
    border-radius: 4px;
    overflow: hidden;
}

.history-intro__photo--desktop img,
.history-intro__photo--mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Responsive: tablet ── */
@media (max-width: 1170px) {
    .history-intro {
        padding: 64px 40px;
    }

    .history-intro__inner {
        flex-direction: column;
        gap: 48px;
    }

    .history-intro__left {
        flex: none;
        width: 100%;
    }

    .history-intro__title {
        font-size: 36px;
        line-height: 44px;
    }

    .history-intro__photo--desktop {
        max-width: 100%;
        width: 100%;
        height: 320px;
    }
}

/* ── Responsive: mobile ── */
@media (max-width: 640px) {
    .history-intro {
        padding: 32px 24px;
    }

    .history-intro__inner {
        gap: 32px;
    }

    .history-intro__title {
        font-size: 32px;
        line-height: 37px;
        letter-spacing: 0;
    }

    .history-intro__desc-wrap {
        display: flex;
        gap: 16px;
        align-items: stretch;
    }

    .history-intro__desc-wrap::before {
        content: '';
        display: block;
        width: 4px;
        background-color: var(--color-primary);
        flex-shrink: 0;
    }

    .history-intro__desc {
        font-size: 14px;
        line-height: 22px;
    }

    .history-intro__photo--mobile {
        display: block;
        height: 300px;
        border-radius: 4px;
        overflow: hidden;
    }

    .history-intro__photo--desktop {
        display: none;
    }

    .history-intro__stats {
        flex-direction: column;
        gap: 16px;
    }

    /* Mobile: icon spans both rows on left, value+label stack on right */
    .history-intro__stat {
        grid-template-columns: 64px 1fr;
        column-gap: 24px;
        row-gap: 0;
        padding: 16px;
    }

    .history-intro__stat-icon {
        grid-area: 1 / 1 / 3 / 2;
        align-self: center;
        width: 64px;
        height: 64px;
        border-radius: 9px;
        padding: 0;
        overflow: hidden;
    }

    .history-intro__stat-icon img {
        width: 64px;
        height: 64px;
    }

    .history-intro__stat-value {
        grid-area: 1 / 2;
        font-size: 36px;
        line-height: 42px;
        letter-spacing: -1px;
    }

    .history-intro__stat-label {
        grid-area: 2 / 2;
        font-size: 17px;
        line-height: 23px;
        text-align: left;
    }
}


