/* Mobile Enhancements for J&K Storage */

/* Ensure slider is properly sized on mobile */
@media (max-width: 767px) {
    /* Slider container adjustments */
    .banner-section {
        position: relative;
        overflow: hidden;
    }
    
    #rev_slider_202_1_wrapper {
        min-height: 300px !important;
    }
    
    #rev_slider_202_1 {
        min-height: 300px !important;
    }
    
    /* Ensure slider images scale properly */
    .rev_slider img {
        width: 100% !important;
        height: auto !important;
        max-height: 400px;
        object-fit: cover;
    }
    
    /* Special overlay positioning for mobile */
    .special-overlay-container {
        top: 45%;
    }
    
    /* Make buttons more touch-friendly */
    .btn, .common-btn {
        min-height: 44px;
        padding: 12px 20px !important;
        font-size: 14px !important;
        display: inline-block;
        margin: 5px !important;
    }
    
    /* Improve text readability on mobile */
    .about-us-content h2 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }
    
    .about-us-content p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }
    
    /* Contact section mobile improvements */
    .contact-us-info {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .contact-img {
        float: none !important;
        display: block;
        margin: 0 auto 10px;
    }
    
    .contact-us-links {
        float: none !important;
        display: block;
        text-align: center;
    }
    
    /* Navigation improvements for mobile */
    .navigation-block .navigation li {
        padding: 10px 0;
    }
    
    .navigation-block .navigation li a {
        font-size: 16px !important;
        padding: 10px 15px;
        display: block;
    }
    
    /* Specials page mobile improvements */
    .alert {
        padding: 15px !important;
        font-size: 14px !important;
        margin: 15px 0 !important;
    }
    
    .alert h4 {
        font-size: 18px !important;
        line-height: 1.4 !important;
        word-wrap: break-word;
    }
    
    .alert-success,
    .alert-info {
        text-align: center;
    }
    
    /* Specials banner */
    .specials-banner {
        padding: 30px 0 !important;
    }
    
    .specials-banner h1 {
        font-size: 28px !important;
    }
    
    /* Improve spacing on mobile */
    .ptb-xs {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
    
    /* Make sure content doesn't overflow */
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Extra small devices (phones in portrait, less than 576px) */
@media (max-width: 575px) {
    /* Further reduce slider height on very small screens */
    #rev_slider_202_1_wrapper,
    #rev_slider_202_1 {
        min-height: 250px !important;
    }
    
    .rev_slider img {
        max-height: 300px;
    }
    
    /* Adjust special overlay for very small screens */
    .special-overlay-container {
        top: 40%;
    }
    
    .special-starburst {
        width: 180px !important;
        height: 180px !important;
    }
    
    .special-content {
        padding: 15px !important;
        max-width: 150px !important;
    }
    
    .special-content h3 {
        font-size: 16px !important;
        line-height: 1.1 !important;
        margin-bottom: 5px !important;
    }
    
    .special-content p {
        font-size: 13px !important;
        margin: 3px 0 !important;
    }
    
    .special-content small {
        font-size: 11px !important;
        margin-top: 3px !important;
    }
    
    /* Headings */
    h1 {
        font-size: 28px !important;
    }
    
    h2 {
        font-size: 22px !important;
    }
    
    h3 {
        font-size: 18px !important;
    }
    
    /* Buttons full width on very small screens */
    .btn, .common-btn {
        width: 100%;
        margin: 5px 0 !important;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 767px) and (orientation: landscape) {
    /* Reduce slider height in landscape to show more content */
    #rev_slider_202_1_wrapper,
    #rev_slider_202_1 {
        min-height: 200px !important;
        max-height: 250px !important;
    }
    
    .rev_slider img {
        max-height: 250px;
    }
    
    /* Adjust special overlay position */
    .special-overlay-container {
        top: 50%;
    }
    
    .special-starburst {
        width: 200px !important;
        height: 200px !important;
    }
}

/* Touch-friendly improvements for all mobile devices */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap target sizes */
    a, button, input[type="submit"], .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .btn:hover,
    .common-btn:hover {
        transform: none;
    }
    
    /* Disable animations on touch devices for better performance */
    .special-starburst {
        animation: none;
    }
}

/* High DPI displays (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure text remains crisp */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 767px) {
    /* Ensure sufficient color contrast */
    .special-content {
        text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
    }
    
    /* Make links more visible */
    a {
        text-decoration: underline;
    }
    
    .btn, .common-btn {
        text-decoration: none;
    }
    
    /* Improve form inputs on mobile */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px;
    }
}

/* Fix for iOS Safari bottom bar */
@supports (-webkit-touch-callout: none) {
    .banner-section {
        min-height: -webkit-fill-available;
    }
}

/* Prevent text size adjustment on orientation change */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}
