/* Responsive CSS for Migrants' Social Aid Clinics Template */
/* Mobile-First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-section {
    min-height: 60vh;
    padding: 2rem 0;
  }
  
  .hero-section h1 {
    font-size: 1.8rem;
  }
  
  .navbar-brand {
    font-size: 12px !important;
    font-size: 1.1rem !important;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .team-member {
    padding: 1.5rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
  
  .footer {
    padding: 2rem 0 1rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .hero-section {
    min-height: 80vh;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }
}

/* Swiper Responsive Settings */
@media (max-width: 768px) {
  .swiper {
    overflow: visible;
  }
  
  .swiper-slide {
    width: 100% !important;
  }
  
  /* Disable autoplay and effects on mobile as per requirements */
  .swiper[data-swiper-autoplay] {
    --swiper-autoplay-delay: 999999999;
  }
}

/* Navigation Responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--white);
    margin-top: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 1rem;
  }
  
  .navbar-nav .nav-link {
    font-size: 10px !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
  }
}

/* Form Responsive */
@media (max-width: 767.98px) {
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .btn-primary {
    width: 100%;
    padding: 1rem;
  }
}

/* Typography Responsive */
@media (max-width: 767.98px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  h4 {
    font-size: 1.1rem;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
}

/* Container Responsive Adjustments */
@media (max-width: 575.98px) {
  .container,
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* FAQ Responsive */
@media (max-width: 767.98px) {
  .faq-question,
  .faq-answer {
    padding: 1rem;
  }
  
  .faq-question {
    font-size: 0.95rem;
  }
}

/* Footer Responsive */
@media (max-width: 767.98px) {
  .footer .row > div {
    margin-bottom: 2rem;
  }
  
  .footer .text-center {
    text-align: left !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .swiper-pagination,
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
  }
  
  .container {
    max-width: none;
    width: 100%;
  }
  
  .service-card,
  .team-member,
  .testimonial-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-card .service-icon,
  .team-photo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Landscape Mobile Orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .navbar {
    padding: 0.25rem 0;
  }
} 