/* Mobile First Responsive Design */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
    .display-4,
    .display-5 {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 2rem 0;
        text-align: center;
    padding-top: 225px;
}
    
    .hero-image-container {
        height: 50vh;
        margin-top: 2rem;
    }
    
    .hero-shape-1,
    .hero-shape-2 {
        display: none;
    }
    
    .feature-card,
    .service-card,
    .pricing-card {
        margin-bottom: 1.5rem;
    }
    
    .team-photo {
        width: 80px;
        height: 80px;
    }
    
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* No scroll animations on mobile */
    .sal-animate {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-content {
        text-align: center;
    padding-top: 225px;
}
    
    .hero-image-container {
        height: 60vh;
        margin-top: 2rem;
    }
    
    .hero-shape-1 {
        width: 200px;
        height: 200px;
    }
    
    .hero-shape-2 {
        width: 150px;
        height: 150px;
    }
    
    .pricing-card.popular {
        transform: none;
        margin-top: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-content {
        padding: 3rem 0;
    padding-top: 225px;
}
    
    .hero-image-container {
        height: 80vh;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover {
        transform: translateY(-3px);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-content {
        padding: 5rem 0;
    padding-top: 225px;
}
    
    .container {
        max-width: 1140px;
    }
}

/* Tablet Portrait Orientation */
@media (orientation: portrait) and (max-width: 1024px) {
    .hero-section {
        min-height: auto;
    }
    
    .hero-image-container {
        height: auto;
        padding: 2rem 0;
    }
    
    .col-lg-6 {
        margin-bottom: 2rem;
    }
}

/* Mobile Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-content {
        padding: 1rem 0;
    padding-top: 225px;
}
    
    .hero-image-container {
        height: 80vh;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image-container img,
    .service-image img,
    .case-study-image img,
    .blog-image img,
    .gallery-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility - Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .hero-shape-1,
    .hero-shape-2 {
        animation: none;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .case-study-card:hover,
    .blog-card:hover,
    .info-card:hover,
    .gallery-image:hover {
        transform: none;
    }
    
    .service-card:hover .service-image img {
        transform: none;
    }
    
    /* Disable all transitions for reduced motion */
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Dark Mode Support */

/* Print Styles */
@media print {
    .navbar,
    .breadcrumb-section,
    #footer,
    .hero-actions,
    .btn,
    .contact-form {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
    }
    
    p, li {
        orphans: 3;
        widows: 3;
    }
}

/* Container Fluid Responsive Adjustments */
.container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 576px) {
    .container-fluid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Gallery Responsive Grid */
@media (max-width: 575.98px) {
    .gallery-image {
        margin-bottom: 0.5rem;
    }
}

/* Team Member Responsive Layout */
@media (max-width: 767.98px) {
    .team-member {
        margin-bottom: 2rem;
    }
}

/* Services Grid Responsive */
@media (max-width: 991.98px) {
    .service-card {
        max-width: 400px;
        margin: 0 auto 2rem;
    }
}

/* Pricing Cards Mobile Stack */
@media (max-width: 767.98px) {
    .pricing-card.popular {
        transform: none;
        order: -1;
        margin-bottom: 2rem;
    }
    
    .popular-badge {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        display: inline-block;
        margin-bottom: 1rem;
    }
}

/* Contact Section Mobile Layout */
@media (max-width: 767.98px) {
    .contact-info {
        margin-bottom: 2rem;
    }
}

/* Blog Grid Mobile Responsive */
@media (max-width: 767.98px) {
    .blog-card {
        max-width: 400px;
        margin: 0 auto 2rem;
    }
}

/* FAQ Mobile Layout */
@media (max-width: 767.98px) {
    .faq-card {
        margin-bottom: 1.5rem;
    }
}

/* Additional Page Cards Mobile */
@media (max-width: 575.98px) {
    .insight-card,
    .seasonal-card,
    .equipment-card,
    .community-card,
    .innovation-card,
    .legal-card,
    .safety-card,
    .privacy-card,
    .terms-card,
    .environmental-card {
        margin-bottom: 1rem;
        padding: 1rem;
    }
}

/* Navigation Mobile Optimization */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid #f8f9fa;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Hero Section Mobile Text Sizing */
@media (max-width: 575.98px) {
    .display-4 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .display-5 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .lead {
        font-size: 1rem;
    }
}

/* Button Responsive Sizing */
@media (max-width: 575.98px) {
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-actions {
        text-align: center;
    }
    
    .hero-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-actions .btn:last-child {
        margin-bottom: 0;
    }
} 