/* Responsive Styles */

/* Large Devices (Desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .service-item {
        flex-direction: column;
    }
    
    .service-image {
        min-height: 250px;
    }
    
    .map-form-wrapper {
        flex-direction: column;
    }
}

/* Medium Devices (Tablets, less than 992px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    .header-inner {
        flex-wrap: wrap;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .nav-list {
        justify-content: center;
    }
    
    .about-content,
    .about-company-content,
    .contact-content,
    .service-request-content {
        flex-direction: column;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: center;
    }
    
    .timeline-year {
        margin-bottom: 20px;
    }
    
    .history-timeline::before {
        left: 0;
    }
    
    .before-after-item {
        flex-direction: column;
    }
}

/* Small Devices (Landscape Phones, less than 768px) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    
    .header-contact {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-item {
        margin: 10px 0;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .services-grid,
    .benefits-grid,
    .gallery-grid,
    .team-grid,
    .additional-services-grid,
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-nav-list {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .filters-wrapper {
        flex-direction: column;
    }
    
    .filter-label {
        margin-bottom: 10px;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-card,
    .benefit-item,
    .gallery-item,
    .team-member,
    .additional-service-item,
    .contact-info-item {
        padding: 20px;
    }
    
    .service-icon,
    .benefit-icon,
    .additional-service-icon,
    .contact-icon {
        font-size: 2rem;
    }
    
    .service-title,
    .benefit-title,
    .additional-service-title,
    .contact-title {
        font-size: 1.2rem;
    }
    
    .gallery-item {
        height: 260px;
    }
    
    .team-member-photo {
        width: 150px;
        height: 150px;
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    .social-link-large {
        min-width: 120px;
        padding: 15px;
    }
}

/* Mobile Menu Animation */
@media (max-width: 767.98px) {
    .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, -7px);
    }
    
    .main-nav.active {
        background-color: white;
        position: absolute;
        top: 75%;
        left: 0;
        width: 100%;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cta-section,
    .contact-form,
    .gallery-filters,
    .mobile-menu-toggle,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
        width: 100%;
    }
    
    .page-header {
        background-color: #fff;
        color: #000;
        padding: 20px 0;
    }
    
    .page-title {
        color: #000;
    }
    
    .section-title::after {
        background-color: #000;
    }
    
    .service-item,
    .about-content,
    .contact-content,
    .about-company-content,
    .service-request-content {
        page-break-inside: avoid;
    }
}
