/* Responsive Design - Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  
  /* Hero section adjustments */
  #hero {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  /* Section padding adjustments */
  section {
    padding: 3rem 0;
  }
  
  /* Service cards */
  .service-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  /* Team photos */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Contact form */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Gallery items */
  .gallery-item img {
    height: 200px;
  }
  
  /* Price cards */
  .price-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  /* Blog cards */
  .blog-card img {
    height: 180px;
  }
  
  /* FAQ cards */
  .faq-card {
    padding: 1rem;
    margin-bottom: 0.75rem;
  }
  
  /* Review cards */
  #reviews .review-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  /* Footer adjustments */
  #footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Button adjustments */
  .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero adjustments */
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  /* Team photos */
  .team-photo {
    width: 160px;
    height: 160px;
  }
  
  /* Gallery items */
  .gallery-item img {
    height: 220px;
  }
  
  /* Service and price cards in rows */
  .service-card,
  .price-card {
    margin-bottom: 2rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero section */
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  /* Team layout adjustments */
  .team-member {
    margin-bottom: 2rem;
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  /* Gallery grid adjustments */
  .gallery-item {
    margin-bottom: 1.5rem;
  }
  
  .gallery-item img {
    height: 240px;
  }
  
  /* Service cards grid */
  .service-card {
    margin-bottom: 2rem;
  }
  
  /* Contact form layout */
  .contact-form {
    margin-top: 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Hero section full design */
  .hero-content h1 {
    font-size: 2.75rem;
  }
  
  /* Team grid layout */
  .team-member {
    margin-bottom: 2rem;
  }
  
  /* Gallery masonry effect */
  .gallery-item:nth-child(odd) img {
    height: 280px;
  }
  
  .gallery-item:nth-child(even) img {
    height: 240px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Hero section maximum design */
  .hero-content h1 {
    font-size: 3rem;
  }
  
  /* Container max width adjustments */
  .container {
    max-width: 1140px;
  }
  
  /* Gallery varied heights for visual interest */
  .gallery-item:nth-child(3n+1) img {
    height: 300px;
  }
  
  .gallery-item:nth-child(3n+2) img {
    height: 250px;
  }
  
  .gallery-item:nth-child(3n+3) img {
    height: 280px;
  }
  
  /* Service cards optimal spacing */
  .service-card {
    margin-bottom: 0;
  }
  
  /* Team layout optimization */
  .team-photo {
    width: 200px;
    height: 200px;
  }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
  
  /* Hero section for ultra wide */
  .hero-content h1 {
    font-size: 3.5rem;
  }
  
  /* Section padding for ultra wide */
  section {
    padding: 6rem 0;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  /* Reduce hero height on landscape mobile */
  #hero {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-content p {
    margin-bottom: 1rem;
  }
  
  /* Reduce section padding */
  section {
    padding: 2rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure images look crisp on retina displays */
  .team-photo,
  .gallery-item img,
  .blog-card img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  /* Hide unnecessary elements for print */
  #header,
  #footer,
  .btn,
  .contact-form {
    display: none;
  }
  
  /* Adjust colors for print */
  * {
    background: white !important;
    color: black !important;
  }
  
  /* Ensure proper page breaks */
  section {
    page-break-inside: avoid;
    page-break-after: auto;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* Accessibility improvements for larger text */
@media (min-width: 1px) {
  /* Ensure minimum touch target sizes */
  .btn,
  .nav-link,
  a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Improve focus indicators */
  .btn:focus,
  .nav-link:focus,
  .form-control:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Reduced motion preferences - Override animations */
@media (prefers-reduced-motion: reduce) {
  /* Remove all transitions and animations */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Remove hover effects that rely on transform */
  .service-card:hover,
  .price-card:hover,
  .blog-card:hover,
  .gallery-item:hover img {
    transform: none !important;
  }
  
  /* Simplify decorative elements */
  #hero::before {
    display: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  /* Increase contrast for better visibility */
  .service-card,
  .price-card,
  .blog-card,
  .faq-card,
  .review-card {
    border: 2px solid var(--dark-gray);
  }
  
  /* Ensure text has sufficient contrast */
  p,
  .section-subtitle {
    color: var(--black);
  }
  
  /* Make buttons more prominent */
  .btn {
    border-width: 2px;
  }
} 

body {
    overflow-x: hidden;
}