/* ==========================================================================
   FruitBox - Premium Dried Fruits Subscription Template
   Responsive CSS File
   Mobile & Tablet Optimization
   ========================================================================== */

/* ==========================================================================
   Tablet Landscape - Large (1024px and down)
   ========================================================================== */

@media (max-width: 1024px) {
    /* Typography adjustments */
    :root {
        --h1-size: 2rem;
        --h2-size: 1.7rem;
        --h3-size: 1.4rem;
        --section-padding: 4rem 0;
    }
    
    /* Hero section */
    #hero {
        min-height: 70vh;
    }
    
    /* Service cards */
    .service-card img {
        height: 180px;
    }
    
    /* Team layout adjustment */
    .team-member img {
        width: 100px;
        height: 100px;
    }
}

/* ==========================================================================
   Tablet Portrait - Medium (768px and down)
   ========================================================================== */

@media (max-width: 768px) {
    /* Typography */
    :root {
        --h1-size: 1.8rem;
        --h2-size: 1.5rem;
        --h3-size: 1.3rem;
        --h4-size: 1.2rem;
        --section-padding: 3rem 0;
        --card-padding: 1.2rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .navbar-nav .nav-link {
        margin: 0.2rem 0;
        text-align: center;
    }
    
    /* Hero section */
    #hero {
        min-height: 60vh;
        text-align: center;
        padding-top: 100px;
    }
    
    #hero .row {
        flex-direction: column-reverse;
    }
    
    #hero .col-lg-6:first-child {
        margin-top: 2rem;
    }
    
    /* Service cards grid */
    .service-card img {
        height: 160px;
    }
    
    /* Process steps layout */
    .process-step .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Team layout */
    .team-member {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 90px;
        height: 90px;
    }
    
    /* Timeline adjustments */
    .timeline-item {
        margin-bottom: 1.5rem;
    }
    
    /* Contact form */
    .contact-item {
        margin-bottom: 2rem;
    }
    
    /* Footer */
    #footer .col-lg-4,
    #footer .col-md-6 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Breadcrumbs */
    .breadcrumbs {
        padding-top: 80px;
    }
    
    .breadcrumb-image {
        height: 30px;
    }
}

/* ==========================================================================
   Mobile Large - Small (576px and down)
   ========================================================================== */

@media (max-width: 576px) {
    /* Typography */
    :root {
        --navbar-brand-size: 1.1rem;
        --h1-size: 1.6rem;
        --h2-size: 1.4rem;
        --h3-size: 1.2rem;
        --h4-size: 1.1rem;
        --h5-size: 1rem;
        --p-size: 0.95rem;
        --section-padding: 2.5rem 0;
        --card-padding: 1rem;
    }
    
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: var(--navbar-brand-size) !important;
    }
    
    .navbar-toggler {
        font-size: 0.9rem;
        padding: 0.3rem 0.5rem;
    }
    
    /* Hero section */
    #hero {
        min-height: 50vh;
        padding-top: 80px;
    }
    
    #hero h1 {
        margin-bottom: 0.5rem;
    }
    
    #hero h2 {
        margin-bottom: 1rem;
    }
    
    #hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .pricing-card,
    .team-member,
    .review-card,
    .blog-card,
    .faq-card,
    .process-step,
    .timeline-item {
        margin-bottom: 1.5rem;
    }
    
    /* Service cards */
    .service-card img {
        height: 140px;
    }
    
    .service-card ul {
        font-size: 0.9rem;
    }
    
    .price {
        font-size: 1.1rem;
        padding: 0.6rem 1.2rem;
    }
    
    /* Feature items */
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin-bottom: 1rem;
    }
    
    /* Pricing cards */
    .pricing-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    .price-tag {
        font-size: 1.6rem;
    }
    
    /* Team section */
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Process steps */
    .process-step .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    /* Timeline */
    .timeline-year {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Blog cards */
    .blog-card img {
        height: 120px;
    }
    
    /* Contact section */
    .contact-item i {
        font-size: 1.5rem !important;
    }
    
    .contact-item {
        margin-bottom: 2rem;
    }
    
    /* Forms */
    .form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
    }
    
    .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Footer */
    #footer {
        text-align: center;
    }
    
    #footer h4,
    #footer h5 {
        margin-bottom: 1rem;
    }
    
    #footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Breadcrumbs */
    .breadcrumbs {
        padding-top: 70px;
        text-align: center;
    }
    
    .breadcrumb-image {
        height: 25px;
    }
}

/* ==========================================================================
   Mobile Extra Small (480px and down)
   ========================================================================== */

@media (max-width: 480px) {
    /* Typography */
    :root {
        --navbar-brand-size: 1rem;
        --h1-size: 1.4rem;
        --h2-size: 1.3rem;
        --h3-size: 1.1rem;
        --h4-size: 1rem;
        --h5-size: 0.95rem;
        --p-size: 0.9rem;
        --small-size: 0.85rem;
        --section-padding: 2rem 0;
        --card-padding: 0.8rem;
    }
    
    /* Container */
    .container {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }
    
    /* Hero */
    #hero {
        padding-top: 70px;
        min-height: 45vh;
    }
    
    /* Service cards adjustments */
    .service-card img {
        height: 120px;
    }
    
    .service-card ul {
        font-size: 0.85rem;
    }
    
    .price {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
    
    /* Process and timeline */
    .process-step .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .timeline-year {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* Team images */
    .team-member img {
        width: 70px;
        height: 70px;
    }
    
    /* Forms */
    .btn-primary {
        padding: 0.5rem 1rem;
        border-radius: 20px;
    }
    
    /* Cards general */
    .feature-card,
    .service-card,
    .pricing-card,
    .team-member,
    .review-card,
    .blog-card,
    .faq-card,
    .process-step,
    .timeline-item,
    .nutrition-item,
    .benefit-card,
    .fruit-benefit-card,
    .intake-card,
    .recipe-card,
    .sourcing-region,
    .sustainability-card,
    .quality-step,
    .impact-card,
    .certification-card,
    .case-study-card,
    .career-card,
    .info-card {
        border-radius: 10px;
    }
}

/* ==========================================================================
   Mobile Animation Restrictions (As per requirements)
   ========================================================================== */

@media (max-width: 768px) {
    /* Disable scroll-based animations in mobile resolution */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .team-member:hover,
    .review-card:hover,
    .blog-card:hover,
    .faq-card:hover,
    .process-step:hover,
    .timeline-item:hover,
    .feature-item:hover,
    .nutrition-item:hover,
    .benefit-card:hover,
    .fruit-benefit-card:hover,
    .intake-card:hover,
    .recipe-card:hover,
    .sourcing-region:hover,
    .sustainability-card:hover,
    .quality-step:hover,
    .impact-card:hover,
    .certification-card:hover,
    .case-study-card:hover,
    .career-card:hover,
    .info-card:hover {
        transform: none !important;
    }
    
    /* Disable button hover animations */
    .btn-primary:hover,
    .read-more:hover {
        transform: none !important;
    }
    
    /* SAL.js animations disabled (as per memory) */
    /*
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
    */
}

/* ==========================================================================
   Landscape Mobile Orientation
   ========================================================================== */

@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: 70vh;
        padding-top: 60px;
    }
    
    .navbar {
        padding: 0.3rem 0;
    }
    
    section {
        padding: 1.5rem 0;
    }
}

/* ==========================================================================
   Touch-Friendly Adjustments
   ========================================================================== */

@media (hover: none) and (pointer: coarse) {
    /* Touch device adjustments */
    .btn,
    .nav-link,
    .read-more {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .team-member:hover,
    .review-card:hover,
    .blog-card:hover,
    .faq-card:hover {
        transform: none;
        box-shadow: var(--light-shadow);
    }
}

/* ==========================================================================
   High DPI / Retina Display Adjustments
   ========================================================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for high DPI displays */
    .breadcrumb-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ==========================================================================
   Dark Mode Media Query Support
   ========================================================================== */


/* ==========================================================================
   Print Media Adjustments
   ========================================================================== */

@media print {
    /* Hide interactive elements */
    .navbar,
    #footer,
    .btn,
    .breadcrumbs,
    .contact-form {
        display: none !important;
    }
    
    /* Optimize for print */
    body {
        font-size: 11pt;
        line-height: 1.3;
        color: black !important;
        background: white !important;
    overflow-x: hidden;
}
    
    .container {
        max-width: none !important;
        width: 100% !important;
        padding: 0 !important;
    }
    
    section {
        padding: 1rem 0 !important;
        page-break-inside: avoid;
    }
    
    .card,
    .service-card,
    .feature-card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        margin-bottom: 1rem !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* ==========================================================================
   Accessibility Enhancements for Mobile
   ========================================================================== */

@media (max-width: 768px) {
    /* Focus indicators for keyboard navigation */
    .nav-link:focus,
    .btn:focus,
    .form-control:focus {
        outline: 3px solid var(--primary-orange);
        outline-offset: 2px;
    }
    
    /* Larger tap targets */
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better form control sizing */
    .form-control,
    .form-check-input {
        min-height: 44px;
    }
    
    .form-check-label {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}
