/* Pop-up Plant Markets - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    /* Navbar brand smaller on mobile */
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    /* Hero section adjustments */
    .hero-section {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .hero-content {
        padding: 1rem 0;
        text-align: center;
    padding-top: 125px;
}
    
    /* Hide decorative shapes on mobile for performance */
    .hero-shapes {
        display: none;
    }
    
    /* Cards full width on mobile */
    .service-card, .price-card, .review-card {
        margin-bottom: 1.5rem;
    }
    
    /* Team photos smaller on mobile */
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    /* Contact form adjustments */
    .contact-info {
        margin-top: 2rem;
    }
    
    /* Gallery images with more spacing */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer adjustments */
    #footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Price card featured scaling reduced */
    .price-card.featured {
        transform: scale(1.02);
    }
    
    /* Disable animations on mobile for reduced motion */
    .card:hover {
        transform: none;
    }
    
    .feature-card:hover, .feature-item:hover {
        transform: none;
        background: transparent;
    }
    
    /* Mobile navigation improvements */
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    /* Mobile hero image */
    .hero-image {
        margin-top: 2rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        padding-top: 80px;
    }
    
    .hero-content {
        text-align: center;
    padding-top: 125px;
}
    
    /* Reduce blob sizes on small screens */
    .shape-blob-1 {
        width: 150px;
        height: 150px;
    }
    
    .shape-blob-2 {
        width: 100px;
        height: 100px;
    }
    
    /* Team layout adjustments */
    .team-member {
        margin-bottom: 2rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero adjustments for tablets */
    .hero-section {
        padding-top: 80px;
    }
    
    .hero-content {
        padding: 2rem 0;
    padding-top: 125px;
}
    
    /* Service cards in 2 columns on tablets */
    .service-card {
        margin-bottom: 2rem;
    }
    
    /* Gallery layout for tablets */
    #gallery .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Team photos medium size */
    .team-photo {
        width: 140px;
        height: 140px;
    }
    
    /* Price cards layout */
    .price-card {
        margin-bottom: 2rem;
    }
    
    /* Contact form layout */
    .contact-info {
        margin-top: 3rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero section full height */
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 3rem 0;
    padding-top: 125px;
}
    
    /* Service cards in 3 columns */
    .service-card {
        margin-bottom: 2rem;
    }
    
    /* Team layout in rows */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Gallery optimal spacing */
    #gallery .col-md-4 {
        margin-bottom: 2rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Hero section full experience */
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 4rem 0;
    padding-top: 125px;
}
    
    /* Larger decorative shapes */
    .shape-blob-1 {
        width: 250px;
        height: 250px;
    }
    
    .shape-blob-2 {
        width: 180px;
        height: 180px;
    }
    
    /* Container max-width adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Service cards optimal layout */
    .service-card {
        margin-bottom: 2rem;
    }
    
    /* Team photos full size */
    .team-photo {
        width: 160px;
        height: 160px;
    }
    
    /* Gallery with better spacing */
    #gallery .col-md-4 {
        margin-bottom: 2rem;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure images look crisp on high DPI screens */
    .team-photo, .card-img-top, #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    /* Reduce hero height on landscape mobile */
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-content {
        padding: 1rem 0;
    padding-top: 125px;
}
    
    /* Hide decorative elements in landscape mobile */
    .hero-shapes {
        display: none;
    }
}

/* Print styles */
@media print {
    /* Hide navigation and decorative elements */
    #header, .hero-shapes, .shape-blob-1, .shape-blob-2 {
        display: none;
    }
    
    /* Adjust colors for print */
    body {
        color: #000;
        background: #fff;
    overflow-x: hidden;
}
    
    .card {
        border: 1px solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    /* Ensure proper spacing for print */
    section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    /* Footer adjustments for print */
    #footer {
        background: #fff !important;
        color: #000 !important;
        border-top: 2px solid #000;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove floating animations */
    .shape-blob-1, .shape-blob-2 {
        animation: none;
    }
    
    /* Remove hover effects */
    .card:hover, .feature-card:hover, .feature-item:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    /* Increase border contrast */
    .card, .form-control {
        border-width: 2px;
        border-color: #000;
    }
    
    /* High contrast buttons */
    .btn-primary {
        background-color: #000;
        border-color: #000;
        color: #fff;
    }
    
    .btn-primary:hover {
        background-color: #333;
        border-color: #333;
    }
}

/* Dark mode support (if browser supports it) */

/* Touch device optimizations */
@media (pointer: coarse) {
    /* Larger touch targets */
    .btn, .nav-link, .card {
        min-height: 44px;
    }
    
    /* Better touch feedback */
    .btn:active, .card:active {
        transform: scale(0.98);
    }
    
    /* Improved form controls for touch */
    .form-control {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Hover capability detection */
@media (hover: hover) {
    /* Only apply hover effects on devices that support hover */
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }
    
    .feature-card:hover {
        background: var(--mint-light);
    }
    
    .feature-item:hover {
        background: var(--cream-light);
        border-radius: 12px;
    }
}

/* No hover support (touch devices) */
@media (hover: none) {
    /* Remove hover states for touch devices */
    .card:hover, .feature-card:hover, .feature-item:hover {
        transform: none;
        background: inherit;
    }
    
    /* Add active states instead */
    .card:active {
        transform: scale(0.98);
    }
}

/* Container breakpoint adjustments */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Extra large hero content */
    .hero-content {
        padding: 5rem 0;
    padding-top: 125px;
}
    
    /* Larger decorative shapes for very large screens */
    .shape-blob-1 {
        width: 300px;
        height: 300px;
    }
    
    .shape-blob-2 {
        width: 200px;
        height: 200px;
    }
} 