/* Mobile First Responsive Design */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1 {
        font-size: 1.81rem;
    }
    
    h2 {
        font-size: 1.51rem;
    }
    
    h3 {
        font-size: 1.39rem;
    }
    
    .navbar-brand {
        font-size: 1.36rem;
    }
    
    /* Hero section mobile adjustments */
    #hero {
        min-height: 80vh;
        padding: var(--spacing-lg) 0;
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 180px;
    }
    
    /* Team images smaller on mobile */
    #team img {
        width: 80px;
        height: 80px;
    }
    
    /* Button adjustments */
    .btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.96rem;
    }
    
    /* Form adjustments */
    .form-control {
        padding: 0.75rem;
    }
    
    /* Disable animations on mobile per requirements */
    .fade-in,
    .card:hover,
    #gallery img:hover,
    .btn:hover {
        transform: none;
        animation: none;
        transition: none;
    }
    
    /* Spacing adjustments */
    section {
        padding: var(--spacing-lg) 0;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .card-img-top {
        height: 200px;
    }
    
    #team img {
        width: 100px;
        height: 100px;
    }
    
    /* Services cards in 2 columns */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.41rem;
    }
    
    /* Adjust hero on tablets */
    #hero {
        min-height: 90vh;
    }
    
    .card-img-top {
        height: 220px;
    }
    
    #team img {
        width: 110px;
        height: 110px;
    }
    
    /* Gallery adjustments */
    #gallery .col-lg-4 {
        margin-bottom: 1.65rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Full desktop experience */
    .card:hover {
        transform: translateY(-5px);
    }
    
    #gallery img:hover {
        transform: scale(1.05);
    }
    
    .btn:hover {
        transform: translateY(-2px);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    h1 {
        font-size: 2.39rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* Height-based media queries for better mobile experience */
@media (max-height: 600px) and (max-width: 991.98px) {
    #hero {
        min-height: 100vh;
        padding: var(--spacing-md) 0;
    }
    
    section {
        padding: var(--spacing-md) 0;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: 100vh;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* Print styles */
@media print {
    .navbar,
    #footer,
    .btn {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    overflow-x: hidden;
}
    
    .card {
        box-shadow: none;
        border: 1px solid #e4dedd;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #294c27;
        --secondary-color: #f0f0f0;
        --neutral-color: #0e0d0d;
        --background-color: #ffffff;
    }
    
    .card {
        border: 2px solid var(--neutral-color);
    }
}

/* Dark mode preference */

/* Focus and accessibility improvements */
@media (max-width: 991.98px) {
    /* Larger touch targets on mobile */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    .form-control {
        min-height: 44px;
    }
}

/* Animation preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
} 