/* Enhanced Responsive CSS for All Devices */
/* This file enhances responsiveness while preserving your current design */

/* ===== LARGE DESKTOP (1400px and up) ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .wm-main-header {
        padding: 20px 0;
    }
    
    .wm-topstrip {
        padding: 15px 0;
    }
}

/* ===== DESKTOP (1200px to 1399px) ===== */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
}

/* ===== LAPTOP (992px to 1199px) ===== */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .wm-main-header .navbar-nav > li > a {
        padding: 15px 12px;
        font-size: 14px;
    }
    
    .wm-topstrip .wm-stripinfo li {
        font-size: 13px;
        margin-right: 20px;
    }
}

/* ===== TABLET LANDSCAPE (768px to 991px) ===== */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    /* Header Responsive */
    .wm-topstrip {
        text-align: center;
        padding: 10px 0;
    }
    
    .wm-topstrip .wm-stripinfo li {
        display: inline-block;
        float: none;
        margin: 0 10px 5px 0;
        font-size: 12px;
    }
    
    .wm-right-section {
        display: inline-block;
        float: none;
        margin-top: 10px;
    }
    
    .wm-main-header {
        text-align: center;
        padding: 15px 0;
    }
    
    .wm-main-header .col-md-3,
    .wm-main-header .col-md-9 {
        float: left;
        width: 100%;
    }
    
    .wm-logo {
        float: none;
        display: inline-block;
        margin-bottom: 15px;
    }
    
    .wm-logo img {
        max-width: 200px;
        height: auto;
    }
    
    /* Navigation Responsive */
    .navbar {
        position: relative;
    }
    
    .navbar-toggle {
        display: block;
        background-color: #eee;
        margin: 15px 0 20px 0;
        border: 1px solid #ddd;
        border-radius: 4px;
        padding: 9px 10px;
    }
    
    .navbar-toggle .icon-bar {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 1px;
        background-color: #888;
        margin: 4px 0;
    }
    
    .navbar-collapse {
        padding: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        border: 1px solid #ddd;
        border-radius: 4px;
        position: absolute;
        left: 0;
        top: 100%;
        z-index: 9999;
        margin-top: 5px;
    }
    
    .navbar-nav {
        margin: 0;
        float: none;
    }
    
    .navbar-nav > li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .navbar-nav > li:last-child {
        border-bottom: none;
    }
    
    .navbar-nav > li > a {
        float: left;
        width: 100%;
        padding: 15px 20px;
        color: #333;
        border-radius: 0;
    }
    
    .navbar-nav > li > a:hover {
        background-color: #f5f5f5;
    }
    
    /* Dropdown Menus */
    .wm-dropdown-menu {
        float: left;
        width: 100%;
        position: relative;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        background-color: #f9f9f9;
        transform: none;
    }
    
    .wm-dropdown-menu li {
        border-bottom: 1px solid #eee;
    }
    
    .wm-dropdown-menu li:last-child {
        border-bottom: none;
    }
    
    .wm-dropdown-menu li a {
        padding: 10px 30px;
        color: #666;
    }
    
    /* Main Content Responsive */
    .wm-main-content .col-md-4,
    .wm-main-content .col-md-3 {
        float: none;
        display: inline-block;
        vertical-align: top;
        margin-right: -4px;
        width: 50%;
    }
    
    .wm-main-content .col-md-7,
    .wm-main-content .col-md-5,
    .wm-main-content .col-md-6 {
        width: 100%;
        float: left;
        margin-bottom: 30px;
    }
    
    .col-md-12 {
        float: left;
        width: 100%;
    }
    
    /* Footer Responsive */
    .wm-footer-widget .widget {
        float: none;
        display: inline-block;
        margin-right: -4px;
        width: 50%;
        vertical-align: top;
    }
    
    .wm-copyright,
    .wm-copyright-two {
        text-align: center;
    }
    
    .wm-copyright span,
    .wm-copyright p,
    .wm-copyright-two span,
    .wm-copyright-two p {
        display: inline-block;
        float: none;
    }
    
    .wm-copyright span,
    .wm-copyright-two span {
        margin-bottom: 5px;
    }
}

/* ===== TABLET PORTRAIT (481px to 767px) ===== */
@media (min-width: 481px) and (max-width: 767px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* Header Responsive */
    .wm-topstrip {
        text-align: center;
        padding: 8px 0;
    }
    
    .wm-topstrip .wm-stripinfo li {
        display: block;
        margin-bottom: 5px;
        font-size: 12px;
    }
    
    .wm-right-section {
        display: block;
        margin-top: 10px;
    }
    
    .wm-search-section {
        margin: 10px 0;
    }
    
    .wm-main-header {
        text-align: center;
        padding: 10px 0;
    }
    
    .wm-main-header .col-md-3,
    .wm-main-header .col-md-9 {
        float: left;
        width: 100%;
    }
    
    .wm-logo {
        float: none;
        display: inline-block;
        margin-bottom: 10px;
    }
    
    .wm-logo img {
        max-width: 180px;
        height: auto;
    }
    
    /* Navigation Responsive */
    .navbar-toggle {
        margin: 10px 0 15px 0;
    }
    
    .navbar-collapse {
        width: 100%;
        left: 0;
        margin-top: 5px;
    }
    
    .navbar-nav > li > a {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Main Content Responsive */
    .wm-main-content .col-md-4,
    .wm-main-content .col-md-3 {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .wm-main-content .col-md-7,
    .wm-main-content .col-md-5,
    .wm-main-content .col-md-6 {
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* Footer Responsive */
    .wm-footer-widget .widget {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .wm-copyright,
    .wm-copyright-two {
        text-align: center;
        padding: 15px 0;
    }
    
    .wm-copyright span,
    .wm-copyright-two span {
        display: block;
        margin-bottom: 5px;
    }
}

/* ===== MOBILE LARGE (320px to 480px) ===== */
@media (min-width: 320px) and (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    /* Header Responsive */
    .wm-topstrip {
        padding: 5px 0;
    }
    
    .wm-topstrip .wm-stripinfo li {
        font-size: 11px;
        margin-bottom: 3px;
    }
    
    .wm-main-header {
        padding: 8px 0;
    }
    
    .wm-logo img {
        max-width: 150px;
    }
    
    /* Navigation Responsive */
    .navbar-toggle {
        margin: 8px 0 12px 0;
        padding: 8px 8px;
    }
    
    .navbar-toggle .icon-bar {
        width: 20px;
        height: 2px;
        margin: 3px 0;
    }
    
    .navbar-nav > li > a {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    /* Main Content Responsive */
    .wm-main-content .col-md-4,
    .wm-main-content .col-md-3,
    .wm-main-content .col-md-7,
    .wm-main-content .col-md-5,
    .wm-main-content .col-md-6 {
        width: 100%;
        margin-bottom: 15px;
    }
    
    /* Footer Responsive */
    .wm-footer-widget .widget {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .wm-copyright,
    .wm-copyright-two {
        padding: 10px 0;
    }
    
    .wm-copyright span,
    .wm-copyright-two span {
        font-size: 12px;
    }
}

/* ===== MOBILE SMALL (up to 319px) ===== */
@media (max-width: 319px) {
    .container {
        padding: 0 5px;
    }
    
    .wm-topstrip .wm-stripinfo li {
        font-size: 10px;
    }
    
    .wm-logo img {
        max-width: 120px;
    }
    
    .navbar-nav > li > a {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .wm-copyright span,
    .wm-copyright-two span {
        font-size: 11px;
    }
}

/* ===== ENHANCED TOUCH SUPPORT ===== */
@media (hover: none) and (pointer: coarse) {
    /* Touch-friendly button sizes */
    .navbar-toggle {
        min-height: 44px;
        min-width: 44px;
    }
    
    .navbar-nav > li > a {
        min-height: 44px;
        line-height: 44px;
    }
    
    /* Touch-friendly form elements */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea,
    select {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Touch-friendly buttons */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .wm-topstrip,
    .wm-footer,
    .wm-copyright {
        display: none !important;
    }
    
    .wm-main-wrapper {
        margin: 0;
        padding: 0;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
    
    .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
    .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
        width: 100% !important;
        float: none !important;
    }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .navbar-default {
        border-color: #000;
    }
    
    .navbar-default .navbar-nav > li > a {
        color: #000;
    }
    
    .navbar-default .navbar-nav > li > a:hover {
        background-color: #000;
        color: #fff;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .navbar-default {
        background-color: #333;
        border-color: #555;
    }
    
    .navbar-default .navbar-nav > li > a {
        color: #fff;
    }
    
    .navbar-default .navbar-nav > li > a:hover {
        background-color: #555;
    }
    
    .navbar-toggle {
        background-color: #555;
        border-color: #777;
    }
    
    .navbar-toggle .icon-bar {
        background-color: #fff;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
@media (max-width: 767px) {
    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Reduce animations on mobile for better performance */
    .slick-slider .slick-arrow {
        display: none !important;
    }
    
    /* Optimize font loading */
    body {
        font-display: swap;
    }
}

/* ===== FIXED ISSUES ===== */
/* Fix for iOS Safari viewport issues */
@supports (-webkit-touch-callout: none) {
    .wm-main-wrapper {
        -webkit-overflow-scrolling: touch;
    }
}

/* Fix for Android Chrome viewport issues */
@media screen and (max-width: 767px) {
    .wm-main-wrapper {
        width: 100vw;
        overflow-x: hidden;
    }
}

/* Fix for Windows High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .wm-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
} 