/* ===== RESPONSIVE CSS ===== */
/* Bootstrap 5 grid system extensions and responsive optimizations */

/* ===== MOBILE FIRST APPROACH ===== */
/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    .display-4 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .h2 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Spacing adjustments */
    section {
        padding: 2rem 0;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Hero section mobile */
    .hero-section {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    .hero-section .row {
        text-align: center;
    }
    
    .hero-section .col-lg-6:last-child {
        margin-top: 2rem;
    }
    
    /* Navigation mobile */
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        margin: 0;
        text-align: center;
    }
    
    /* Cards mobile */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Team members mobile */
    .team-member {
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Process steps mobile */
    .process-step {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .process-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Timeline mobile */
    .timeline-item {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Forms mobile */
    .contact-form .row > div {
        margin-bottom: 1rem;
    }
    
    /* Buttons mobile */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-group .btn {
        width: auto;
    }
    
    /* Footer mobile */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Gallery mobile */
    #gallery .col-6 {
        margin-bottom: 0.5rem;
    }
    
    /* Additional page items mobile */
    .consultation-item,
    .collection-item,
    .installation-item,
    .maintenance-item,
    .support-item,
    .discovery-item,
    .curation-item,
    .approval-item,
    .partnership-item {
        margin-bottom: 1rem;
        padding: 1rem;
    }
}

/* ===== Small devices (landscape phones, 576px and up) ===== */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2.25rem;
    }
    
    .hero-section {
        min-height: 70vh;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .team-member img {
        width: 90px;
        height: 90px;
    }
    
    .process-number {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
    
    /* Services grid adjustment */
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    /* Price plans adjustment */
    .price-card {
        margin-bottom: 1.5rem;
    }
}

/* ===== Medium devices (tablets, 768px and up) ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 80vh;
    }
    
    section {
        padding: 4rem 0;
    }
    
    /* Team members tablet */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Process steps tablet */
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Services tablet */
    .service-card {
        margin-bottom: 2rem;
    }
    
    /* Blog grid tablet */
    .blog-card {
        margin-bottom: 2rem;
    }
    
    /* FAQ tablet */
    .faq-card {
        margin-bottom: 1rem;
    }
    
    /* Contact form tablet */
    .contact-form {
        padding-right: 2rem;
    }
}

/* ===== Large devices (desktops, 992px and up) ===== */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section {
        min-height: 90vh;
    }
    
    section {
        padding: 5rem 0;
    }
    
    /* Team members desktop */
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    /* Services desktop */
    .service-card .card-body {
        padding: 1.25rem;
    }
    
    /* Contact form desktop */
    .contact-form {
        padding-right: 3rem;
    }
}

/* ===== Extra Large devices (large desktops, 1200px and up) ===== */
@media (min-width: 1200px) {
    .hero-section {
        min-height: 100vh;
    }
    
    section {
        padding: 6rem 0;
    }
    
    .container {
        max-width: 1140px;
    }
    
    /* Team members large desktop */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Enhanced spacing for large screens */
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .faq-card,
    .info-card {
        margin-bottom: 0;
    }
    
    /* Process steps large desktop */
    .process-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media screen and (orientation: landscape) and (max-width: 1024px) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
    
    /* Optimize space usage in landscape */
    .team-member {
        margin-bottom: 1rem;
    }
    
    .process-step {
        margin-bottom: 1rem;
    }
    
    .timeline-item {
        margin-bottom: 1rem;
    }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .card {
        box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    }
    
    .card:hover {
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }
    
    .navbar {
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .btn,
    footer,
    .breadcrumb-section {
        display: none !important;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--gray-600);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .navbar {
        border-bottom: 2px solid var(--gray-600);
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Remove all animations and transitions for users who prefer reduced motion */
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .card:hover,
    .btn:hover,
    .feature-card:hover,
    .info-card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* ===== CONTAINER QUERIES (Future-proofing) ===== */
/* When supported, these will provide more precise responsive behavior */
@container (max-width: 400px) {
    .card-body {
        padding: 0.75rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
    }
}

/* ===== SPECIFIC COMPONENT RESPONSIVE BEHAVIORS ===== */

/* Services section responsive */
@media (max-width: 767.98px) {
    .service-card .card-img-top {
        height: 150px;
    }
}

@media (min-width: 768px) {
    .service-card .card-img-top {
        height: 180px;
    }
}

@media (min-width: 992px) {
    .service-card .card-img-top {
        height: 200px;
    }
}

/* Gallery responsive */
@media (max-width: 575.98px) {
    #gallery .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    #gallery .col-lg-3 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Team section responsive */
@media (max-width: 575.98px) {
    .team-member .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .team-member .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Process section responsive */
@media (max-width: 767.98px) {
    .process-step .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
}

/* Timeline section responsive */
@media (max-width: 767.98px) {
    .timeline-item .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
}

.hero-section h1 {
    padding-top: 125px;
}