/* 반응형 CSS - 골든웍 에어컨 전문 업체 (리뉴얼) */

/* 소형 데스크톱 및 태블릿 사이즈 (1024px 이하) */
@media (max-width: 1024px) {
    /* 헤더 네비게이션 - 모바일 메뉴로 전환 */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 76px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 76px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        gap: 0.25rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-200);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 1rem 2rem;
        width: 85%;
        text-align: center;
        border-radius: var(--border-radius-lg);
        margin-bottom: 0.25rem;
    }

    .nav-menu a:hover {
        background: var(--gradient-light);
        transform: none;
    }
}

/* 태블릿 사이즈 (768px 이하) */
@media (max-width: 768px) {
    /* 컨테이너 */
    .container {
        padding: 0 1rem;
    }

    /* 헤더 */
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo {
        gap: 0.75rem;
    }
    
    .logo img {
        width: 40px;
        height: 40px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo-sub {
        font-size: 0.9rem;
    }

    /* 네비게이션 - 이미 1024px에서 설정됨 */

    /* 메인 비주얼 */
    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1.25rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    .phone-btn {
        font-size: 1.3rem;
        padding: 1.125rem 2rem;
        gap: 10px;
    }

    .phone-btn .phone-icon {
        width: 24px;
        height: 24px;
        padding: 5px;
    }

    /* 섹션 헤더 */
    .section-header h2 {
        font-size: 2.25rem;
    }

    .section-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* 서비스 그리드 */
    .services {
        padding: 80px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 3rem;
    }

    .service-card {
        max-width: 100%;
        margin: 0 auto;
    }

    .service-card h3 {
        font-size: 1.375rem;
        padding: 1.75rem 1.5rem 0.5rem;
    }

    .service-card p {
        padding: 0 1.5rem 1.75rem;
    }

    /* 연락처 */
    .contact {
        padding: 80px 0;
    }

    .contact-content {
        gap: 0;
    }

    .contact-cta {
        padding: 2.5rem 2rem;
    }

    .contact-cta h3 {
        font-size: 1.75rem;
    }

    .contact-btn {
        font-size: 1.3rem !important;
        padding: 1.25rem 2.25rem !important;
    }

    .contact-phone-icon {
        width: 24px;
        height: 24px;
        padding: 5px;
    }

    /* 푸터 */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo h3 {
        font-size: 1.75rem;
    }
    
    /* 푸터 하단 반응형 */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding-right: 0; /* 모바일에서는 패딩 제거 */
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .privacy-link {
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
    }
    
    .terms-link {
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
    }
    
    .privacy-officer {
        font-size: 0.85rem;
    }

    /* 플로팅 버튼 */
    .floating-phone {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .floating-btn {
        width: 64px;
        height: 64px;
    }

    .floating-btn .phone-icon {
        width: 44px;
        height: 44px;
    }

    .floating-phone::before {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* 모바일 사이즈 (480px 이하) */
@media (max-width: 480px) {
    /* 컨테이너 */
    .container {
        padding: 0 0.75rem;
    }

    /* 헤더 */
    .logo {
        gap: 0.5rem;
    }
    
    .logo img {
        width: 36px;
        height: 36px;
    }
    
    .logo h1 {
        font-size: 1.375rem;
    }

    .logo-sub {
        font-size: 0.75rem;
    }

    /* 메인 비주얼 */
    .hero {
        padding: 85px 0 45px;
    }

    .hero-title {
        font-size: 2.125rem;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .phone-btn {
        font-size: 1.2rem;
        padding: 1rem 1.75rem;
        gap: 8px;
    }

    .phone-btn .phone-icon {
        width: 24px;
        height: 24px;
        padding: 5px;
    }

    /* 섹션 헤더 */
    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    /* 서비스 */
    .services {
        padding: 70px 0;
    }

    .services-grid {
        gap: 1.75rem;
        margin-top: 2.5rem;
    }

    .service-number {
        width: 85px;
        height: 85px;
        padding: 0.625rem 1.75rem 1.75rem 0.625rem;
    }

    .service-number span {
        font-size: 0.7rem;
    }

    .service-number .number {
        font-size: 1.4rem;
    }

    .service-image {
        height: 200px;
    }

    .service-card h3 {
        font-size: 1.25rem;
        padding: 1.5rem 1.25rem 0.5rem;
    }

    .service-card p {
        padding: 0 1.25rem 1.5rem;
        font-size: 0.95rem;
    }

    /* 연락처 */
    .contact {
        padding: 70px 0;
    }

    .contact-content {
        gap: 0;
    }

    .contact-cta {
        padding: 2rem 1.5rem;
    }

    .contact-cta h3 {
        font-size: 1.5rem;
    }

    .contact-cta p {
        font-size: 1rem;
    }

    .contact-btn {
        font-size: 1.2rem !important;
        padding: 1.125rem 2rem !important;
    }

    .contact-phone-icon {
        width: 28px;
        height: 28px;
        padding: 6px;
    }

    /* 푸터 */
    .footer {
        padding: 2.5rem 0 1.25rem;
    }

    .footer-logo h3 {
        font-size: 1.65rem;
    }

    .footer-info p {
        font-size: 1rem;
    }
    
    /* 푸터 하단 모바일 반응형 */
    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .privacy-link {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
    
    .terms-link {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
    
    .privacy-officer {
        font-size: 0.8rem;
    }
    
    .footer-copyright p {
        font-size: 0.8rem;
    }

    /* 플로팅 버튼 */
    .floating-phone {
        bottom: 1.25rem;
        right: 1.25rem;
    }

    .floating-btn {
        width: 60px;
        height: 60px;
    }

    .floating-btn .phone-icon {
        width: 42px;
        height: 42px;
    }

    .floating-phone::before {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
        margin-right: 0.75rem;
    }
}

/* 큰 화면 (1200px 이상) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
        padding: 0 2rem;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.375rem;
    }

    .section-header h2 {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
        max-width: 1200px;
        margin: 0 auto;
        margin-top: 4rem;
    }

    .contact-cta {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* 초대형 화면 (1400px 이상) */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }

    .hero {
        padding: 140px 0 100px;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .services,
    .contact {
        padding: 120px 0;
    }
}

/* 프린트 스타일 */
@media print {
    .header,
    .floating-phone,
    .nav {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }

    .hero {
        background: none !important;
        padding: 20px 0;
    }

    .hero-title,
    .section-header h2 {
        color: black !important;
        background: none !important;
        -webkit-text-fill-color: black !important;
    }

    .phone-btn {
        background: none !important;
        color: black !important;
        border: 2px solid black;
    }

    .service-card,
    .contact-cta {
        border: 1px solid black;
        box-shadow: 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;
    }

    .phone-icon {
        animation: none !important;
    }
}

/* 고대비 모드 */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #000080;
        --secondary-blue: #0000ff;
        --accent-blue: #008080;
        --text-primary: #000000;
        --text-secondary: #333333;
        --gray-200: #cccccc;
        --shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .nav-menu a:hover,
    .service-card:hover {
        background: #f0f0f0 !important;
        border: 2px solid #000000;
    }
}
