/*
 * responsive.css - 씨랭크 반응형 스타일시트
 * Mobile-first responsive breakpoints
 * /assets/css/responsive.css
 */

/* ============================================
   BREAKPOINTS:
   - Mobile:  < 576px
   - Tablet:  576px ~ 768px
   - Desktop: 768px ~ 1024px
   - Large:   1024px ~ 1200px
   - XL:      > 1200px
   ============================================ */

/* ============================================
   LARGE DESKTOP (max-width: 1200px)
   ============================================ */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 30px;
    }

    .stats-grid {
        gap: 30px;
    }
}

/* ============================================
   DESKTOP (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        max-width: 400px;
    }

    .hero-badge {
        justify-content: center;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        max-height: 400px;
    }

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

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

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }

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

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

/* ============================================
   TABLET (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    html {
        font-size: 15px;
    }

    /* Header */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        z-index: var(--z-overlay);
    }

    .main-nav.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .nav-list a {
        font-size: 1.2rem;
        padding: 12px 24px;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 20px;
    }

    .mobile-toggle {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
    }

    .dropdown-menu a {
        font-size: 1rem;
        color: var(--text-muted);
    }

    /* Hero */
    .hero-section {
        min-height: auto;
        padding-top: 72px;
    }

    .hero-content {
        padding: 60px 0 40px;
    }

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

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

    .hero-stats {
        gap: 24px;
    }

    .hero-stat-number {
        font-size: 1.6rem;
    }

    .hero-visual {
        display: none;
    }

    /* Slider */
    .slider-slide {
        height: 350px;
    }

    .slider-content h2 {
        font-size: 1.8rem;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-arrow-prev {
        left: 12px;
    }

    .slider-arrow-next {
        right: 12px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 30px 24px;
    }

    /* Reviews */
    .reviews-grid {
        grid-template-columns: 1fr;
    }

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

    .stat-number {
        font-size: 2.4rem;
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    /* Pages */
    .page-header {
        padding: 120px 0 60px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

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

    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info-item {
        flex-direction: column;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .greeting-quote {
        font-size: 1.4rem;
    }

    /* Blog Single */
    .blog-single-title {
        font-size: 1.8rem;
    }

    .blog-single-meta {
        flex-direction: column;
        gap: 8px;
    }

    /* CTA */
    .cta-content h2 {
        font-size: 2rem;
    }

    /* About features */
    .about-features {
        grid-template-columns: 1fr;
    }

    /* Map */
    .map-container {
        height: 300px;
    }
}

/* ============================================
   MOBILE (max-width: 576px)
   ============================================ */
@media (max-width: 576px) {
    :root {
        --section-padding: 50px 0;
    }

    html {
        font-size: 14px;
    }

    .container {
        padding: 0 16px;
    }

    /* Header */
    .header-inner {
        height: 60px;
    }

    .logo-link img {
        height: 30px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    /* Hero */
    .hero-content {
        padding: 40px 0 30px;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }

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

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .hero-nebula {
        display: none;
    }

    /* Slider */
    .slider-slide {
        height: 280px;
    }

    .slider-content h2 {
        font-size: 1.4rem;
    }

    .slider-content p {
        font-size: 0.9rem;
        display: none;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 40px;
    }

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

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

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

    .service-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .review-card {
        padding: 24px 20px;
    }

    .blog-card-image {
        height: 180px;
    }

    .blog-card-body {
        padding: 20px;
    }

    /* Pages */
    .page-header {
        padding: 100px 0 50px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-content {
        padding: 50px 0;
    }

    .content-block h2 {
        font-size: 1.4rem;
    }

    /* CTA */
    .cta-section {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 1.6rem;
    }

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

    /* Footer */
    .site-footer {
        padding: 50px 0 0;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    /* Greeting */
    .greeting-quote {
        font-size: 1.2rem;
        padding: 20px;
    }

    /* Legal */
    .legal-content h2 {
        font-size: 1.3rem;
    }

    /* Blog Single */
    .blog-single-title {
        font-size: 1.5rem;
    }

    .blog-single-featured {
        max-height: 300px;
    }

    .blog-single-content {
        font-size: 1rem;
    }

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

/* ============================================
   VERY SMALL SCREENS (max-width: 375px)
   ============================================ */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.7rem;
    }

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

    .page-header h1 {
        font-size: 1.5rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .scroll-to-top,
    .hero-bg-effects,
    #cosmic-canvas,
    #antigravity-canvas,
    .slider-arrow,
    .slider-pagination,
    .mobile-toggle,
    .page-loader {
        display: none !important;
    }

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

    .hero-section {
        background: none;
        min-height: auto;
        padding: 20px 0;
    }

    .hero-title,
    .page-header h1,
    h1, h2, h3, h4 {
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ============================================
   LANDSCAPE ORIENTATION FIXES
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
    }

    .hero-content {
        padding: 30px 0;
    }

    .hero-stats {
        display: none;
    }
}

/* ============================================
   HIGH DPI / RETINA SUPPORT
   ============================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-link img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ============================================
   REDUCED MOTION PREFERENCE
   ============================================ */
@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;
    }

    .hero-nebula,
    .planet-ring-container {
        display: none;
    }
}

/* ============================================
   DARK MODE PREFERENCE
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Optional: auto dark mode support */
}
