/* Mobile First Responsive Design */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
  /* No animations on mobile - Override all animations */
  *,
  *::before,
  *::after {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
  
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
    text-align: center;
  }
  
  .hero-decoration {
    display: none;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .services-card {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .review-card {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .blog-card img {
    height: 150px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    min-height: 80vh;
  }
  
  h1 {
    font-size: 1.875rem;
  }
  
  h2 {
    font-size: 1.625rem;
  }
  
  .services-card {
    margin-bottom: 2rem;
  }
  
  .team-photo {
    width: 140px;
    height: 140px;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .services-card {
    margin-bottom: 2rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .container {
    max-width: 1140px;
  }
}

/* Print styles */
@media print {
  .hero-decoration,
  .navbar,
  .footer {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black !important;
    background: white !important;
  }
  
  .services-card,
  .review-card,
  .faq-card {
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .services-card,
  .review-card,
  .faq-card,
  .contact-form {
    border: 2px solid var(--dark-shade);
  }
  
  .btn-primary {
    border: 2px solid var(--dark-shade);
  }
}

/* Dark mode support */

/* Focus management for accessibility */
.btn:focus,
.form-control:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Ensure text is readable on all backgrounds */
.text-on-primary {
  color: var(--light-shade);
}

.text-on-light {
  color: var(--dark-shade);
}

/* Mobile navigation improvements */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--light-shade);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--neutral-light);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Ensure proper spacing on all screen sizes */
.row > [class*="col-"] {
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .row > [class*="col-"] {
    margin-bottom: 0;
  }
} 

.hero-section h1 {
    padding-top: 200px;
}
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
