/* Responsive Design for Sandwin.store */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .main-nav {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .systems-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .calculator-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .credentials-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    /* Header Mobile */
    .header-content {
        flex-direction: column;
        padding: 0.8rem 0;
    }
    
    .logo {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .language-switcher {
        margin-top: 0.5rem;
    }
    
    /* Hero Mobile */
    .hero {
        height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        padding: 1rem;
    }
    
    /* Sections Mobile */
    .products,
    .complete-systems,
    .calculator-section,
    .credentials,
    .contact {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }
    
    /* Products Mobile */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-card {
        margin: 0 auto;
        max-width: 350px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-content {
        padding: 1.2rem;
    }
    
    .product-content h3 {
        font-size: 1.2rem;
    }
    
    .product-features {
        margin-bottom: 1.2rem;
    }
    
    .product-cta {
        width: 100%;
        text-align: center;
        padding: 0.9rem;
    }
    
    /* Systems Mobile */
    .systems-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .system-card {
        padding: 1.5rem;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .system-icon {
        font-size: 2.5rem;
    }
    
    .system-card h3 {
        font-size: 1.2rem;
    }
    
    .system-features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-tag {
        width: 100%;
        max-width: 200px;
        text-align: center;
        padding: 0.4rem 1rem;
    }
    
    /* Calculator Mobile */
    .calculator-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .calculator-info h2 {
        font-size: 1.8rem;
    }
    
    .calculator-info > p {
        font-size: 1rem;
    }
    
    .calculator-features {
        gap: 1rem;
    }
    
    .calc-feature {
        text-align: center;
        padding: 1rem;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .calculator-actions {
        gap: 0.8rem;
    }
    
    .calc-button {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    /* Credentials Mobile */
    .credentials-badge h2 {
        font-size: 1rem;
        padding: 1.2rem 2rem;
        line-height: 1.3;
    }
    
    .credentials-content h3 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .credentials-content > p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .credentials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .credential-item {
        padding: 1.2rem;
        background: #f8f9fa;
        border-radius: 8px;
    }
    
    .credential-item h4 {
        font-size: 1.1rem;
    }
    
    /* Contact Mobile */
    .contact-content h2 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .contact-content > p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
    
    .contact-info p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .contact-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-column {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }
    
    .footer-bottom {
        padding-top: 1rem;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .product-content {
        padding: 1rem;
    }
    
    .system-card {
        padding: 1.2rem;
    }
    
    .credentials-badge h2 {
        font-size: 0.9rem;
        padding: 1rem 1.5rem;
    }
    
    .contact-content h2 {
        font-size: 1.6rem;
    }
    
    .calc-button,
    .contact-btn,
    .cta-button {
        font-size: 0.9rem;
        padding: 0.9rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link::after {
        display: none;
    }
    
    .product-card:hover,
    .system-card:hover {
        transform: none;
    }
    
    .cta-button:hover,
    .calc-button:hover,
    .contact-btn:hover,
    .product-cta:hover {
        transform: none;
    }
    
    /* Increase touch targets */
    .nav-link,
    .lang-link,
    .cta-button,
    .calc-button,
    .contact-btn,
    .product-cta {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .lang-link {
        min-width: 44px;
    }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image,
    .product-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-actions {
        flex-direction: row;
        gap: 1rem;
    }
    
    .cta-button {
        width: auto;
        min-width: 150px;
        padding: 0.8rem 1.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .hero,
    .calculator-section,
    .footer {
        display: none;
    }
    
    .products,
    .complete-systems,
    .credentials,
    .contact {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
    
    .product-card,
    .system-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    .section-title {
        font-size: 18pt;
        color: #000;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
}

