/* Responsive Styles - Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* NO animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  /* Section padding */
  .section {
    padding: 40px 0;
  }
  
  /* Hero section */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-decorative {
    display: none;
  }
  
  /* Cards spacing */
  .service-card,
  .feature-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card {
    margin-bottom: 2rem;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2rem 1rem;
  }
  
  /* Navbar brand */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* Gallery images */
  .gallery-image {
    height: 200px;
  }
  
  /* Process and feature numbers */
  .process-number,
  .feature-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  /* Team photos */
  .team-photo {
    width: 120px;
    height: 120px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* NO animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  .section {
    padding: 50px 0;
  }
  
  #hero {
    min-height: 85vh;
  }
  
  .hero-decorative {
    width: 150px;
    height: 150px;
  }
  
  .service-card,
  .price-card {
    margin-bottom: 2rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .gallery-image {
    height: 220px;
  }
  
  .process-number,
  .feature-number {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .section {
    padding: 60px 0;
  }
  
  #hero {
    min-height: 90vh;
  }
  
  .hero-decorative {
    width: 180px;
    height: 180px;
  }
  
  .service-card,
  .price-card {
    margin-bottom: 2rem;
  }
  
  .gallery-image {
    height: 240px;
  }
  
  /* Two column layout for some sections */
  .faq-card {
    margin-bottom: 1rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .section {
    padding: 70px 0;
  }
  
  #hero {
    min-height: 95vh;
  }
  
  .gallery-image {
    height: 250px;
  }
  
  /* Three column layouts work well */
  .service-card,
  .price-card,
  .review-card {
    margin-bottom: 2rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .section {
    padding: var(--section-padding);
  }
  
  #hero {
    min-height: 100vh;
  }
  
  .hero-decorative {
    width: 200px;
    height: 200px;
  }
  
  .gallery-image {
    height: 250px;
  }
  
  /* Full layout capabilities */
  .container {
    max-width: var(--container-max-width);
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  #hero {
    min-height: 100vh;
    padding-top: 60px;
  }
  
  .section {
    padding: 40px 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .gallery-image,
  .service-image,
  .team-photo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  #header,
  #footer {
    display: none;
  }
  
  .section {
    padding: 20px 0;
    page-break-inside: avoid;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .review-card {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-decorative {
    display: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .service-card,
  .price-card,
  .team-card,
  .review-card,
  .case-card,
  .faq-card,
  .blog-card {
    border: 2px solid var(--neutral-dark);
  }
  
  .btn-primary {
    border: 2px solid var(--accent-dark);
  }
  
  .form-control {
    border: 2px solid var(--neutral-dark);
  }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Ensure minimum touch target size */
@media (pointer: coarse) {
  .btn,
  .nav-link,
  .navbar-toggler {
    min-height: 44px;
    min-width: 44px;
  }
} 

body {
    overflow-x: hidden;
}