/* ========================================
   RESPONSIVE CSS - Mobile First
   Bootstrap 5 Compatible Responsive Design
======================================== */

/* Mobile First Base Styles (320px+) */
@media (max-width: 575.98px) {
  /* Disable 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; }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.125rem;
  }
  
  /* Section padding */
  section {
    padding: 3rem 0;
  }
  
  /* Cards spacing */
  .card {
    margin-bottom: 1.5rem;
  }
  
  /* Team photos */
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  /* Buttons */
  .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
  
  /* Form controls */
  .form-control {
    padding: 0.5rem 0.75rem;
  }
  
  /* Navbar brand size */
  .navbar-brand {
    font-size: 1.25rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-content h1 {
    font-size: 2.75rem;
  }
  
  .container-sm {
    max-width: 540px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  /* Re-enable animations for larger screens */
  * {
    animation: unset !important;
    transition: unset !important;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content p {
    font-size: 1.25rem;
  }
  
  /* Section padding */
  section {
    padding: 4rem 0;
  }
  
  /* Team photos */
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  /* Service cards */
  .service-card {
    padding: 2.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }
  
  /* Section padding */
  section {
    padding: 5rem 0;
  }
  
  /* Team photos */
  .team-photo {
    width: 200px;
    height: 200px;
  }
  
  /* Service cards */
  .service-card {
    padding: 3rem;
  }
  
  /* Card hover effects */
  .card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-content h1 {
    font-size: 4rem;
  }
  
  /* Container max-width adjustments */
  .container-xl {
    max-width: 1140px;
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
}

/* Print Styles */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .navbar,
  .footer,
  .btn,
  form {
    display: none !important;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  img {
    max-width: 100% !important;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--color-neutral);
  }
  
  .btn {
    border-width: 2px;
  }
  
  .form-control {
    border-width: 2px;
  }
}

/* Dark mode preference (minimal support) */