/* ============================================
   반응형 디자인 - 태블릿 & 모바일
   ============================================ */

/* 태블릿 (1024px 이하) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-content .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-images {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .quick-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .registration-wrapper {
        grid-template-columns: 1fr;
    }
    
    .registration-info {
        position: static;
    }
    
    .map-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* 모바일 (768px 이하) */
@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    section {
        padding: 4rem 0;
    }
    
    /* 헤더 */
    .logo-img {
        height: 60px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transition: var(--transition-base);
        box-shadow: var(--shadow-xl);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem;
        text-align: center;
        font-size: 1.1rem;
    }
    
    .nav-cta .btn-call {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* 히어로 */
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-badges {
        gap: 1rem;
    }
    
    .badge {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* 퀵 정보 */
    .quick-info {
        padding: 1.5rem 0;
    }
    
    .quick-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quick-info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .quick-info-item i {
        font-size: 1.5rem;
    }
    
    /* 섹션 헤더 */
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* 학원 소개 */
    .about-card {
        padding: 2rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .card-icon i {
        font-size: 1.5rem;
    }
    
    .about-card h3 {
        font-size: 1.3rem;
    }
    
    /* 프로그램 */
    .program-tabs {
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .program-grid {
        grid-template-columns: 1fr;
    }
    
    .program-card {
        padding: 1.5rem;
    }
    
    .program-icon {
        width: 50px;
        height: 50px;
    }
    
    .program-icon i {
        font-size: 1.5rem;
    }
    
    .program-header h3 {
        font-size: 1.2rem;
    }
    
    /* 특별함 */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .feature-number {
        font-size: 2rem;
        top: 1rem;
        right: 1rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }
    
    /* 강사진 */
    .teachers-grid {
        grid-template-columns: 1fr;
    }
    
    .teacher-card {
        padding: 1.5rem;
    }
    
    .teacher-avatar {
        width: 100px;
        height: 100px;
    }
    
    .teacher-avatar i {
        font-size: 2.5rem;
    }
    
    /* 갤러리 */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-overlay h4 {
        font-size: 1.1rem;
    }
    
    .gallery-overlay p {
        font-size: 0.85rem;
    }
    
    /* 수강신청 */
    .registration-info h2 {
        font-size: 2rem;
    }
    
    .registration-info > p {
        font-size: 1rem;
    }
    
    .contact-methods {
        margin-bottom: 2rem;
    }
    
    .registration-form {
        padding: 2rem;
    }
    
    .registration-form h3 {
        font-size: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    /* 지도 */
    .location-info {
        gap: 1rem;
    }
    
    .info-card {
        padding: 1.25rem;
    }
    
    .info-card h3 {
        font-size: 1rem;
    }
    
    .info-card p {
        font-size: 0.9rem;
    }
    
    /* 푸터 */
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-logo {
        font-size: 1.3rem;
    }
    
    .footer-banner {
        max-width: 350px;
        margin: 0 auto;
    }
    
    /* 플로팅 버튼 */
    .floating-btns {
        bottom: 1.5rem;
        right: 1.5rem;
        gap: 0.75rem;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
}

/* 소형 모바일 (480px 이하) */
@media (max-width: 480px) {
    :root {
        font-size: 13px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-description {
        font-size: 0.95rem;
    }
    
    .about-card,
    .program-card,
    .feature-card,
    .teacher-card {
        padding: 1.5rem;
    }
    
    .registration-info h2 {
        font-size: 1.6rem;
    }
    
    .registration-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .btn-submit {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .floating-btns {
        bottom: 1rem;
        right: 1rem;
        gap: 0.5rem;
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* 가로 모드 최적화 */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        margin-bottom: 2rem;
    }
    
    .hero-badges {
        display: none;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* 프린트 스타일 */
@media print {
    .header,
    .floating-btns,
    .hero-buttons,
    .scroll-indicator,
    .hamburger {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        page-break-after: always;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* 다크모드 대응 (선택사항) */
@media (prefers-color-scheme: dark) {
    /* 추후 다크모드 지원 시 여기에 스타일 추가 */
}

/* 고해상도 디스플레이 최적화 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* 레티나 디스플레이에 대한 최적화 */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* 접근성 - 애니메이션 줄이기 선호하는 사용자 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .logo-star {
        animation: none;
    }
}