/* ==========================================================================
   about.css — 회사소개 전용
   A02 소개 · 인사말 / A03 숫자 / A04 일하는 방식 / A05 회사 개요 / A05-2 조직도 / A06 연혁
   (A01 서브 상단 · A07 CTA는 layout.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   A02 소개 · 인사말
   - 모바일: 사진 → 제목 · 소개 → 인사말 (한 줄씩)
   - 태블릿: 위 [사진 | 제목 · 소개], 아래 인사말 전체 너비
   - PC: 왼쪽 사진 / 오른쪽 제목 · 소개 → 인사말
   -------------------------------------------------------------------------- */
.about-intro .intro-inner {
    display: grid;
    grid-template-areas:
        "photo"
        "text"
        "message";
    gap: 24px;
}

.about-intro .photo {
    grid-area: photo;
    width: 100%;
    aspect-ratio: 2 / 1;
    border-radius: var(--radius);
    object-fit: cover;
}

.about-intro .text {
    grid-area: text;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.about-intro .title {
    font-size: var(--fs-section);
    line-height: 1.35;
    letter-spacing: -0.03em;
}

.about-intro .title span {
    display: inline-block;
}

.about-intro .desc {
    font-size: var(--fs-body);
    line-height: 1.8;
}

.about-intro .message {
    grid-area: message;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-intro .greeting {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 22px;
    border-radius: var(--radius);
    background: var(--bg-warm);
    color: var(--text-body); /* 긴 인사말이라 본문 색 */
    line-height: 1.8;
}

.about-intro .greeting p {
    margin: 0;
}

.about-intro .greeting .lead {
    color: var(--text-title);
    font-size: 1.0625rem; /* 17px */
    font-weight: 700;
    line-height: 1.6;
}

.about-intro .greeting span {
    display: inline-block; /* 덩어리 중간에서 줄바꿈하지 않게 */
}

.about-intro .greeting .point {
    color: var(--color-primary);
    font-weight: 700;
}

.about-intro .sign {
    color: var(--text-title);
}

.about-intro .sign strong {
    margin-left: 4px;
    font-size: 1.1875rem; /* 19px */
}

/* 태블릿: 사진은 제목 · 소개 높이에 맞춰 늘어남 */
@media (min-width: 768px) {
    .about-intro .intro-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "photo text"
            "message message";
        column-gap: 32px;
        row-gap: 32px;
    }

    .about-intro .photo {
        contain: size; /* 사진 원래 비율이 행 높이를 키우지 않게 → 글 높이에 맞춰 늘어남 */
        height: auto;
        min-height: 240px;
        align-self: stretch;
        aspect-ratio: auto;
    }

    .about-intro .text {
        align-self: center;
        margin-top: 0;
    }

    .about-intro .desc {
        font-size: var(--fs-body-lg);
    }

    .about-intro .greeting {
        padding: 24px 28px;
    }
}

/* PC: 사진이 두 줄을 차지, 오른쪽에 제목 · 소개 → 인사말
   (예외: 이 섹션만 1280px부터 — 1024~1279px은 글 칸이 좁아 태블릿 배치 유지) */
@media (min-width: 1280px) {
    .about-intro .intro-inner {
        grid-template-areas:
            "photo text"
            "photo message";
        grid-template-rows: auto auto;
        column-gap: 64px;
        row-gap: 24px;
        align-content: center;
    }

    .about-intro .photo {
        contain: none;
        height: 420px;
        min-height: 0;
        /* align-self: center; */
        position: sticky; /* 인사말이 길어서 사진이 따라 내려옴 (관리자 막대 보정은 style.css) */
        top: calc(var(--header-h) + 24px);
        align-self: start;
    }

    .about-intro .text {
        gap: 24px;
        align-self: end;
    }

    .about-intro .message {
        gap: 24px;
        align-self: start;
    }
}

/* --------------------------------------------------------------------------
   A03 숫자: 흰 카드 2열 → PC 4열 (섹션 여백은 다른 섹션보다 좁게)
   -------------------------------------------------------------------------- */
.about-stats {
    padding-block: 48px;
}

.about-stats .stat-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.about-stats .stat-list > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px 12px;
    border-radius: var(--radius);
    background: var(--bg-white);
    text-align: center;
}

.about-stats dt {
    color: var(--text-sub);
    font-size: 0.875rem; /* 14px */
    line-height: 1.5;
}

.about-stats dd {
    margin: 0;
    color: var(--color-primary);
    font-size: 2rem; /* 32px */
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.about-stats dd small {
    font-size: 0.5em;
    font-weight: 700;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .about-stats {
        padding-block: 64px;
    }

    .about-stats .stat-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }

    .about-stats .stat-list > div {
        padding: 28px 12px;
    }

    .about-stats dd {
        font-size: 2.25rem; /* 36px */
    }
}

@media (min-width: 1024px) {
    .about-stats {
        padding-block: 88px;
    }

    .about-stats .stat-list {
        gap: 20px;
    }

    .about-stats .stat-list > div {
        gap: 8px;
        padding: 36px 20px;
    }

    .about-stats dt {
        font-size: var(--fs-small);
    }

    .about-stats dd {
        font-size: 2.75rem; /* 44px */
    }
}

/* --------------------------------------------------------------------------
   A04 일하는 방식: 선 아이콘 카드 1열 → 3열
   -------------------------------------------------------------------------- */
.about-way .way-list {
    display: grid;
    gap: 12px;
}

.about-way .way-list > li {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.about-way .ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 4px;
    border-radius: 50%;
    background: var(--bg-primary-light);
    color: var(--color-primary);
}

.about-way .ico .icon {
    stroke-width: 1.7;
}

.about-way .title {
    font-size: var(--fs-card);
}

.about-way .desc {
    color: var(--text-sub);
    line-height: 1.75;
}

@media (min-width: 768px) {
    .about-way .way-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .about-way .way-list > li {
        padding: 32px 24px;
    }
}

@media (min-width: 1024px) {
    .about-way .way-list {
        gap: 20px;
    }

    .about-way .way-list > li {
        gap: 16px;
        padding: 40px 32px;
    }

    .about-way .ico {
        margin-bottom: 0;
    }

    .about-way .title {
        font-size: 1.375rem; /* 22px */
    }
}

/* --------------------------------------------------------------------------
   A05 회사 개요 표 (최대 너비 1000px, 위쪽 남색 선)
   -------------------------------------------------------------------------- */
.about-overview .overview-table {
    width: 100%;
    max-width: 1000px;
    margin-inline: auto;
    border-top: 2px solid var(--color-primary);
    background: var(--bg-white);
    font-size: var(--fs-small);
    line-height: 1.6;
}

.about-overview th,
.about-overview td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.about-overview th {
    width: 7.5rem;
    background: #fbfaf8;
    color: var(--text-title);
    font-weight: 600;
}

.about-overview td span {
    display: inline-block; /* 주소 · 연락처가 어색하게 끊기지 않게 */
}

.about-overview .contact-row {
    display: block;
}

/* 연락처: 모바일은 한 줄에 하나 → 768px~ 가운뎃점으로 이어서 */
.about-overview .contact-row > span {
    display: block;
}

.about-overview td a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

@media (min-width: 768px) {
    .about-overview .overview-table {
        font-size: var(--fs-body);
    }

    .about-overview th,
    .about-overview td {
        padding: 18px 24px;
    }

    .about-overview th {
        width: 10rem;
    }

    .about-overview .contact-row > span {
        display: inline-block;
    }

    .about-overview .contact-row > span + span::before {
        content: "·";
        margin: 0 6px;
    }
}

@media (min-width: 1024px) {
    .about-overview th,
    .about-overview td {
        padding: 20px 28px;
    }

    .about-overview th {
        width: 200px;
    }
}

/* --------------------------------------------------------------------------
   A05-2 조직도 (2026.11 조직도 PDF 기준, 팀별 직급 사다리는 아래 직급 체계 한 줄로)
   - 대표이사 → 24시간 운영 체계 → 팀 3개, 연결선은 CSS
   - 모바일: 팀 카드 세로로 쌓기 (가운데 세로선)
   - 768px~: 팀 3개 가로 + 가로 연결선
   -------------------------------------------------------------------------- */
.about-org .org-chart {
    --org-line: #aebbc7;  /* 연결선 (장식) */
    --org-v: 28px;        /* 세로 연결선 길이 */
    --org-gap: 20px;      /* 768px~ 팀 카드 사이 */

    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin-inline: auto;
}

.about-org .org-ceo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 200px;
    padding: 16px 32px;
    border-radius: var(--radius);
    background: var(--color-primary-dark);
    color: var(--text-on-dark);
    text-align: center;
}

.about-org .org-ceo strong {
    font-size: 1.25rem; /* 20px */
    font-weight: 800;
}

.about-org .org-ceo span {
    color: var(--text-on-dark-sub);
    font-size: var(--fs-small);
    letter-spacing: 0.06em;
}

.about-org .org-system {
    position: relative;
    margin-top: var(--org-v);
    padding: 8px 24px;
    border: 1px solid var(--color-primary);
    border-radius: 999px;
    background: var(--bg-primary-light);
    color: var(--color-primary);
    font-size: var(--fs-small);
    font-weight: 700;
}

/* 대표이사 → 운영 체계 세로선 */
.about-org .org-system::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 1px);
    left: 50%;
    width: 2px;
    height: var(--org-v);
    margin-left: -1px;
    background: var(--org-line);
}

.about-org .org-teams {
    position: relative;
    display: grid;
    gap: var(--org-v);
    width: 100%;
    max-width: 480px;
    margin-top: var(--org-v);
}

.about-org .org-team {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 20px 24px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--color-primary);
    border-radius: var(--radius);
    background: var(--bg-white);
    text-align: center;
}

/* 위(운영 체계 · 앞 카드)에서 내려오는 세로선 */
.about-org .org-team::before {
    content: "";
    position: absolute;
    top: calc(-3px - var(--org-v)); /* 3px = 카드 위 테두리 */
    left: 50%;
    width: 2px;
    height: var(--org-v);
    margin-left: -1px;
    background: var(--org-line);
}

.about-org .org-team .name {
    color: var(--text-title);
    font-size: 1.25rem; /* 20px */
    font-weight: 800;
}

.about-org .org-team .desc {
    color: var(--text-sub);
    font-size: var(--fs-small);
    line-height: 1.6;
}

.about-org .org-team .desc span {
    display: inline-block; /* 업무 이름 중간에서 줄바꿈하지 않게 */
}

.about-org .org-team .lead {
    margin-top: 4px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--bg-primary-light);
    color: var(--color-primary);
    font-size: 0.875rem; /* 14px */
    font-weight: 700;
}

/* 직급 · 보고 체계 */
.about-org .org-notes {
    display: grid;
    gap: 14px;
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 20px 22px;
    border-radius: var(--radius);
    background: var(--bg-warm);
}

.about-org .org-notes > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.about-org .org-notes dt {
    color: var(--text-title);
    font-size: var(--fs-small);
    font-weight: 700;
}

.about-org .org-notes dd {
    margin: 0;
}

.about-org .flow {
    display: flex;
    flex-wrap: wrap;
    row-gap: 4px;
    color: var(--text-body);
    font-size: var(--fs-small);
}

.about-org .flow li + li::before {
    content: "→";
    content: "→" / "";
    margin: 0 8px;
    color: var(--text-sub);
}

@media (min-width: 768px) {
    .about-org .org-teams {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--org-gap);
        max-width: none;
        margin-top: calc(var(--org-v) * 2);
    }

    /* 가로 연결선: 첫 카드 가운데 ~ 마지막 카드 가운데 */
    .about-org .org-teams::before {
        content: "";
        position: absolute;
        top: calc(-1 * var(--org-v) - 3px);
        right: calc((100% - var(--org-gap) * 2) / 6);
        left: calc((100% - var(--org-gap) * 2) / 6);
        height: 2px;
        background: var(--org-line);
    }

    /* 운영 체계 → 가로선 세로선 */
    .about-org .org-teams::after {
        content: "";
        position: absolute;
        top: calc(-2 * var(--org-v));
        left: 50%;
        width: 2px;
        height: calc(var(--org-v) - 3px);
        margin-left: -1px;
        background: var(--org-line);
    }

    .about-org .org-team {
        justify-content: flex-start;
    }

    .about-org .org-notes {
        padding: 22px 28px;
    }

    .about-org .org-notes > div {
        flex-direction: row;
        align-items: baseline;
        gap: 20px;
    }

    .about-org .org-notes dt {
        flex: none;
        width: 5rem;
    }
}

@media (min-width: 1024px) {
    .about-org .org-ceo {
        min-width: 240px;
        padding: 18px 40px;
    }

    .about-org .org-team {
        padding: 28px 24px 30px;
    }

    .about-org .org-team .name {
        font-size: 1.375rem; /* 22px */
    }
}

/* --------------------------------------------------------------------------
   A06 연혁: 세로 타임라인
   - 모바일: 왼쪽 선 하나 + 연도 위 / 내용 아래
   - 768px~: 왼쪽 연도 칸 · 오른쪽 선 + 내용
   -------------------------------------------------------------------------- */
.about-history .history-list {
    max-width: 800px;
    margin-inline: auto;
}

.about-history .history-list > li {
    position: relative;
    padding: 0 0 36px 28px;
    border-left: 2px solid var(--line);
}

.about-history .history-list > li:last-child {
    padding-bottom: 0;
}

/* 하늘색 점 */
.about-history .history-list > li::before {
    content: "";
    position: absolute;
    top: 8px;
    left: -7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-accent);
}

.about-history .year {
    color: var(--color-primary);
    font-size: 1.25rem; /* 20px */
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.about-history .body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 6px;
}

.about-history .event {
    color: var(--text-title);
    font-size: var(--fs-body-lg);
    line-height: 1.6;
}

.about-history .news {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: var(--tap-min);
    color: var(--color-primary);
    font-size: var(--fs-small);
    font-weight: 600;
}

.about-history .news:hover {
    text-decoration: underline;
}

.about-history .news .icon {
    stroke-width: 2.2;
}

@media (min-width: 768px) {
    .about-history .history-list > li {
        display: grid;
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 32px;
        padding: 0;
        border-left: 0;
    }

    .about-history .history-list > li::before {
        content: none;
    }

    .about-history .year {
        font-size: 1.5rem; /* 24px */
    }

    /* 선 · 점은 내용 칸 왼쪽에 */
    .about-history .body {
        position: relative;
        margin-top: 0;
        padding: 0 0 44px 32px;
        border-left: 2px solid var(--line);
    }

    .about-history .history-list > li:last-child .body {
        padding-bottom: 0;
    }

    .about-history .body::before {
        content: "";
        position: absolute;
        top: 9px;
        left: -7px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--color-accent);
    }

    .about-history .event {
        font-size: 1.125rem; /* 18px */
    }
}
