/* ==========================================
   기본 설정 및 공통 변수
   ========================================== */
:root { --primary: #0050a0; --primary-dark: #003670; --bg-light: #fdfdfd; --bg-alt: #f8f9fa; --text-main: #333333; --border-color: #eaeaea; --max-width: 1200px; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; margin: 0; padding: 0; }
body { font-family: 'NanumSquare', sans-serif; color: var(--text-main); background-color: var(--bg-light); line-height: 1.6; overflow-x: hidden; width: 100%; margin: 0; padding: 0; padding-top: 70px; }
iframe, img { max-width: 100%; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; }
.section.alt-bg, .alt-bg { background-color: var(--bg-alt); }
.section-subtitle { display: block; font-size: 0.85rem; font-weight: 800; color: var(--primary); letter-spacing: 2px; text-align: center; margin-bottom: 5px;}
.section-title { font-size: 2.2rem; text-align: center; margin-bottom: 50px; font-weight: 800; color: #111; }
.sub-title { font-size: 1.4rem; color: var(--primary); font-weight: 700; margin-bottom: 25px; padding-bottom: 10px; border-bottom: 2px solid var(--border-color); }
.en-sub { font-size: 0.9rem; color: #999; margin-left: 10px; font-weight: normal; }

/* ==========================================
   내비게이션 바
   ========================================== */
.navbar { position: fixed; top: 0; left: 0; right: 0; height: 70px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); z-index: 9999; display: flex; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.nav-logo { display: flex; align-items: center; height: 100px; max-width: 400px; }
.logo-img { width: auto; height: 100%; max-width: 100%; object-fit: contain; display: block; }
.nav-menu { display: flex; gap: 35px; align-items: center; }
.nav-link { text-decoration: none; color: #444; font-weight: 700; font-size: 1.05rem; white-space: nowrap; transition: 0.3s; }
.nav-link:hover { color: var(--primary); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--primary); }

/* ==========================================
   INTRO 영역
   ========================================== */
.hero-section { position: relative; width: 100%; height: calc(100vh - 70px); min-height: 500px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: #000; z-index: 1; }
.hero-slide-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; z-index: -2; transform: scale(1.1); transition: opacity 1.5s ease-in-out; }
.hero-slide-layer.active { opacity: 1; transform: scale(1); transition: opacity 1.5s ease-in-out, transform 7s ease-out; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: -1; }
.hero-content { position: relative; z-index: 10; color: #fff; padding: 0 20px; }
.hero-overline { display: block; font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: 5px; margin-bottom: 15px; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.hero-content h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; }
.hero-content p { font-size: 1.15rem; font-weight: 400; opacity: 0.9; }
.hero-dots { position: absolute; bottom: 30px; left: 0; width: 100%; display: flex; justify-content: center; gap: 10px; z-index: 20; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: 0.3s; }
.hero-dot.active { background: #fff; transform: scale(1.3); }

/* ==========================================
   1. 회사소개 (CEO 및 조직도)
   ========================================== */
.about-ceo { display: flex; gap: 60px; margin-bottom: 70px; }
.ceo-message { flex: 2; }
.ceo-message h2 { font-size: 2.1rem; margin: 10px 0 25px 0; line-height: 1.4; }
.ceo-message p { margin-bottom: 15px; color: #555; }
.ceo-profile { flex: 1; background: #fff; padding: 35px; border-top: 5px solid var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.04); border-radius: 12px; }
.ceo-signature { text-align: right; margin-top: 40px; }
.ceo-signature img { height: 50px; width: auto; vertical-align: middle; margin-right: 8px; }
.ceo-signature span { font-size: 1.15rem; color: #333; vertical-align: middle; }
.ceo-photo-box { width: 220px; height: 280px; margin: 0 auto 25px auto; background: transparent; border-radius: 50%; -webkit-mask-image: radial-gradient(ellipse at center, black 65%, transparent 100%); mask-image: radial-gradient(ellipse at center, black 65%, transparent 100%); }
.ceo-photo-box img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.titles h3 { font-size: 1.6rem; margin-bottom: 15px; color: #111; }
.titles ul li { font-size: 1.15rem; line-height: 1.8; color: #444; margin-bottom: 5px; }
.history-certi-grid, .management-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 70px; }
.policy-card, .org-card { background: #f8f9fa; padding: 30px; border: 1px solid #eee; border-radius: 12px; }
.policy-content .highlight { font-weight: 700; color: var(--primary); margin-bottom: 15px; font-size: 1.1rem; }
.org-image-wrap img { width: 100%; height: auto; display: block; border-radius: 8px; }

/* ==========================================
   연혁 및 인증 영역
   ========================================== */
.certi-text-list { list-style: none; padding: 0; margin: 0; }
.certi-text-list li { list-style: none; font-size: 0.95rem; color: #444; line-height: 1.7; margin-bottom: 10px; position: relative; padding-left: 15px; word-break: keep-all; }
.certi-text-list li::before { content: '•'; position: absolute; left: 0; color: var(--primary); font-weight: bold; font-size: 1.2rem; top: -2px; }
.c-point { font-weight: 800; color: var(--primary); font-size: 1.05rem; margin-right: 6px; display: inline-block; }

.t-desc-list { list-style: none; padding: 0; margin: 10px 0 0 0; }
.t-desc-list li { display: flex; align-items: flex-start; font-size: 0.95rem; color: #444; margin-bottom: 8px; line-height: 1.5; word-break: keep-all; }
.t-month { font-weight: 800; color: var(--primary); min-width: 75px; flex-shrink: 0; display: inline-block; }
.t-month::after { content: '|'; color: #ccc; margin-left: 8px; font-weight: normal; }

.scroll-timeline { height: 480px; overflow-y: auto; padding-left: 30px; border-left: 3px solid var(--primary); padding-right: 15px;}
.scroll-timeline::-webkit-scrollbar { width: 6px; }
.scroll-timeline::-webkit-scrollbar-thumb { background: #bbb; border-radius: 4px; }
.timeline-item { position: relative; margin-bottom: 30px; }
.timeline-item::before { content: ''; position: absolute; left: -38px; top: 4px; width: 12px; height: 12px; background: #fff; border: 3px solid var(--primary); border-radius: 50%; }
.t-year { font-weight: 800; font-size: 1.25rem; color: var(--primary); }

/* 🔥 인증 스크롤 고정 */
.certi-photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; height: 350px; overflow-y: auto; padding-right: 10px; padding-bottom: 10px; }
.certi-photo-grid::-webkit-scrollbar { width: 6px; }
.certi-photo-grid::-webkit-scrollbar-thumb { background: #bbb; border-radius: 4px; }
.certi-photo-grid img { width: 100%; height: auto; border: 1px solid #ddd; border-radius: 6px; box-shadow: 0 2px 5px rgba(0,0,0,0.03); transition: transform 0.2s; object-fit: contain; background-color: #fff; cursor: pointer; }
.certi-photo-grid img:hover { transform: scale(1.05); }
.tour-carousel img { cursor: pointer; }

/* ==========================================
   주요 협력사 (Our Clients)
   ========================================== */
.client-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; align-items: center; }
.client-logo:nth-child(-n+3) { grid-column: span 4; }
.client-logo:nth-child(n+4) { grid-column: span 3; }

.client-logo { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 20px; display: flex; justify-content: center; align-items: center; height: 80px; transition: 0.3s; }
.client-logo:hover { border-color: var(--primary); box-shadow: 0 5px 15px rgba(0,0,0,0.06); transform: translateY(-3px); }
.client-logo img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.3s; }
.client-logo:hover img { transform: scale(1.05); }

/* 특정 로고 개별 크기 확대 */
.client-logo:nth-child(1) img { transform: scale(1.4); } 
.client-logo:nth-child(1):hover img { transform: scale(1.45); } 
.client-logo:nth-child(2) img { transform: scale(3.5); } 
.client-logo:nth-child(2):hover img { transform: scale(3.55); }
.client-logo:nth-child(3) img { transform: scale(1.4); } 
.client-logo:nth-child(3):hover img { transform: scale(1.45); } 
.client-logo:nth-child(4) img { transform: scale(1.5); } 
.client-logo:nth-child(4):hover img { transform: scale(1.55); } 
.client-logo:nth-child(7) img { transform: scale(1.5); } 
.client-logo:nth-child(7):hover img { transform: scale(1.55); } 

/* ==========================================
   2. 제품소개 & 공정
   ========================================== */
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.product-card { background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.card-img-wrap { height: 160px; background: #fafafa; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 15px; font-weight: 700; color: #111; }

.process-flow { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #eee; padding: 30px; border-radius: 12px; margin-bottom: 60px; }
.process-step { text-align: center; flex: 1; }
.step-num { font-size: 1.8rem; font-weight: 900; color: #e0e0e0; margin-bottom: 5px; }
.process-arrow { font-size: 1.5rem; color: #ccc; }

.spec-table-wrap { overflow-x: auto; width: 100%; margin-bottom: 60px; }
.spec-table { width: 97%; border-collapse: collapse; text-align: center; font-size: 0.9rem; background: #fff; border: 2px solid #ccc; }
.spec-table th, .spec-table td { border: 1px solid #ddd; padding: 15px 10px; } 
.spec-table th { background-color: #f7f7f7; color: #555; font-size: 0.85rem; }
.spec-table .model-name { background-color: #e6f7ff; color: var(--primary-dark); font-size: 0.95rem; font-weight: 900; width: 20%; border: 2px solid var(--primary); }
.valign-middle { vertical-align: middle; }

.equipment-card { display: flex; gap: 40px; align-items: center; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 30px; margin-bottom: 40px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.equipment-card .spec-table-wrap { flex: 1; margin-bottom: 0; } 
.equipment-left { flex: 0.8; display: flex; flex-direction: column; gap: 20px; }

.equipment-text-box { background: #f8f9fa; padding: 20px; border-radius: 8px; border: 1px solid #eee; text-align: left; }
.loc-group { margin-bottom: 15px; }
.loc-group:last-child { margin-bottom: 0; }
.loc-badge { display: inline-block; background: var(--primary); color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 0.9rem; font-weight: bold; margin-bottom: 8px; }
.loc-group p { font-size: 0.95rem; color: #333; line-height: 1.5; font-weight: 700; margin: 0; word-break: keep-all; }

.equipment-multi-img { display: flex; gap: 10px; }
.img-item { flex: 1; text-align: center; } 
.img-item img { width: 100%; height: 130px; object-fit: cover; border-radius: 6px; border: 1px solid #ddd; margin-bottom: 8px; }
.img-item p { font-size: 0.85rem; font-weight: 800; color: #333; margin: 0; }

/* ==========================================
   만능 슬라이더(Carousel) 디자인
   ========================================== */
.carousel-container { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 10px 0; }
.carousel-track-container { width: 92%; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.4s ease-in-out; list-style: none; padding: 0; margin: 0; }
.carousel-slide { padding: 0 10px; box-sizing: border-box; }
.carousel-btn { background: #fff; border: 1px solid #ddd; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: absolute; z-index: 10; transition: 0.3s; color: #555; }
.carousel-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

.tour-carousel .carousel-slide { flex: 0 0 calc(100% / 2); }
.tour-carousel img { width: 100%; height: 360px; object-fit: cover; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.product-carousel .carousel-slide { flex: 0 0 calc(100% / 3); text-align: center; }
.product-item img { width: 100%; height: 280px; object-fit: cover; border-radius: 8px; margin-bottom: 15px; border: 1px solid #eee; transition: 0.3s; cursor: pointer; }
.product-item img:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.08); }
.product-item p { font-size: 1.1rem; font-weight: 700; color: #333; }

.equip-carousel .carousel-slide { flex: 0 0 calc(100% / 4); text-align: center; }
.equip-carousel img { width: 100%; height: 150px; object-fit: contain; border-radius: 8px; margin-bottom: 10px; background-color: #fff;}

/* ==========================================
   고객문의 섹션 (좌/우 카드형)
   ========================================== */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.location-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 30px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.info-block { margin-bottom: 20px; }
.info-block h4 { font-size: 1.25rem; border-left: 4px solid var(--primary); padding-left: 12px; margin-bottom: 15px; color: #111; }
.info-block p { font-size: 1.05rem; color: #444; margin-bottom: 8px; word-break: keep-all; }
.map-box { width: 100%; height: 300px; border-radius: 8px; overflow: hidden; border: 1px solid #ddd; }

/* ==========================================
   팝업(모달) & 기타 기능
   ========================================== */
.footer { background: #222; color: #888; text-align: center; padding: 20px; font-size: 0.9rem; }
.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.85); align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.modal.active { display: flex; }
.modal-content { max-width: 90%; max-height: 90%; border-radius: 8px; box-shadow: 0 5px 25px rgba(0,0,0,0.5); animation: zoomIn 0.3s ease; }
.modal-close { position: absolute; top: 20px; right: 35px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.modal-close:hover { color: var(--primary); }
@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.7s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

#termsModal .modal-content { cursor: default; }
#termsBtn { cursor: pointer; transition: 0.3s; }
#termsBtn:hover { color: #fff !important; }

.product-desc-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-top: 40px; margin-bottom: 40px; padding: 0 15px; font-family: 'NanumSquare', sans-serif; }
.desc-card { background: #ffffff; border: 1px solid #eaeaea; border-radius: 12px; padding: 40px 25px 30px; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; position: relative; overflow: hidden; }
.desc-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08); border-color: var(--primary); /* 테두리에 포인트 컬러 부여 */ }
.card-badge { position: absolute; top: 0; left: 50%; transform: translateX(-50%); background-color: var(--primary); color: #fff; padding: 6px 18px; font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; text-transform: uppercase; }
.card-icon { font-size: 2.5rem; margin-bottom: 15px; }
.desc-title { font-size: 1.2rem; color: #222; margin-bottom: 15px; font-weight: 800; letter-spacing: -0.5px; }
.desc-text { font-size: 0.95rem; color: #666; line-height: 1.7; word-break: keep-all; }
.desc-text strong { color: var(--primary); font-weight: 800; }

.org-image-wrap img {cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.org-image-wrap img:hover { transform: scale(1.02); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); }

.unified-desc-card { display: grid; grid-template-columns: repeat(2, 1fr); background: #ffffff; border: 1px solid #eaeaea; border-radius: 12px; margin-top: 40px; margin-bottom: 40px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; overflow: hidden; }
.unified-desc-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08); border-color: var(--primary); }
.desc-item { position: relative; padding: 50px 30px 40px; text-align: center; border-right: 1px solid #f0f0f0; }
.desc-item:last-child { border-right: none; }
.desc-item .card-badge { position: absolute; top: 0; left: 50%; transform: translateX(-50%); background-color: var(--primary); color: #fff; padding: 6px 18px; font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; text-transform: uppercase; }
.desc-item .card-icon { font-size: 2.5rem; margin-bottom: 15px; }
.desc-item .desc-title { font-size: 1.2rem; color: #222; margin-bottom: 15px; font-weight: 800; letter-spacing: -0.5px; }
.desc-item .desc-text { font-size: 0.95rem; color: #666; line-height: 1.7; word-break: keep-all; }
.desc-item .desc-text strong { color: var(--primary); font-weight: 800; }

.process-group { background: #fff; border: 1px solid #eaeaea; border-radius: 12px; padding: 35px 30px; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); }
.process-group-title { font-size: 1.3rem; color: var(--primary); margin-bottom: 25px; text-align: center; font-weight: 800; border-bottom: 2px solid #f0f0f0; padding-bottom: 15px; letter-spacing: -0.5px; }
.process-row { display: flex; justify-content: center; align-items: center; gap: 15px; }
.process-item { text-align: center; width: 140px; flex: 0 0 auto; }
.process-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; margin-bottom: 12px; border: 1px solid #eee; transition: transform 0.3s ease; }
.process-item img:hover { transform: scale(1.05); }
.process-item p { font-size: 1.05rem; font-weight: 800; color: #222; margin: 0; word-break: keep-all; letter-spacing: -0.5px; }
.process-group .process-arrow { font-size: 1.5rem; color: #ccc; font-weight: bold; flex-shrink: 0; }

/* ==========================================
   모바일 반응형 (Mobile overrides)
   ========================================== */
@media (max-width: 1024px) {
    .client-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-menu { display: none; position: absolute; top: 70px; left: 0; width: 100%; background: #fff; flex-direction: column; text-align: center; padding: 20px 0; border-bottom: 1px solid #eee; }
    .nav-menu.active { display: flex; }
    .hero-content h1 { font-size: 1.4rem !important; font-weight: 800 !important; margin-bottom: 15px !important; word-break: keep-all !important; }
    .hero-content p { font-size: 0.95rem !important; font-weight: 400 !important; opacity: 0.9 !important; word-break: keep-all !important; }

    .about-ceo, .history-certi-grid, .management-grid, .contact-grid { flex-direction: column; grid-template-columns: 1fr; gap: 30px; }
    .gallery-grid, .product-grid { grid-template-columns: 1fr 1fr; }
    
    .process-flow { flex-direction: column; gap: 15px; }
    .process-arrow { transform: rotate(90deg); }

    .client-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .client-logo, .client-logo:nth-child(-n+3), .client-logo:nth-child(n+4) { grid-column: span 1 !important; height: 60px; padding: 10px; }
    .client-logo img { transform: scale(1) !important; width: 100%; height: 100%; object-fit: contain; }
    .client-logo:hover img { transform: scale(1.05) !important; }

    .equipment-card { flex-direction: column; padding: 15px; gap: 15px; }
    .equipment-multi-img { flex-direction: row; gap: 5px; }
    .equipment-multi-img .img-item { flex: 1; }
    .equipment-multi-img .img-item img { width: 100%; height: 80px; margin-bottom: 5px; }
    .equipment-multi-img .img-item p { font-size: 0.75rem; }
    .spec-table-wrap { width: 100%; padding: 0 5px; }
    .spec-table { width: 100%; }
   
    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .map-box { height: 250px; }
    
    .tour-carousel .carousel-slide { flex: 0 0 100%; }
    .product-carousel .carousel-slide { flex: 0 0 calc(100% / 2); }

    .unified-desc-card { grid-template-columns: 1fr; }
    .desc-item { border-right: none; border-bottom: 1px solid #f0f0f0; padding: 40px 20px 30px; }
    .desc-item:last-child { border-bottom: none; }

    .process-row { flex-direction: row; justify-content: center; gap: 3px; }
    .process-item { width: auto; flex: 1; min-width: 50px; }
    .process-item img { height: 55px; margin-bottom: 5px; border-radius: 4px; }
    .process-item p { font-size: 0.65rem; letter-spacing: -0.5px; }
    .process-group .process-arrow { transform: none; margin: 0; font-size: 0.8rem; flex: 0 0 auto; }

    .spec-table-wrap { overflow-x: hidden; padding: 0; }
    .spec-table { width: 100%; font-size: 0.65rem !important; table-layout: fixed; word-break: break-word; }
    .spec-table th, .spec-table td { padding: 8px 2px !important; }
    .spec-table .model-name { font-size: 0.75rem !important; width: 25%; }

    .card-badge { white-space: nowrap !important; font-size: 0.85rem !important; padding-left: 10px !important; padding-right: 10px !important; width: 85% !important; }
    h1, h2, h3, h4, p, span, li { word-break: keep-all !important; }
}
