/* Responsive Styles */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile for performance */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Hero section adjustments */
    #hero {
        padding-top: 2rem;
        padding-bottom: 2rem;
        min-height: 70vh;
    }
    
    .hero-shapes .shape-blob-1,
    .hero-shapes .shape-blob-2 {
        display: none; /* Hide decorative elements on mobile */
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Team images */
    #team img {
        width: 100px;
        height: 100px;
    }
    
    /* Contact form */
    .contact-info {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    /* Process numbers */
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Padding adjustments */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Button adjustments */
    .btn-primary,
    .btn-outline-primary {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Navbar brand size */
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography adjustments */
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.85rem;
    }
    
    /* Hero adjustments */
    #hero {
        min-height: 80vh;
    }
    
    /* Team images */
    #team img {
        width: 110px;
        height: 110px;
    }
    
    /* Process numbers */
    .process-number {
        width: 55px;
        height: 55px;
        font-size: 1.35rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero adjustments */
    #hero {
        min-height: 85vh;
    }
    
    /* Feature cards */
    .feature-card {
        padding: 1.5rem;
    }
    
    /* Contact layout */
    .contact-info {
        margin-top: 0;
    }
    
    /* Gallery grid adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Container max-width adjustments */
    .container {
        max-width: 960px;
    }
    
    /* Hero full height */
    #hero {
        min-height: 100vh;
    }
    
    /* Feature cards full padding */
    .feature-card {
        padding: 2rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max-width */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    .py-5 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    /* Larger hero shapes */
    .hero-shapes .shape-blob-1 {
        width: 250px;
        height: 250px;
    }
    
    .hero-shapes .shape-blob-2 {
        width: 200px;
        height: 200px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    #hero {
        min-height: 100vh;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* Print styles */
@media print {
    /* Hide non-essential elements */
    #header,
    #footer,
    .btn,
    .hero-shapes {
        display: none !important;
    }
    
    /* Adjust colors for print */
    body {
        color: #000 !important;
        background: #fff !important;
    overflow-x: hidden;
}
    
    /* Ensure proper page breaks */
    section {
        page-break-inside: avoid;
    }
    
    /* Remove shadows and effects */
    .card,
    .feature-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-green: #2d5016;
        --primary-blue: #1a4480;
        --dark-gray: #000000;
        --light-gray: #ffffff;
    }
    
    .card,
    .feature-card {
        border: 2px solid var(--dark-gray) !important;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .card:hover,
    .feature-card:hover,
    .btn:hover,
    #gallery img:hover {
        transform: none !important;
    }
    
    .sal-animate {
        transition: none !important;
    }
}

/* Focus styles for accessibility */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 2px solid var(--primary-blue);
        outline-offset: 2px;
    }
}

/* Dark mode preferences (future-proofing) */

/* Hover effects only on devices that support hover */
@media (hover: hover) and (pointer: fine) {
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    }
    
    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
    }
    
    #gallery img:hover {
        transform: scale(1.05);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    /* Remove hover effects */
    .card:hover,
    .feature-card:hover,
    .btn:hover,
    #gallery img:hover {
        transform: none;
        box-shadow: initial;
    }
} 