/* ==========================================================================
   1. 디자인 시스템 & 변수 (GS E&C - ECLAT Identity)
   ========================================================================== */
:root {
    /* 브랜드 컬러 시스템 */
    --primary-color: #064E3B;    /* GS E&C 다크 그린 (신뢰와 무게감) */
    --secondary-color: #059669;  /* 에너지 그린 (에너지 및 친환경) */
    --accent-color: #D97706;     /* 황금빛 오렌지 (기회 및 하이라이트) */
    
    /* 텍스트 컬러 시스템 */
    --text-primary: #111827;     /* 헤드라인용 차콜 */
    --text-body: #374151;        /* 본문용 회색 */
    --text-muted: #6B7280;       /* 약관 및 설명용 연회색 */
    --white: #ffffff;
    
    /* 배경색 시스템 */
    --bg-sage: #F0F4F2;          /* 세련된 세이지 그린 */
    --bg-dark: #0D2818;          /* 푸터 전용 딥 그린 */
    --bg-light: #F9FAFB;         /* 연한 회색 배경 */
    
    /* 레이아웃 디자인 요소 */
    --border-color: #E5E7EB;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    
    /* 그림자 시스템 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    
    /* 애니메이션 속도 */
    --transition-base: all 0.3s ease;
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. 기본 베이스 스타일 (Base Styles)
   ========================================================================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
}

html { 
    scroll-behavior: smooth; 
}

body { 
    font-family: 'Noto Sans KR', sans-serif; 
    color: var(--text-body); 
    line-height: 1.8; 
    font-size: 18px; 
    background-color: var(--white);
    word-break: keep-all;
    overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--text-primary); line-height: 1.3; font-weight: 900; }
p { margin-bottom: 1rem; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition-base); }
button { border: none; background: none; font-family: inherit; cursor: pointer; }

/* 공통 레이아웃 유틸리티 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.container-fluid { width: 100%; padding: 0; overflow: hidden; }

/* 섹션 공통 제목 스타일 */
.section-title { 
    font-size: 2.8rem; 
    text-align: center; 
    font-weight: 900; 
    margin-bottom: 80px; 
    color: var(--primary-color); 
    letter-spacing: -1.5px;
}

.section-title.white-text {
    color: var(--white) !important;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* ==========================================================================
   3. 헤더 & 상단 네비게이션 (Navbar - 모바일 텍스트 겹침 해결)
   ========================================================================== */
.navbar { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    background: rgba(255, 255, 255, 0.98); 
    border-bottom: 2px solid var(--bg-sage); 
    z-index: 1000; 
    padding: 16px 0; 
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.navbar .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.nav-brand { 
    font-size: 1.8rem; 
    font-weight: 900; 
    color: var(--primary-color); 
    letter-spacing: -2px;
}

.contact-btn { 
    background: var(--primary-color); 
    color: var(--white); 
    padding: 14px 28px; 
    border-radius: 10px; 
    font-weight: 800; 
    font-size: 1rem;
    transition: var(--transition-base);
    white-space: nowrap;
}

.contact-btn:hover { 
    background: var(--secondary-color); 
    transform: translateY(-2px);
}

/* ==========================================================================
   4. 메인 히어로 (Hero - 유튜브 배경 최적화)
   ========================================================================== */
.hero-fixed { 
    position: relative; 
    height: 85vh; 
    min-height: 700px; 
    background: var(--primary-color); 
    overflow: hidden; 
    margin-top: 75px;
    display: flex;         
    align-items: center;   
    justify-content: center; 
    text-align: center;
}

/* 유튜브 배경 래퍼: 트래픽 0 우회 설정 */
.hero-video-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none; /* 클릭 방지 */
}

/* 16:9 비율 유지하며 화면 꽉 채우기 */
.hero-video-wrapper iframe {
    width: 100vw;
    height: 56.25vw; /* 100/16*9 */
    min-height: 100vh;
    min-width: 177.77vh; /* 100/9*16 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-overlay { 
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.52); z-index: 2; 
}

.hero-container { 
    position: relative; z-index: 3; width: 100%; padding: 0 20px;
}

.hero-content { max-width: 1000px; margin: 0 auto; }

/* 자극형 카피: 흰색 텍스트 강조 스타일 */
.hero-subtitle { 
    font-size: 1.8rem; 
    color: var(--white); 
    font-weight: 800; 
    margin-bottom: 25px; 
    display: inline-block;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    letter-spacing: -0.5px;
}

.hero-title { 
    font-size: clamp(2.8rem, 8vw, 5rem); 
    color: var(--white); 
    font-weight: 900; 
    line-height: 1.25; 
    text-shadow: 0 5px 30px rgba(0,0,0,0.8);
}

.hero-desc {
    font-size: 1.5rem; 
    color: var(--white); 
    margin-top: 35px; 
    font-weight: 500;
    opacity: 0.9;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ==========================================================================
   5. 가치 재정의 섹션 (Company Intro)
   ========================================================================== */
.company-intro { padding: 160px 0 0; text-align: center; }

.eclat-title { font-size: 3.2rem; font-weight: 900; color: var(--primary-color); margin-bottom: 30px; letter-spacing: -2px; }

.eclat-tagline { color: var(--text-muted); font-weight: 700; letter-spacing: 6px; margin-bottom: 120px; font-size: 1.3rem; text-transform: uppercase; }

.eclat-solutions { 
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 160px; text-align: left; counter-reset: sol-counter; 
}

.solution-item { 
    position: relative; padding: 80px 45px 55px; background: var(--white); border: 1px solid var(--border-color); border-top: 10px solid var(--primary-color); border-radius: 0 0 24px 24px; box-shadow: var(--shadow-sm); transition: var(--transition-smooth);
}

.solution-item:hover { transform: translateY(-10px); box-shadow: var(--shadow-xl); }

.solution-item h4 { font-size: 1.85rem; font-weight: 900; color: var(--primary-color); margin-bottom: 25px; }

.solution-item p { font-size: 1.15rem; line-height: 1.8; color: var(--text-body); }

/* ==========================================================================
   5-1. 통계 비주얼 섹션 (Stats - 지시사항: 숫자 흰색 변경)
   ========================================================================== */
.stats-visual-section {
    position: relative; padding: 170px 0; background: url('images/stats-bg.jpg') center/cover no-repeat fixed; overflow: hidden;
}

.stats-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(6, 78, 59, 0.94), rgba(6, 78, 59, 0.82)); z-index: 1;
}

.stats-title { 
    position: relative; z-index: 2; color: var(--white); font-size: 2.8rem; font-weight: 900; margin-bottom: 80px; text-shadow: 0 4px 15px rgba(0,0,0,0.4); text-align: center;
}

.eclat-stats { 
    position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; 
}

.stat-item { 
    padding: 75px 25px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 28px; backdrop-filter: blur(12px); transition: var(--transition-smooth); text-align: center;
}

.stat-item:hover { transform: translateY(-15px); background: rgba(255, 255, 255, 0.15); border-color: var(--secondary-color); }

/* 지시사항 반영: 통계 숫자 흰색 변경 */
.stat-number { 
    font-size: 3.8rem; 
    font-weight: 900; 
    color: var(--white); 
    margin-bottom: 15px; 
    letter-spacing: -2px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.stat-label { color: var(--white); font-size: 1.25rem; font-weight: 600; opacity: 0.9; }

/* ==========================================================================
   6. 사업지 유형 섹션 (Business Types)
   ========================================================================== */
.business-types { padding: 150px 0; background: var(--bg-sage); text-align: center; }

.business-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1150px; margin: 0 auto; }

.business-item { 
    background: var(--white); border: 1px solid var(--border-color); padding: 80px 45px; border-radius: 28px; display: flex; flex-direction: column; align-items: center; transition: var(--transition-smooth); box-shadow: var(--shadow-sm);
}

.business-icon { width: 90px; height: 90px; color: var(--secondary-color); margin-bottom: 40px; }

.business-item h3 { font-size: 1.8rem; font-weight: 900; color: var(--primary-color); }

.business-item:hover { background: var(--primary-color); transform: translateY(-18px); box-shadow: 0 30px 60px rgba(6, 78, 59, 0.22); }
.business-item:hover .business-icon, .business-item:hover h3 { color: var(--white); }

.cta-section { width: 100%; display: flex; justify-content: center; margin-top: 110px; }

.cta-button { 
    display: inline-block; background: var(--primary-color); color: var(--white); padding: 28px 120px; border-radius: 12px; text-decoration: none; font-weight: 900; font-size: 1.5rem; box-shadow: 0 15px 35px rgba(6, 78, 59, 0.3); transition: var(--transition-smooth);
}

/* ==========================================================================
   7. 시공실적 슬라이더 (이미지 10개 정밀 무한 루프)
   ========================================================================= */
.projects { padding: 150px 0; background: var(--white); overflow: hidden; }

.projects-slider { width: 100%; overflow: hidden; position: relative; padding: 50px 0; }

.projects-track { 
    display: flex; 
    width: calc(430px * 20); 
    animation: scroll-left 100s linear infinite; 
}

.projects-track:hover { animation-play-state: paused; }

.project-image-slide { 
    width: 400px; height: 300px; margin-right: 30px; border-radius: 24px; overflow: hidden; flex-shrink: 0; box-shadow: var(--shadow-md);
}

.project-image-slide img { width: 100%; height: 100%; object-fit: cover; }

@keyframes scroll-left { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(calc(-430px * 10)); } 
}

/* ==========================================================================
   8. 수익 모델 섹션 (Revenue - Two-Track 카드)
   ========================================================================== */
.revenue-visual-section {
    position: relative; padding: 170px 0; background: url('images/revenue-bg.jpg') center/cover no-repeat fixed; overflow: hidden;
}

.revenue-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(255, 255, 255, 0.72), rgba(240, 244, 242, 0.68)); z-index: 1;
}

.revenue-container { position: relative; z-index: 2; text-align: center; }

.revenue-models-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 1100px; margin: 80px auto;
}

.model-card {
    background: rgba(255, 255, 255, 0.96); border-radius: 40px; padding: 70px 50px; text-align: left; display: flex; flex-direction: column; align-items: flex-start; border: 2.5px solid var(--border-color); transition: var(--transition-smooth); box-shadow: var(--shadow-lg);
}

.model-card.highlighted {
    border: 4px solid var(--secondary-color); background: var(--white); transform: scale(1.03);
}

.model-content h3 { font-size: 2.1rem; font-weight: 900; color: var(--primary-color); margin-bottom: 15px; }

.model-desc { font-size: 1.2rem; color: var(--secondary-color); font-weight: 800; margin-bottom: 40px; }

.model-features { padding-top: 35px; border-top: 1.5px solid var(--border-color); width: 100%; }

.model-features li { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; color: var(--text-primary); position: relative; padding-left: 30px; }

.model-features li::before { content: "✓"; position: absolute; left: 0; color: var(--secondary-color); font-weight: 900; font-size: 1.4rem; }

.model-features strong { color: var(--accent-color); font-weight: 900; }

.benefit-number { 
    background: var(--primary-color); color: var(--white); width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 35px; font-weight: 900; font-size: 1.6rem;
}

.company-message { 
    max-width: 1000px; margin: 120px auto 0; padding: 80px 20px; border-top: 4px dashed var(--primary-color); font-size: 1.9rem; font-weight: 800; color: var(--primary-color); line-height: 1.8;
}

/* ==========================================================================
   9. 문의하기 폼 (Inquiry Form - 지시사항: 콤팩트 사이즈 조율)
   ========================================================================== */
.inquiry { padding: 180px 0; background: var(--primary-color); text-align: center; }

.inquiry-form { 
    max-width: 700px; /* 지시사항 반영: 가로폭 축소 */
    width: 100%; 
    margin: 0 auto; 
    background: var(--white); 
    padding: 60px 50px; /* 내부 여백 축소 */
    border-radius: 32px; 
    text-align: left; 
    box-shadow: 0 40px 100px rgba(0,0,0,0.4); 
}

.form-group { margin-bottom: 30px; } /* 간격 축소 */

.form-group label { display: block; margin-bottom: 10px; font-weight: 900; color: var(--primary-color); font-size: 1.2rem; }

.form-group input { 
    width: 100%; padding: 22px; border: 2px solid var(--border-color); border-radius: 12px; background: var(--white) !important; font-size: 1.2rem; color: var(--text-primary); transition: var(--transition-base); box-shadow: var(--shadow-inner);
}

.form-group input:focus { border-color: var(--secondary-color); box-shadow: 0 0 0 6px rgba(5, 150, 105, 0.12); outline: none; }

.submit-btn { 
    display: block; width: 100%; padding: 24px; background: var(--primary-color); color: var(--white); border: none; border-radius: 12px; font-size: 1.5rem; font-weight: 900; cursor: pointer; margin-top: 40px; text-align: center; transition: var(--transition-smooth); box-shadow: 0 10px 30px rgba(6, 78, 59, 0.2);
}

.submit-btn:hover { background: var(--secondary-color); transform: translateY(-5px); }

.privacy-details { margin-top: 30px; padding: 35px; background: var(--bg-light); font-size: 1rem; border-radius: 20px; color: var(--text-muted); border: 1.5px solid var(--border-color); }

/* ==========================================================================
   10. 푸터 섹션 (Footer)
   ========================================================================== */
.footer { background: var(--bg-dark) !important; color: var(--white) !important; padding: 150px 0 100px; text-align: center; }

.footer-contact h3 { color: var(--secondary-color); font-size: 2.2rem; margin-bottom: 50px; font-weight: 900; }

.footer-buttons { display: flex; justify-content: center; gap: 40px; margin-top: 90px; }

.footer-btn { 
    padding: 24px 60px; background: var(--primary-color); color: var(--white) !important; text-decoration: none; border-radius: 14px; font-weight: 800; font-size: 1.4rem; transition: var(--transition-base); box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* ==========================================================================
   11. 반응형 최적화 (Responsive Design - 모바일 헤더 최적화)
   ========================================================================== */

/* 태블릿 및 작은 모니터 */
@media (max-width: 1150px) {
    .revenue-models-grid { grid-template-columns: 1fr; max-width: 750px; }
    .model-card.highlighted { transform: none; }
    .eclat-stats { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .business-grid { grid-template-columns: repeat(2, 1fr); max-width: 900px; }
    .stat-number { font-size: 3.4rem; }
}

/* 모바일 구간 (768px 이하) */
@media (max-width: 768px) {
    .hero-fixed { height: 70vh; min-height: 550px; }
    .hero-title { font-size: 3.4rem; }
    .section-title { font-size: 2.3rem; margin-bottom: 70px; }
    .footer-buttons { flex-direction: column; align-items: center; gap: 25px; }
    .inquiry-form { padding: 50px 30px; border-radius: 28px; }
}

/* 초소형 모바일 구간 (480px 이하 - 헤더 텍스트 제어) */
@media (max-width: 480px) {
    /* 지시사항 반영: 버튼의 특정 부분 숨김 */
    .m-hide { display: none !important; }
    
    .navbar { padding: 12px 0; }
    .nav-brand { font-size: 1.25rem; letter-spacing: -1.5px; } /* 로고 사이즈 축소 */
    
    .contact-btn { 
        padding: 10px 18px; 
        font-size: 0.85rem; /* 버튼 텍스트 및 패딩 축소 */
        border-radius: 6px;
    }

    .hero-title { font-size: 2.6rem; }
    .hero-subtitle { font-size: 1.3rem; }
    .stat-number { font-size: 3.2rem; }
    .eclat-stats { grid-template-columns: 1fr; }
    .business-grid { grid-template-columns: 1fr; }
    .project-image-slide { width: 310px; height: 230px; margin-right: 20px; }
    .submit-btn { font-size: 1.4rem; padding: 22px; }
}