/* Responsive Fixes for Minikoparka-Slawkow.pl */

/* Mobile First Approach */

/* General Responsive Improvements */
img {
    max-width: 100%;
    height: auto;
}

/* Header Improvements */
@media (max-width: 991px) {
    .header-nav {
        background: #fff;
        padding: 20px;
    }
    
    .header-nav .nav > li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .header-nav .nav > li > a {
        padding: 10px 0;
        display: block;
    }
}

/* Footer Responsive */
@media (max-width: 767px) {
    .footer-top .col-lg-3,
    .footer-top .col-md-6 {
        margin-bottom: 30px;
    }
    
    .wt-footer-bot-left,
    .wt-footer-bot-right {
        text-align: center !important;
        width: 100%;
    }
    
    .copyrights-nav {
        float: none !important;
        margin-top: 15px;
    }
}

/* Services Grid Responsive */
@media (max-width: 767px) {
    .wt-icon-box-wraper.center {
        min-height: auto;
        margin-bottom: 20px;
    }
}

/* Gallery Responsive */
@media (max-width: 575px) {
    .masonry-item {
        width: 100% !important;
    }
    
    .wt-gallery-bx img {
        width: 100%;
        height: auto;
    }
}

/* Contact Page Responsive */
@media (max-width: 991px) {
    .wt-contact-wrap {
        flex-direction: column;
    }
    
    .contact-left-part,
    .contact-right-part {
        width: 100% !important;
    }
    
    .gmap-outline iframe {
        height: 300px;
        width: 100%;
    }
}

/* Slider Text Responsive */
@media (max-width: 767px) {
    .tp-caption {
        font-size: 24px !important;
        line-height: 32px !important;
    }
}

/* Call to Action Responsive */
@media (max-width: 767px) {
    .call-to-action-left,
    .call-to-action-right {
        text-align: center !important;
    }
    
    .call-to-action-right {
        padding-top: 10px !important;
    }
}

/* Table Responsive */
@media (max-width: 767px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Accordion Improvements */
.wt-accordion .acod-head {
    cursor: pointer;
}

/* Improve Touch Targets for Mobile */
@media (max-width: 767px) {
    .site-button,
    a.site-button {
        padding: 12px 25px;
        font-size: 14px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .navbar-toggler {
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
    }
}

/* Ensure proper spacing on mobile */
@media (max-width: 575px) {
    .p-t80 {
        padding-top: 40px !important;
    }
    
    .p-b80 {
        padding-bottom: 40px !important;
    }
    
    .p-tb80 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Fix for overflow issues */
body {
    overflow-x: hidden;
}

.row {
    margin-left: -15px;
    margin-right: -15px;
}

/* Improve carousel on mobile */
@media (max-width: 767px) {
    .owl-carousel .item {
        padding: 0 10px;
    }
}

/* Better form inputs on mobile */
@media (max-width: 767px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Accessibility Improvements */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #ffa500;
    outline-offset: 2px;
}

/* Remove focus outline from navigation links */
.nav a:focus,
.navbar-nav a:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .scroltop,
    .loading-area {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}
