/* =======================
   PRECISION MACHINING PAGE (최종 반응형 비율 축소 완성)
   ======================= */

:root {
    --mach-red: #e11d2e;
    --mach-gray: #555;
    --mach-black: #111;
}

/* ===== 전체 래퍼 ===== */
.business-content-wrap {
    position: relative;
    width: 100%;
    overflow-x: hidden; /* 가로 스크롤 방지 */
    background: #fff;
}
.business-content-wrap .bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0.25;
    z-index: 0;
}

/* ===== 콘텐츠 ===== */
.precision-machining-content {
    width: min(1200px, 92%);
    margin: 0 auto;
    text-align: center;
    padding: clamp(4rem, 6vw, 6rem) 0 clamp(6rem, 8vw, 8rem);
    position: relative;
    z-index: 1;
    font-family: "Noto Sans KR", system-ui, sans-serif;
}

/* =======================
   텍스트 (Title / Sub)
   ======================= */
.section-head {
    margin: clamp(3rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}

.section-title {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 800;
    color: var(--mach-black);
    margin-bottom: clamp(0.5rem, 1vw, 1rem);
    margin-top: clamp(3rem, 6vw, 5rem);
    letter-spacing: 0.5px;
}

.section-sub {
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    color: var(--mach-gray);
    line-height: 1.6;
    margin-bottom: clamp(4rem, 6vw, 5rem);
}

/* =======================
   정밀가공 섹션
   ======================= */
.machining-gallery {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: clamp(3rem, 6vw, 8rem);
    margin: 0 auto clamp(3rem, 6vw, 4rem);
    width: 100%;
    max-width: 1200px;
}

.machining-item {
    text-align: center;
    flex: 1 1 0;
    min-width: 0;
}
.machining-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    background: #fff;
    transition: transform 0.3s ease;
}
.machining-item img:hover {
    transform: scale(1.03);
}
.machining-item p {
    font-size: clamp(0.8rem, 1.4vw, 0.9rem);
    font-weight: 600;
    margin-top: clamp(0.6rem, 1vw, 0.8rem);
}

/* =======================
   장비 제작 섹션
   ======================= */
.equipment-section {
    margin-top: clamp(4rem, 6vw, 5rem);
}

.equipment-top {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: clamp(3rem, 6vw, 8rem);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.equipment-top img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    background: #fff;
    transition: transform 0.3s ease;
}

.equipment-top img:hover {
    transform: scale(1.03);
}

.caption {
    font-size: clamp(0.8rem, 1.4vw, 0.9rem);
    font-weight: 600;
    margin-top: clamp(1.5rem, 3vw, 3rem);
    color: #333;
}

/* =======================
   프로세스 이미지 섹션
   ======================= */
.equipment-process {
    margin-top: clamp(6rem, 10vw, 10rem);
}

.process-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(2rem, 5vw, 5rem);
    margin: clamp(6rem, 10vw, 10rem) auto clamp(2rem, 4vw, 3rem);
    width: 100%;
    max-width: 1000px;
}

/* ===== 이미지 공통 ===== */

.equipment-top img,
.process-row img:not(.arrow) {
    width: auto;
    max-width: 40%;
    height: auto;
    border-radius: 6px;
    background: #fff;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}
.machining-item img {
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    background: #fff;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* ===== 화살표 (20px 고정 크기) ===== */
.process-row .arrow {
    width: 50px;
    height: auto;
    flex-shrink: 0;
    margin: 0 0.8rem;
    display: inline-block;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS (1200px / 800px / 600px)
   ========================================================= */

/* --- 1200px 이하 --- */
@media (max-width: 1200px) {
    .machining-gallery,
    .equipment-top,
    .process-row {
        gap: clamp(1.5rem, 3vw, 2rem);
        justify-content: center;
        max-width: 100%;
        padding: 0 2%;
    }


    .equipment-top img,
    .process-row img:not(.arrow) {
        max-width: 45%;
    }
    .machining-item img {
        max-width: 100%;
    }
}

/* --- 800px 이하 --- */
@media (max-width: 800px) {
    .machining-gallery,
    .equipment-top,
    .process-row {
        gap: clamp(1rem, 2.5vw, 1.5rem);
    }


    .equipment-top img,
    .process-row img:not(.arrow) {
        max-width: 48%;
    }
    .machining-item img {
        max-width: 100%;
    }

    .section-title {
        margin-bottom: clamp(0.5rem, 1vw, 0.8rem);
    }
    .section-sub {
        margin-bottom: clamp(3rem, 5vw, 4rem);
    }

    .process-row .arrow {
        width: 30px;
        margin-inline: 0.3rem;
    }
}

/* --- 600px 이하 --- */
@media (max-width: 600px) {
    .machining-gallery,
    .equipment-top,
    .process-row {
        gap: 1rem;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        width: 100%;
    }


    .equipment-top img,
    .process-row img:not(.arrow) {
        max-width: 42%;
    }

    .machining-item img {
        max-width: 100%;
    }

    .process-row .arrow {
        width: 20px;
        margin: 0 0.4rem;
    }

    .machining-item p,
    .caption {
        font-size: clamp(0.75rem, 1.1vw, 0.85rem);
        line-height: 1.4;
    }

    .section-title {
        font-size: clamp(1.1rem, 4vw, 1.3rem);
        margin-bottom: 0.5rem;
    }
    .section-sub {
        margin-bottom: clamp(2rem, 5vw, 3rem);
    }
}
