/* Heritage Seeds - Responsive Styles */

/* Mobile First Approach - Base styles for mobile */

/* Disable scroll animations on mobile */
@media (max-width: 768px) {
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
        animation: none !important;
        transition: none !important;
    }
}

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1, .h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.3rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1rem;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 80vh;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Section padding */
    .py-5 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 180px;
    }
    
    /* Team member photos */
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Process steps - stack vertically */
    .process-step::after {
        display: none;
    }
    
    /* Gallery adjustments */
    .gallery .col-md-3 {
        margin-bottom: 1rem;
    }
    
    /* Form adjustments */
    .form-control {
        padding: 10px 14px;
    }
    
    /* Button adjustments */
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    /* Footer adjustments */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Contact info stacking */
    .contact-info-item {
        margin-bottom: 1rem;
        text-align: center;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    h1, .h1 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.6rem;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 85vh;
    }
    
    /* Section padding */
    .py-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 190px;
    }
    
    /* Team member photos */
    .team-member img {
        width: 100px;
        height: 100px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    .hero-section {
        min-height: 90vh;
    }
    
    /* Section padding */
    .py-5 {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 195px;
    }
    
    /* Team member photos */
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    /* Process steps - show connectors */
    .process-step::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -25%;
        width: 25px;
        height: 2px;
        background: var(--primary-green);
        transform: translateY(-50%);
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Full desktop styles are in main.css */
    .hero-section {
        min-height: 95vh;
    }
    
    /* Team member photos */
    .team-member img {
        width: 115px;
        height: 115px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Enhanced spacing for larger screens */
    .container {
        max-width: 1200px;
    }
    
    .hero-section {
        min-height: 100vh;
    }
    
    /* Team member photos */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Larger cards for better proportion */
    .card-img-top {
        height: 220px;
    }
    
    /* Enhanced section padding */
    .py-5 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

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

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Enhance image quality on retina displays */
    .card-img-top,
    .team-member img,
    .gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 24px;
    }
    
    .nav-link {
        padding: 12px 16px;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }
    
    .gallery img:hover {
        transform: none;
    }
    
    /* Enhance form controls for touch */
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-check-input {
        width: 20px;
        height: 20px;
    }
}

/* Print styles */
@media print {
    /* Hide non-essential elements */
    .navbar,
    footer,
    .btn,
    [data-sal] {
        display: none !important;
    }
    
    /* Optimize layout for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black !important;
    overflow-x: hidden;
}
    
    .container {
        width: 100% !important;
        max-width: none !important;
    }
    
    /* Ensure content fits on page */
    .hero-section,
    section {
        min-height: auto !important;
        page-break-inside: avoid;
    }
    
    /* Card adjustments for print */
    .card {
        border: 1px solid #000 !important;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    /* Typography for print */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: black !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Disable scroll animations specifically */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    /* Enhance contrast for accessibility */
    .card {
        border: 2px solid var(--text-primary);
    }
    
    .btn {
        border-width: 2px;
    }
    
    .form-control {
        border-width: 2px;
    }
}

/* Dark mode support (if browser supports) */

/* Custom responsive utilities */
.d-mobile-none {
    display: none !important;
}

@media (min-width: 768px) {
    .d-mobile-none {
        display: block !important;
    }
    
    .d-desktop-none {
        display: none !important;
    }
}

/* Mobile-specific spacing */
@media (max-width: 767.98px) {
    .mb-mobile-4 {
        margin-bottom: 2rem !important;
    }
    
    .py-mobile-3 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* Tablet-specific adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Optimize for tablet landscape */
    .hero-section .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    /* Better spacing for tablet cards */
    .row.g-4 > [class*="col-"] {
        margin-bottom: 1.5rem;
    }
}

/* Ultra-wide screen optimizations */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
    
    /* Prevent content from being too spread out */
    .hero-section .row {
        max-width: 1200px;
        margin: 0 auto;
    }
}


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