/* Responsive Design */

/* Large Screens (Desktops) */
@media (min-width: 1200px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    .hero-text h1 {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Medium Screens (Tablets) */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }
    
    .about-features {
        margin-top: var(--spacing-lg);
    }
    
    .feature {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Screens (Mobile Landscape) */
@media (max-width: 768px) {
    :root {
        --spacing-xs: 0.25rem;
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 2.5rem;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* Header */
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hero Section */
    .hero {
        padding: calc(60px + var(--spacing-xl)) 0 var(--spacing-xl);
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Sections */
    section {
        padding: var(--spacing-xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-xl);
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
    
    /* Contact */
    .contact-info {
        gap: var(--spacing-lg);
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .contact-item i {
        margin-top: 0;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Thank You Page */
    .thank-you-content {
        padding: var(--spacing-xl);
    }
    
    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .thank-you-actions .btn-primary,
    .thank-you-actions .btn-outline {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    /* Cookie Banner */
    .cookie-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .cookie-buttons .btn-primary,
    .cookie-buttons .btn-secondary,
    .cookie-buttons .btn-outline {
        width: 100%;
        text-align: center;
    }
    
    /* Cookie Modal */
    .cookie-modal {
        padding: var(--spacing-sm);
    }
    
    .modal-content {
        max-height: 90vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: var(--spacing-md);
    }
    
    .cookie-toggle {
        align-items: flex-start;
    }
    
    .toggle-slider {
        margin-top: 0;
    }
}

/* Extra Small Screens (Mobile Portrait) */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .service-card,
    .testimonial,
    .contact-form {
        padding: var(--spacing-lg);
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .feature {
        padding: var(--spacing-md);
    }
    
    .feature img {
        width: 40px;
        height: 40px;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }
    
    .legal-content {
        padding: 0 var(--spacing-sm);
    }
    
    .legal-section ul {
        padding-left: var(--spacing-md);
    }
    
    .thank-you-content {
        padding: var(--spacing-md);
    }
    
    .success-icon {
        font-size: 3rem;
        margin-bottom: var(--spacing-md);
    }
    
    .cookie-category {
        padding: var(--spacing-sm);
    }
    
    .cookie-toggle {
        gap: var(--spacing-sm);
    }
    
    .toggle-slider {
        width: 40px;
        height: 20px;
    }
    
    .toggle-slider::after {
        width: 16px;
        height: 16px;
    }
    
    .cookie-toggle input[type="checkbox"]:checked + .toggle-slider::after {
        transform: translateX(20px);
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .newsletter,
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    h1, h2, h3, h4, h5, h6 {
        break-after: avoid;
        color: black !important;
    }
    
    p, li {
        color: black !important;
    }
    
    .legal-content {
        max-width: none;
    }
    
    .legal-section {
        break-inside: avoid;
        margin-bottom: 20pt;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #000080;
        --secondary-blue: #0000ff;
        --accent-blue: #4169e1;
        --dark-gray: #000000;
        --medium-gray: #333333;
        --light-gray: #f0f0f0;
    }
    
    .btn-outline {
        border-width: 3px;
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        border-width: 3px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .service-card:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-outline:hover {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* This is prepared for future dark mode implementation */
    /* Currently not activated as the design is light-themed */
}
