/* Google Fonts - Montserrat (이미지와 같은 굵은 타이틀용) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800;900&display=swap');

/* ===== 전역 CSS 변수 ===== */
:root {
    --header-height: 85px;
}

/* ===== 커스텀 커서 스타일 ===== */
.cursor-dot {
    display: none; /* 점 제거 */
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(0, 229, 199, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

/* 호버 상태 (링크, 버튼 위) */
.cursor-hover .cursor-ring {
    width: 70px;
    height: 70px;
    border-color: rgba(0, 212, 255, 0.8);
    background: rgba(0, 212, 255, 0.1);
}

/* 클릭 상태 */
.cursor-click .cursor-ring {
    width: 45px;
    height: 45px;
    border-color: #00D4FF;
}

/* 텍스트 선택 상태 */
.cursor-text .cursor-ring {
    width: 4px;
    height: 28px;
    border-radius: 2px;
    border-color: #00D4FF;
}

/* 숨김 상태 */
.cursor-hidden .cursor-ring {
    opacity: 0;
}

/* 모바일/터치 디바이스에서 커스텀 커서 숨김 */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

/* 기본 마우스 포인터 유지 (커스텀 원은 포인터 주변에 표시) */

/* 공통 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    background-color: #ffffff;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch; /* iOS에서 부드러운 스크롤 */
}

/* ===== 시원한 타이포그래피 ===== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.4;
    font-weight: 700;
    color: #111;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    line-height: 1.35;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
}

h5 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

h6 {
    font-size: 1rem;
    margin-bottom: 0.625rem;
}

p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #444;
}

/* 30~45세 타겟: 가독성 높은 텍스트 */
article p,
.content p,
.text-content p {
    font-size: 1.0625rem; /* 17px */
    line-height: 1.85;
}

/* 리스트 시원하게 */
ul, ol {
    line-height: 1.75;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* 링크 스타일 */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* 강조 텍스트 */
strong, b {
    font-weight: 700;
    color: #111;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.card h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* 디바이스별 반응형 디자인 */
/* 대형 데스크톱 (1600px 이상) */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
}

/* 데스크톱 (1200px ~ 1599px) - 기본 스타일 */

/* 태블릿 가로 (1024px ~ 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 100%;
        padding: 0 1.5rem;
    }
    
    .card {
        padding: 1.75rem;
    }
}

/* 태블릿 세로 (768px ~ 1023px) */
@media (max-width: 1023px) {
    .container {
        padding: 0 1.5rem;
        margin: 1.5rem auto;
    }
    
    .card {
        padding: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .card h2 {
        font-size: 1.5rem;
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.375rem; }
}

/* 모바일 중형 (480px ~ 767px) */
@media (max-width: 767px) {
    body {
        font-size: 15px;
        line-height: 1.65;
    }
    
    .container {
        padding: 0 1rem;
        margin: 1rem auto;
    }
    
    .card {
        padding: 1.25rem;
        border-radius: 6px;
        margin-bottom: 1rem;
    }
    
    .card h2 {
        font-size: 1.25rem;
    }
    
    h1 { font-size: 1.875rem; line-height: 1.35; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    
    p, article p, .content p, .text-content p {
        font-size: 1rem;
        line-height: 1.75;
    }
}

/* 모바일 소형 (320px ~ 479px) */
@media (max-width: 479px) {
    body {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .container {
        padding: 0 0.75rem;
        margin: 0.75rem auto;
    }
    
    .card {
        padding: 1rem;
        border-radius: 4px;
        margin-bottom: 0.75rem;
    }
    
    .card h2 {
        font-size: 1.1rem;
    }
    
    h1 { font-size: 1.625rem; line-height: 1.35; }
    h2 { font-size: 1.375rem; }
    h3 { font-size: 1.125rem; }
    h4 { font-size: 1rem; }
    
    p, article p, .content p, .text-content p {
        font-size: 0.9375rem;
        line-height: 1.7;
    }
}

/* ===== 전역 모달/팝업 터치 스크롤 지원 ===== */
/* 모달, 팝업, 다이얼로그 내부에서 터치 스크롤 허용 */
.modal,
.popup,
.popup-overlay,
[role="dialog"],
[aria-modal="true"] {
    touch-action: auto;
}

/* 모달 콘텐츠 영역 스크롤 지원 */
.modal-content,
.modal-body,
.popup-content,
.popup-container,
.dialog-content,
[role="dialog"] > div,
.scrollable {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y pinch-zoom;
}

/* 모달이 열려있을 때 body 스크롤 방지하되, 모달 내부는 스크롤 가능 */
body.modal-open,
body.popup-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* iOS Safari에서 모달 내부 스크롤 문제 해결 */
@supports (-webkit-touch-callout: none) {
    .modal-content,
    .modal-body,
    .popup-content {
        -webkit-overflow-scrolling: touch;
    }
}

