/* Responsive CSS for EcoSeeds Template */

/* Global animation disable */
*, *::before, *::after {
    animation: none !important;
    transition: none !important;
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
}

/* Mobile First Approach */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* No animations on mobile per requirements */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Typography adjustments */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .display-4, h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4, h5 {
        font-size: 1.1rem;
    }
    
    p, .lead {
        font-size: 0.95rem;
    }
    
    /* Header adjustments */
    .hero-section {
        padding-top: 70px;
        min-height: 80vh;
    }
    
    .hero-section .container {
        text-align: center;
    }
    
    /* Navigation improvements */
    .navbar-collapse {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    /* Card adjustments */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    /* Contact form */
    .contact-info {
        margin-top: 2rem;
        padding: 1.5rem;
        text-align: center;
    }
    
    .contact-info i {
        margin-bottom: 0.5rem;
    }
    
    /* Footer adjustments */
    footer .row > div {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Button sizing */
    .btn {
        font-size: 0.95rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Form controls */
    .form-control {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    /* Section spacing */
    .py-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Icon sizing */
    .fa-3x {
        font-size: 2rem;
    }
    
    .fa-2x {
        font-size: 1.5rem;
    }
    
    /* Gallery adjustments */
    .gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Process steps */
    .rounded-circle {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Team cards */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Blog grid */
    #blog_grid .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Breadcrumb adjustments */
    .breadcrumb-section {
        padding: 1rem 0;
        padding-top: 70px;
    }
    
    .breadcrumb-icon {
        height: 20px;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Similar mobile restrictions but slightly larger */
    .display-4, h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        min-height: 85vh;
    }
    
    .contact-info {
        padding: 2rem;
    }
    
    .rounded-circle {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .fa-3x {
        font-size: 2.25rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Tablet optimizations */
    .hero-section {
        min-height: 90vh;
    }
    
    .display-4, h1 {
        font-size: 2.25rem;
    }
    
    /* Two column layout for cards */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Better spacing for tablets */
    .contact-info {
        margin-top: 1rem;
    }
    
    /* Team grid adjustment */
    .team-section .row .col-md-6:nth-child(odd) {
        padding-right: 1rem;
    }
    
    .team-section .row .col-md-6:nth-child(even) {
        padding-left: 1rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Desktop optimizations */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Three column layouts */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Better card spacing */
    .card {
        margin-bottom: 2rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Maximum width constraints */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    .py-5 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    
    /* Larger hero text on big screens */
    .display-4, h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .breadcrumb-section,
    footer,
    .btn,
    form {
        display: none;
    }
    
    /* Optimize for printing */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    /* Ensure content fits on page */
    .container {
        width: 100%;
        max-width: none;
    }
    
    .row {
        margin: 0;
    }
    
    .col-lg-4, .col-md-6, .col-sm-12 {
        width: 100%;
        float: none;
    }
}

/* Landscape orientation for mobile devices */
@media screen and (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        min-height: 60vh;
        padding-top: 60px;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .display-4, h1 {
        font-size: 1.5rem;
    }
    
    /* Compact spacing in landscape */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Crisp images and icons */
    .card img,
    .gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support (optional, respects user preference) */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Override any remaining animations */
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove hover effects that might cause motion */
    .card:hover {
        transform: none;
    }
    
    .gallery img:hover {
        transform: none;
    }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    /* Touch devices */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
        box-shadow: 0 2px 10px var(--shadow);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
    
    .form-control {
        border: 2px solid #000;
    }
}

/* Safe area adjustments for devices with notches */
@supports (padding-top: env(safe-area-inset-top)) {
    .navbar {
        padding-top: calc(0.5rem + env(safe-area-inset-top));
    }
    
    .hero-section {
        padding-top: calc(80px + env(safe-area-inset-top));
    }
}

/* Container queries for modern browsers */
@supports (container-type: inline-size) {
    .card-container {
        container-type: inline-size;
    }
    
    @container (max-width: 300px) {
        .card .fa-3x {
            font-size: 1.75rem;
        }
        
        .card-title {
            font-size: 1rem;
        }
    }
} 

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