/**
 * Soft Snuggles Factory Theme - Responsive Styles
 * 
 * @package Soft_Snuggles
 * @version 1.0.0
 */

/* Large Devices (Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content {
        gap: 6rem;
    }
}

/* Medium Devices (Tablets, 768px to 1199px) */
@media (max-width: 1199px) {
    .section {
        padding: 5rem 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .factory-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .factory-item.featured {
        grid-column: span 2;
        grid-row: span 1;
    }
}

/* Small Devices (Landscape phones, 576px to 767px) */
@media (max-width: 767px) {
    html {
        font-size: 14px;
    }
    
    .header-inner {
        padding: 1rem;
    }
    
    .site-title {
        font-size: 1.25rem;
    }
    
    .site-title span {
        font-size: 0.65rem;
    }
    
    .custom-logo {
        height: 45px;
    }
    
    .hero-section {
        min-height: auto;
        padding: 120px 1rem 4rem;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-badge {
        display: none;
    }
    
    .section {
        padding: 4rem 1rem;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .features-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card,
    .product-card {
        padding: 1.5rem;
    }
    
    .product-image {
        height: 220px;
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .factory-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .factory-item.featured {
        grid-column: span 1;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-links li {
        margin: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
        box-shadow: 0 10px 40px var(--shadow);
        transform: translateY(-150%);
        transition: transform 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--accent);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 0;
        text-align: center;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    /* Menu toggle animation */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Extra Small Devices (Portrait phones, less than 576px) */
@media (max-width: 575px) {
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .hero-text .tagline {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-card::before {
        font-size: 4rem;
    }
    
    .contact-info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.875rem;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .custom-logo {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .hero-buttons,
    .menu-toggle {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
        color: black;
    }
    
    .section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
}

/* 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;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment if you want dark mode support
    :root {
        --cream: #1a1a1a;
        --white: #2d2d2d;
        --text: #e0e0e0;
        --text-light: #a0a0a0;
    }
    */
}