/* Golden Hive Cooperative - Responsive Styles */

/* Mobile-First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography Adjustments */
    .display-5 {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navbar Brand Size Control */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    /* Spacing Adjustments */
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .mb-5 {
        margin-bottom: 2rem;
    }
    
    /* Hero Section Mobile */
    #hero {
        min-height: 80vh;
        text-align: center;
    }
    
    #hero .btn {
        margin-top: 1rem;
        width: 100%;
        max-width: 250px;
    }
    
    /* Card Adjustments */
    .card-img-top {
        height: 200px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    /* Button Adjustments */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Form Adjustments */
    .form-control {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    /* Team Member Images */
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Process Steps */
    .process-item {
        margin-bottom: 2rem;
    }
    
    /* Timeline Adjustments */
    .timeline-item {
        margin-bottom: 1.5rem;
    }
    
    /* Footer Adjustments */
    footer {
        text-align: center;
    }
    
    footer .row > div {
        margin-bottom: 1.5rem;
    }
    
    /* Gallery Spacing */
    #gallery .col-6 {
        padding: 0.25rem;
    }
    
    /* Contact Form */
    .contact-form .bg-warning {
        margin-top: 2rem;
        text-align: center;
    }
    
    /* Remove hover effects on mobile */
    .card:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .card:hover .card-img-top {
        transform: none;
    }
    
    .btn-warning:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    }
    
    /* Disable scroll animations on mobile */
    * {
        animation: none;
        transition: none;
    }
    
    /* Re-enable essential transitions */
    .navbar-collapse {
        transition: all 0.3s ease;
    }
    
    .form-control:focus {
        transition: border-color 0.2s ease;
    }
    
    .btn {
        transition: background-color 0.2s ease;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .display-5 {
        font-size: 2.2rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    #hero {
        min-height: 85vh;
    }
    
    .card-img-top {
        height: 220px;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Disable scroll animations on small devices */
    @media (max-width: 767.98px) {
        * {
            animation: none;
        }
        
        .sal-animate {
            opacity: 1;
            transform: none;
        }
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    section {
        padding: 3.5rem 0;
    }
    
    .card-img-top {
        height: 240px;
    }
    
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    /* Reduce animations on tablets */
    .card:hover {
        transform: translateY(-3px);
    }
    
    .btn-warning:hover {
        transform: translateY(-1px);
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    #hero {
        min-height: 100vh;
    }
    
    .card-img-top {
        height: 250px;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Full animations on desktop */
    .card:hover {
        transform: translateY(-5px);
    }
    
    .btn-warning:hover {
        transform: translateY(-2px);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    section {
        padding: 5rem 0;
    }
    
    .display-5 {
        font-size: 3rem;
    }
    
    .lead {
        font-size: 1.25rem;
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    section {
        padding: 6rem 0;
    }
}

/* Orientation Specific Styles */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .card:hover,
    .btn:hover,
    .nav-link:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    /* Disable animations on touch devices */
    * {
        animation-duration: 0.01ms;
        transition-duration: 0.01ms;
    }
}

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

/* Accessibility - Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }
    
    .card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* Dark Mode Support */

/* Print Optimizations */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .btn,
    footer,
    #gallery {
        display: none;
    }
    
    /* Optimize layout for print */
    body {
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
    
    .card {
        border: 1px solid #000;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    h1, h2, h3, h4, h5, h6 {
        break-after: avoid;
        color: black;
    }
    
    /* Page breaks */
    section {
        break-inside: avoid;
        padding: 1rem 0;
    }
}

/* Internet Explorer 11 Support (legacy) */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .card {
        display: block;
    }
    
    .d-flex {
        display: -ms-flexbox;
        display: flex;
    }
}

/* Safari-specific fixes */
@supports (-webkit-appearance: none) {
    .form-control {
        -webkit-appearance: none;
    }
    
    .btn {
        -webkit-appearance: none;
    }
}