/* Responsive Design */

/* Large Desktop */
@media (max-width: 1400px) {
    .container {
        max-width: 1100px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}

/* Tablet Landscape */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Banner */
    .banner {
        padding: 100px 0 40px;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1.1rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* About Features */
    .about-features {
        grid-template-columns: 1fr;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Legal Content */
    .legal-content {
        padding: 2rem;
    }
    
    /* Thank You Steps */
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact Info Grid */
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    /* Typography */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    /* Sections */
    section {
        padding: 40px 0;
    }
    
    /* Banner */
    .banner {
        padding: 90px 0 30px;
    }
    
    .banner-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .banner-buttons .btn-primary,
    .banner-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    /* Stats */
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        justify-content: center;
    }
    
    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    /* Legal */
    .legal-content {
        padding: 1.5rem;
    }
    
    /* Thank You */
    .thank-you-content {
        padding: 2rem;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons .btn-primary,
    .action-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

/* Mobile Large */
@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    /* Typography */
    h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .logo {
        height: 35px;
    }
    
    .brand-name {
        font-size: 1.3rem;
    }
    
    /* Banner */
    .banner {
        padding: 80px 0 25px;
    }
    
    .banner-content {
        padding: 0 10px;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    /* Sections */
    section {
        padding: 30px 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-icon {
        width: 50px;
        height: 50px;
    }
    
    /* Cards */
    .service-card,
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    /* Stats */
    .statistics {
        padding: 40px 0;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-logo {
        height: 35px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
    }
    
    /* Cookie Banner */
    .cookie-banner {
        padding: 0.75rem;
    }
    
    .cookie-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Tables */
    .cookies-table {
        font-size: 0.9rem;
    }
    
    .cookies-table th,
    .cookies-table td {
        padding: 8px;
    }
    
    /* Legal Pages */
    .legal-page {
        padding: 90px 0 40px;
    }
    
    .legal-content {
        padding: 1.25rem;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
    }
    
    .legal-content h3 {
        font-size: 1.1rem;
    }
    
    /* Thank You Page */
    .thank-you {
        padding: 90px 0 40px;
    }
    
    .thank-you-content {
        padding: 1.5rem;
    }
    
    .thank-you-icon svg {
        width: 60px;
        height: 60px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 0.9rem;
    }
}

/* Mobile Small */
@media (max-width: 400px) {
    /* Ultra-compact mobile styles */
    .container {
        padding: 0 8px;
    }
    
    h1 {
        font-size: 1.4rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    .banner-content h1 {
        font-size: 1.5rem;
    }
    
    .service-card,
    .testimonial-card,
    .contact-form,
    .legal-content,
    .thank-you-content {
        padding: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .stat-item h3 {
        font-size: 1.8rem;
    }
    
    .footer {
        padding: 1.5rem 0 0.75rem;
    }
    
    .section-icon {
        width: 40px;
        height: 40px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
}

/* Print Styles */
@media print {
    .header,
    .cookie-banner,
    .banner,
    .footer {
        display: none;
    }
    
    .legal-page,
    .thank-you {
        padding: 20px 0;
    }
    
    .legal-content,
    .thank-you-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    a {
        text-decoration: underline;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 1px solid #333;
        background: none;
        color: #333;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo,
    .footer-logo,
    .section-icon,
    .service-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion */
@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) {
    /* Keep light theme for now, but structure is here for future dark mode */
}

/* Landscape Orientation on Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .banner {
        padding: 70px 0 20px;
    }
    
    .banner-content h1 {
        font-size: 1.6rem;
    }
    
    section {
        padding: 25px 0;
    }
    
    .nav-menu {
        height: calc(100vh - 60px);
        padding-top: 1rem;
    }
}
