/* Responsive Design - Mobile First Approach */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Typography */
    .display-4 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Hero Section */
    #hero {
        padding: 1.5rem 0;
        min-height: 70vh;
    }
    
    #hero .col-lg-6:first-child {
        order: 1;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    #hero .col-lg-6:last-child {
        order: 2;
    }
    
    /* Sections */
    section {
        padding: 2rem 0;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    .card-title {
        font-size: 1.1rem;
    }
    
    /* Team Members */
    #team img {
        width: 60px;
        height: 60px;
    }
    
    #team .col-6 {
        margin-bottom: 1.5rem;
    }
    
    /* Forms */
    .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Contact Info */
    .contact-info {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    /* Gallery */
    #gallery .col-lg-4,
    #gallery .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Spacing */
    .mb-5 {
        margin-bottom: 2rem;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    .display-4 {
        font-size: 2rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 80vh;
    }
    
    /* Team Members */
    #team img {
        width: 80px;
        height: 80px;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    #hero {
        min-height: 90vh;
    }
    
    /* Typography */
    .display-4 {
        font-size: 2.25rem;
    }
    
    /* Team Members */
    #team img {
        width: 100px;
        height: 100px;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 180px;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Team Members - adjust for 5 members in a row */
    #team .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Typography */
    .display-4 {
        font-size: 2.75rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 100vh;
    }
    
    /* Team Members */
    #team img {
        width: 140px;
        height: 140px;
    }
}

/* Special Mobile Considerations */
@media (max-width: 768px) {
    /* Disable hover effects on touch devices */
    .card:hover {
        transform: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    #team img:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    .card:hover .card-img-top {
        transform: none;
    }
    
    /* Optimize spacing for mobile */
    .py-5 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    /* Mobile-specific navigation */
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    /* Mobile form improvements */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Mobile-specific footer */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    footer .col-lg-4:last-child {
        margin-bottom: 0;
    }
}

/* Tablet Portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    /* Specific styles for tablet portrait */
    .container {
        max-width: 90%;
    }
    
    /* Adjust grid for tablets */
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Landscape Phones */
@media (max-width: 767px) and (orientation: landscape) {
    #hero {
        min-height: 70vh;
        padding: 1rem 0;
    }
    
    .display-4 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 1.5rem 0;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for high-resolution displays */
    .card-img-top,
    #gallery img,
    #team img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    * {
        background: transparent;
        color: black;
        box-shadow: none;
        text-shadow: none;
    }
    
    .navbar,
    footer,
    .btn,
    #gallery {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .container {
        width: auto;
        margin: 0;
        padding: 0;
    }
} 