/* Mobile First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    padding-top: 125px;
}
    
    .hero-section h2 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 180px;
    }
    
    /* Spacing */
    .py-5 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    /* Team Images */
    #team .card img {
        width: 150px;
        height: 150px;
    }
    
    /* Process Steps */
    .step-number {
        width: 50px;
        height: 50px;
    }
    
    .step-number .h4 {
        font-size: 1rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Gallery Grid */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* FAQ Layout */
    #faq .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Button Sizing */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.25rem;
    padding-top: 125px;
}
    
    .hero-section h2 {
        font-size: 1.35rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 190px;
    }
    
    /* Team Images */
    #team .card img {
        width: 180px;
        height: 180px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.85rem;
    }
    
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.5rem;
    padding-top: 125px;
}
    
    .hero-section h2 {
        font-size: 1.4rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 200px;
    }
    
    /* Gallery */
    #gallery .row {
        margin: 0 -0.5rem;
    }
    
    #gallery .col-md-4 {
        padding: 0 0.5rem;
        margin-bottom: 1rem;
    }
    
    /* Process Grid */
    #process .col-lg-2 {
        margin-bottom: 2rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    padding-top: 125px;
}
    
    .hero-section h2 {
        font-size: 1.75rem;
    }
    
    /* Cards Layout */
    .card-img-top {
        height: 220px;
    }
    
    /* Team Layout */
    #team .row {
        justify-content: center;
    }
    
    /* Process Steps */
    #process .row {
        justify-content: center;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container Max Width */
    .container {
        max-width: 1140px;
    }
    
    /* Hero Section */
    .hero-section h1 {
        font-size: 4rem;
    padding-top: 125px;
}
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 250px;
    }
    
    /* Spacing */
    .py-5 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* Extra Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    padding-top: 125px;
}
    
    .hero-section h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

/* Print Styles */
@media print {
    /* Hide interactive elements */
    .navbar,
    .btn,
    footer,
    #contact {
        display: none;
    }
    
    /* Optimize for printing */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    overflow-x: hidden;
}
    
    .card {
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    /* Remove shadows and animations */
    * {
        box-shadow: none;
        animation: none;
        transition: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-green: #2d5016;
        --primary-brown: #5d2f0a;
        --primary-sage: #5a6b47;
    }
    
    .card {
        border: 2px solid #333;
    }
    
    .btn {
        border-width: 2px;
    }
}

/* Dark Mode Support */

/* Focus and Accessibility */
@media (prefers-reduced-motion: no-preference) {
    .card:hover {
        transform: translateY(-5px);
        transition: transform 0.3s ease;
    }
    
    .feature-card:hover {
        transform: translateY(-5px);
        transition: transform 0.3s ease;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .card:hover,
    .feature-card:hover,
    .info-card:hover {
        transform: none;
    }
    
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem 0.75rem;
    }
    
    /* Gallery touch optimization */
    #gallery img {
        margin-bottom: 1rem;
    }
}

/* Specific Mobile Adjustments */
@media (max-width: 767.98px) {
    /* No animations on mobile for performance */
    [data-sal] {
        transform: none;
        opacity: 1;
    }
    
    /* Simplified layout */
    .timeline-item {
        margin-bottom: 1.5rem;
    }
    
    .year-badge {
        margin-bottom: 1rem;
        display: block;
    }
    
    /* Contact info stack */
    #contact .row > div {
        margin-bottom: 1.5rem;
    }
    
    /* Footer adjustments */
    footer .col-md-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Form improvements */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Very Small Screens */
@media (max-width: 360px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    padding-top: 125px;
}
    
    .hero-section h2 {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
} 