/* Pretendard 웹폰트 CDN (Static 버전 - Safari 호환) */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-dynamic-subset.min.css');

/* ==========================================================================
   1. 디자인 시스템 변수 설정
   ========================================================================== */
:root {
    --primary-orange: #FF6B35;
    --primary-hover: #E55A2B;
    --brand-black: #1A1A1A;
    --text-dark: #333333;
    --text-grey: #666666;
    --text-light-grey: #999999;
    --bg-light: #F8F9FA;
    --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

/* 스크린리더 전용 (SEO h1 등) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   2. 기본 여백 및 초기화
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

html {
    width: 100%;
    max-width: 100vw; 
    overflow-x: clip; 
}

body {
    color: var(--text-dark);
    background-color: #ffffff;
    word-break: keep-all;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-synthesis: none;
}

main {
    flex: 1;
}

a { text-decoration: none; color: inherit; }
ul, li { list-style: none; }

/* ==========================================================================
   3. 유틸리티 및 레이아웃 공통 요소
   ========================================================================== */
.pc-br { display: block; }
.mo-br { display: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ==========================================================================
   4. 공통 헤더 (Sticky)
   ========================================================================== */
.header {
    width: 100%;
    height: 72px;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    border-bottom: none !important;
    box-shadow: none !important;
}

.header .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-img {
    height: 24px;
    width: auto;
    display: block;
}

#menu-toggle { display: none; }

.nav-overlay {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 95;
    cursor: pointer;
}

.menu-icon {
    display: none;
    cursor: pointer;
    width: 24px;
    height: 18px;
    flex-direction: column;
    justify-content: space-between;
    z-index: 110;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-links { display: flex; gap: 40px; }
.nav-links a { font-size: 16px; font-weight: 600; color: #333333; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--primary-orange); }

/* ==========================================================================
   5. 공통 버튼 컴포넌트
   ========================================================================== */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 20px 46px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-align: center;
}

.btn-primary { 
    background-color: var(--primary-orange); 
    color: #ffffff; 
}

.btn-cta-white { 
    background-color: #ffffff; 
    color: #000000; 
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05); 
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   6. 공통 텍스트 및 스크롤 애니메이션
   ========================================================================== */
.motion-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.motion-item:nth-child(1) { animation-delay: 0.2s; }
.motion-item:nth-child(2) { animation-delay: 0.5s; }
.motion-item:nth-child(3) { animation-delay: 0.8s; }
.motion-item:nth-child(4) { animation-delay: 1.1s; }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* ==========================================================================
   7. 공통 푸터
   ========================================================================== */
.main-footer {
    background-color: var(--brand-black);
    color: var(--text-light-grey);
    padding: 40px 0;
    font-size: 14px;
    line-height: 1.4;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #333333;
    margin-bottom: 20px;
}

.footer-logo { font-size: 22px; font-weight: 800; color: #ffffff; letter-spacing: -0.5px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--primary-orange); }

.footer-social { display: flex; gap: 12px; align-items: center; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); transition: background 0.15s ease; }
.footer-social a:hover { background: rgba(255,255,255,0.2); }
.footer-social a svg { width: 18px; height: 18px; fill: #ffffff; }

.footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.company-details p { margin-bottom: 3px; }
.copyright { margin-top: 24px; color: #555555; font-size: 13px; }

.site-links { display: flex; gap: 16px; }
.site-links a {
    padding: 6px 12px;
    background-color: #2a2a2a;
    border-radius: 4px;
    color: #888888;
    font-size: 13px;
    transition: all 0.2s ease;
}
.site-links a:hover { background-color: #333333; color: #ffffff; }

/* ==========================================================================
   8. 반응형 미디어 쿼리 통합
   ========================================================================== */
@media (max-width: 1024px) {
    .container { padding: 0 40px; }
    .nav-links { gap: 20px; }
    .nav-links a { font-size: 15px; }
    .btn { padding: 18px 40px; font-size: 18px; }

    /* 섹션 공통 타이틀 */
    .section-title { font-size: 36px !important; }
    .section-title-center { font-size: 36px !important; }
}

/* 중간 해상도 보정 (769px ~ 900px) */
@media (min-width: 769px) and (max-width: 900px) {
    .container { padding: 0 28px; }
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 14px; }
    .btn { padding: 16px 32px; font-size: 16px; }
    .section-title { font-size: 32px !important; }
    .section-title-center { font-size: 32px !important; }

    .footer-top, .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .header {
        position: fixed;
        height: 64px;
        width: 100%;
        top: 0;
        transition: top 0.3s ease;
    }
    .header-hidden { top: -64px; }
    body { padding-top: 64px; }
    .menu-icon { display: flex; }
    
    .logo-img { height: 24px; }

    .nav-links {
        position: absolute;
        top: 43px; 
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        gap: 0;
        border-top: 1px solid #f0f0f0;
        border-bottom: 1px solid #f0f0f0;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
        z-index: 100;
    }
    
    .nav-links a {
        padding: 18px 24px;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #f9f9f9;
    }
    
    #menu-toggle:checked ~ .nav-links { max-height: 400px; visibility: visible; opacity: 1; }
    #menu-toggle:checked ~ .nav-overlay { display: block; }

    .btn {
        padding: 16px 26px;
        font-size: 18px;
        border-radius: 12px;
    }
    
    .footer-top, .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 30px; }

    .pc-br { display: none; }
    .mo-br { display: block; }
}