/* =======================
   COMPONENTS PAGE (반응형 완성)
   ======================= */

:root {
    --comp-red: #e11d2e;
    --comp-gray: #000000;
    --comp-black: #111;
}

/* ===== 배경 ===== */
.business-content-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #fff;
}
.business-content-wrap .bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 0;
}

/* 배경 투명 오버레이 */
.components-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 0;
    opacity: 0.25;
}
.components-background img {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== 콘텐츠 ===== */
.components-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;
}

/* =======================
   성과 영역
   ======================= */
.achievement {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    margin: clamp(3rem, 6vw, 5rem) auto;
    max-width: 1100px;
    text-align: left;
    gap: 2rem;
}
.achievement-left {
    flex: 1;
}
.achievement-title {
    font-size: clamp(1.6rem, 3vw, 2rem);
    color: var(--comp-red);
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.achievement-sub {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: #444;
}
.achievement-right {
    flex: 1.2;
    display: flex;
    align-items: center;
}
.achievement-images {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.cert-img {
    border-radius: 6px;
    object-fit: contain;
}
.cert-1 { width: clamp(140px, 20vw, 180px); }
.cert-2 { width: clamp(220px, 28vw, 320px); }

/* =======================
   COMPONENTS SECTION
   ======================= */
.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: 700;
    margin-bottom: 1rem;
}
.section-sub {
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    opacity: 0.85;
}
.section-sub-02 {
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    opacity: 0.9;
    color: #000;
    margin-top: 1rem;
}

/* PROCESS GRID */
.components-process {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 2rem);
    margin: clamp(3rem, 6vw, 5rem) auto;
    width: min(1200px, 95%);
}

/* 왼쪽 6개 */
.components-grid-left {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 1.2rem);
    flex: 2;
}
.components-grid-left .card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    text-align: center;
    font-size: clamp(0.8rem, 1.3vw, 0.9rem);
    aspect-ratio: 1 / 1.1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.components-grid-left .card img {
    max-width: 100%;
}
.components-grid-left .card p {
    background: #ddd;
    margin: -1rem -1rem 0rem;
    padding: 0.5rem;
    font-size: clamp(0.55rem, 1.2vw, 0.85rem);
    font-weight: 500;
}

/* 화살표 */
.components-arrow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex: 0.3;
    padding-top: 0.2rem;
}
.components-arrow img {
    max-width: clamp(30px, 5vw, 50px);
}

/* 오른쪽 2개 */
.components-grid-right {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
    flex: 1;
}
.components-grid-right .result-card {
    position: relative;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.components-grid-right img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.components-grid-right p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.4rem;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    font-weight: 500;
    background: rgba(0,0,0,0.6);
    color: #fff;
    text-align: center;
}

/* =======================
   INSULATION SECTION
   ======================= */
.insulation-section {
    margin-top: clamp(6rem, 8vw, 8rem);
    text-align: center;
}
.insulation-title {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 800;
    margin-bottom: 0.3rem;
}
.insulation-sub {
    font-size: clamp(0.85rem, 1.4vw, 0.9rem);
    color: #444;
    opacity: 0.85;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* 카드 그리드 */
.insulation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 3vw, 2rem);
    justify-content: center;
    width: min(1200px, 95%);
    margin: 0 auto clamp(5rem, 8vw, 6rem);
}
.insul-card {
    background: rgba(233, 233, 233, 0.9);
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem);
    border-radius: 8px;
    text-align: left;
    position: relative;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.insul-card:hover {
    transform: translateY(-5px);
}
.insul-header {
    font-size: clamp(0.7rem, 1vw, 0.75rem);
    font-weight: 700;
    color: #fff;
    background: #000;
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1.2rem;
}
.insul-icon {
    text-align: right;
    margin-bottom: 1rem;
}
.insul-icon img {
    width: clamp(70px, 10vw, 100px);
    opacity: 0.9;
}
.insul-card h4 {
    font-size: clamp(0.95rem, 1.6vw, 1rem);
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #111;
}
.insul-card p {
    font-size: clamp(0.8rem, 1.4vw, 0.85rem);
    color: #555;
    line-height: 1.5;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS (1200px / 800px / 600px)
   ========================================================= */

/* --- 1200px 이하 --- */
@media (max-width: 1200px) {
    .achievement {
        flex-wrap: wrap;
        text-align: center;
    }
    .achievement-right {
        justify-content: center;
    }

    .components-process {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        width: 100%;
    }

    .components-grid-left {
        grid-template-columns: repeat(3, 1fr);
        justify-items: center;
        width: 100%;
        margin: 0 auto;
    }

    .components-arrow {
        display: flex;
        justify-content: center;
        transform: rotate(90deg);
        margin: 0;
    }

    .components-grid-right {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
        width: 90%;
    }

    .components-grid-left .card,
    .components-grid-right .result-card {
        box-shadow: 0 3px 10px rgba(0,0,0,0.08);
        border-radius: 8px;
    }
}

/* --- 800px 이하: achievement 텍스트 위로 올리기 --- */
@media (max-width: 800px) {
    .achievement {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .achievement-left {
        order: 1;
        text-align: center;
    }

    .achievement-right {
        order: 2;
        justify-content: center;
    }

    .components-arrow {
        margin-top: -2rem;
        margin-bottom: -2rem;
    }
}

@media (max-width: 600px) {
    .insulation-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
        margin: 0 auto;
    }

    .insul-card {
        text-align: left;
        padding: 1.5rem 1rem;
    }

    .insul-icon img {
        width: 80px;
    }

    .achievement {
        flex-direction: column-reverse;
    }
    .cert-1 { width: clamp(120px, 20vw, 180px); }
    .cert-2 { width: clamp(200px, 28vw, 320px); }

}


