/* Large screens and up */
@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Desktop and laptop screens */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .services-grid,
    .areas-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Page-specific layouts */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-text,
    .content-visual {
        padding: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
    }
    
    .service-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .service-features {
        grid-template-columns: 1fr;
    }
}

/* Tablet screens */
@media (max-width: 768px) {
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    /* Header adjustments */
    .nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--white);
        z-index: 9999;
        padding: 2rem;
    }
    
    .nav.show {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        margin-top: 4rem;
    }
    
    .nav-link {
        font-size: 1.25rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 10000;
        position: relative;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero section adjustments */
    .hero {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Section adjustments */
    .section {
        padding: 3rem 0;
    }
    
    /* Page-specific mobile styles */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .service-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .service-features {
        grid-template-columns: 1fr;
    }
    
    .service-detailed {
        padding: 1.5rem;
    }
    
    .team-member-detailed {
        padding: 1.5rem;
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        gap: 1.5rem;
    }
    
    .member-photo img {
        width: 5rem;
        height: 5rem;
        padding: 1rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    /* Grid adjustments */
    .services-grid,
    .areas-grid,
    .team-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    /* Form adjustments */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        justify-content: center;
    }
    
    .form-actions .btn {
        width: 100%;
        max-width: 200px;
    }
    
    /* Cookie banner adjustments */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-buttons .btn {
        flex: 1;
        min-width: 100px;
    }
    
    /* Modal adjustments */
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-buttons .btn {
        width: 100%;
    }
    
    /* Footer adjustments */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Thanks page adjustments */
    .thanks-details {
        grid-template-columns: 1fr;
    }
    
    .detail-item {
        flex-direction: column;
        text-align: center;
    }
    
    .urgent-contact {
        flex-direction: column;
        align-items: center;
    }
    
    .urgent-link {
        justify-content: center;
        width: 100%;
    }
    
    /* CTA section adjustments */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Mobile screens */
@media (max-width: 480px) {
    /* Container adjustments */
    .container {
        padding: 0 1rem;
    }
    
    /* Typography adjustments */
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    /* Spacing adjustments */
    .section {
        padding: 2rem 0;
    }
    
    .page-header {
        padding: 3rem 0;
    }
    
    /* Card adjustments */
    .service-card,
    .area-card,
    .team-member,
    .testimonial-card,
    .about-card {
        padding: 1.5rem;
    }
    
    /* Button adjustments */
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Form adjustments */
    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.625rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    /* Hero adjustments */
    .hero {
        min-height: 50vh;
    }
    
    .hero-content {
        padding: 1rem 0;
    }
    
    /* Icon adjustments */
    .section-icon img,
    .page-icon img {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .service-icon img,
    .about-icon img {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    /* Footer adjustments */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .contact-info {
        gap: 0.75rem;
    }
    
    /* Cookie banner mobile */
    .cookie-banner {
        padding: 0.75rem;
    }
    
    .cookie-buttons {
        gap: 0.5rem;
    }
    
    .cookie-buttons .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* Modal mobile */
    .modal-content {
        margin: 5% auto;
        padding: 1rem;
        max-height: 90vh;
    }
    
    .cookie-category {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    /* Tables responsive */
    .cookies-table {
        font-size: 0.875rem;
    }
    
    .cookies-table th,
    .cookies-table td {
        padding: 0.5rem;
    }
    
    /* Make tables scrollable on very small screens */
    .cookie-table {
        overflow-x: auto;
    }
    
    /* Legal page adjustments */
    .legal-intro {
        padding: 1.5rem;
    }
    
    .legal-section {
        margin-bottom: 2rem;
    }
    
    .browser-instructions {
        padding: 1rem;
    }
    
    /* Thanks page mobile */
    .thanks-icon img {
        width: 4rem;
        height: 4rem;
    }
    
    .thanks-actions .btn {
        margin: 0.25rem 0;
        width: 100%;
    }
    
    .thanks-contact {
        padding: 1.5rem;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .service-card,
    .area-card,
    .team-member,
    .testimonial-card {
        padding: 1rem;
    }
    
    .modal-content {
        width: 98%;
        padding: 0.75rem;
    }
    
    .footer-content {
        gap: 1rem;
    }
}

/* Landscape mobile adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .page-header {
        padding: 2rem 0;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .modal-content {
        margin: 2% auto;
        max-height: 95vh;
    }
}

/* High contrast and accessibility improvements */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #1d4ed8;
        --text-color: #000000;
        --text-light: #333333;
        --border-color: #000000;
    }
    
    .btn-outline {
        border-width: 2px;
    }
    
    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3);
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero {
        scroll-behavior: auto;
    }
}

/* Dark mode support (if enabled by user preference) */
@media (prefers-color-scheme: dark) {
    /* Note: Since the requirement specifies no dark mode, 
       we'll keep this minimal or remove it entirely */
    /* This section is commented out as per requirements */
}

/* Print-specific responsive adjustments */
@media print {
    .container {
        max-width: none;
        padding: 0;
    }
    
    .section {
        padding: 1rem 0;
        break-inside: avoid;
    }
    
    .service-card,
    .area-card,
    .team-member,
    .testimonial-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* Focus management for keyboard navigation */
@media (hover: none) and (pointer: coarse) {
    /* Touch device specific styles */
    .btn:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    .service-card:hover,
    .area-card:hover,
    .team-member:hover,
    .testimonial-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
}

/* Specific adjustments for common tablet breakpoints */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .services-grid,
    .areas-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* iPad specific adjustments */
@media only screen 
    and (min-device-width: 768px) 
    and (max-device-width: 1024px) 
    and (-webkit-min-device-pixel-ratio: 1) {
    
    .hero {
        min-height: 70vh;
    }
    
    .section {
        padding: 3.5rem 0;
    }
}

/* Large mobile screens (iPhone Plus, etc.) */
@media (min-width: 414px) and (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }
}
