/* ===== 기본 변수 ===== */
:root {
    --navy: #0e2a47;
    --navy-deep: #081a2e;
    --blue: #1d5fa8;
    --accent: #e8492f;
    --accent-dark: #c93a22;
    --text: #1d2733;
    --muted: #5d6b7a;
    --line: #e3e8ee;
    --bg-alt: #f4f6f9;
    --radius: 14px;
    --header-h: 68px;
    --mobile-bar-h: 0px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
}

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

.inner { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
    font-size: .9rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: .02em;
    margin-bottom: 12px;
}

.muted { color: var(--muted); }

/* ===== 버튼 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 1rem;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn-lg { padding: 16px 28px; font-size: 1.08rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn-ghost-dark { border-color: var(--line); color: var(--navy); background: #fff; }

.btn-outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ===== 헤더 ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.brand img { height: 40px; width: auto; }

.gnb { display: flex; gap: 28px; margin-left: auto; }
.gnb a { font-weight: 600; color: var(--muted); font-size: .97rem; }
.gnb a:hover { color: var(--navy); }

/* ===== 히어로 ===== */
.hero {
    position: relative;
    color: #fff;
    background:
        linear-gradient(100deg, rgba(8,26,46,.96) 0%, rgba(8,26,46,.88) 45%, rgba(8,26,46,.6) 100%),
        url('../img/thumb/hero.jpg') center / cover no-repeat;
    padding: 88px 0 96px;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }

.hero h1.eyebrow { color: #ffb4a5; font-size: 1.2rem; font-weight: 700; line-height: 1.5; letter-spacing: .01em; }
.hero h1 {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; color: #ffd28a; }
.hero-lead { margin-top: 20px; font-size: 1.4rem; line-height: 1.65; color: rgba(255,255,255,.78); }
/* 핵심 단어 강조 */
.hero-lead strong { color: #fff; font-weight: 700; white-space: nowrap; }
.hero-lead em { display: inline-block; margin-bottom: 6px; font-style: normal; font-size: 1.15em; font-weight: 800; color: #ffd28a; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-points {
    list-style: none;
    display: flex;
    gap: 36px;
    margin-top: 44px;
    padding-top: 26px;
    border-top: 1px solid rgba(255,255,255,.18);
}
.hero-points strong { display: block; font-size: 1.5rem; font-weight: 800; }
.hero-points span { font-size: .9rem; color: rgba(255,255,255,.7); }

/* 히어로 슬라이드: 두 장을 겹쳐 두고 번갈아 페이드 */
.hero-visual {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background: #1a2d44;
    box-shadow: 0 24px 60px rgba(0,0,0,.45);
    cursor: zoom-in;
}
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.4s ease, transform 1.4s ease;
}
.hero-slide.is-active { opacity: 1; }
/* 버튼 · 스와이프로 넘길 때는 빠르게 */
.hero-visual.is-manual .hero-slide { transition-duration: .5s; }
.hero-visual { touch-action: pan-y; }

.hero-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(8,26,46,.55);
    color: #fff;
    transition: background .2s;
}
.hero-nav:hover { background: rgba(8,26,46,.85); }
.hero-nav svg { width: 26px; height: 26px; fill: currentColor; }
.hero-prev { left: 12px; }
.hero-next { right: 12px; }
.hero-slide.is-portrait { object-fit: contain; }
.hero-visual figcaption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(8,26,46,.82);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: .85rem;
}
.hero-visual figcaption small { color: rgba(255,255,255,.6); font-size: .78rem; }

/* ===== 제작 품목 띠 ===== */
.items-strip { background: var(--navy); color: #fff; padding: 18px 0; }
.items-strip .inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.strip-label { font-weight: 700; color: #ffd28a; font-size: .95rem; }
.items-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.items-strip li {
    padding: 5px 14px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    font-size: .9rem;
}

/* ===== 공통 섹션 ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--navy);
}
.section-head > p:last-child:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

/* ===== 강점 ===== */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
    padding: 28px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}
.feature-num { font-weight: 800; color: var(--accent); font-size: .95rem; }
.feature h3 { margin: 10px 0 8px; font-size: 1.15rem; color: var(--navy); }
.feature p { color: var(--muted); font-size: .96rem; }

/* ===== 진행 절차 ===== */
.process {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 48px;
    counter-reset: step;
}
.process li {
    position: relative;
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 22px 18px;
    text-align: center;
}
.process li span {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 10px;
}
.process strong { display: block; color: var(--navy); }
.process small { color: var(--muted); font-size: .86rem; }

/* ===== 제작 실적 ===== */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tab {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-weight: 600;
}
.tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.work {
    position: relative;
    border: 0;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #dde3ea;
    aspect-ratio: 1;
}
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.work:hover img { transform: scale(1.05); }
.work span {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(8,26,46,.8);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
}
.gallery-more { text-align: center; margin-top: 28px; }
.gallery-more .btn[hidden] { display: none; }

/* ===== 보유 설비 ===== */
.equip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.equip {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}
.equip img { width: 100%; height: 200px; object-fit: contain; background: #fff; padding: 12px; border-bottom: 1px solid var(--line); }
.equip > div:last-child { position: relative; padding: 18px 20px 20px; }
.equip h3 { color: var(--navy); font-size: 1.08rem; }
.equip p { color: var(--muted); font-size: .94rem; padding-right: 48px; }
.equip .qty {
    position: absolute;
    right: 18px;
    top: 18px;
    background: var(--bg-alt);
    color: var(--navy);
    font-weight: 700;
    font-size: .85rem;
    padding: 2px 10px;
    border-radius: 6px;
}
.equip-icon {
    height: 200px;
    display: grid;
    place-items: center;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
}
.equip-icon svg { width: 64px; height: 64px; fill: var(--blue); opacity: .55; }

/* ===== 견적 문의 ===== */
.quote { background: var(--navy-deep); color: #fff; text-align: center; }
.quote h2 { color: #fff; }
.quote .eyebrow { color: #ffb4a5; }
.quote-lead { margin-top: 16px; color: rgba(255,255,255,.75); font-size: 1.05rem; }

.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 760px;
    margin: 40px auto 0;
}
.contact-card {
    display: block;
    padding: 28px 24px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    transition: background .2s;
}
.contact-card:hover { background: rgba(255,255,255,.13); }
.contact-card small { display: block; color: rgba(255,255,255,.65); font-size: .9rem; }
.contact-card strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; }

/* ===== 오시는 길 ===== */
.location-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.location-inner .muted { margin-top: 14px; }
.map-links { display: flex; gap: 10px; margin-top: 24px; }
.map-img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }

/* ===== 푸터 ===== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.6); padding: 40px 0; font-size: .9rem; border-top: 1px solid rgba(255,255,255,.08); }
.site-footer strong { color: #fff; display: block; margin-bottom: 8px; }
.site-footer address { font-style: normal; }
.site-footer .copy { margin-top: 10px; font-size: .82rem; }

/* ===== 이미지 확대 모달 ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0,0,0,.88);
    display: grid;
    place-items: center;
    padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.lightbox-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: 0;
    color: #fff;
    font-size: 2.6rem;
    line-height: 1;
}

/* ===== 모바일 하단 바 ===== */
.mobile-bar { display: none; }

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery { grid-template-columns: repeat(3, 1fr); }
    .equip-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    :root { --header-h: 60px; --mobile-bar-h: 72px; }
    .gnb { display: none; }
    .header-inner { justify-content: space-between; }
    .brand img { height: 34px; }

    /* 섹션마다 화면 한 장(헤더 · 하단 바 제외)을 채우고, 내용이 짧으면 세로 가운데 */
    .hero,
    .section {
        min-height: calc(100vh - var(--header-h) - var(--mobile-bar-h));
        min-height: calc(100svh - var(--header-h) - var(--mobile-bar-h));
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .hero > .inner,
    .section > .inner { width: 100%; }

    .hero { padding: 40px 0 48px; }
    .hero-inner,
    .location-inner { grid-template-columns: 1fr; gap: 28px; }
    .pc-only { display: none; }
    .hero h1.eyebrow { font-size: 1.15rem; }
    .hero-lead { font-size: 1.3rem; }
    .hero-cta .btn { flex: 1 1 100%; }
    .hero-points { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
    .hero-points strong { font-size: 1.4rem; }
    .hero-points span { font-size: .95rem; }

    .section { padding: 56px 0; }
    .section h2 { font-size: 1.85rem; }
    .section-head { margin-bottom: 32px; }
    .section-head > p:last-child:not(.eyebrow) { font-size: 1.1rem; }
    .eyebrow { font-size: 1rem; }
    .muted,
    .quote-lead { font-size: 1.12rem; }

    .feature { padding: 26px 22px; }
    .feature h3 { font-size: 1.3rem; }
    .feature p { font-size: 1.05rem; }

    .process { grid-template-columns: 1fr; }
    .process li { display: grid; grid-template-columns: 40px 1fr; text-align: left; align-items: center; column-gap: 14px; padding: 18px 18px; }
    .process li span { grid-row: span 2; margin: 0; width: 36px; height: 36px; font-size: 1rem; }
    .process strong { font-size: 1.1rem; }
    .process small { font-size: .95rem; }

    .tab { padding: 11px 20px; font-size: 1rem; }
    .work span { font-size: .9rem; }

    .equip h3 { font-size: 1.25rem; }
    .equip p { font-size: 1.02rem; }

    .contact-card { padding: 32px 24px; }
    .map-links .btn { padding: 14px 22px; }

    /* 하단 고정 바 높이만큼 여백 */
    body { padding-bottom: var(--mobile-bar-h); }
    .mobile-bar {
        display: grid;
        grid-template-columns: 1fr 1.4fr;
        gap: 8px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: 0 -6px 20px rgba(0,0,0,.08);
    }
}

@media (max-width: 560px) {
    .inner { padding: 0 16px; }
    .feature-grid,
    .equip-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    /* 1열 카드에서 설비 사진을 크게 */
    .equip img,
    .equip-icon { height: 56vw; }
    .contact-cards { grid-template-columns: 1fr; }
    .contact-card strong { font-size: 1.5rem; }
    .map-links .btn { flex: 1; }
}
