/*
 * responsive.css - 반응형 스타일시트
 * 행집사 타일나라 - Mobile First Responsive
 */

/* ========== TABLET (max-width: 1024px) ========== */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 30px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }

    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== MOBILE LANDSCAPE (max-width: 768px) ========== */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 26px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    /* Header */
    .header-content {
        height: 64px;
    }

    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: var(--white);
        padding: 80px 24px 40px;
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        overflow-y: auto;
        z-index: 1000;
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav > ul > li > a {
        padding: 14px 16px;
        font-size: 16px;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 16px;
        background: var(--off-white);
        border-radius: 0;
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .mobile-overlay.visible {
        opacity: 1;
        visibility: visible;
    }

    /* Hero Slider */
    .hero-slider {
        height: 85vh;
        min-height: 500px;
    }

    .slide-title {
        font-size: clamp(24px, 6vw, 36px);
    }

    .slide-desc {
        font-size: 15px;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .slider-prev { left: 15px; }
    .slider-next { right: 15px; }

    /* Grids */
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-number {
        font-size: 36px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-top {
        padding: 40px 0 30px;
    }

    /* Pages */
    .page-hero {
        padding: 110px 0 60px;
    }

    .page-hero h1 {
        font-size: 30px;
    }

    .content-box {
        padding: 28px 20px;
    }

    /* Pricing */
    .grid-3.pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Location */
    .location-info-grid {
        grid-template-columns: 1fr;
    }

    .map-container iframe {
        height: 300px;
    }

    /* Sitemap */
    .sitemap-grid {
        grid-template-columns: 1fr;
    }

    /* Job cards */
    .job-card {
        flex-direction: column;
        align-items: flex-start;
    }

    /* CTA */
    .cta-section h2 {
        font-size: 28px;
    }

    .cta-section p {
        font-size: 15px;
    }

    /* Back to top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    /* Effects */
    #effects-canvas {
        opacity: 0.3;
    }
}

/* ========== MOBILE PORTRAIT (max-width: 480px) ========== */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 22px;
    }

    .section-label {
        font-size: 11px;
        letter-spacing: 2px;
    }

    /* Header */
    .header-content {
        height: 56px;
    }

    .logo {
        font-size: 16px;
    }

    .logo-icon {
        font-size: 20px;
    }

    /* Hero */
    .hero-slider {
        height: 75vh;
        min-height: 450px;
    }

    .slide-title {
        font-size: 22px;
    }

    .slide-desc {
        font-size: 14px;
        display: none;
    }

    .slide-label {
        font-size: 11px;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 15px;
    }

    /* Stats */
    .stats-section {
        padding: 50px 0;
    }

    .stat-number {
        font-size: 30px;
    }

    .stat-label {
        font-size: 12px;
    }

    /* Cards */
    .service-card {
        padding: 28px 20px;
    }

    .service-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }

    .card-body {
        padding: 20px;
    }

    /* Review */
    .review-card {
        padding: 24px;
    }

    /* Content */
    .content-box {
        padding: 24px 16px;
    }

    .content-box h2 {
        font-size: 20px;
    }

    /* Pricing */
    .pricing-price {
        font-size: 36px;
    }

    /* Page Hero */
    .page-hero {
        padding: 100px 0 50px;
    }

    .page-hero h1 {
        font-size: 24px;
    }

    /* Footer */
    .footer-col h4 {
        font-size: 15px;
    }

    /* Hide effects on small screens for performance */
    #effects-canvas {
        display: none;
    }
}

/* ========== LARGE SCREENS (min-width: 1400px) ========== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .section-title {
        font-size: 42px;
    }

    .hero-slider {
        height: 100vh;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .site-header,
    .site-footer,
    .back-to-top,
    .slider-nav,
    .slider-pagination,
    #effects-canvas {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .page-hero {
        background: #f0f0f0;
        padding: 40px 0;
    }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .slide-bg {
        transition: none;
    }

    #effects-canvas {
        display: none;
    }
}
