/* Urban Garden Pro - Responsive CSS */
/* Mobile-first responsive design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Disable all animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Typography adjustments */
    h1, .display-4 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.75rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Hero section mobile */
    .hero-section {
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero-section::before {
        display: none; /* Remove decorative elements on mobile */
    }
    
    .hero-cta {
        margin-top: 2rem;
    }
    
    .hero-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Card adjustments */
    .service-card .card-img-top,
    .case-study-card .card-img-top,
    .blog-card .card-img-top {
        height: 180px;
    }
    
    /* Feature items mobile */
    .feature-item {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    /* Process steps mobile */
    .process-step {
        text-align: center;
        padding: 1.5rem 0.5rem;
    }
    
    /* Team members mobile */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Pricing cards mobile */
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    /* Contact form mobile */
    .contact-form {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    /* Gallery mobile */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer mobile */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Additional pages mobile */
    .curriculum-item,
    .resource-item,
    .schedule-item,
    .prerequisite-item,
    .transformation-story,
    .statistic-card,
    .testimonial-detailed,
    .success-cta {
        margin-bottom: 1.5rem;
    }
    
    .week-number,
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Disable animations on small devices */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    h1, .display-4 {
        font-size: 2.25rem;
    }
    
    .hero-cta .btn {
        display: inline-block;
        width: auto;
        margin-right: 1rem;
    }
    
    .service-card .card-img-top,
    .case-study-card .card-img-top,
    .blog-card .card-img-top {
        height: 200px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Keep some subtle animations for tablets */
    .hero-section {
        padding: 4rem 0;
    }
    
    .feature-item {
        display: flex;
        align-items: flex-start;
    }
    
    .feature-icon {
        margin-right: 1.5rem;
        margin-bottom: 0;
    }
    
    /* Adjust card heights for tablets */
    .service-card .card-img-top,
    .case-study-card .card-img-top,
    .blog-card .card-img-top {
        height: 220px;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Full animations enabled for desktop */
    .hero-section {
        padding: 5rem 0;
    }
    
    /* Ensure proper spacing for desktop */
    .feature-item {
        display: flex;
        align-items: flex-start;
    }
    
    .team-member {
        margin-bottom: 0;
    }
    
    /* Gallery hover effects only on desktop */
    #gallery img:hover {
        transform: scale(1.05);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section {
        padding: 6rem 0;
    }
    
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    .service-card .card-img-top,
    .case-study-card .card-img-top,
    .blog-card .card-img-top {
        height: 250px;
    }
}

/* XXL Devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section {
        padding: 7rem 0;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .hero-section .display-4 {
        font-size: 1.8rem;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp rendering on retina displays */
    .service-card .card-img-top,
    .case-study-card .card-img-top,
    .blog-card .card-img-top,
    .team-member img,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    /* Hide non-essential elements when printing */
    .navbar,
    .hero-cta,
    .btn,
    #footer,
    .breadcrumb {
        display: none;
    }
    
    /* Ensure readable text for printing */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    overflow-x: hidden;
}
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
    }
}

/* Accessibility - Reduced motion preferences */
@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 hover transforms */
    .feature-card:hover,
    .service-card:hover,
    .case-study-card:hover,
    .blog-card:hover,
    .curriculum-item:hover,
    .resource-item:hover,
    .schedule-item:hover,
    .prerequisite-item:hover,
    .transformation-story:hover,
    .statistic-card:hover,
    .testimonial-detailed:hover,
    .success-cta:hover,
    #gallery img:hover {
        transform: none !important;
    }
}

/* Dark mode support */

/* High contrast mode support */
@media (prefers-contrast: high) {
    /* Enhance contrast for accessibility */
    .btn-primary {
        background-color: #000000;
        border-color: #000000;
        color: #ffffff;
    }
    
    .btn-outline-primary {
        color: #000000;
        border-color: #000000;
        border-width: 2px;
    }
    
    .card {
        border: 2px solid #000000;
    }
}

/* Focus management for keyboard navigation */
@media (any-hover: none) {
    /* Touch device optimizations */
    .btn {
        min-height: 44px; /* Minimum touch target size */
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem 0.75rem;
    }
    
    /* Remove hover states that don't work on touch */
    .feature-card:hover,
    .service-card:hover,
    .case-study-card:hover,
    .blog-card:hover {
        transform: none;
        box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    }
} 

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