/* Mobile First Responsive Design */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-title {
    font-size: 3.13rem;
  }
  
  .section-title {
    font-size: 2.39rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero-title {
    font-size: 3.63rem;
  }
  
  .hero-subtitle {
    font-size: 1.55rem;
  }
  
  .section-title {
    font-size: 2.63rem;
  }
  
  .services-card {
    margin-bottom: 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Disable Swiper autoplay and effects on mobile */
  .swiper-slide {
    transition: none !important;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-title {
    font-size: 4.04rem;
  }
  
  .hero-subtitle {
    font-size: 1.82rem;
  }
  
  .section-title {
    font-size: 3.13rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .team-member img {
    width: 180px;
    height: 180px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 4.52rem;
  }
  
  .section-padding {
    padding: 5rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Mobile specific styles (below 768px) */
@media (max-width: 767.98px) {
  .navbar-brand {
    font-size: 1.38rem !important;
  }
  
  .hero-title {
    font-size: 2.12rem;
  }
  
  .hero-subtitle {
    font-size: 1.08rem;
  }
  
  .section-title {
    font-size: 1.82rem;
  }
  
  .section-subtitle {
    font-size: 1.08rem;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
  
  .services-card-body {
    padding: 1rem;
  }
  
  .services-card-title {
    font-size: 1.13rem;
  }
  
  .price-card {
    padding: 1.5rem;
  }
  
  .price-card-name {
    font-size: 1.38rem;
  }
  
  .price-card-price {
    font-size: 2.12rem;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .blog-card-body {
    padding: 1rem;
  }
  
  .blog-card-title {
    font-size: 1.13rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
  }
  
  /* Disable Swiper autoplay and effects on mobile */
  .swiper {
    overflow: visible;
  }
  
  .swiper-wrapper {
    transform: none !important;
  }
  
  .swiper-slide {
    width: 100% !important;
    margin-right: 0 !important;
  }
  
  /* Stack price cards on mobile */
  .price-card.featured {
    transform: none;
    margin-top: 2.22rem;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.82rem;
  }
  
  .section-title {
    font-size: 1.55rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .services-card img {
    height: 150px;
  }
  
  .blog-card img {
    height: 150px;
  }
  
  .gallery-item img {
    height: 150px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
  padding-top: 50px;
    min-height: 70vh;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-image: url('../NIJ_images/hero-bg@2x.webp');
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .swiper-pagination,
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  
  .hero-section {
  padding-top: 50px;
    min-height: auto;
    page-break-inside: avoid;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
  
  * {
    color: #000 !important;
    background: #fff !important;
  }
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
  :root {
    --primary-orange: #ff6401;
    --primary-red: #ed2b64;
    --dark-brown: #000000;
  }
  
  .btn-primary {
    border: 2px solid #000;
  }
  
  .form-control {
    border: 2px solid #000;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .services-card:hover,
  .blog-card:hover,
  .gallery-item:hover,
  .price-card:hover,
  .btn-primary:hover {
    transform: none;
  }
  
  .swiper-slide {
    transition: none !important;
  }
}

