/* Mobile Responsive Styles for Mistrz Okien i Drzwi */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    /* Hero section */
    .hero {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        text-align: center;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    /* Gallery */
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    /* Sections */
    .section {
        padding: 2rem 0;
    }
    
    /* Contact info */
    .contact-info {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    /* Forms */
    .form-control {
        padding: 10px 12px;
        margin-bottom: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
        text-align: center;
    }
    
    .footer .row > div {
        margin-bottom: 2rem;
    }
    
    /* Pricing tables */
    .pricing-table {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .pricing-price {
        font-size: 2rem;
    }
    
    /* FAQ */
    .faq-question {
        padding: 0.8rem;
        font-size: 14px;
    }
    
    .faq-answer {
        padding: 0.8rem;
    }
    
    /* Text alignment for mobile */
    .text-center-mobile {
        text-align: center;
    }
    
    /* Hide elements on mobile */
    .hide-mobile {
        display: none !important;
    }
    
    /* Container adjustments */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .gallery-item img {
        height: 220px;
    }
    
    .btn {
        width: auto;
        margin-right: 1rem;
        margin-bottom: 1rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero .lead {
        font-size: 1.2rem;
    }
    
    .gallery-item img {
        height: 240px;
    }
    
    .navbar-nav .nav-link {
        margin: 0 0.3rem;
    }
    
    .section {
        padding: 3rem 0;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .gallery-item img {
        height: 250px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
    
    .gallery-overlay {
        opacity: 1;
    }
    
    .btn:hover {
        transform: none;
    }
    
    /* Larger touch targets */
    .navbar-nav .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn {
        min-height: 44px;
    }
    
    .form-control {
        min-height: 44px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero {
        min-height: 50vh;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 1.5rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-brand img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 767.98px) {
    /* Ensure text is readable */
    body {
        line-height: 1.5;
    }
    
    /* Improve tap targets */
    a, button, .btn, .nav-link {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Form improvements */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Better spacing */
    .mb-mobile-2 {
        margin-bottom: 2rem !important;
    }
    
    .mt-mobile-2 {
        margin-top: 2rem !important;
    }
    
    .p-mobile-1 {
        padding: 1rem !important;
    }
}

/* Print styles */
@media print {
    .navbar, .footer, .btn, .contact-info {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}