/* Responsive Design */

/* Large screens */
@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--background-white);
        box-shadow: 0 4px 20px var(--shadow-medium);
        padding: 2rem 0;
        transform: translateY(-100vh);
        transition: transform var(--transition-medium);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--background-light);
        margin-top: 0.5rem;
        border-radius: 0.5rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 4rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .stat-item {
        flex: 1;
        margin: 0 0.5rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Testimonials Grid */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    /* Cookie Consent */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 1rem;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        min-width: auto;
    }
    
    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Header */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-brand .logo {
        font-size: 1.25rem;
    }
    
    .nav-brand .logo i {
        font-size: 1.5rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* About Stats */
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        margin: 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Service Cards */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-icon i {
        font-size: 1.25rem;
    }
    
    /* Testimonial Cards */
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-card::before {
        font-size: 3rem;
        top: -5px;
        left: 15px;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
    }
    
    /* Cookie Consent */
    .cookie-consent {
        padding: 1rem;
    }
    
    .cookie-buttons {
        width: 100%;
    }
    
    .cookie-buttons button {
        flex: 1;
        min-width: 0;
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-card,
    .testimonial-card {
        padding: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: auto;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-icon,
    .social-link {
        transform: translateZ(0);
    }
}

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

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* This can be implemented later if needed */
}

/* Print styles */
@media print {
    .header,
    .footer,
    .cookie-consent,
    .nav-toggle,
    .btn {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    p, li {
        page-break-inside: avoid;
    }
}

