/* Mobile First Responsive Design */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        gap: 0;
    }

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

    .nav-link {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
    }

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

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

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

    /* Sections */
    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    /* Grid adjustments */
    .info-grid,
    .services-grid,
    .products-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    /* Newsletter */
    .newsletter .form-group {
        flex-direction: column;
        align-items: stretch;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .social-links {
        justify-content: center;
    }

    /* Cookie Banner */
    .cookie-content {
        text-align: left;
    }

    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cookie-buttons .btn {
        width: 100%;
    }

    /* Modal adjustments */
    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    /* Legal pages */
    .legal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    /* Thank you page */
    .thank-you-content {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Tables */
    .cookies-table {
        font-size: 0.9rem;
    }

    .cookies-table th,
    .cookies-table td {
        padding: 8px;
    }

    /* Utility adjustments */
    .text-center-mobile {
        text-align: center;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    /* Hero adjustments */
    .hero-content {
        gap: 2rem;
    }

    /* Grid adjustments for tablets */
    .info-grid,
    .services-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    /* Contact grid for tablets */
    .contact-grid {
        gap: 2rem;
    }

    /* Footer adjustments */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large devices (desktops, 1025px and up) */
@media (min-width: 1025px) {
    /* Enhanced hover effects for desktop */
    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    .service-card:hover,
    .product-category:hover,
    .info-card:hover,
    .testimonial-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

    /* Navigation hover effects */
    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -5px;
        left: 50%;
        background-color: #3498db;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-link {
        position: relative;
    }

    .nav-link:hover::after {
        width: 100%;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }

    /* Larger typography for bigger screens */
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    /* Hero adjustments */
    .hero {
        padding: 140px 0 100px;
    }

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

    /* More spacing for larger screens */
    section {
        padding: 100px 0;
    }

    .section-header {
        margin-bottom: 4rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .logo,
    .footer-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape orientation for mobile devices */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        padding: 80px 0 40px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

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

    section {
        padding: 40px 0;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .nav-toggle,
    .btn,
    .hero-buttons,
    .cta-buttons,
    .social-links {
        display: none !important;
    }

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

    .hero {
        background: none;
        color: black;
        padding: 20px 0;
    }

    .hero h1 {
        color: black;
    }

    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }

    .container {
        max-width: none;
        padding: 0;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid;
    }

    .service-card,
    .product-category,
    .info-card,
    .testimonial-card {
        border: 1px solid #333;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* This would be implemented if dark mode was required */
    /* Currently maintaining light theme as per requirements */
}

/* Focus styles for accessibility */
@media (prefers-reduced-motion: no-preference) {
    *:focus {
        outline: 2px solid #3498db;
        outline-offset: 2px;
    }

    .btn:focus {
        outline: 2px solid #fff;
        outline-offset: 2px;
    }
}
