/* Responsive Design - Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-desc {
    font-size: 1rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  h1 {
    font-size: 1.875rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.375rem;
  }
  
  .section-padding {
    padding: 6rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .team-photo {
    width: 140px;
    height: 140px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .section-padding {
    padding: 7rem 0;
  }
  
  .contact-form {
    padding: 3rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 4.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* Disable autoplay and effects on mobile for Swiper */
@media (max-width: 767.98px) {
  .swiper-wrapper {
    transform: none !important;
  }
  
  .swiper-slide {
    transition: none !important;
  }
  
  .swiper-pagination {
    display: none;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .hero-shape,
  .btn {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    background: none !important;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
  
  body {
  overflow-x: hidden !important;
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  p, li {
    orphans: 2;
    widows: 2;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--gray-800);
  }
  
  .btn-primary {
    background: var(--gray-900);
    color: var(--white);
  }
  
  .service-card,
  .team-card,
  .testimonial-card {
    border: 2px solid var(--gray-800);
  }
}

/* Dark mode preference (even though excluded from design) */
@media (prefers-color-scheme: dark) {
  /* Keep light theme regardless of system preference */
  body {
  overflow-x: hidden !important;
    background-color: var(--white);
    color: var(--gray-800);
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
} 