/* CleanPro Services - Responsive CSS */

/* Large Devices (Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 3.57rem;
    }
    
    .hero-section h2 {
        font-size: 1.77rem;
    }
    
    .section-padding {
        padding: 100px 0;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (max-width: 991.98px) {
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.54rem;
    }
    
    .hero-section h2 {
        font-size: 1.28rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .nav-item {
        margin: 0.25rem 0;
    }
    
    .team-member {
        margin-bottom: 2rem;
    }
    
    .process-step {
        margin-bottom: 2rem;
    }
    
    .timeline-item {
        text-align: center;
    }
    
    .contact-info {
        margin-top: 2rem;
    }
}

/* Small Devices (Landscape phones, 576px and up) */
@media (max-width: 767.98px) {
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding-top: 80px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.25rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    h2 {
        font-size: 1.89rem;
    }
    
    h3 {
        font-size: 1.30rem;
    }
    
    .card-padding,
    .feature-card,
    .service-card,
    .features-card,
    .price-card,
    .team-member,
    .review-card,
    .case-card,
    .process-step,
    .career-card,
    .info-card,
    .method-card,
    .eco-card,
    .quality-card,
    .equipment-card,
    .training-card,
    .area-card,
    .commercial-card,
    .special-card,
    .coverage-card,
    .response-card,
    .blog-card,
    .faq-card {
        padding: 1.5rem;
    }
    
    .price-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.35rem;
    }
    
    .price-tag {
        font-size: 1.64rem;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .breadcrumb-section {
        padding: 80px 0 20px;
    }
    
    .breadcrumb-image {
        max-width: 150px;
    }
}

/* Extra Small Devices (Portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding-top: 70px;
    }
    
    .hero-section h1 {
        font-size: 1.88rem;
    }
    
    .hero-section h2 {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 30px 0;
    }
    
    .navbar-brand {
        font-size: 1.29rem !important;
    }
    
    h1 {
        font-size: 1.77rem;
    }
    
    h2 {
        font-size: 1.55rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1rem;
    }
    
    .feature-icon,
    .features-icon,
    .info-icon,
    .contact-icon {
        font-size: 2rem;
    }
    
    .service-image,
    .case-image,
    .blog-image {
        height: 150px;
    }
    
    .team-photo {
        width: 80px;
        height: 80px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .price {
        font-size: 1.28rem;
    }
    
    .price-tag {
        font-size: 1.37rem;
    }
    
    .stars {
        font-size: 1rem;
    }
    
    .timeline-year {
        font-size: 1.35rem;
    }
    
    .gallery-image {
        height: 150px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 0.73rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    
    .form-control {
        padding: 0.5rem 0.75rem;
    }
    
    .breadcrumb-image {
        max-width: 120px;
    }
    
    /* Stack columns on very small screens */
    .col-lg-2,
    .col-lg-3,
    .col-lg-4,
    .col-lg-6 {
        margin-bottom: 1.70rem;
    }
    
    /* Reduce margins and paddings */
    .mb-4 {
        margin-bottom: 1.69rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    /* Make cards full width on mobile */
    .price-card,
    .service-card,
    .review-card {
        margin-bottom: 1.60rem;
    }
}

/* Landscape Phone Orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding-top: 60px;
        min-height: auto;
    }
    
    .hero-section .row {
        align-items: center;
    }
    
    .section-padding {
        padding: 20px 0;
    }
}

/* Print Media Query */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .navbar,
    .breadcrumb-section,
    footer,
    .btn,
    .gallery-image,
    .contact-form {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .section-padding {
        padding: 20px 0;
    }
    
    .card,
    .feature-card,
    .service-card {
        border: 1px solid #000;
        page-break-inside: avoid;
        margin-bottom: 10px;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-image,
    .case-image,
    .blog-image,
    .gallery-image,
    .team-photo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Hover Effects Disabled on Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .service-card:hover,
    .features-card:hover,
    .method-card:hover,
    .eco-card:hover,
    .quality-card:hover,
    .equipment-card:hover,
    .training-card:hover,
    .area-card:hover,
    .commercial-card:hover,
    .special-card:hover,
    .coverage-card:hover,
    .response-card:hover {
        transform: none;
        box-shadow: var(--box-shadow);
    }
    
    .gallery-image:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Focus Visible for Better Accessibility */
@supports selector(:focus-visible) {
    button:focus:not(:focus-visible),
    a:focus:not(:focus-visible),
    input:focus:not(:focus-visible),
    textarea:focus:not(:focus-visible),
    select:focus:not(:focus-visible) {
        outline: none;
    }
}

/* Custom Scrollbar for Webkit Browsers */
@media (min-width: 768px) {
    ::-webkit-scrollbar {
        width: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: var(--light-gray);
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--primary-blue);
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: var(--dark-blue);
    }
}

/* Reduce Motion for Better Accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-section img {
        animation: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support (Basic) */
@media (prefers-color-scheme: dark) {
    /* Note: This template is designed for light mode only as specified in requirements
       but providing basic structure for potential future enhancement */
    /*
    :root {
        --white: #070707;
        --light-gray: #3b3838;
        --gray: #999999;
        --dark-gray: #ffffff;
    }
    */
}

/* Large Screen Optimizations */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 4rem;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 120px 0;
    }
}

/* Compact Mode for Smaller Tablets */
@media (min-width: 768px) and (max-width: 991.98px) {
    .col-lg-2 {
        flex: 0 0 auto;
        width: 50%;
    }
    
    .team-member {
        margin-bottom: 1.65rem;
    }
    
    .process-step {
        margin-bottom: 1.55rem;
    }
}

/* Accessibility: High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000000;
        border: 2px solid #ffffff;
        color: #ffffff;
    }
    
    .card,
    .feature-card,
    .service-card {
        border: 2px solid var(--dark-gray);
        background: var(--white);
    }
    
    .nav-link:hover {
        background-color: var(--primary-blue);
        color: var(--white) !important;
    }
} 