/* Mobile Responsive Styles for PodDom Mobilna Myjnia */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  h1 {
    font-size: 1.8rem !important;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.5rem !important;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.3rem !important;
  }
  
  h4 {
    font-size: 1.1rem !important;
  }
  
  /* Hero section mobile */
  .hero {
    min-height: 50vh;
    background-attachment: scroll;
    padding: 2rem 0;
  }
  
  .hero h1 {
    font-size: 2rem !important;
    margin-bottom: 1rem;
  }
  
  .hero .lead {
    font-size: 1rem !important;
    margin-bottom: 1.5rem;
  }
  
  /* Navigation mobile */
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-brand img {
    height: 40px;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    text-align: center;
  }
  
  .navbar-collapse {
    background: rgba(46, 125, 50, 0.95);
    margin-top: 1rem;
    border-radius: 10px;
    padding: 1rem;
  }
  
  /* Buttons mobile */
  .btn-art-nouveau,
  .btn-outline-art-nouveau {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    padding: 15px 20px;
    font-size: 1rem;
  }
  
  /* Cards mobile */
  .card-art-nouveau {
    margin-bottom: 2rem;
  }
  
  .card-art-nouveau .card-body {
    padding: 1.5rem;
  }
  
  /* Services section mobile */
  .services {
    padding: 3rem 0;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  /* Contact form mobile */
  .form-art-nouveau {
    padding: 2rem 1rem;
    margin: 1rem 0;
  }
  
  .form-control {
    padding: 15px 12px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Contact info mobile */
  .contact-info {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .contact-item i {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  /* Gallery mobile */
  .gallery-item {
    margin-bottom: 1.5rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Price table mobile */
  .price-table {
    margin-bottom: 2rem;
  }
  
  .price-header {
    padding: 1.5rem;
  }
  
  .price-amount {
    font-size: 2rem;
  }
  
  .price-body {
    padding: 1.5rem;
  }
  
  /* Map mobile */
  .map-container {
    height: 300px;
    margin: 1rem 0;
  }
  
  /* Footer mobile */
  footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  footer .col-md-3,
  footer .col-md-4 {
    margin-bottom: 2rem;
  }
  
  /* Spacing adjustments */
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  
  .col-12,
  .col-sm-6,
  .col-md-4,
  .col-md-3,
  .col-lg-3,
  .col-lg-4,
  .col-lg-6 {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  /* Section padding mobile */
  section {
    padding: 3rem 0 !important;
  }
  
  /* Hide ornaments on mobile */
  .art-nouveau-ornament::before,
  .art-nouveau-ornament::after {
    display: none;
  }
  
  /* GDPR checkbox mobile */
  .gdpr-checkbox {
    margin: 1rem 0;
  }
  
  .gdpr-checkbox .form-check-label {
    font-size: 0.85rem;
    line-height: 1.3;
  }
}

/* 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;
  }
  
  .btn-art-nouveau,
  .btn-outline-art-nouveau {
    display: inline-block;
    width: auto;
    margin-right: 1rem;
  }
  
  .contact-item {
    flex-direction: row;
    text-align: left;
  }
  
  .contact-item i {
    margin-right: 1rem;
    margin-bottom: 0;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero {
    min-height: 55vh;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .form-art-nouveau {
    padding: 2.5rem;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

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

/* Touch-specific adjustments */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .card-art-nouveau:hover {
    transform: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  }
  
  .gallery-item:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .service-icon:hover {
    transform: none;
  }
  
  .navbar-nav .nav-link:hover {
    transform: none;
  }
  
  .btn-art-nouveau:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
  }
  
  /* Increase touch targets */
  .navbar-nav .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .form-control {
    min-height: 44px;
  }
  
  .form-check-input {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp images on retina displays */
  .hero {
    background-image: url('/img/hero-bg.webp');
  }
  
  .navbar-brand img,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 80vh;
  }
  
  .hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .hero .lead {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .services {
    padding: 2rem 0;
  }
}

/* Accessibility improvements for mobile */
@media (max-width: 767.98px) {
  /* Ensure sufficient color contrast */
  .navbar-nav .nav-link {
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
    border-radius: 5px;
  }
  
  /* Focus states for keyboard navigation */
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 2px solid var(--art-nouveau-gold);
    outline-offset: 2px;
  }
  
  /* Improved readability */
  body {
    font-size: 16px;
    line-height: 1.6;
  }
  
  p {
    margin-bottom: 1.25rem;
  }
  
  /* Better spacing for text content */
  .card-art-nouveau .card-text,
  .contact-info p,
  .price-body p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* Performance optimizations for mobile */
@media (max-width: 767.98px) {
  /* Reduce animations on mobile to improve performance */
  *,
  *::before,
  *::after {
    animation-duration: 0.2s !important;
    transition-duration: 0.2s !important;
  }
  
  /* Optimize background attachments */
  .hero {
    background-attachment: scroll !important;
  }
  
  /* Simplify complex gradients on mobile */
  .btn-art-nouveau {
    background: var(--art-nouveau-gold) !important;
  }
}