/* Responsive Design */

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

/* Medium screens (768px to 1199px) */
@media (max-width: 1199px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pitometry-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding: 2rem;
    }
    
    .footer-bottom {
        text-align: center;
        padding: 1rem 2rem;
    }
}

/* Small screens (768px and down) */
@media (max-width: 768px) {
    /* Header */
    .contact-info-right {
        display: none;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-nav.active {
        display: block;
    }
    
    /* Typography */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* Hero */
    .hero {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .additional-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Standards */
    .standards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Projects */
    .project-types {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .project-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-type-badge {
        text-align: left;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Contact */
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .emergency-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .emergency-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Footer */
    .footer-content {
        padding: 1.5rem;
    }
    
    .footer-info p {
        font-size: 0.875rem;
    }
    
    .footer-bottom {
        padding: 1rem 1.5rem;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
}

/* Extra small screens (480px and down) */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    /* Typography */
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Hero */
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-card {
        padding: 1.5rem;
    }
    
    .hero-card-content {
        padding: 1.5rem;
    }
    
    /* Services */
    .service-card {
        padding: 1.5rem;
    }
    
    .additional-services {
        padding: 2rem;
    }
    
    .additional-services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Projects */
    .project-types {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .recent-projects {
        padding: 2rem;
    }
    
    .project-stats {
        padding: 2rem;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Contact */
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .emergency-contact {
        padding: 2rem;
    }
    
    /* Standards */
    .standard-card {
        padding: 1.5rem;
    }
    
    .pitometry-section {
        padding: 2rem;
    }
    
    .certification-section {
        padding: 2rem 0;
    }
    
    .certification-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* About */
    .about-point {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .values-card {
        padding: 1.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .hero-buttons .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Cards */
    .service-card,
    .standard-card,
    .project-type {
        margin-bottom: 1rem;
    }
    
    /* Modal adjustments */
    .modal {
        padding: 1.5rem;
        width: 95%;
    }
    
    /* Timeline adjustments */
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
}

/* Print styles */
@media print {
    .header,
    .mobile-menu-btn,
    .mobile-nav,
    .btn,
    .footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .section-title {
        font-size: 18pt;
        margin-bottom: 0.5rem;
    }
    
    .service-card,
    .project-item,
    .standard-card {
        border: 1px solid #ccc;
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .hero {
        padding: 1rem 0;
    }
    
    .hero-visual {
        display: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background-color: #000;
        border: 2px solid #000;
    }
    
    .btn-secondary {
        background-color: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .service-card,
    .project-item,
    .standard-card {
        border: 2px solid #000;
    }
    
    .text-red {
        color: #000;
    }
    
    .text-blue {
        color: #000;
    }
}

/* Reduced motion */
@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;
    }
    
    .float,
    .pulse,
    .fade-in-up {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* This can be implemented if dark mode is desired */
    /* Currently maintaining light theme as per brand requirements */
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding-top: 4rem;
        padding-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 0.75rem;
    }
    
    .mobile-nav-link {
        padding: 1rem 0;
    }
    
    .contact-method {
        padding: 1rem 0;
    }
    
    /* Increase touch targets */
    .service-card,
    .project-type,
    .additional-service {
        padding: 1.5rem;
    }
    
    /* Remove hover effects on touch devices */
    .service-card:hover,
    .project-type:hover,
    .standard-card:hover {
        transform: none;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: no-preference) {
    .scroll-smooth {
        scroll-behavior: smooth;
    }
}

/* Focus styles for keyboard navigation */
@media (hover: hover) and (pointer: fine) {
    .btn:focus,
    .nav-link:focus,
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: 2px solid #DC2626;
        outline-offset: 2px;
    }
}

/* Very large screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 4rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .project-types {
        grid-template-columns: repeat(4, 1fr);
    }
}