/* Responsive Design - Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Section padding */
  .section {
    padding: 40px 0;
  }
  
  /* Hero section adjustments */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-decorative {
    display: none;
  }
  
  /* Service cards stack */
  .service-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
  
  /* Team cards */
  .team-img {
    height: 200px;
  }
  
  .team-info {
    padding: 1rem;
  }
  
  /* Price cards */
  .price-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  .price-value {
    font-size: 2.5rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Gallery adjustments */
  .gallery-img {
    height: 200px;
  }
  
  /* Footer */
  #footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
  
  /* No animations on mobile for performance */
  .service-card:hover,
  .team-card:hover,
  .blog-card:hover {
    transform: none;
  }
  
  .gallery-img:hover {
    transform: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Section padding */
  .section {
    padding: 50px 0;
  }
  
  /* Hero adjustments */
  #hero {
    min-height: 90vh;
  }
  
  /* Service cards */
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  /* Team and price cards */
  .team-card,
  .price-card {
    margin-bottom: 1.5rem;
  }
  
  /* Gallery grid */
  .gallery-img {
    height: 220px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Section padding */
  .section {
    padding: 60px 0;
  }
  
  /* Hero section */
  #hero {
    min-height: 95vh;
  }
  
  /* Service grid adjustments */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Gallery grid */
  .gallery-img {
    height: 240px;
  }
  
  /* Price card featured scaling */
  .price-card.featured {
    transform: scale(1.02);
  }
  
  /* Team cards */
  .team-img {
    height: 280px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full section padding */
  .section {
    padding: var(--section-padding);
  }
  
  /* Hero full height */
  #hero {
    min-height: 100vh;
  }
  
  /* Service grid */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Gallery optimal height */
  .gallery-img {
    height: 260px;
  }
  
  /* Team cards */
  .team-img {
    height: 300px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Container max width */
  .container {
    max-width: 1200px;
  }
  
  /* Full section padding */
  .section {
    padding: var(--section-padding);
  }
  
  /* Hero section */
  #hero {
    min-height: 100vh;
  }
  
  /* Decorative elements visible */
  .hero-decorative {
    display: block;
  }
  
  /* Service cards optimal spacing */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Gallery optimal height */
  .gallery-img {
    height: 280px;
  }
  
  /* Team cards */
  .team-img {
    height: 320px;
  }
  
  /* Price card featured scaling */
  .price-card.featured {
    transform: scale(1.05);
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  #hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for retina displays */
  .service-card,
  .team-card,
  .price-card,
  .review-card,
  .faq-card,
  .blog-card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  }
}

/* Print styles */
@media print {
  .navbar,
  #footer,
  .btn,
  .hero-decorative {
    display: none !important;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .service-card,
  .team-card,
  .price-card,
  .review-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations on mobile */
  @media (max-width: 767.98px) {
    * {
      animation: none !important;
      transition: none !important;
    }
  }
}

/* Dark mode support (if needed in future) */

body {
    overflow-x: hidden;
}