/* --- 레이아웃 전체 --- */
body { margin: 0; display: flex; flex-direction: column; min-height: 100vh; background-color: #fff; }
main { flex: 1 0 auto; width: 100%; position: relative; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

/* --- GNB 헤더 --- */
.header { height: 80px; display: flex; align-items: center; background: #fff; position: absolute; top: 0; left: 0; width: 100%; z-index: 2000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { text-decoration: none; text-indent: -500em; width: 150px; height: 28px; background: url(../img/logo.svg) no-repeat; }
.nav-menu { display: flex; gap: 30px; }
.nav-item { color: #121212; text-decoration: none; font-weight: 900; font-size: 16px; }
.nav-item:hover { color: #2B549F; }

/* --- Mobile Header --- */
.button-container { display: none; position: absolute; top: 50%; right: 20px; width: 30px; height: 24px; margin-top: -12px; cursor: pointer; z-index: 120; transition: opacity 0.25s ease; }
.button-container.active .top { -webkit-transform: translateY(7px) translateX(0) rotate(45deg); transform: translateY(7px) translateX(0) rotate(45deg); background: #2B549F; }
.button-container.active .middle { opacity: 0; background: #2B549F; }
.button-container.active .bottom { -webkit-transform: translateY(-13px) translateX(0) rotate(-45deg); transform: translateY(-13px) translateX(0) rotate(-45deg); background: #2B549F; }
.button-container span { background: #2B549F; border: none; height: 4px; width: 100%; position: absolute; left: 0; transition: all 0.35s ease; cursor: pointer; border-radius: 4px; }
.button-container span:nth-of-type(2) { top: 50%; margin-top: -2px; }
.button-container span:nth-of-type(3) { bottom: 0; }
.overlay { position: fixed; background: #fff; top: 0; right: 0; width: 100%; max-width: 768px; height: 100vh; opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s, height 0.35s; overflow-y: auto; z-index: 100; box-shadow: -20px 0 40px rgba(0, 0, 0, 0.16); }
.overlay .side-menu-wrap { position: relative; width: 100%; height: 100%; background: #fff; }
.overlay.open { opacity: 1; visibility: visible; }
.overlay .side-header { width: 100%; height: 116px; padding: 0 0 0 20px; border-bottom: 1px solid #f1f1f1; display: -webkit-flex; display: -moz-flex; display: -ms-flex; display: -o-flex; display: flex; align-items: center; box-sizing: border-box; }
.overlay .side-header .util ul { display: flex; align-items: center; }
.overlay .side-header .util ul li { margin-right: 4px; }
.overlay-menu { padding-top: 60px; }
.overlay-menu .main-cate { padding: 19px 0; }
.overlay .login-area { width: 100%; display: flex; align-items: center; }
.overlay .login-area li a { font-size: 12px; }
.overlay .gnb_1depth { position: relative; width: 100%; height: 100%; margin: 0 auto; text-align: left; display: -webkit-flex; display: -moz-flex; display: -ms-flex; display: -o-flex; display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: flex-start;
    border-top: 1px solid #f5f5f5; }
.overlay .gnb_1depth .item_1depth { width: 100%; position: relative; display: block; text-align: left; line-height: 1.2; cursor: pointer; margin: 0; }
.overlay .gnb_1depth .item_1depth:before, .overlay .gnb_1depth .item_1depth:after { position: absolute; right: 1.6rem; display: block; clear: both; content: ''; width: 10px; height: 2px; background: #131313; transition: all ease 0.1s; }
.overlay .gnb_1depth .item_1depth:before { transform: rotate(90deg); top: 30px; }
.overlay .gnb_1depth .item_1depth:after { transform: rotate(0deg); top: 30px; }
.overlay .gnb_1depth .item_1depth > a { display: block; position: relative; text-decoration: none; overflow: hidden; line-height: 1.2; border-bottom: 1px solid #e1e1e1; font-weight: 600; text-align: left; padding: 1.6rem; margin-bottom: 0; }
.overlay .gnb_1depth .item_1depth .gnb_2depth { display: none; }
.overlay .gnb_1depth .item_1depth .gnb_2depth a { padding: 1.6rem; display: block; border-bottom: solid 1px #e1e1e1; }

/* --- 메인 히어로 섹션 --- */
.main-hero { position: relative; width: 100%; min-height: 700px; /* 높이를 약간 조절 */ background: #fff; display: flex; align-items: center; padding-top: 80px; overflow: hidden; }
.hero-container { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 50px; z-index: 10; }
.hero-text-content { color: #fff; flex: 1; }
.hero-text-content h1 { font-size: 48px; font-weight: 800; line-height: 1.3; margin-bottom: 20px; }
.hero-text-content p { font-size: 18px; color: rgba(255,255,255,0.7); }
.main-mov { position: absolute; left: 0; top: -30px; width: 100%; overflow: hidden; z-index: 1; }
.main-mov video { width: 100%; }
.main-mov .mask { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: url("../img/mask.png") top center  no-repeat; }

/* --- 특장점 섹션 (여백 축소 수정) --- */
.section-features { padding: 80px 0; /* 120px -> 80px로 축소 */ background: #fff; }
.section-title { text-align: center; font-size: 32px; font-weight: 800; margin-bottom: 50px; /* 60px -> 50px로 축소 */ color: #1a1a1a;  }
.text-blue { color: #2B549F; }
.text-orange { color: #FB694C; }
.feature-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }

/* --- 프로세스 섹션 --- */
.section-process { padding: 80px 0; background-color: #f8faff; border-top: 1px solid #edf2f7; }

/* --- 사례 섹션 --- */
.section-example { padding: 80px 0; background-color: #fff; border-top: 1px solid #edf2f7; }
.example-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }

/* --- 기술력 섹션 --- */
.section-patent { padding: 80px 0; background-color: #fff; border-top: 1px solid #edf2f7; }

/* --- 배너 섹션 --- */
.section-banner { padding: 80px 0; background-color: #2B549F; }
.section-banner h2 { color: #fff; }
.section-banner .container div:nth-child(2) { text-align: center; }

/* --- 푸터 --- */
.footer { background: #1a1c1e; color: #fff; padding: 60px 0; }
.footer-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:40px; }
.footer-logo { font-size:24px; font-weight:800; }
.footer-sns { display:flex; gap:20px; }
.footer-body .footer-links { display:flex; gap:20px; margin-bottom:20px; }
.footer-body .footer-links a { color:var(--gray-300); font-size:14px; }
.footer-body .footer-info { font-size:13px; color:var(--text-muted); line-height:1.8; }
.footer-bottom { margin-top:40px; padding-top:20px; border-top:1px solid var(--gray-800); font-size:12px; color:var(--text-muted); }

/* --- 서브 페이지 상단 비주얼 --- */
.sub-visual { background: linear-gradient(135deg, var(--primary-blue), #5a87d2); /* 블루 계열 그라데이션 */ color: var(--white); padding: 100px 0 60px; /* 헤더 높이 감안하여 상단 여백 조정 */ text-align: center; position: relative; overflow: hidden; margin-top: 80px; /* 헤더 높이만큼 여백 */ }
.sub-visual::before { /* 배경 패턴 (선택 사항) */ content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('../img/sub_visual_pattern.png') repeat; /* 패턴 이미지 필요 */ opacity: 0.1; z-index: 1; }
.sub-visual .container { position: relative; z-index: 2; }
.sub-title { font-size: 38px; font-weight: 800; margin-bottom: 15px; letter-spacing: -1px; }
.sub-description { font-size: 18px; line-height: 1.5; opacity: 0.9; }


/* --- 견적 페이지 섹션 --- */
.section-estimate-process { padding: 80px 0; background-color: var(--gray-50); }
.estimate-process-steps { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; }
.estimate-form-wrap { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-width: 800px; margin: 0 auto; padding: 40px; min-height: 500px; /* 최소 높이 설정 */ display: flex; /* 내부 콘텐츠 정렬을 위해 추가 */ flex-direction: column; /* 내부 콘텐츠 정렬을 위해 추가 */ justify-content: center; /* 내부 콘텐츠 수직 중앙 정렬 */ }
.step-content { display: none; /* 기본적으로 숨김 */ text-align: center; flex-grow: 1; /* 부모 flex 컨테이너에서 공간 채움 */ }
.step-content.active { display: flex; /* 활성화 시 flex로 표시 */ flex-direction: column; justify-content: center; align-items: center; width: 100%; }
.step-content h3 { font-size: 28px; font-weight: 800; color: var(--text-dark); margin-bottom: 30px; }
.hidden { display: none; } /* 접근성을 위한 숨김 */

