/* Responsive Design */

/* Large screens */
@media (max-width: 1024px) {
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-image {
        height: 250px;
    }
    
    .monitoring-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Tablet styles */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Dropdown Menu Mobile */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-light);
        margin: 1rem 0;
        border-radius: 8px;
    }
    
    /* Hero Section */
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 2.5rem 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-grid-detailed {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Project Cards */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Trust Grid */
    .trust-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    /* Safety Features */
    .safety-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Reviews Grid */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    /* Areas Content */
    .areas-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Types Grid */
    .types-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    /* Compliance Features */
    .compliance-features,
    .assurance-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Monitoring Features */
    .monitoring-features {
        margin-top: 2rem;
    }
    
    /* Reasons Grid */
    .reasons-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    /* CTA Section */
    .cta-content h2 {
        font-size: 2rem;
    }
    
    /* Section Headings */
    .services-overview h2,
    .key-services h2,
    .detailed-services h2,
    .category-header h2,
    .safety-content h2,
    .compliance-content h2 {
        font-size: 2rem;
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    /* Navigation */
    .nav-logo h1 {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        top: 60px;
        padding: 1.5rem 0;
    }
    
    /* Hero Section */
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 2rem 0;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    /* Buttons */
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Service Cards */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    /* Leadership Section - Mobile */
    .leadership-section {
        padding: 1rem;
    }
    
    .leader-photo-container {
        width: 220px;
        height: 220px;
    }
    
    .leader-header h3 {
        font-size: 1.6rem;
    }
    
    .skills-grid,
    .qualifications-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Project Cards */
    .project-card {
        padding: 1.5rem;
    }
    
    .project-details {
        justify-content: center;
    }
    
    .spec {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    /* Trust Items */
    .trust-item {
        padding: 1rem;
    }
    
    .trust-icon {
        font-size: 2.5rem;
    }
    
    /* Safety Features */
    .safety-feature {
        padding: 1.5rem;
    }
    
    /* Contact Items */
    .contact-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-icon {
        font-size: 2rem;
    }
    
    /* Form Elements */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .submit-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Category Icons */
    .category-icon {
        font-size: 3rem;
    }
    
    /* Section Padding */
    .services-overview,
    .key-services,
    .detailed-services,
    .featured-projects,
    .trust-indicators,
    .company-overview,
    .safety-commitment,
    .service-areas,
    .service-overview,
    .wsa-compliance,
    .project-assurance,
    .project-types,
    .project-category,
    .specialized-monitoring,
    .contact-section,
    .services-summary,
    .why-choose-us,
    .cta-section {
        padding: 2.5rem 0;
    }
    
    /* Typography Adjustments */
    .content-text h2,
    .monitoring-text h3,
    .contact-form-container h2,
    .contact-info h2 {
        font-size: 1.5rem;
    }
    
    .service-card h3,
    .project-card h4,
    .trust-item h4,
    .safety-feature h4,
    .compliance-item h4,
    .assurance-item h4,
    .reason-item h4 {
        font-size: 1.1rem;
    }
    
    .service-item h3 {
        font-size: 1rem;
    }
    
    /* Grid Adjustments */
    .trust-grid,
    .reasons-grid {
        grid-template-columns: 1fr;
    }
    
    .types-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 1rem;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .page-header h1 {
        font-size: 1.6rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .services-overview h2,
    .key-services h2,
    .detailed-services h2,
    .category-header h2 {
        font-size: 1.8rem;
    }
    
    .service-card,
    .project-card,
    .safety-feature,
    .compliance-item,
    .assurance-item {
        padding: 1rem;
    }
}

/* Print styles */
@media print {
    .header,
    .hamburger,
    .cta-section,
    .footer {
        display: none;
    }
    
    .page-header {
        background: none;
        color: black;
    }
    
    .hero {
        background: none;
        color: black;
    }
    
    .service-card,
    .project-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    /* Gallery responsive styles */
    .slideshow-container {
        margin-bottom: 2rem;
    }
    
    .slides-wrapper {
        height: 400px;
    }
    
    .slide-content {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .slide-content h3 {
        font-size: 1.3rem;
    }
    
    .slide-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .slide-nav.prev {
        left: 10px;
    }
    
    .slide-nav.next {
        right: 10px;
    }
    
    .thumbnails-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .thumbnail {
        width: 100px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .slides-wrapper {
        height: 300px;
    }
    
    .slide-content {
        padding: 1.5rem 1rem 1rem;
    }
    
    .slide-content h3 {
        font-size: 1.1rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
    }
    
    .slide-nav {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .thumbnails-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .thumbnail {
        width: 80px;
        height: 60px;
    }
    
    /* Modal responsive styles */
    .modal-content {
        max-width: 98vw;
        margin: 1rem;
    }
    
    #modalImage {
        max-height: calc(85vh - 100px);
    }
    
    .modal-info {
        padding: 1rem;
    }
    
    .modal-info h3 {
        font-size: 1.2rem;
    }
    
    .modal-info p {
        font-size: 0.9rem;
    }
    
    .modal-close {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
    
    .modal-nav {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
    
    /* Leadership section responsive styles */
    .leadership-section {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .leader-photo-container {
        width: 220px;
        height: 220px;
    }
    
    .leader-info {
        padding: 1.5rem 1rem;
    }
    
    .skills-grid,
    .qualifications-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .leader-info {
        padding: 1rem;
    }
    
    .leader-header h3 {
        font-size: 1.6rem;
    }
    
    .leader-credentials {
        flex-wrap: wrap;
    }
    
    .leader-photo-container {
        width: 180px;
        height: 180px;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #0000ff;
        --text-dark: #000000;
        --text-light: #333333;
        --border-color: #000000;
    }
    
    .service-card,
    .project-card {
        border: 2px solid var(--border-color);
    }
}

/* 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,
    .project-card:hover,
    .cta-button:hover {
        transform: none;
    }
}