/* ====================================
   Global Variables & Base
   ==================================== */
:root {
    --primary: #1a57ff;
    --primary-soft: #f3f6ff;
    --primary-dark: #10265f;

    --accent: #00c2ff;
    --accent-warm: #ffe066;

    --text: #1f2933;
    --text-soft: #4b5563;
    --muted: #6b7280;

    --border: #e3e7f0;
    --bg: #fafbff;
    --bg-soft: #f5f7ff;

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 22px;

    --shadow-soft: 0 12px 30px rgba(15, 35, 95, 0.08);
    --shadow-strong: 0 20px 60px rgba(15, 35, 95, 0.18);

    --header-height: 64px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
    color: var(--text);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

/* 공통 링크 */
a {
    color: var(--primary);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* 공통 레이아웃 */
main {
    max-width: 1080px;
    margin: 0 auto;
    padding-inline: 20px;
}

/* ====================================
   Header / Navigation
   ==================================== */
header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #edf0f7;
}

.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* 브랜드 영역 */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: .03em;
}

.brand span.logo-dot {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: inline-block;
}

/* 회사 로고 이미지 */
.logo-img {
    height: 40px;
    width: auto;
    border-radius: 6px;
}

.brand-text {
    font-size: 20px;
    color: #111827;
}

/* 메뉴 공통 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-menu a {
    margin-left: 20px;
    font-size: 14px;
    text-decoration: none;
    color: #4b5563;
    position: relative;
    padding-bottom: 5px;
}

/* underline */
.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 999px;
    opacity: 0;
    transform: translateY(3px);
    transition:
        width 0.25s ease,
        opacity 0.25s ease,
        transform 0.25s ease;
}

/* hover */
.nav-menu a:hover {
    color: #111827;
}
.nav-menu a:hover::after {
    width: 100%;
    opacity: 1;
    transform: translateY(0);
}

/* 현재 페이지 */
.nav-menu a.active {
    color: #111827;
}
.nav-menu a.active::after {
    width: 100%;
    opacity: 1;
    transform: translateY(0);
}

/* 햄버거 버튼 (모바일) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    margin-left: auto;
    color: #111827;
}

/* ====================================
   Hero 공통
   ==================================== */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
    gap: 32px;
    padding: 60px 24px 40px; /* 좌우 24px 추가 */
}

/* 왼쪽 영역 공통 요소 */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
}

.hero h1 {
    margin: 18px 0 14px;
    font-size: 32px;
    line-height: 1.3;
}

.hero-lead {
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 520px;
}

/* 통계 카드 */
.hero-grid {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.stat {
    flex: 1 1 150px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.stat-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.stat-value {
    margin-top: 4px;
    font-size: 17px;
    font-weight: 600;
    color: #111827;
}

/* 오른쪽 기본 카드 */
.hero-card {
    padding: 22px 20px;
    border-radius: var(--radius);
    background: var(--primary-soft);
    box-shadow: var(--shadow-soft);
}

.hero-card h2 {
    margin-top: 0;
    font-size: 18px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.chip {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(26, 87, 255, 0.08);
    color: #276749;
}

/* ====================================
   HOME 전용 Hero 강화 (.hero-home)
   ==================================== */

.hero.hero-home {
    padding-top: 64px;
    padding-bottom: 40px;
    border-radius: 0 0 32px 32px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 60%),
        linear-gradient(135deg, var(--primary-dark), var(--primary) 55%, var(--accent));
    color: #ffffff;
    box-shadow: 0 30px 70px rgba(15, 35, 95, 0.28);
}

.hero-inner {
    max-width: 540px;
}

/* HOME 전용 배지 */
.hero-home .hero-badge {
    background: rgba(0, 0, 0, 0.34);
    color: #ffffff;
    border-radius: 999px;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

/* HOME H1/Lead */
.hero-home h1 {
    color: #ffffff;
    font-size: 34px;
    line-height: 1.3;
}

.hero-highlight {
    color: var(--accent-warm);
}

.hero-home .hero-lead {
    color: rgba(255, 255, 255, 0.88);
}

/* CTA 버튼 */
.hero-actions {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-primary,
.btn-ghost {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out,
                background 0.15s ease-out, border-color 0.15s ease-out;
}

/* 흰색 메인 버튼 */
.btn-primary {
    background: #ffffff;
    color: var(--primary);
    border: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
}

/* 투명 보더 버튼 */
.btn-ghost {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.65);
}
.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.22);
}

/* HOME Hero 안의 stat 반전 */
.hero-home .stat {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.hero-home .stat-title {
    color: rgba(255, 255, 255, 0.76);
}
.hero-home .stat-value {
    color: #ffffff;
}

/* 오른쪽 사이드 카드 (유리 카드 스타일) */
.hero-side-card {
    padding: 22px 20px;
    border-radius: var(--radius);
    background: rgba(0, 10, 40, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: var(--shadow-strong);
    color: #ffffff;
    backdrop-filter: blur(14px);
}

.hero-side-card h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.hero-side-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-side-list li {
    font-size: 13px;
    line-height: 1.6;
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-side-list li:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}
.hero-side-list strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

/* ====================================
   Sections & Cards
   ==================================== */

section {
    padding-left: 20px;
    padding-right: 20px;
}

section h2 {
    font-size: 22px;
    margin: 0 0 8px;
}

section .sub {
    margin: 0 0 22px;
    font-size: 13px;
    color: var(--muted);
}

.cols {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.card {
    flex: 1 1 260px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 18px 18px 16px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
                border-color 0.12s ease-out, background 0.12s ease-out;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary);
    background: #ffffff;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
}

.pill {
    display: inline-block;
    margin-bottom: 6px;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 999px;
    background: #f4f5fb;
    color: var(--muted);
}

/* ====================================
   Timeline
   ==================================== */

.timeline {
    position: relative;
    margin-top: 10px;
    padding-left: 4px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: #d4dcff;
}

.tl-item {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
}

.tl-dot {
    position: absolute;
    left: 0;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: #ffffff;
}

.tl-year {
    font-size: 13px;
    font-weight: 600;
}

.tl-text {
    font-size: 13px;
    color: #374151;
}

/* ====================================
   CEO Profile
   ==================================== */

.profile {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 26px;
    background: linear-gradient(145deg, #e7eeff, #fdfdff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary);
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}

.profile-body {
    flex: 1 1 260px;
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
}

.profile-body ul {
    padding-left: 18px;
    margin: 6px 0 0;
}

/* ====================================
   2-Column Grid (about 등 공용)
   ==================================== */

.grid-2 {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
}

/* ====================================
   Contact Section
   ==================================== */

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 8px;
    font-size: 14px;
}

.contact-box {
    flex: 1 1 260px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 16px 18px;
    background: var(--bg);
    box-shadow: var(--shadow-soft);
}

.contact-box strong {
    display: block;
    margin-bottom: 4px;
}

/* ====================================
   Footer
   ==================================== */

footer {
    margin-top: 32px;
    border-top: 1px solid #edf0f7;
    padding: 14px 20px 24px;
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    background: linear-gradient(to top, #f9fafb, #ffffff);
}

/* ====================================
   Responsive
   ==================================== */

/* 태블릿 이하: hero 1컬럼, grid 조정 */
@media (max-width: 860px) {

    .hero {
        grid-template-columns: 1fr;
        padding-top: 40px;
    }

    .hero.hero-home {
        border-radius: 0;
        box-shadow: none;
    }

    .hero-side-card {
        margin-top: 12px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* 모바일: 햄버거 메뉴 사용 */
@media (max-width: 600px) {

    .brand-text {
        font-size: 18px;
    }

    /* 햄버거 버튼 보이기 */
    .menu-toggle {
        display: block;
    }

    /* 메뉴 기본 숨김 + 세로 정렬 */
    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin-top: 10px;
    }

    /* 토글 시 보이기 (JS에서 .active 추가) */
    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        margin: 8px 0 0;
        font-size: 16px;
    }

    main {
        padding-inline: 16px;
    }

    .hero {
        padding-top: 32px;
    }
}

main > section:first-of-type {
    background: #f7f8ff;
    border-radius: 24px;
    padding: 26px 24px 18px;
    box-shadow: 0 14px 40px rgba(15, 35, 95, 0.06);
    margin-top: 10px;
}

/* 대표 프로필 이미지 박스 (OK 스타일 그대로 적용) */
.profile-photo-wrap {
    width: 120px;
    height: 120px;
    background: #e7eeff; /* 기존 OK 배경 */
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    overflow: hidden; /* 이미지를 부드럽게 잘라내기 */
}

/* 내부 이미지 */
.profile-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.96) saturate(0.95);
}

/* 오시는 길 & 문의 섹션 박스화 */
section.section-contact {
    background: #f7f8ff;
    border-radius: 24px;
    padding: 26px 24px 22px;
    box-shadow: 0 14px 40px rgba(15, 35, 95, 0.06);
    margin-top: 16px;
}
.map-actions {
    margin: 18px 0 10px;
    text-align: center;
}

.btn-naver-map {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    background: #03c75a; /* 네이버 그린 */
    border: none;
    box-shadow: 0 8px 18px rgba(3, 199, 90, 0.25);
    text-decoration: none;
    transition:
        transform 0.12s ease-out,
        box-shadow 0.12s ease-out,
        background 0.12s ease-out;
}

.btn-naver-map:hover {
    background: #02a749;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(3, 199, 90, 0.35);
}

/* 지도 박스 */
.map-embed {
    margin-top: 10px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e3e7f0;
    box-shadow: 0 18px 40px rgba(15, 35, 95, 0.10);
}

@media (max-width: 600px) {
    .map-embed iframe {
        height: 260px;
    }
}

@media (max-width: 600px) {
    .map-embed {
        display: none;
    }
}

/* 첫 번째 섹션과 다음 내용 사이 간격 추가 */
main > section:first-of-type {
    margin-bottom: 40px; /* 원하는 값으로 조정 30~60px */
}
/* 대표 소개 섹션 위쪽 여백 추가 */
section#ceo {
    margin-top: 50px;   /* 필요하면 40–80px 조절 */
}

