/* Responsive Design - Additional Styles */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .blog-layout {
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .services-grid,
    .projects-grid,
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .service-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .map-placeholder {
        flex-direction: column;
    }
    
    .map-content {
        padding: 2rem;
    }
}

/* Mobile menu styles - Coordinated with style.css */
@media (max-width: 768px) {
    /* Enhanced mobile menu styles that work with the existing structure */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #000000 !important;
        flex-direction: column;
        padding: 80px 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 0;
        padding: 1rem 0;
        border-bottom: 1px solid #333;
        text-align: center;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        padding-top: 80px;
        height: calc(100vh - 80px);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .service-header {
        flex-direction: column;
        text-align: center;
    }
    
    .service-header .service-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .legal-body {
        padding: 2rem;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .services-grid,
    .projects-grid,
    .testimonials-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card img {
        height: 200px;
    }
    
    .container {
        width: 100%;
        padding: 0 1rem;
    }
    
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-hero p {
        font-size: 1.1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
    }
    
    .service-detail {
        padding: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile-specific button adjustments */
    .hero .btn {
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 0.5rem auto;
    }
}

/* Tablet-specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary: #000000;
        --secondary: #000000;
        --dark: #000000;
        --light: #ffffff;
        --white: #ffffff;
    }

    .nav-menu li a {
        color: #000000 !important;
    }

    .hero {
        background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    }

    .hero h1,
    .hero p {
        color: #000000;
        text-shadow: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --light: #1a1a1a;
        --white: #2d2d2d;
        --dark: #ffffff;
        --gray: #cccccc;
    }
    
    body {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    
    .service-card,
    .testimonial-card,
    .contact-form-container,
    .faq-item,
    .project-item,
    .blog-post,
    .sidebar-widget,
    .legal-body,
    .legal-header {
        background: #2d2d2d;
        color: #ffffff;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: #1a1a1a;
        border-color: #444;
        color: #ffffff;
    }

    /* Ensure navbar remains black in dark mode */
    header {
        background-color: #000000 !important;
    }

    .nav-menu {
        background-color: #000000 !important;
    }
}

/* Print styles enhancement */
@media print {
    .navbar,
    .cta,
    .cookie-consent,
    .hamburger {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000000;
    }
    
    .hero {
        background: none !important;
        color: #000000 !important;
        height: auto;
    }
    
    .hero h1,
    .hero p {
        color: #000000 !important;
        text-shadow: none !important;
    }
    
    a {
        color: #000000 !important;
    }
    
    .btn {
        display: none !important;
    }
}