/* ===== MTC Solution — 공용 디자인 시스템 ===== */
:root {
    --bg: #F7F8FA;
    --band: #EEF2F8;          /* 라이트 톤 강조 밴드 (다크 대체) */
    --surface: #FFFFFF;
    --text-main: #12161C;
    --text-sub: #5B6472;
    --line: rgba(18, 40, 80, 0.10);
    --accent: #0047AB;         /* 브랜드 지정색 (블루) */
    --accent-soft: rgba(0, 71, 171, 0.08);
    --gray: #8A93A2;           /* 브랜드 보조색 (그레이) */
    --grid: rgba(0, 71, 171, 0.035);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- 배경 그리드 ---------- */
.grid-overlay {
    position: fixed;
    inset: 0;
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, var(--grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
    z-index: 0;
    pointer-events: none;
}

/* ---------- 내비게이션 ---------- */
.nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    z-index: 1000;
    background: rgba(245, 245, 247, 0.72);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--line);
}
.nav .logo { display: flex; align-items: center; }
.nav .logo img { height: 34px; width: auto; display: block; }

.nav-menu { display: flex; gap: 4px; list-style: none; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: block;
    font-size: 14px; font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}
.nav-menu > li > a:hover { background: rgba(0, 0, 0, 0.05); }
.nav-menu > li.is-active > a { color: var(--accent); background: var(--accent-soft); }

/* 드롭다운 */
.dropdown {
    position: absolute;
    top: calc(100% + 8px); left: 0;
    min-width: 220px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.10);
    padding: 8px;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-menu > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
    display: block;
    font-size: 13.5px; font-weight: 500;
    padding: 10px 14px;
    border-radius: 9px;
    color: var(--text-sub);
    transition: all 0.18s;
}
.dropdown a:hover { background: rgba(0, 98, 255, 0.06); color: var(--accent); }

.nav-cta {
    background: #000; color: #fff;
    padding: 10px 22px; border-radius: 100px;
    font-size: 13.5px; font-weight: 600;
    transition: transform 0.2s;
}
.nav-cta:hover { transform: scale(1.03); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }

/* ---------- 서브페이지 헤더 ---------- */
.subhero {
    position: relative;
    padding: 180px 48px 80px;
    max-width: var(--maxw);
    margin: 0 auto;
    z-index: 10;
}
.breadcrumb { font-size: 12.5px; color: var(--text-sub); margin-bottom: 20px; letter-spacing: 0.02em; }
.breadcrumb a:hover { color: var(--accent); }
.kicker {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.2em; color: var(--accent);
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
}
.kicker::before { content: ''; width: 20px; height: 1px; background: var(--accent); }
.subhero h1 {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 700; line-height: 1.05; letter-spacing: -0.035em;
    max-width: 820px;
}
.subhero .lead {
    font-size: clamp(16px, 2vw, 19px); color: var(--text-sub);
    max-width: 640px; margin-top: 22px;
}

/* ---------- 섹션 & 컨테이너 ---------- */
.section { position: relative; z-index: 10; padding: 64px 48px; max-width: var(--maxw); margin: 0 auto; }
.section-band {
    background: var(--band); color: var(--text-main); max-width: none;
    padding-left: 0; padding-right: 0; border-block: 1px solid var(--line);
}
.section-band .inner { max-width: var(--maxw); margin: 0 auto; padding: 0 48px; }
.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.03em; }
.section-head p { color: var(--text-sub); margin-top: 12px; max-width: 620px; }

/* ---------- 카드 그리드 ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08); }
.card .idx { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; }
.card h3 { font-size: 19px; font-weight: 700; margin: 14px 0 8px; letter-spacing: -0.02em; }
.card p { font-size: 14.5px; color: var(--text-sub); }

/* 통계 */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat .num { font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -0.03em; color: var(--accent); }
.stat .num b { color: var(--text-main); }
.stat .lbl { font-size: 13px; color: var(--text-sub); margin-top: 6px; }

/* 리스트 체크 */
.ticks { list-style: none; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; font-size: 15px; color: #2c333d; }
.ticks li::before {
    content: ''; position: absolute; left: 0; top: 8px;
    width: 16px; height: 16px; border-radius: 5px;
    background: var(--accent); opacity: 0.14;
}
.ticks li::after {
    content: ''; position: absolute; left: 5px; top: 11px;
    width: 5px; height: 8px; border: solid var(--accent);
    border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* 미디어 플레이스홀더 (제품/현장 사진 자리) */
.media {
    position: relative;
    border-radius: 18px;
    border: 1px solid var(--line);
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(0, 71, 171, 0.06), transparent 60%),
        var(--surface);
    aspect-ratio: 4 / 3;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.media::after {
    content: attr(data-label);
    font-size: 13px; font-weight: 600; color: var(--gray);
    letter-spacing: 0.02em; text-align: center; padding: 0 20px;
}
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media.tall { aspect-ratio: 3 / 4; }
.media.wide { aspect-ratio: 16 / 9; }

/* 버튼 */
.btn { display: inline-block; padding: 14px 30px; border-radius: 100px; font-size: 14.5px; font-weight: 600; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px rgba(0, 98, 255, 0.22); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0, 98, 255, 0.32); }
.btn-ghost { border: 1px solid var(--line); color: var(--text-main); }
.btn-ghost:hover { background: rgba(0, 0, 0, 0.04); }

/* ---------- 고객사 로고 갤러리 ---------- */
.client-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.client-logos span {
    display: flex; align-items: center; justify-content: center;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 12px; padding: 22px 12px;
    font-size: 15px; font-weight: 700; color: #444d59; letter-spacing: 0.01em;
    text-align: center;
}
@media (max-width: 900px) { .client-logos { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 문의 폼 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-sub); }
.field input, .field textarea {
    font-family: inherit; font-size: 15px; color: var(--text-main);
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 10px; padding: 13px 14px; width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 12.5px; color: var(--gray); margin-top: 14px; }
@media (max-width: 768px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- 타임라인(연혁) ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 30px 24px; }
.tl-item::before { content: ''; position: absolute; left: -28px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(0, 98, 255, 0.14); }
.tl-item .yr { font-size: 13px; font-weight: 700; color: var(--accent); }
.tl-item .desc { font-size: 15px; margin-top: 3px; }

/* ---------- 푸터 (라이트) ---------- */
.footer { position: relative; z-index: 10; background: var(--band); color: var(--text-sub); padding: 64px 48px 40px; border-top: 1px solid var(--line); }
.footer .inner { max-width: var(--maxw); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer .brand { margin-bottom: 16px; }
.footer .brand img { width: 200px; max-width: 70%; height: auto; display: block; }
.footer p { font-size: 13.5px; line-height: 1.8; }
.footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: #333b45; font-weight: 700; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--text-sub); transition: color 0.2s; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom { padding-top: 28px; font-size: 12.5px; color: var(--gray); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr; }
    .stat-row { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 768px) {
    .nav { padding: 16px 20px; flex-wrap: wrap; }
    .nav-cta { display: none; }
    .nav-toggle { display: block; }
    .subhero { padding: 130px 20px 56px; }
    .section { padding: 48px 20px; }
    .section-dark .inner, .footer { padding-left: 20px; padding-right: 20px; }
    .grid-2 { grid-template-columns: 1fr; }

    /* 모바일 메뉴 */
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 2px;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid var(--line);
    }
    .nav-menu.open { display: flex; }
    .nav-menu > li > a { padding: 12px 8px; font-size: 15px; }
    .dropdown {
        position: static;
        opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; padding: 0 0 8px 12px;
        min-width: 0;
    }
    .dropdown a { padding: 8px 10px; }
}
