/* ===== 성능 최적화 ===== */

/* GPU 가속 활성화 */
.btn,
.location-card,
.review-card,
.reason-item,
.checklist-item,
.benefit-card,
.floating-btn,
.scroll-top {
    will-change: transform;
    transform: translateZ(0);
}

/* 폰트 로딩 최적화 */
@font-face {
    font-family: 'Noto Sans KR';
    font-display: swap;
}

/* 이미지 최적화 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 터치 최적화 */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .floating-btn,
    .faq-question {
        min-height: 48px;
        min-width: 48px;
    }
    
    /* 터치 피드백 */
    .btn:active,
    .floating-btn:active {
        transform: scale(0.98);
    }
}

/* Reduced Motion 지원 */
@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;
    }
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
    :root {
        --text-dark: #000000;
        --text-medium: #333333;
        --border-color: #000000;
    }
}

/* Content Visibility 최적화 */
section {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* 스크롤 최적화 */
* {
    scroll-margin-top: 80px;
}

/* 포커스 스타일 개선 (접근성) */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--cta-color);
    outline-offset: 2px;
}

/* Skip to content 링크 */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--cta-color);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    z-index: 10001;
    border-radius: 0 0 8px 0;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* 프린트 최적화 */
@media print {
    .top-bar,
    .floating-buttons,
    .scroll-top,
    .btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
    
    .hero {
        background: white;
        color: black;
        border: 1px solid black;
    }
}