/* ===============================
   GLOBAL / RESET
   =============================== */
:root {
    --hero-red: #e11d2e;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body.main-page {
    font-family: "Noto Sans KR", system-ui, sans-serif;
    color: #fff;
    background: #fff;
    overflow-y: auto;
}

/* ===============================
   HERO(SECTION 01) TITLES
   =============================== */
.hero-title {
    display: block;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--hero-red);
    font-size: clamp(1rem, 2vw, 3rem);
    margin-bottom: 18px;
}
.hero-title .line { display: block; }
.hero-title .dot {
    display: inline-block;
    margin: 0 .28em;
    transform: translateY(-.06em);
}

/* 한글 슬로건 */
.hero-sub {
    font-size: clamp(0.8rem, 2vw, 1.5rem);
    font-weight: 800;
    color: #fff;
    margin-top: 2rem;
}

/* 본문 */
.hero-body {
    font-size: clamp(0.8rem, 1.4vw, 1.2rem);
    color: rgba(255, 255, 255, .85);
    margin-top: 0.5rem;
}

/* CTA */
.section-01 .cta {
    margin-top: 2rem;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===============================
   BASE LAYOUT
   =============================== */
#main { width: 100%; overflow-x: hidden; }
.section {
    position: relative;
    width: 100%;
    min-height: 100svh;
    display: flex;
    align-items: center;
}
.section .inner {
    width: min(1200px, 92%);
    margin: 0 auto;
}
h1,h2,h3,p { margin: 0; }

/* ===============================
   BUTTONS
   =============================== */
.btn {
    display: inline-block;
    padding: clamp(10px, 1.5vw, 14px) clamp(18px, 2.5vw, 24px);
    border-radius: clamp(6px, 1vw, 10px);
    text-decoration: none;
    transition: transform .2s ease, opacity .2s ease, background .2s ease, color .2s ease;
    font-size: clamp(0.8rem, 1.6vw, 1rem);
}
.btn-primary { background: #e11d2e; color: #fff; }
.btn-outline { border: 1px solid #fff; color: #fff; }
.btn:hover { transform: translateY(-2px); opacity: .95; }

/* ===============================
   SECTION BACKGROUNDS
   =============================== */
body.main-page .section-01 { background: url("/img/main/main-section-01.png") center / cover no-repeat; }
body.main-page .section-02 { background: url("/img/main/main-section-02.png") center / cover no-repeat; }
body.main-page .section-03 { background: url("/img/main/main-section-03.png") center / cover no-repeat; }

/* 오버레이 공통 */
body.main-page .section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,.55) 100%);
    pointer-events: none;
}

/* ===============================
   SECTION 01 (HERO)
   =============================== */
body.main-page .section-01 .inner {
    position: relative;
    z-index: 1;
    padding: clamp(10svh, 12vw, 16svh) 0 clamp(6svh, 10vw, 10svh);
    margin-left: clamp(0rem, 10vw, 15rem);
    text-shadow: 0 8px 28px rgba(0,0,0,.55);
}

/* 하단 스크롤 인디케이터 */
.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: clamp(20px, 4vw, 40px);
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    z-index: 5;
}
.scroll-indicator .scroll-text {
    font-size: clamp(10px, 1.2vw, 14px);
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: clamp(6px, 1vw, 10px);
    opacity: .95;
}
.scroll-indicator .scroll-arrows {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.scroll-indicator .scroll-arrows span {
    font-size: clamp(16px, 2vw, 22px);
    color: #e11d2e;
    animation: arrow-bounce 1.2s infinite;
}
.scroll-indicator .scroll-arrows span:nth-child(2){ animation-delay:.2s; }
.scroll-indicator .scroll-arrows span:nth-child(3){ animation-delay:.4s; }

@keyframes arrow-bounce {
    0%,100% { transform: translateY(0); opacity: 1; }
    50%     { transform: translateY(6px); opacity: .7; }
}

/* ===============================
   SECTION 02 (비전·핵심) - 정확한 위치 조정 버전
   =============================== */
body.main-page .section-02 {
    background: url("/img/main/main-section-02.png") center / cover no-repeat;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 기존 전체 오버레이 제거 */
body.main-page .section-02::before { display: none !important; }

/* 내부 패딩: 위쪽 공간 크게, 아래쪽은 줄임 */
body.main-page .section-02 .inner {
    position: relative;
    z-index: 2;
    padding: clamp(8svh, 9vw, 12svh) 0 clamp(4svh, 5vw, 5svh);
    display: grid;
    gap: 5rem;
    width: 100%;
}
.icon-band {
    width: 100%;
    background: #00244f;
    opacity: 0.7;
}

/* 제목 (최상단) */
body.main-page .section-02 .section-title {
    font-size: clamp(1rem, 2vw, 3rem);
    font-weight: 800;
    margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    margin-top: 3rem;
    color: white;
}

/* 부제 (밝은 영역 안, 그라데이션에 닿지 않게) */
body.main-page .section-02 .section-text {
    font-size: clamp(0.8rem, 2vw, 1.5rem);
    font-weight: 700;
    opacity: 0.95;
    margin-bottom: clamp(3.5rem, 6vw, 5rem);
    text-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* ===== 어두운 띠 (아이콘 영역만) ===== */
.business-areas {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(18px, 3vw, 36px);
    padding: clamp(2rem, 4vw, 3rem) 0;
    z-index: 2;
}

/* 어두운 영역 배경 */
.business-areas::before {
    content: "";
    position: absolute;
    top: -25%;
    left: 0;
    width: 100%;
    height: 150%;
    z-index: -1;
}

/* 아이콘 스타일 */
.business-areas .area {
    text-align: center;
    color: #fff;
    width: clamp(140px, 15vw, 190px);
}

.business-areas .circle {
    width: clamp(120px, 14vw, 170px);
    height: clamp(120px, 14vw, 170px);
    margin: 0 auto clamp(10px, 1.5vw, 16px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
    background: radial-gradient(circle at 50% 45%,
    rgba(255,255,255,0.55) 0%,
    rgba(255,255,255,0.25) 60%,
    rgba(0,0,0,0.25) 100%);
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow:
            0 0 25px rgba(255,255,255,0.4),
            inset 0 0 36px rgba(255,255,255,0.28);
    backdrop-filter: blur(5px);
}

.business-areas .circle img {
    width: clamp(50px, 5vw, 70px);
}
.business-areas .area:hover .circle {
    transform: scale(1.08);
    box-shadow: 0 0 44px rgba(255,255,255,.6), inset 0 0 36px rgba(255,255,255,.26);
}
.business-areas .ko {
    font-size: clamp(14px, 1.6vw, 17px);
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.55);
}
.business-areas .en {
    font-size: clamp(12px, 1.4vw, 14px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* 로고: 어두운 띠 아래 (밝은 영역) */
body.main-page .section-02 .brand-mark {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: clamp(4rem, 5vw, 5rem);
    margin-bottom: 2rem;
    z-index: 0;
}

body.main-page .section-02 .brand-mark img {
    width: clamp(8rem, 10vw, 15rem);
    height: auto;
    opacity: 0.95;
    filter: drop-shadow(0 0 10px rgba(255,255,255,.5))
    drop-shadow(0 8px 20px rgba(0,0,0,.4));
}

/* ===============================
   SECTION 03 (CONTACT)
   =============================== */
body.main-page .section-03 {
    position: relative;
    background: url("/img/main/main-section-03.png") center / cover no-repeat;
    color: #111;
}

body.main-page .section-03::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,1) 100%);
    z-index: 0;
}

.contact-card .card-bg {
    position: absolute;
    inset: 0;
    background: var(--bg) center / cover no-repeat;
    transform: scale(1.02);
    transition: transform 0.45s ease;
    z-index: 1;
}

.contact-card .card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: clamp(20px, 2vw, 28px);
    color: #fff;
    text-align: center;
    z-index: 3;
}

/* 호버 효과 */
.contact-card .card-link:hover .card-bg {
    transform: scale(1.08);
}
.contact-card .card-link:hover .card-btn {
    background: #fff;
    color: #111;
}

.contact-card .card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 75%, rgba(0,0,0,.75) 100%);
    z-index: 2;
}

body.main-page .section-03 .contact-wrap {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: clamp(6rem, 10vw, 10rem) 0;
    color: #111;
}

body.main-page .section-03 .contact-wrap h2,
body.main-page .section-03 .contact-wrap span {
    color: #111;
}
body.main-page .section-03 .contact-wrap span {
    color: #ffffff;
    justify-content: center;
    align-items: center;
}
body.main-page .contact-wrap {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: clamp(6rem, 10vw, 10rem);
}

.contact-title {
    font-weight: 900;
    font-size: clamp(1rem, 2vw, 3rem);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.contact-sub {
    margin-top: clamp(6px, 1vw, 10px);
    font-size: clamp(0.8rem, 1.4vw, 1.2rem);
    opacity: .9;
}

.contact-cards {
    margin: clamp(24px, 3vw, 36px) auto 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: clamp(1rem, 3vw, 2.8rem);
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    width: min(1200px, 100%);
}

.contact-card {
    position: relative;
    height: clamp(360px, 40vw, 520px);
    overflow: hidden;
    border-radius: 14px;
}
.contact-card .card-body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: clamp(20px, 2vw, 28px);
    color: #fff;
    text-align: center;
}
.card-title {
    display: block;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 800;
    letter-spacing: .04em;
}
.card-desc {
    margin-top: 10px;
    font-size: clamp(0.8rem, 1.6vw, 0.9rem);
    line-height: 1.6;
    opacity: .95;
}

/* 버튼 */
.card-btn {
    margin-top: clamp(0.8rem, 2vw, 1rem);
    padding: clamp(4px, 1vw, 6px) clamp(16px, 2vw, 22px);
    border: 1.5px solid #fff;
    border-radius: 2rem;
    font-weight: 500;
    letter-spacing: .02em;
    transition: all .25s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60%;
    font-size: clamp(0.8rem, 1.6vw, 0.9rem);
}
.contact-card .card-link:hover .card-btn {
    background: #fff;
    color: #111;
}

/* FOOTER */
.contact-foot {
    margin-top: 10rem;
    gap: 0.7rem;
    display: grid;
}

.foot-head {
    font-weight: 800;
    font-size: clamp(1rem, 1.5vw, 2rem);
    padding-top: 1rem;
}

.foot-desc {
    margin-top: 8px;
    font-size: clamp(0.8rem, 1.4vw, 1.2rem);
    opacity: .75;
}

.foot-tag {
    margin-top: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    color: #e11d2e;
    text-transform: uppercase;
    font-size: clamp(0.8rem, 2vw, 1.5rem);
}

.foot-logo {
    display: block;
    width: min(150px, 60%);
    margin: 3rem auto;
    height: auto;
}

/* ===============================
   RESPONSIVE BREAKPOINTS
   =============================== */

/* 1200px 이하 */
@media (max-width: 1200px) {
    .section .inner { width: 100%; padding: 6rem 1rem; }
    .contact-cards { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .business-areas { gap: 24px; }
    .section-01 .inner { margin-left: 0; text-align: center; }
    .hero-title { font-size: clamp(1.2rem, 5vw, 2rem); }
    .hero-sub { font-size: clamp(0.9rem, 3vw, 1.1rem); }
    .contact-cards { grid-template-columns: 1fr; width: 95%; }
    .business-areas { flex-wrap: wrap; gap: 20px; }
    .scroll-indicator { bottom: 24px; }
    body.main-page .section-01 .inner {margin-left: 0;}
    .section-01 .cta {justify-content: center;}
    body.main-page .section-02 {display: inline-grid;}
    body.main-page .section-02 .inner {display: contents;}
    body.main-page .section-03 .contact-wrap span {
        display: grid;
        margin: 0 auto;
        gap: 1rem;
    }

}

/* 800px 이하 */
@media (max-width: 800px) {
    .contact-cards { grid-template-columns: 1fr; width: 95%; }
    .business-areas { flex-wrap: wrap; gap: 20px; }
    .scroll-indicator { bottom: 24px; }
    body.main-page .section-01 .inner {margin-left: 0;}
    .section-01 .cta {justify-content: center;}
}

/* 600px 이하 */
@media (max-width: 600px) {
    .hero-title { font-size: 1.4rem; text-align: center; }
    .hero-sub, .hero-body { text-align: center; font-size: 0.9rem; }
    .btn { padding: 10px 18px; font-size: 0.85rem; }
    .business-areas { flex-direction: row; align-items: center; }
    .contact-card { height: 360px; }
    .contact-cards { grid-template-columns: 1fr; gap: 18px; }
    .card-title { font-size: 1rem; }
    .card-desc { font-size: 0.8rem; line-height: 1.4; }
    .foot-logo { width: 100px; margin: 2rem auto; }
    .scroll-indicator { bottom: 16px; }
}
