/* Responsive Design - Mobile First Approach */

/* Extra Small Devices (Phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    .display-4 {
        font-size: 1.75rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.375rem; }
    
    /* Navbar brand size adjustment */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero section adjustments */
    .hero-section {
        padding: 4rem 0;
        min-height: auto;
    }
    
    .hero-section .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Card spacing */
    .service-card, .feature-card, .review-card, .pricing-card {
        margin-bottom: 1.5rem;
    }
    
    /* Process steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Team member photos */
    .team-member .member-photo img {
        width: 100px;
        height: 100px;
    }
    
    /* Timeline adjustments */
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
        margin-bottom: 2rem;
    }
    
    /* Contact form */
    .contact-form .row > div {
        margin-bottom: 1rem;
    }
    
    /* Gallery images */
    .gallery-img {
        height: 200px;
    }
    
    /* Footer adjustments */
    .footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Section padding */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Button adjustments */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Pricing cards mobile */
    .pricing-card.featured {
        transform: none;
        margin-bottom: 1.5rem;
    }
    
    /* Navigation adjustments */
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Small Devices (Landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 5rem 0;
    }
    
    .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.375rem;
    }
    
    .team-member .member-photo img {
        width: 110px;
        height: 110px;
    }
    
    .gallery-img {
        height: 220px;
    }
    
    /* Two-column layout for cards */
    .service-card, .feature-card, .review-card {
        height: auto;
        min-height: 350px;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 2.25rem;
    }
    
    .hero-section {
        padding: 6rem 0;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .gallery-img {
        height: 240px;
    }
    
    /* Navbar adjustments */
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem !important;
    }
    
    /* Card heights */
    .service-card, .feature-card, .review-card {
        min-height: 320px;
    }
    
    /* Timeline spacing */
    .timeline-item {
        margin-bottom: 2.5rem;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section {
        padding: 7rem 0;
    }
    
    .gallery-img {
        height: 260px;
    }
    
    /* Optimal card heights */
    .service-card, .feature-card, .review-card {
        min-height: 380px;
    }
    
    /* Team layout adjustments */
    .team-member {
        margin-bottom: 2rem;
    }
}

/* Extra Large Devices (Large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section {
        padding: 8rem 0;
    }
    
    .container {
        max-width: 1140px;
    }
    
    .gallery-img {
        height: 280px;
    }
    
    /* Optimal spacing for large screens */
    .py-5 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
    
    /* Enhanced card heights */
    .service-card, .feature-card, .review-card {
        min-height: 400px;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section {
        padding: 10rem 0;
    }
    
    .display-4 {
        font-size: 3rem;
    }
    
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.25rem; }
    
    .gallery-img {
        height: 300px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .btn,
    .navbar {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }
    
    .py-5 {
        padding: 1rem 0 !important;
    }
    
    .shadow-sm, .shadow-md, .shadow-lg {
        box-shadow: none !important;
    }
    
    .card, .service-card, .feature-card, .review-card, .pricing-card {
        border: 1px solid #ccc;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image img,
    .service-image img,
    .gallery-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support */

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .hero-image img,
    .gallery-img,
    .card,
    .service-card,
    .feature-card,
    .review-card,
    .pricing-card {
        transition: none;
    }
    
    .card:hover,
    .service-card:hover,
    .feature-card:hover,
    .review-card:hover,
    .pricing-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .gallery-img:hover {
        transform: none;
    }
}

/* Focus management for accessibility */
@media (max-width: 991.98px) {
    .navbar-toggler:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    .navbar-nav .nav-link:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
        background: rgba(var(--primary-color), 0.1);
    }
}

/* Custom scrollbar for mobile */
@media (max-width: 767.98px) {
    ::-webkit-scrollbar {
        width: 4px;
    }
}

/* Grid adjustments for different screen sizes */
@media (max-width: 575.98px) {
    .row > .col-md-6,
    .row > .col-lg-3,
    .row > .col-lg-4,
    .row > .col-lg-6 {
        margin-bottom: 1.5rem;
    }
    
    .row > .col-md-6:last-child,
    .row > .col-lg-3:last-child,
    .row > .col-lg-4:last-child,
    .row > .col-lg-6:last-child {
        margin-bottom: 0;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        padding: 0.875rem 1.5rem;
    }
    
    .navbar-nav .nav-link {
        min-height: 44px;
        padding: 0.75rem 1rem !important;
    }
    
    .form-control {
        min-height: 44px;
        padding: 0.875rem 1rem;
    }
    
    .accordion-button {
        min-height: 44px;
        padding: 1rem;
    }
} 