/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* No animations on mobile per requirements */
  .sal-animate {
    animation: none;
    transform: none;
    opacity: 1;
  }
  
  /* Typography */
  .display-4 {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  
  .lead {
    font-size: 0.95rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  h4 {
    font-size: 1.1rem;
  }
  
  h5 {
    font-size: 1rem;
  }
  
  /* Spacing */
  .py-5 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .mb-5 {
    margin-bottom: 2rem;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-toggler {
    padding: 0.25rem 0.5rem;
    border: none;
  }
  
  .navbar-collapse {
    margin-top: 1rem;
  }
  
  .nav-link {
    padding: 0.5rem 0;
    font-size: 0.95rem;
  }
  
  /* Hero Section */
  #hero {
    min-height: 70vh;
    padding-top: 2rem;
  }
  
  #hero .container {
    text-align: center;
  }
  
  #hero .col-lg-6:last-child {
    margin-top: 2rem;
  }
  
  /* Cards */
  .card {
    margin-bottom: 1.5rem;
  }
  
  .card-body {
    padding: 1.25rem;
    overflow-x: hidden;
}
  
  .card-img-top {
    height: 180px;
  }
  
  /* Buttons */
  .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
  }
  
  .btn-lg {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
  
  /* Forms */
  .form-control {
    font-size: 0.95rem;
    padding: 0.6rem 0.75rem;
  }
  
  /* Team Section */
  .team-member-photo {
    width: 80px;
    height: 80px;
  }
  
  /* Gallery */
  #gallery .col-lg-3 {
    margin-bottom: 1rem;
  }
  
  /* Footer */
  #footer .col-lg-4 {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  /* Process Steps */
  .process-step::after {
    display: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography adjustments */
  .display-4 {
    font-size: 2rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  /* Hero adjustments */
  #hero {
    min-height: 80vh;
  }
  
  /* Card adjustments */
  .card-img-top {
    height: 190px;
  }
  
  /* Team photos */
  .team-member-photo {
    width: 100px;
    height: 100px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Typography */
  .display-4 {
    font-size: 2.25rem;
  }
  
  /* Hero Section */
  #hero {
    min-height: 90vh;
  }
  
  /* Cards */
  .card-img-top {
    height: 200px;
  }
  
  /* Services grid */
  .service-grid .col-md-6:nth-child(odd) {
    padding-right: 0.75rem;
  }
  
  .service-grid .col-md-6:nth-child(even) {
    padding-left: 0.75rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Fine-tune spacing for large screens */
  .py-5 {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
  
  /* Card hover effects enabled */
  .card:hover {
    transform: translateY(-8px);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Maximum content width */
  .container {
    max-width: 1140px;
  }
  
  /* Enhanced spacing */
  .py-5 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  
  /* Typography for large screens */
  .display-4 {
    font-size: 2.75rem;
  }
  
  .lead {
    font-size: 1.2rem;
  }
  
  /* Enhanced card effects */
  .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  }
}

/* Print Styles */
@media print {
  /* Hide navigation and interactive elements */
  .navbar,
  .btn,
  #footer,
  .breadcrumb {
    display: none;
  }
  
  /* Optimize text for print */
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: black;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black;
    page-break-after: avoid;
  }
  
  /* Remove backgrounds for print */
  * {
    background: white;
    color: black;
  }
  
  /* Ensure content fits on page */
  .container {
    width: 100%;
    max-width: none;
  }
}

/* High DPI / Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for high DPI displays */
  .card-img-top,
  .team-member-photo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Landscape Mobile Orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
  /* Adjust hero for landscape mobile */
  #hero {
    min-height: 60vh;
  }
  
  /* Compact navigation */
  .navbar {
    padding: 0.5rem 0;
  }
  
  /* Reduce vertical spacing */
  .py-5 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations and transitions */
  * {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }
  
  /* Remove hover effects that use transform */
  .card:hover,
  .btn:hover {
    transform: none;
  }
}

/* Dark Mode Support (if user prefers) */

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    padding: 1rem 0.5rem;
  }
  
  /* Remove hover effects on touch devices */
  .card:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .btn:hover {
    transform: none;
  }
} 