/* ==========================================================================
   GreenCater - Responsive Styles
   Mobile-First Approach
   ========================================================================== */

/* Base Mobile Styles (320px and up) */
@media (min-width: 320px) {
    /* Mobile Typography */
    h1, .h1 {
        font-size: 1.83rem;
    }
    
    h2, .h2 {
        font-size: 1.64rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.83rem;
    }
    
    /* Mobile Navigation */
    .navbar-brand {
        font-size: 1.29rem;
    }
    
    /* Mobile Hero */
    #hero {
        padding: 3rem 0;
        text-align: center;
    }
    
    #hero .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
    
    /* Mobile Buttons */
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Mobile Cards */
    .card-img-top {
        height: 150px;
    }
    
    /* Mobile Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Mobile Team Grid */
    .col-lg-2.col-md-4.col-sm-6 {
        margin-bottom: 2rem;
    }
    
    /* Mobile Gallery */
    #gallery .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Mobile Form */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Mobile Footer */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* Small Mobile (375px and up) */
@media (min-width: 375px) {
    .display-4 {
        font-size: 2.26rem;
    }
    
    .display-5 {
        font-size: 1.96rem;
    }
}

/* Large Mobile (425px and up) */
@media (min-width: 425px) {
    .navbar-brand {
        font-size: 1.48rem;
    }
    
    .btn {
        width: auto;
        min-width: 150px;
    }
    
    .d-flex.gap-3 {
        flex-direction: row;
        justify-content: center;
    }
}

/* Tablet Portrait (768px and up) */
@media (min-width: 768px) {
    /* Tablet Typography */
    h1, .h1 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.79rem;
    }
    
    .display-4 {
        font-size: 2.56rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    /* Tablet Navigation */
    .navbar-brand {
        font-size: 1.59rem;
    }
    
    /* Tablet Hero */
    #hero {
        padding: 4rem 0;
        text-align: left;
    }
    
    #hero .col-lg-6:first-child {
        margin-bottom: 0;
    }
    
    /* Tablet Cards */
    .card-img-top {
        height: 180px;
    }
    
    /* Tablet Sections */
    section {
        padding: 4rem 0;
    }
    
    /* Tablet Footer */
    #footer .col-lg-4 {
        text-align: left;
    }
    
    /* Tablet Team Grid - Better spacing */
    .col-lg-2.col-md-4.col-sm-6 {
        margin-bottom: 1.68rem;
    }
}

/* Tablet Landscape (992px and up) */
@media (min-width: 992px) {
    /* Desktop Typography */
    h1, .h1 {
        font-size: 2.32rem;
    }
    
    h2, .h2 {
        font-size: 2.00rem;
    }
    
    .display-4 {
        font-size: 3rem;
    }
    
    .display-5 {
        font-size: 2.34rem;
    }
    
    /* Desktop Sections */
    section {
        padding: 5rem 0;
    }
    
    /* Desktop Cards */
    .card-img-top {
        height: 200px;
    }
    
    /* Desktop Hero */
    #hero {
        padding: 5rem 0;
    }
    
    /* Desktop Team Grid */
    .col-lg-2.col-md-4.col-sm-6 {
        margin-bottom: 1rem;
    }
}

/* Desktop (1200px and up) */
@media (min-width: 1200px) {
    .display-4 {
        font-size: 3.60rem;
    }
    
    .display-5 {
        font-size: 2.63rem;
    }
    
    /* Larger container max-width for better readability */
    .container {
        max-width: 1140px;
    }
}

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced spacing for large screens */
    section {
        padding: 6rem 0;
    }
}

/* Animation Restrictions for Mobile */
@media (max-width: 768px) {
    /* Disable hover animations on mobile */
    .card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    [id*="team_"]:hover {
        transform: none;
    }
    
    /* Reduce transition times on mobile */
    * {
        transition-duration: 1.16s;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Crisp text rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    /* Reduce vertical padding in landscape mode */
    section {
        padding: 2rem 0;
    }
    
    #hero {
        padding: 2rem 0;
        min-height: auto;
    }
}

/* Print Responsive Styles */
@media print {
    /* Ensure good printing layout */
    .container {
        width: 100%;
        max-width: none;
    }
    
    .col-lg-6,
    .col-lg-4,
    .col-lg-3,
    .col-lg-2 {
        width: 100%;
        float: none;
        margin-bottom: 1rem;
    }
    
    .card {
        border: 1px solid #000;
        break-inside: avoid;
    }
    
    .row {
        margin: 0;
    }
    
    .col-lg-6:nth-child(odd) {
        page-break-before: auto;
    }
}

/* Dark Mode Support (if device supports it) */

/* Specific Breakpoint Adjustments */

/* Services Grid Responsive */
@media (min-width: 576px) and (max-width: 767px) {
    .col-lg-4.col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Team Member Grid Adjustments */
@media (min-width: 576px) and (max-width: 991px) {
    .col-lg-2.col-md-4.col-sm-6 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (min-width: 992px) {
    .col-lg-2.col-md-4.col-sm-6 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* FAQ Grid Responsive */
@media (max-width: 767px) {
    .col-lg-6 {
        margin-bottom: 1rem;
    }
}

/* Contact Form Responsive */
@media (max-width: 575px) {
    .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Gallery Responsive Adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    #gallery .col-lg-4.col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    #gallery .col-lg-4.col-md-6 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Navigation Responsive Enhancements */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(248, 249, 250, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        margin-top: 1rem;
        padding: 1rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin: 0.5rem 0;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {
    /* Smaller margins for very small screens */
    .mb-4, .my-4 {
        margin-bottom: 1.57rem;
    }
    
    .mb-5, .my-5 {
        margin-bottom: 2rem;
    }
    
    /* Smaller padding for containers */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Adjust card padding */
    .card-body {
        padding: 1rem;
    }
    
    /* Smaller hero text for very small screens */
    .display-4 {
        font-size: 1.79rem;
    }
    
    .display-5 {
        font-size: 1.55rem;
    }
} 