/* Responsive Design - Mobile First Approach */

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.59rem;
    }
    
    h3 {
        font-size: 1.36rem;
    }
    
    /* Header */
    .navbar-brand {
        font-size: 1.14rem !important;
    }
    
    /* Hero section */
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.27rem;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-study-card,
    .career-card,
    .info-card,
    .faq-card,
    .blog-card {
        padding: 1.5rem;
        margin-bottom: 1.58rem;
    }
    
    /* Team members */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Process steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.34rem;
    }
    
    /* Contact form */
    .contact-info {
        margin-top: 2rem;
    }
    
    /* Gallery */
    #gallery .col-lg-3,
    #gallery .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Footer */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Additional page elements */
    .service-element,
    .coverage-element,
    .booking-element,
    .safety-element,
    .benefit-element,
    .foundation-element,
    .excellence-element,
    .tech-element,
    .green-element,
    .award-element {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero section */
    .hero-section h1 {
        font-size: 2.34rem;
    }
    
    /* Price cards */
    .price-card.featured {
        transform: none;
        margin-top: 1rem;
    }
    
    /* Team layout */
    .team-member {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Process steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Gallery grid adjustment */
    #gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 110px 0 70px;
    }
    
    .hero-section h1 {
        font-size: 2.30rem;
    }
    
    /* Cards grid adjustments */
    .feature-card,
    .service-card {
        height: auto;
        min-height: 280px;
    }
    
    /* Price plan adjustments */
    .price-card {
        margin-bottom: 2rem;
    }
    
    .price-card.featured {
        transform: scale(1.02);
    }
    
    /* Team grid */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Timeline adjustments */
    .timeline-item {
        margin-bottom: 1.57rem;
    }
    
    /* Contact form layout */
    .contact-info {
        margin-top: 1rem;
    }
    
    /* Footer adjustments */
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Container max-width adjustment */
    .container {
        max-width: 960px;
    }
    
    /* Hero section */
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 120px 0 80px;
    }
    
    /* Card grid optimization */
    .service-card,
    .feature-card {
        min-height: 320px;
    }
    
    /* Team layout optimization */
    .team-member {
        margin-bottom: 1.61rem;
    }
    
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    /* Process steps alignment */
    .process-step {
        text-align: center;
    }
    
    /* Gallery optimization */
    #gallery .col-lg-3 {
        margin-bottom: 1.63rem;
    }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container optimization */
    .container {
        max-width: 1140px;
    }
    
    /* Hero section full optimization */
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 140px 0 100px;
    }
    
    .hero-section h1 {
        font-size: 2.85rem;
    }
    
    .hero-section h2 {
        font-size: 1.76rem;
    }
    
    /* Card optimization */
    .feature-card,
    .service-card,
    .price-card,
    .review-card {
        min-height: 350px;
    }
    
    /* Team optimization */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Process steps enhanced */
    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.79rem;
    }
    
    /* Contact section optimization */
    .contact-info {
        padding: 2.5rem;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced spacing for ultra-wide */
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 160px 0 120px;
    }
    
    /* Larger cards for better proportion */
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-study-card,
    .career-card,
    .info-card {
        padding: 2.5rem;
        min-height: 380px;
    }
}

/* Print Styles */
@media print {
    /* Hide non-essential elements */
    header,
    .breadcrumbs,
    footer,
    .btn,
    #gallery {
        display: none !important;
    }
    
    /* Optimize text for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    /* Remove backgrounds and shadows */
    * {
        background: transparent !important;
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    /* Optimize spacing */
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    section {
        padding: 20pt 0 !important;
        page-break-inside: avoid;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0c93e2;
        --primary-teal: #016160;
        --primary-purple: #8946ad;
        --primary-coral: #de4f49;
        --primary-green: #08542e;
        
        --white: #FFFFFF;
        --black: #000000;
        --gray: #1a1919;
        --dark-gray: #000000;
    }
    
    /* Enhance borders and shadows */
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-study-card,
    .career-card,
    .info-card,
    .faq-card,
    .blog-card {
        border: 2px solid var(--black);
        box-shadow: none;
    }
    
    /* Enhance text contrast */
    body {
        color: var(--black);
    }
    
    /* Remove gradients in high contrast mode */
    .hero-section,
    header,
    .btn-primary,
    footer {
        background: var(--primary-blue) !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
    
    /* Remove hover effects that involve movement */
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .info-card:hover,
    .faq-card:hover,
    .blog-card:hover,
    .service-element:hover,
    .coverage-element:hover,
    .booking-element:hover,
    .safety-element:hover,
    .benefit-element:hover,
    .foundation-element:hover,
    .excellence-element:hover,
    .tech-element:hover,
    .green-element:hover,
    .award-element:hover {
        transform: none;
    }
    
    /* Keep color and shadow changes for accessibility */
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .info-card:hover,
    .faq-card:hover,
    .blog-card:hover {
        border-color: var(--primary-blue);
        box-shadow: var(--shadow-medium);
    }
}

/* Landscape Orientation Adjustments */
@media screen and (orientation: landscape) and (max-height: 600px) {
    /* Compact hero section for landscape mobile */
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 80px 0 40px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.31rem;
    }
    
    /* Reduce vertical spacing */
    section {
        padding: 40px 0;
    }
    
    /* Compact cards */
    .feature-card,
    .service-card,
    .price-card,
    .review-card {
        padding: 1.5rem;
        min-height: auto;
    }
}

/* Focus and Accessibility Enhancements */
@media (any-hover: hover) {
    /* Enhanced focus states for devices with hover capability */
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 3px solid var(--primary-blue);
        outline-offset: 2px;
    }
}

/* Touch Device Optimizations */
@media (any-pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Reduce hover effects on touch devices */
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover {
        transform: none;
    }
} 