/* Mobile First Responsive Design */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Disable animations on mobile for better performance */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  .display-5 {
    font-size: 2rem;
  }
  
  .h2 {
    font-size: 1.75rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  /* Hero section mobile */
  #hero {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  #hero .container {
    text-align: center;
  }
  
  #hero .col-lg-6:first-child {
    margin-bottom: 2rem;
  }
  
  /* Button adjustments */
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Card spacing */
  .card {
    margin-bottom: 1.5rem;
  }
  
  .card-img-top {
    height: 180px;
  }
  
  /* Team member images */
  #team img {
    width: 120px !important;
    height: 120px !important;
  }
  
  /* Process steps mobile layout */
  .process-step {
    margin-bottom: 2rem;
  }
  
  /* Gallery mobile */
  #gallery .col-md-4 {
    margin-bottom: 1rem;
  }
  
  /* Contact form */
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Footer adjustments */
  #footer .col-lg-4 {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  /* Navbar mobile */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-collapse {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--neutral-light);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    text-align: center;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .card-img-top {
    height: 200px;
  }
  
  #team img {
    width: 130px !important;
    height: 130px !important;
  }
  
  /* Two columns for services on small tablets */
  .services-grid .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .card-img-top {
    height: 220px;
  }
  
  #team img {
    width: 140px !important;
    height: 140px !important;
  }
  
  /* Hero section tablet */
  #hero {
    min-height: 90vh;
  }
  
  /* Process steps on tablet */
  .process-grid .col-lg-2 {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Standard desktop styles */
  .container {
    max-width: 960px;
  }
  
  #team img {
    width: 150px !important;
    height: 150px !important;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  /* Enhanced spacing for large screens */
  .py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
  
  /* Larger hero text */
  .display-5 {
    font-size: 3rem;
  }
  
  .lead {
    font-size: 1.25rem;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  #hero {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Sharper borders and shadows for retina displays */
  .card {
    border-width: 0.5px;
  }
  
  .btn {
    border-width: 0.5px;
  }
}

/* Dark mode support */

/* Print media queries */
@media print {
  /* Hide interactive elements */
  .navbar,
  .btn,
  #footer,
  .breadcrumb {
    display: none !important;
  }
  
  /* Adjust spacing */
  body {
    padding-top: 0;
    overflow-x: hidden;
}
  
  .py-5 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  
  /* Ensure text is readable */
  * {
    color: black !important;
    background: white !important;
  }
  
  /* Page breaks */
  .card,
  section {
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5 {
    page-break-after: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  /* Remove all animations and transitions */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus management for keyboard navigation */
@media (hover: none) {
  /* Touch devices - remove hover effects */
  .card:hover,
  .btn:hover,
  #team img:hover,
  #gallery img:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Container breakpoint customizations */
.container-fluid {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 576px) {
  .container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Utility classes for responsive design */
.mobile-only {
  display: block;
}

.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }
  
  .desktop-only {
    display: block;
  }
}

/* Responsive text alignment */
.text-center-mobile {
  text-align: center;
}

@media (min-width: 768px) {
  .text-center-mobile {
    text-align: left;
  }
}

/* Responsive margins and padding */
@media (max-width: 767.98px) {
  .mb-mobile-3 {
    margin-bottom: 1rem !important;
  }
  
  .px-mobile-2 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
} 