/* Mobile-First Responsive Design */

/* Mobile Extra Small (0px - 575px) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero section mobile adjustments */
    #hero {
        padding-top: 80px;
        min-height: auto;
    }
    
    .hero-buttons {
        text-align: center;
        margin-top: 2rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .hero-decorative-shape {
        display: none;
    }
    
    /* Navigation adjustments */
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .nav-item {
        margin-bottom: 0.5rem;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Button adjustments */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn + .btn {
        margin-left: 0;
    }
    
    /* Section padding */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Team grid adjustment */
    .col-lg-2-4 {
        width: 100% !important;
        margin-bottom: 2rem;
    }
    
    /* Process steps mobile */
    .process-step {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .process-step .step-number {
        margin-bottom: 1rem;
    }
    
    /* Timeline mobile */
    .timeline-item {
        border-left: none;
        border-bottom: 2px solid var(--primary-sage);
        padding-left: 0;
        padding-bottom: 1rem;
        margin-left: 0;
        margin-bottom: 1.5rem;
    }
    
    .timeline-date {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: bold;
    }
    
    /* Contact form mobile */
    .contact-form {
        margin-top: 2rem;
    }
    
    /* Gallery mobile */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer mobile */
    #footer .col-md-6,
    #footer .col-lg-3 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .social-links {
        text-align: center;
    }
    
    /* Remove hover effects on mobile */
    .card:hover,
    .team-member img:hover,
    #gallery img:hover,
    .origin-card:hover,
    .benefit-card:hover,
    .tasting-card:hover,
    .storage-tip:hover,
    .seasonal-card:hover,
    .pairing-card:hover,
    .info-card:hover {
        transform: none;
    }
    
    /* Disable animations on mobile when reduced motion is not set */
    .card,
    .team-member,
    .process-step {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Mobile Small (576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments for small mobile */
    .hero-buttons .btn {
        width: auto;
        margin-right: 1rem;
    }
    
    /* Two-column layout for some cards */
    .services .col-md-6:nth-child(odd) {
        padding-right: 0.5rem;
    }
    
    .services .col-md-6:nth-child(even) {
        padding-left: 0.5rem;
    }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section tablet */
    #hero {
        padding-top: 100px;
    }
    
    /* Navigation tablet */
    .navbar-nav {
        margin-left: auto;
    }
    
    /* Services grid tablet */
    .services .row .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Team grid tablet - 2 columns */
    .col-lg-2-4 {
        width: 50% !important;
        margin-bottom: 2rem;
    }
    
    /* Process steps tablet */
    .process-step {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* FAQ tablet - single column */
    #faq .col-md-6 {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Desktop Small (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Container max-width adjustment */
    .container {
        max-width: 960px;
    }
    
    /* Hero content adjustment */
    #hero .container {
        padding: 0 15px;
    }
    
    /* Card content adjustment */
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Team grid desktop small */
    .col-lg-2-4 {
        width: 20%;
    }
}

/* Desktop Large (1200px and up) */
@media (min-width: 1200px) {
    /* Enhanced container */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced hero spacing */
    #hero {
        padding-top: 120px;
    }
    
    /* Enhanced card spacing */
    .card-body {
        padding: 2rem;
    }
    
    /* Enhanced section spacing */
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .btn,
    .hero-buttons,
    #footer .social-links,
    .breadcrumb {
        display: none !important;
    }
    
    /* Adjust colors for print */
    body {
        color: #000 !important;
        background: #fff !important;
    }
    
    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* Accessibility Improvements */
@media (max-width: 767.98px) {
    /* Increase touch targets for mobile */
    .btn {
        min-height: 48px;
    }
    
    .nav-link {
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Improve form usability on mobile */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px;
    }
    
    .form-label {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Enhance image quality for retina displays */
    .card-img-top,
    .team-member img,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Mobile Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    /* Reduce hero height in landscape */
    #hero {
        min-height: 70vh;
        padding-top: 60px;
    }
    
    /* Compact navigation */
    .navbar {
        padding: 0.25rem 0;
    }
    
    /* Reduce section padding */
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* Dark Mode Support (if user prefers) */

/* Reduced Motion Preferences - Enhanced */
@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;
    }
    
    /* Remove transform effects */
    .card:hover,
    .btn-primary:hover,
    .team-member img:hover,
    #gallery img:hover {
        transform: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    /* Increase contrast for accessibility */
    .card {
        border: 2px solid var(--navy-dark) !important;
    }
    
    .btn-primary {
        border: 2px solid var(--navy-dark);
    }
    
    .text-muted {
        color: var(--navy-dark) !important;
    }
} 