/* 
================================================================================
 파일명: css/style.css
 설명: 주식회사 텔로스 (TELOS) 공식 홈페이지 메인 스타일시트
 버전: 1.5.0
 작성일: 2026.04.26
 디자인 톤: 화이트 + 진한 네이비 (Tone B)
 폰트: Pretendard Variable (한글 최적화)
 변경이력:
   - 2026.04.25 (v1.0.0): 초기 버전 작성
   - 2026.04.25 (v1.1.0): 한글 어절 단위 줄바꿈 정책 전역 적용
                          / 사업영역 4열 1줄 그리드 (PC) → 2열 (태블릿) → 1열 (모바일)
                          / Contact 위치 다중 라인 정렬 보강
   - 2026.04.25 (v1.2.0): Footer 간소화 (HTML에서 footer-info 블록 제거)
                          / .footer-info CSS는 미사용 상태로 유지 (영향 없음)
   - 2026.04.26 (v1.3.0): Footer 좌우 배치 (footer-main flexbox)
                          / .footer-brand 좌측 정렬 + .footer-contact 우측 정렬
                          / 모바일에서는 자동으로 세로 스택
   - 2026.04.26 (v1.4.0): Contact 섹션 이메일/위치 박스 HTML 제거
                          / .contact-info, .contact-item, .contact-label, 
                          / .contact-value CSS는 미사용 상태로 유지 (영향 없음)
                          / 향후 재추가 시 즉시 활용 가능하도록 보존
   - 2026.04.26 (v1.5.0): .hero-scroll-hint에 z-index 명시 (안전장치)
                          / HTML 구조 변경에 맞춘 위치 정상화
                          / 더 이상 메인 카피와 겹치지 않음
================================================================================
*/

/* ============================================================ */
/* CSS 변수: 디자인 시스템                                       */
/* ============================================================ */
:root {
    /* 컬러 시스템 - 화이트 + 진한 네이비 */
    --color-primary: #0a1f44;          /* 진한 네이비 (메인) */
    --color-primary-dark: #050f24;     /* 더 진한 네이비 */
    --color-secondary: #1a3a6e;        /* 약간 밝은 네이비 */
    --color-accent: #2563eb;           /* 강조 블루 */
    
    --color-white: #ffffff;
    --color-bg: #ffffff;
    --color-bg-light: #f8f9fb;         /* 매우 옅은 그레이 */
    --color-bg-dark: #0a1f44;
    
    --color-text: #1a1a1a;             /* 본문 텍스트 */
    --color-text-light: #4a5568;       /* 부가 텍스트 */
    --color-text-muted: #718096;       /* 보조 텍스트 */
    --color-text-white: #ffffff;
    
    --color-border: #e5e7eb;           /* 테두리 */
    --color-border-light: #f3f4f6;
    
    /* 타이포그래피 */
    --font-base: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 
                 system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 
                 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    
    /* 레이아웃 */
    --container-max: 1200px;
    --container-padding: 24px;
    
    /* 간격 */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 80px;
    --space-2xl: 120px;
    
    /* 트랜지션 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================ */
/* 기본 리셋 + 폰트 설정                                          */
/* ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-base);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    font-weight: 400;
    /* ============================================================ */
    /* [한글 줄바꿈 정책 - 안전장치]                                  */
    /* keep-all: 한글이 단어(어절) 중간에서 끊어지지 않도록 함         */
    /* overflow-wrap: 너무 긴 영문/URL은 안전하게 줄바꿈               */
    /* → 사이트 전반에 적용되어 향후 추가 텍스트도 자동 보호됨        */
    /* ============================================================ */
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================================ */
/* 공통 컨테이너                                                  */
/* ============================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
}

.section {
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
}

/* 섹션 헤더 공통 */
.section-header {
    margin-bottom: var(--space-xl);
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
}

.section-label-light {
    color: rgba(255, 255, 255, 0.7);
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.section-title-light {
    color: var(--color-text-white);
}

/* ============================================================ */
/* HEADER: 상단 네비게이션                                        */
/* ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0);
    transition: var(--transition);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-md) var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--color-text-white);
    transition: var(--transition);
}

.header.scrolled .logo-text {
    color: var(--color-primary);
}

.nav-list {
    display: flex;
    gap: var(--space-lg);
}

.nav-list a {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-white);
    transition: var(--transition);
}

.header.scrolled .nav-list a {
    color: var(--color-text);
}

.nav-list a:hover {
    color: var(--color-accent);
}

/* 모바일 메뉴 토글 */
.nav-toggle {
    display: none;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-white);
    transition: var(--transition);
}

.header.scrolled .nav-toggle span {
    background-color: var(--color-primary);
}

/* ============================================================ */
/* HERO: 메인 히어로 섹션                                         */
/* ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 31, 68, 0.7) 0%,
        rgba(10, 31, 68, 0.5) 50%,
        rgba(10, 31, 68, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-text-white);
    padding: 0 var(--container-padding);
    max-width: 900px;
}

.hero-tagline {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(32px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.02em;
}

.hero-scroll-hint {
    /* ============================================================ */
    /* [Hero 스크롤 안내]                                             */
    /* HTML 구조: .hero 직속 자식 (hero-content 밖)                   */
    /* 위치: .hero 섹션 기준 하단 중앙에 절대 배치                    */
    /* z-index: 3 - hero-content(2)보다 위, 단 안전 마진 확보         */
    /* 모바일에서는 미디어 쿼리로 숨김 처리                           */
    /* ============================================================ */
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    letter-spacing: 0.3em;
    /* 클릭/터치 이벤트가 뒤로 통과되도록 */
    pointer-events: none;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ============================================================ */
/* ABOUT: 회사 소개 섹션                                          */
/* ============================================================ */
.about {
    background-color: var(--color-bg);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-lead {
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    text-align: center;
    letter-spacing: -0.01em;
}

.about-body {
    font-size: 17px;
    line-height: 1.9;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    text-align: center;
}

.about-meta {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
}

.about-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.meta-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.meta-value {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-primary);
}

/* ============================================================ */
/* BUSINESS: 사업 영역 섹션                                       */
/* ============================================================ */
.business {
    position: relative;
    color: var(--color-text-white);
}

.business-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.business-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 31, 68, 0.92) 0%,
        rgba(5, 15, 36, 0.95) 100%
    );
}

.business .container {
    position: relative;
    z-index: 2;
}

.business-grid {
    /* ============================================================ */
    /* [사업영역 카드 그리드]                                         */
    /* PC (1025px+):   4열 1줄 (4개 카드 가로 배치)                  */
    /* 태블릿 (768~1024px): 2열 2줄                                  */
    /* 모바일 (~767px): 1열 4줄                                      */
    /* auto-fit 사용 안 함 - 고정 4열로 의도한 레이아웃 보장          */
    /* ============================================================ */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

.business-card {
    /* 4열 그리드에 맞춰 패딩을 콤팩트하게 조정 */
    padding: var(--space-md) var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.business-card:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
}

.business-number {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.business-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--color-text-white);
    letter-spacing: -0.01em;
}

.business-desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

/* ============================================================ */
/* PRODUCTS: 제품 섹션                                            */
/* ============================================================ */
.products {
    background-color: var(--color-bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-md);
    max-width: 1000px;
    margin: 0 auto;
}

.product-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--space-lg);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    min-height: 280px;
}

.product-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(10, 31, 68, 0.08);
}

.product-content {
    flex: 1;
}

.product-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    background-color: rgba(37, 99, 235, 0.08);
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}

.product-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.product-name-en {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    letter-spacing: 0.05em;
}

.product-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: auto;
}

.product-link svg {
    transition: var(--transition);
}

.product-card:hover .product-link svg {
    transform: translateX(4px);
}

/* ============================================================ */
/* NOTICE: 공고 섹션                                              */
/* ============================================================ */
.notice {
    background-color: var(--color-bg);
}

.notice-content {
    max-width: 800px;
    margin: 0 auto;
}

.notice-board {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--space-xl);
    text-align: center;
    margin-bottom: var(--space-md);
}

.notice-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.notice-empty-desc {
    font-size: 15px;
    color: var(--color-text-muted);
}

.notice-legal {
    font-size: 13px;
    line-height: 1.7;
    color: var(--color-text-muted);
    text-align: center;
    padding: 0 var(--space-md);
}

/* ============================================================ */
/* CONTACT: 문의 섹션                                             */
/* ============================================================ */
.contact {
    position: relative;
    color: var(--color-text-white);
    text-align: center;
}

.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 31, 68, 0.85) 0%,
        rgba(5, 15, 36, 0.92) 100%
    );
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-title {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
    line-height: 1.4;
    margin-top: var(--space-sm);
}

.contact-desc {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--space-xl);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    align-items: center;
}

.contact-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.contact-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-white);
    transition: var(--transition);
    /* 2줄 이상의 텍스트(예: 위치 - 시 + 도로명)도 깔끔하게 정렬되도록 */
    text-align: center;
    line-height: 1.5;
}

a.contact-value:hover {
    color: var(--color-accent);
}

/* ============================================================ */
/* FOOTER: 푸터                                                   */
/* ============================================================ */
.footer {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.65);
    padding: var(--space-xl) 0 var(--space-lg);
}

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

/* ============================================================ */
/* [Footer 메인 영역 - 좌우 배치]                                */
/* PC: 좌(브랜드) + 우(연락처) flexbox 가로 배치                  */
/* 모바일에서는 반응형 미디어 쿼리로 세로 스택 전환               */
/* ============================================================ */
.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding-bottom: var(--space-lg);
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    text-align: left;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--color-text-white);
    margin-bottom: var(--space-xs);
}

.footer-company {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================================ */
/* [Footer 연락처 영역 - 우측 정렬]                               */
/* 이메일 · 위치를 한 줄로 inline 배치, 가운데 점(·) 구분         */
/* ============================================================ */
.footer-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-xs);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
    /* 위치 텍스트가 길어도 한 줄 유지를 시도 */
    line-height: 1.6;
}

.footer-contact-item {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
    /* 이메일 링크일 때도 연락처 텍스트와 동일 스타일 */
}

a.footer-contact-item:hover {
    color: var(--color-text-white);
}

.footer-contact-divider {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 var(--space-xs);
    user-select: none;
}

/* [Footer 미사용 클래스 - v1.2.0 호환성 유지용]                  */
/* .footer-info, .footer-info p 는 더 이상 HTML에서 사용되지 않음 */
.footer-info {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info p {
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    text-align: center;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.02em;
}

/* ============================================================ */
/* 반응형: 태블릿 (~ 1024px)                                      */
/* ============================================================ */
@media (max-width: 1024px) {
    :root {
        --space-2xl: 100px;
    }
    
    .business-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================ */
/* 반응형: 모바일 (~ 768px)                                       */
/* ============================================================ */
@media (max-width: 768px) {
    :root {
        --space-2xl: 80px;
        --space-xl: 60px;
    }
    
    .header-inner {
        padding: var(--space-sm) var(--container-padding);
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--color-primary);
        padding: 80px var(--space-md) var(--space-md);
        transition: right 0.3s ease;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .nav-list a {
        color: var(--color-text-white) !important;
        font-size: 17px;
        display: block;
        padding: var(--space-sm) 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .business-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .about-meta {
        gap: var(--space-md);
    }
    
    .hero-scroll-hint {
        display: none;
    }
    
    /* ======================================================== */
    /* [Footer 모바일 처리]                                      */
    /* 좌우 배치가 좁은 화면에서 깨지지 않도록 세로 스택으로 전환 */
    /* 모든 요소 중앙 정렬                                        */
    /* ======================================================== */
    .footer-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space-md);
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-contact {
        flex-direction: column;
        text-align: center;
        gap: var(--space-xs);
    }
    
    /* 모바일에서는 가운데 점(·) 구분자가 어색하므로 숨김 */
    .footer-contact-divider {
        display: none;
    }
}

/* ============================================================ */
/* 접근성: 모션 감소 설정                                          */
/* ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
