/* Responsive Design */

/* Tablet and Small Desktop */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
}

/* Mobile and Small Tablet */
@media (max-width: 768px) {
    /* 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;
        transition: left 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding-top: 2rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 1.125rem;
        padding: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .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);
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 120px 0 80px;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    /* About Section */
    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    /* Team */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .member-info {
        padding: 1.5rem;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* Newsletter */
    .newsletter-form .form-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .newsletter-form input[type="email"] {
        border-radius: 6px;
    }
    
    .newsletter-form button {
        border-radius: 6px;
        width: 100%;
    }
    
    .form-checkbox {
        text-align: center;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Contact */
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Cookie Banner */
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
    
    /* Cookie Modal */
    .cookie-modal-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-modal-buttons .btn {
        width: 100%;
    }
    
    /* Legal Pages */
    .legal-content {
        padding: 100px 0 60px;
    }
    
    .legal-body {
        padding: 2rem 1.5rem;
    }
    
    .rights-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cookie-table {
        font-size: 0.875rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 0.75rem 0.5rem;
    }
    
    /* Thank You Page */
    .thank-you {
        padding: 100px 0 60px;
    }
    
    .success-message,
    .error-message {
        padding: 2rem 1.5rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .services-preview {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-preview-card {
        padding: 1.5rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .service-card,
    .team-member,
    .testimonial-card {
        margin: 0 -10px;
    }
    
    .legal-body {
        padding: 1.5rem 1rem;
        margin: 0 -10px;
        border-radius: 0;
    }
    
    .success-message,
    .error-message {
        padding: 1.5rem 1rem;
        margin: 0 -10px 2rem;
        border-radius: 0;
    }
    
    .contact-form,
    .service-preview-card {
        margin: 0 -10px;
        border-radius: 0;
    }
    
    .cookie-modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .member-photo {
        height: 150px;
    }
    
    .member-photo img {
        width: 80px;
        height: 80px;
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content {
        gap: 6rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .nav-toggle,
    .social-links,
    .btn,
    .hero-buttons,
    .newsletter,
    .action-buttons {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    .hero {
        background: none;
        color: #000;
        padding: 2rem 0;
    }
    
    .section-header,
    .legal-header {
        text-align: left;
        margin-bottom: 1rem;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .legal-body {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .service-card,
    .team-member,
    .testimonial-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    body {
        background-color: #ffffff;
        color: #000000;
    }
    
    .btn-primary {
        background-color: #000000;
        color: #ffffff;
        border: 2px solid #000000;
    }
    
    .btn-outline {
        background-color: #ffffff;
        color: #000000;
        border: 2px solid #000000;
    }
    
    .service-card,
    .team-member,
    .testimonial-card,
    .legal-body {
        border: 2px solid #000000;
    }
    
    .hero {
        background: #000000;
        color: #ffffff;
    }
}

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