﻿/* ===== GROUP STRUCTURE ===== */
.org-chart {
    background: var(--white);
}

.org-wrap {
    max-width: 860px;
    margin: 48px auto 0;
}

.org-level {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

.org-box {
    padding: 16px 28px;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 700;
    position: relative;
}

    .org-box.root {
        background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
        color: var(--white);
        font-size: 1.1rem;
        box-shadow: 0 6px 24px rgba(13,59,46,.25);
    }

        .org-box.root .en {
            font-size: .72rem;
            color: rgba(255,255,255,.65);
            font-weight: 400;
            letter-spacing: .06em;
            margin-top: 4px;
        }

.org-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 48px;
    position: relative;
}

    .org-connector::before {
        content: '';
        width: 2px;
        flex: 1;
        background: linear-gradient(to bottom, var(--green-mid), var(--gold));
    }

.org-children {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    position: relative;
}

    .org-children::before {
        content: '';
        position: absolute;
        top: 0;
        left: calc(25% + 12px);
        right: calc(25% + 12px);
        height: 2px;
        background: linear-gradient(90deg, var(--green-mid), var(--gold));
    }

.org-child-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .org-child-wrap::before {
        content: '';
        width: 2px;
        height: 28px;
        background: var(--gold);
    }

.org-box.child {
    width: 100%;
    background: var(--off-white);
    border: 2px solid var(--green-light);
    color: var(--text-dark);
}

    .org-box.child .role {
        font-size: .75rem;
        color: var(--gold);
        font-weight: 600;
        margin-bottom: 4px;
    }

    .org-box.child .name {
        font-size: 1rem;
        font-weight: 800;
    }

    .org-box.child .sub {
        font-size: .78rem;
        color: var(--text-light);
        margin-top: 4px;
        font-weight: 400;
        line-height: 1.5;
    }

/* ===== FACTORY PHOTOS ===== */
.factory {
    background: var(--off-white);
}

.factory-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 56px;
}

.factory-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-lg);
}

.factory-text h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.factory-text p {
    font-size: .9rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.cert-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--text-dark);
}

    .cert-badge .ico {
        font-size: 1.2rem;
    }

.factory-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 16px;
}

    .factory-gallery .gal-item {
        border-radius: var(--radius);
        overflow: hidden;
    }

        .factory-gallery .gal-item.wide {
            grid-column: 1/3;
        }

        .factory-gallery .gal-item img {
            transition: transform .5s ease;
            cursor: zoom-in;
        }

        .factory-gallery .gal-item:hover img {
            transform: scale(1.06);
        }

/* ===== MILESTONES ===== */
.milestones {
    background: var(--white);
}

.ms-list {
    position: relative;
    margin-top: 48px;
    padding-left: 48px;
}

    .ms-list::before {
        content: '';
        position: absolute;
        left: 15px;
        top: 8px;
        bottom: 8px;
        width: 3px;
        background: linear-gradient(to bottom, var(--green-bright), var(--gold), var(--green-bright));
        border-radius: 2px;
    }

.ms-item {
    position: relative;
    margin-bottom: 36px;
}

    .ms-item::before {
        content: '';
        position: absolute;
        left: -36px;
        top: 8px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--green-bright), var(--gold));
        border: 3px solid var(--white);
        box-shadow: 0 0 0 3px rgba(62,171,106,.2);
    }

.ms-year {
    display: inline-block;
    background: var(--green-dark);
    color: var(--gold-light);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .06em;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.ms-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.ms-desc {
    font-size: .85rem;
    color: var(--text-light);
    margin-top: 4px;
    line-height: 1.7;
}

/* ===== STATS STRIP ===== */
.stats-strip {
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
    padding: 56px 0;
}

.stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

    .stat-item .big {
        font-size: 2.4rem;
        font-weight: 900;
        background: linear-gradient(135deg, var(--gold-light), var(--white));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        line-height: 1;
    }

    .stat-item .lbl {
        font-size: .82rem;
        color: rgba(255,255,255,.6);
        margin-top: 8px;
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .factory-intro-grid {
        grid-template-columns: 1fr;
    }

    .factory-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

        .factory-gallery .gal-item.wide {
            grid-column: 1/3;
        }

    .org-children {
        grid-template-columns: 1fr;
    }

        .org-children::before {
            display: none;
        }

    .stats-inner {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 640px) {
    .factory-gallery {
        grid-template-columns: 1fr;
    }

        .factory-gallery .gal-item.wide {
            grid-column: 1/2;
        }

    .stats-inner {
        grid-template-columns: repeat(2,1fr);
    }

    .ms-list {
        padding-left: 32px;
    }
}
