/* KMA 소개 페이지 (공용 베이스·푸터는 page.css) */
.ab-gold { color: #b08d57; }
.mi-page { scroll-padding-top: 90px; }        /* 앵커 이동·스냅 위치를 고정 헤더 아래로 */
.ab-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.ab-eyebrow {
    display: inline-block; font-family: "NanumSquareOTF_acEB"; font-size: 13px; letter-spacing: .14em;
    color: var(--mi-blue); margin-bottom: 10px;
}
.ab-title { font-family: "NanumSquareOTF_acEB"; font-size: 32px; line-height: 1.3; margin: 0 0 14px; letter-spacing: -.01em; word-break: keep-all; }
.ab-lead { font-family: "NanumSquareOTF_acR"; font-size: 17px; line-height: 1.8; color: var(--mi-muted); margin: 0; word-break: keep-all; }

/* 1. KMA란? (히어로) */
/* 첫 섹션은 고정 헤더(90px) 아래에서 시작 */
.mi-page > .ab-sec:first-child { margin-top: 90px; }

.ab-hero {
    min-height: 560px; display: flex; align-items: center;
    background: url('../img/kma/img_main_01.jpg') center 30% / cover no-repeat;
    position: relative;
}
.ab-hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.62) 34%, rgba(255,255,255,0) 52%);
}
.ab-hero .ab-wrap { position: relative; width: 100%; }
.ab-hero-card { max-width: 520px; padding: 56px 0; }
.ab-hero h1 { font-family: "NanumSquareOTF_acEB"; font-size: 44px; margin: 0 0 22px; letter-spacing: -.01em; }
.ab-hero p { font-family: "NanumSquareOTF_acB"; font-size: 20px; line-height: 1.8; color: #2b303b; margin: 0; word-break: keep-all; }
.ab-hero p strong { font-family: "NanumSquareOTF_acEB"; }
.ab-hero-badge { width: 92px; height: 92px; margin-top: 28px; display: block; }

/* 2. 인사말 */
.ab-greeting { background: var(--mi-soft); padding: 96px 0; }
.ab-greeting .ab-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 56px; }
.ab-greeting-body { font-family: "NanumSquareOTF_acR"; font-size: 17px; line-height: 1.9; color: #2b303b; word-break: keep-all; }
.ab-greeting-body p { margin: 0 0 1.1em; }
.ab-sign { margin-top: 32px; text-align: right; font-family: "NanumSquareOTF_acB"; font-size: 16px; color: var(--mi-muted); line-height: 1.7; }
.ab-sign b { display: inline-block; margin-left: 10px; font-family: "NanumSquareOTF_acEB"; font-size: 22px; color: var(--mi-text); letter-spacing: .2em; }

/* 3. 연혁 */
.ab-history { padding: 96px 0; }
.ab-history .ab-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.ab-timeline { margin-top: 28px; border-left: 2px solid var(--mi-line); }
.ab-year { position: relative; padding: 0 0 28px 32px; }
.ab-year:last-child { padding-bottom: 0; }
.ab-year::before {
    content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
    background: #fff; border: 3px solid var(--mi-blue);
}
.ab-year h3 { font-family: "NanumSquareOTF_acEB"; font-size: 24px; margin: 0 0 10px; color: var(--mi-navy); }
.ab-year ul { margin: 0; padding: 0; }
.ab-year li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 6px 0; font-size: 16px; }
.ab-year li span { font-family: "NanumSquareOTF_acB"; color: var(--mi-muted); }
.ab-year li b { font-family: "NanumSquareOTF_acB"; font-weight: normal; color: #2b303b; }
.ab-history-photo { border-radius: 16px; overflow: hidden; aspect-ratio: 1 / 1; }
.ab-history-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 70%; display: block; }

/* 4. 사업소개 */
.ab-business {
    position: relative; padding: 96px 0; color: #fff;
    background: url('../img/kma/img_company_06.jpg') center / cover no-repeat;
}
.ab-business::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,31,66,.86), rgba(20,31,66,.78)); }
.ab-business .ab-wrap { position: relative; }
.ab-business .ab-eyebrow { color: #9cc3f0; }
.ab-business .ab-title { color: #fff; }
.ab-business .ab-lead { color: rgba(255,255,255,.82); }
.ab-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.ab-card {
    padding: 26px 22px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ab-card em { display: block; font-style: normal; font-family: "NanumSquareOTF_acEB"; font-size: 14px; color: #9cc3f0; letter-spacing: .1em; margin-bottom: 14px; }
.ab-card p { margin: 0; font-family: "NanumSquareOTF_acB"; font-size: 17px; line-height: 1.6; word-break: keep-all; }

/* 5. 조직도 */
.ab-org { padding: 96px 0; background: linear-gradient(180deg, #f3f4f6, #fff); }
.ab-org-chart { margin-top: 32px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ab-org-chart img { display: block; width: 100%; min-width: 860px; height: auto; }
.ab-org-hint { display: none; margin-top: 10px; font-size: 13px; color: var(--mi-muted); font-family: "NanumSquareOTF_acR"; }

/* 6. 오시는 길 */
.ab-location { padding: 96px 0 110px; }
.ab-location-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: stretch; margin-top: 28px; }
.ab-contact { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ab-contact li {
    display: flex; align-items: center; gap: 18px; padding: 18px 22px;
    background: #fff; border: 1px solid var(--mi-line); border-radius: 14px; transition: border-color .15s, box-shadow .15s;
}
.ab-contact li:hover { border-color: #d5e3f4; box-shadow: 0 6px 18px rgba(17, 24, 39, .05); }
.ab-ico {
    flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: #eef4fb; color: var(--mi-blue);
    display: flex; align-items: center; justify-content: center;
}
.ab-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ab-contact small { display: block; font-family: "NanumSquareOTF_acB"; font-size: 13px; color: var(--mi-muted); margin-bottom: 4px; }
.ab-contact strong { display: block; font-family: "NanumSquareOTF_acEB"; font-size: 18px; color: var(--mi-text); word-break: keep-all; }
.ab-contact a:hover { color: var(--mi-blue); }
/* 지도는 왼쪽 카드 목록 높이에 맞춰 늘어남 */
.ab-map { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--mi-line); background: var(--mi-soft); min-height: 320px; }
.ab-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 1024px) {
    .ab-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ab-history .ab-wrap { grid-template-columns: 1fr; }
    .ab-history-photo { position: static; aspect-ratio: 16 / 9; }
    .ab-location-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 699px) {
    .mi-page { scroll-padding-top: 60px; }
    .ab-wrap { padding: 0 16px; }
    .mi-page > .ab-sec:first-child { margin-top: 60px; }
    .ab-hero { min-height: 0; background-position: 70% center; }
    .ab-hero::before { background: rgba(255,255,255,.86); }
    .ab-hero-card { padding: 48px 0; }
    .ab-hero h1 { font-size: 32px; }
    .ab-hero p { font-size: 17px; }
    .ab-greeting, .ab-history, .ab-business, .ab-org, .ab-location { padding: 64px 0; }
    .ab-greeting .ab-wrap { grid-template-columns: 1fr; gap: 20px; }
    .ab-title { font-size: 26px; }
    .ab-greeting-body, .ab-lead { font-size: 16px; }
    .ab-cards { grid-template-columns: 1fr; }
    .ab-year li { grid-template-columns: 110px 1fr; font-size: 15px; }
    .ab-org-hint { display: block; }
    .ab-contact li { padding: 16px; gap: 14px; }
    .ab-contact strong { font-size: 16px; }
    .ab-map { min-height: 300px; }
}

/* 한 섹션 = 한 화면 (PC·태블릿). 내용이 더 길면 섹션이 늘어나서 잘리지 않음 */
@media (min-width: 700px) {
    .ab-sec {
        min-height: calc(100vh - 90px);
        display: flex; flex-direction: column; justify-content: center;
        padding-top: 72px; padding-bottom: 72px;
    }
    .ab-sec > .ab-wrap { width: 100%; }
}
/* PC 섹션 전환(약 1초)은 introduce.html 의 스크립트가 담당 (CSS 스냅은 속도 조절이 안 돼서 사용 안 함) */

/* ===== 메인 페이지 전용 ===== */
/* 첫 화면: 지도 위 트럭 이미지 (이미지 왼쪽에 박힌 선·글자는 그라데이션으로 가림) */
.hm-hero {
    position: relative; display: flex; align-items: center;
    background: url('../img/kma/img_main_04.jpg') right center / cover no-repeat;
}
.hm-hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, #fff 0%, #fff 49%, rgba(255,255,255,.75) 58%, rgba(255,255,255,0) 70%);
}
.hm-hero .ab-wrap { position: relative; width: 100%; }
.hm-hero-card { max-width: 560px; padding: 64px 0; }
.hm-hero h1 { font-family: "NanumSquareOTF_acEB"; font-size: 50px; line-height: 1.3; margin: 0 0 20px; letter-spacing: -.02em; word-break: keep-all; }
.hm-hero p { font-family: "NanumSquareOTF_acR"; font-size: 18px; line-height: 1.8; color: var(--mi-muted); margin: 0 0 32px; word-break: keep-all; }
.hm-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hm-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 14px 24px; border-radius: 999px;
    font-family: "NanumSquareOTF_acB"; font-size: 16px; transition: background-color .15s, color .15s, border-color .15s;
}
.hm-btn-primary { background: var(--mi-navy); color: #fff !important; border: 1px solid var(--mi-navy); }
.hm-btn-primary:hover { background: #26386f; }
.hm-btn-ghost { border: 1px solid #c9ced8; color: var(--mi-text); background: rgba(255,255,255,.7); }
.hm-btn-ghost:hover { border-color: var(--mi-navy); color: var(--mi-navy); }

/* KMA 소식 */
.ab-news { padding: 96px 0; background: var(--mi-soft); }
.ab-news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.mi-page .ab-news-more { font-family: "NanumSquareOTF_acB"; font-size: 15px; color: var(--mi-blue); white-space: nowrap; }
.mi-page .ab-news-more:hover { text-decoration: underline; }
.ab-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 32px; }
.ab-news-card {
    display: block; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--mi-line);
    transition: box-shadow .2s ease, border-color .2s ease;
}
.ab-news-card:hover { box-shadow: 0 14px 34px rgba(17, 24, 39, .10); border-color: transparent; }
.ab-news-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: #e9ecf1; }
.ab-news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.ab-news-card:hover .ab-news-thumb img { transform: scale(1.04); }
.ab-news-body { padding: 18px 20px 20px; }
.ab-news-body h3 { font-family: "NanumSquareOTF_acEB"; font-size: 17px; line-height: 1.45; margin: 0 0 8px; word-break: keep-all; }
.ab-news-body span { font-family: "NanumSquareOTF_acR"; font-size: 13px; color: var(--mi-muted); }

@media (max-width: 1024px) {
    .ab-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
    /* 오른쪽 끝에 맞추면 이미지에 박힌 선·'KMA' 글자가 화면 밖으로 빠짐 */
    .hm-hero { min-height: 480px; background-position: right center; }
    .hm-hero::before { background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.8)); }
    .hm-hero-card { padding: 56px 0; }
    .hm-hero h1 { font-size: 32px; }
    .hm-hero p { font-size: 16px; }
    .ab-news { padding: 64px 0; }
    .ab-news-grid { grid-template-columns: 1fr; }
}

/* 스크롤 등장 애니메이션 (JS 가 있을 때만 숨김 → JS 꺼져도 내용은 보임) */
.js-reveal .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}
