/* Responsive Design - Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1 { font-size: 1.78rem; }
    h2 { font-size: 1.61rem; }
    h3 { font-size: 1.39rem; }
    
    /* Hero section */
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        min-height: 70vh;
        padding-top: 80px;
    }
    
    .hero-section .display-4 {
        font-size: 1.85rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.39rem !important;
    }
    
    /* Cards and spacing */
    .feature-card,
    .service-card,
    .team-card {
        margin-bottom: 1.66rem;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Contact form */
    .contact-info {
        margin-top: 2rem;
        border-left: none;
        border-top: 4px solid var(--primary-green);
        padding-top: 2rem;
    }
    
    /* Process numbers */
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.29rem;
    }
    
    /* Timeline adjustments */
    .timeline-year {
        min-width: 50px;
        font-size: 0.85rem;
    }
    
    /* Team member images */
    .team-card img {
        width: 100px;
        height: 100px;
    }
    
    /* FAQ accordion */
    .accordion-button {
        padding: 0.75rem;
        font-size: 0.94rem;
    }
    
    /* Gallery grid */
    .gallery .col-6 {
        margin-bottom: 0.59rem;
    }
    
    /* Footer */
    footer .row > div {
        margin-bottom: 2rem;
    }
    
    /* Padding adjustments */
    section {
        padding: 3rem 0 !important;
    }
    
    /* Container padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Small devices (landscape phones and portrait tablets, 576px to 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments */
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    /* Service cards in 2 columns */
    .service-card .row > div {
        margin-bottom: 1.65rem;
    }
    
    /* Team grid adjustments */
    .team-card {
        margin-bottom: 2rem;
    }
    
    /* Contact form adjustments */
    .contact-info {
        margin-top: 2rem;
    }
    
    /* Process section */
    .process-number {
        width: 55px;
        height: 55px;
    }
}

/* Medium devices (tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        min-height: 80vh;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    /* Service cards layout */
    .service-card {
        margin-bottom: 2rem;
    }
    
    /* Team section - 3 columns */
    .team-section .col-lg-2-4 {
        width: 33.333%;
    }
    
    /* Features section - 2 columns */
    .features-section .col-lg-3 {
        width: 50%;
        margin-bottom: 2rem;
    }
    
    /* Process section - 3 columns */
    .process-section .col-lg-2-4 {
        width: 33.333%;
        margin-bottom: 1.65rem;
    }
    
    /* Timeline section - 3 columns */
    .timeline-section .col-lg-2-4 {
        width: 33.333%;
        margin-bottom: 1.69rem;
    }
    
    /* Contact form layout */
    .contact-section .col-lg-8 {
        margin-bottom: 2rem;
    }
    
    /* FAQ section */
    .faq-section .col-lg-8 {
        width: 100%;
    }
    
    /* Gallery - 3 columns */
    .gallery .col-lg-3 {
        width: 33.333%;
    }
}

/* Large devices (desktops, 992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero section full height */
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        min-height: 100vh;
    }
    
    /* Container max width */
    .container {
        max-width: 960px;
    }
    
    /* Service cards - proper 3 column layout */
    .services-section .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Team section - 5 columns properly distributed */
    .team-section .col-lg-2-4 {
        width: 20%;
    }
    
    /* Features section - proper 4 column layout */
    .features-section .col-lg-3 {
        margin-bottom: 1.57rem;
    }
    
    /* Contact form better proportions */
    .contact-section .row {
        align-items: flex-start;
    }
}

/* Extra Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max width */
    .container {
        max-width: 1140px;
    }
    
    /* Hero section with better spacing */
    .hero-section .container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Larger typography for better readability */
    .lead {
        font-size: 1.32rem;
    }
    
    /* Service cards hover effects enhanced */
    .service-card:hover {
        transform: translateY(-8px);
    }
    
    /* Team cards better spacing */
    .team-card {
        padding: 2rem;
    }
    
    /* Process numbers larger */
    .process-number {
        width: 70px;
        height: 70px;
        font-size: 1.89rem;
    }
    
    /* Contact form enhanced layout */
    .contact-info {
        padding: 3rem;
    }
}

/* Ultra Wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced spacing for large screens */
    section {
        padding: 6rem 0;
    }
    
    /* Hero section with extra padding */
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 8rem 0;
    }
    
    /* Larger cards for better proportion */
    .feature-card,
    .service-card {
        padding: 2.5rem;
    }
    
    /* Enhanced typography */
    h1 { font-size: 2.55rem; }
    h2 { font-size: 2.29rem; }
    
    .display-4 {
        font-size: 3rem;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-section .container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* High DPI/Retina Display adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    /* Sharper borders for high DPI */
    .card,
    .btn,
    .form-control {
        border-width: 0.5px;
    }
    
    /* Icon adjustments */
    .fas,
    .fab {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print responsive adjustments */
@media print {
    /* Force single column layout */
    .col-lg-4,
    .col-lg-6,
    .col-lg-8,
    .col-md-6 {
        width: 100% !important;
        margin-bottom: 1rem;
    }
    
    /* Adjust spacing for print */
    section {
        padding: 1rem 0 !important;
    }
    
    /* Hide interactive elements */
    .btn,
    .form-control,
    .accordion-button {
        display: none !important;
    }
    
    /* Adjust colors for print */
    .bg-light,
    .bg-primary,
    .bg-success {
        background: white !important;
        color: black !important;
    }
}

/* Dark mode support (if enabled by user) */
@media (prefers-color-scheme: dark) {
    /* Note: Following requirements, we're not implementing dark theme */
    /* This is just a placeholder for future implementation if needed */
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Remove all transitions and animations */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove hover transforms */
    .feature-card:hover,
    .service-card:hover,
    .team-card:hover {
        transform: none !important;
    }
    
    /* Keep focus states for accessibility */
    .form-control:focus,
    .btn:focus,
    .accordion-button:focus {
        outline: 2px solid var(--primary-green);
        outline-offset: 2px;
    }
}

/* High contrast mode adjustments */
@media (prefers-contrast: high) {
    /* Increase border weights */
    .card,
    .btn,
    .form-control {
        border-width: 2px;
    }
    
    /* Ensure text contrast */
    body {
        color: #000000;
    }
    
    .text-muted {
        color: #665c5c !important;
    }
    
    /* Button contrast */
    .btn-success {
        background-color: #000000;
        border-color: #000000;
        color: #ffffff;
    }
    
    .btn-outline-primary {
        border-color: #000000;
        color: #000000;
    }
}

/* Specific breakpoint fixes */
@media (min-width: 576px) {
    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (min-width: 992px) {
    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .col-lg-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Custom responsive utilities */
.d-xs-none { display: none !important; }
.d-xs-block { display: block !important; }

@media (min-width: 576px) {
    .d-sm-xs-none { display: none !important; }
    .d-xs-none { display: block !important; }
}

@media (min-width: 768px) {
    .d-md-sm-none { display: none !important; }
}

@media (min-width: 992px) {
    .d-lg-md-none { display: none !important; }
}

/* Container responsive padding */
@media (max-width: 575.98px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Flexible image containers */
.img-responsive {
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Responsive text sizing */
@media (max-width: 767.98px) {
    .responsive-text {
        font-size: 0.94rem;
    }
}

@media (min-width: 1200px) {
    .responsive-text {
        font-size: 1.15rem;
    }
} 