/* Mobile Responsive Styles for Majster Polska */

/* Mobile First Approach */
@media (max-width: 768px) {
    
    /* Typography */
    .h1 { font-size: 2rem; }
    .h2 { font-size: 1.75rem; }
    .h3 { font-size: 1.5rem; }
    .h4 { font-size: 1.25rem; }
    
    /* Header Mobile */
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .logo {
        justify-content: center;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0.5rem;
    }
    
    .nav-menu li {
        margin-left: 0;
        margin-bottom: 0.5rem;
    }
    
    .contact-info {
        align-items: center;
        text-align: center;
    }
    
    /* Hero Mobile */
    .hero {
        min-height: 400px;
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
        width: 100%;
    }
    
    /* Container Mobile */
    .container {
        padding: 0 1rem;
    }
    
    /* Sections Mobile */
    .section {
        padding: 2rem 0;
    }
    
    /* Grid Mobile */
    .col-6, .col-4, .col-3 {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process-step::after {
        display: none;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Cards Mobile */
    .card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Form Mobile */
    .form-input {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn {
        width: 100%;
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .btn-primary {
        padding: 16px 24px;
        font-size: 1.1rem;
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Stats Mobile */
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    /* Utility Mobile */
    .text-center-mobile {
        text-align: center;
    }
    
    .mb2-mobile {
        margin-bottom: 1rem;
    }
    
    .p2-mobile {
        padding: 1rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        font-size: 0.9rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .gallery-item {
        aspect-ratio: 1;
    }
    
    .process-step {
        padding: 1rem 0.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .team-member {
        padding: 1.5rem;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
    }
}

/* Tablet Portrait */
@media (min-width: 768px) and (max-width: 1024px) {
    
    .header-container {
        flex-direction: row;
        align-items: center;
    }
    
    .nav-menu {
        flex-direction: row;
    }
    
    .nav-menu li {
        margin-left: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Tablet */
@media (min-width: 1024px) and (max-width: 1200px) {
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Touch Optimizations */
@media (hover: none) and (pointer: coarse) {
    
    .btn {
        padding: 16px 24px;
        font-size: 1rem;
        min-height: 44px;
    }
    
    .nav-menu a {
        padding: 12px 16px;
        display: block;
    }
    
    .form-input {
        min-height: 44px;
        font-size: 16px;
    }
    
    .social-links a {
        width: 48px;
        height: 48px;
    }
    
    .card:hover {
        transform: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
    
    .gallery-item:hover .gallery-overlay {
        opacity: 0;
    }
    
    .team-member:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    
    .header,
    .footer,
    .btn,
    .form-input,
    form {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: #000;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    .gallery,
    .services-grid,
    .team-grid {
        display: block;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fade-in-up {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    
    .btn-primary {
        border: 2px solid #000;
    }
    
    .form-input {
        border: 2px solid #000;
    }
    
    .card {
        border: 1px solid #000;
    }
}