/* Mobile First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* No animations on mobile - respecting performance */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  /* Typography adjustments */
  .display-4 {
    font-size: 2rem;
  }
  
  h2, .h2 {
    font-size: 1.64rem;
  }
  
  .lead {
    font-size: 1.01rem;
  }
  
  /* Header adjustments */
  .navbar-brand {
    font-size: 1.21rem;
  }
  
  /* Hero section mobile */
  #hero {
    padding: 2rem 0;
    min-height: 80vh;
  }
  
  #hero .btn-success {
    width: 100%;
    margin-top: 1rem;
  }
  
  /* Card spacing */
  .card {
    margin-bottom: 1rem;
  }
  
  /* Team images */
  #team img {
    width: 80px;
    height: 80px;
    margin-bottom: 0.66rem;
  }
  
  /* Process section mobile */
  #process .bg-success {
    width: 40px;
    height: 40px;
    font-size: 0.91rem;
  }
  
  /* Gallery grid mobile */
  #gallery .col-6 {
    padding: 0.25rem;
  }
  
  /* Form adjustments */
  .form-control {
    padding: 0.5rem;
  }
  
  /* Footer mobile */
  #footer .col-lg-4 {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  /* Section padding mobile */
  section {
    padding: 2rem 0;
  }
  
  /* Icon sizes mobile */
  .fa-3x {
    font-size: 2rem !important;
  }
  
  .fa-2x {
    font-size: 1.53rem !important;
  }
  
  /* Card hover effects disabled on mobile */
  .card:hover {
    transform: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Disable animations on small mobile devices */
  @media (prefers-reduced-motion: no-preference) {
    * {
      animation-duration: 0.63s !important;
      transition-duration: 0.76s !important;
    }
  }
  
  .display-4 {
    font-size: 2.26rem;
  }
  
  #hero {
    min-height: 85vh;
  }
  
  #team img {
    width: 100px;
    height: 100px;
  }
  
  #process .bg-success {
    width: 50px;
    height: 50px;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .display-4 {
    font-size: 2.33rem;
  }
  
  #hero {
    min-height: 90vh;
  }
  
  /* Card columns for tablet */
  #services .col-md-6 {
    margin-bottom: 1.60rem;
  }
  
  #team img {
    width: 110px;
    height: 110px;
  }
  
  /* Tablet navigation */
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-item {
    margin: 0.25rem 0;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Full animations enabled on desktop */
  .card:hover {
    transform: translateY(-5px);
  }
  
  #hero {
    min-height: 100vh;
  }
  
  /* Desktop specific spacing */
  section {
    padding: 5rem 0;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  /* Enhanced animations for large screens */
  .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.1);
  }
  
  #hero::before {
    width: 400px;
    height: 400px;
  }
  
  /* Larger team images on big screens */
  #team img {
    width: 140px;
    height: 140px;
  }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  #hero {
    min-height: 80vh;
    padding: 1rem 0;
  }
  
  section {
    padding: 2rem 0;
  }
  
  .display-4 {
    font-size: 2rem;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for retina displays */
  .card-img-top,
  #team img,
  #gallery img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Print Styles */
@media print {
  .navbar,
  #footer,
  .btn,
  .fa {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
    overflow-x: hidden;
}
  
  .card {
    border: 1px solid #dacacb;
    break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    break-after: avoid;
  }
}

/* Accessibility Improvements */
@media (prefers-contrast: high) {
  :root {
    --primary-green: #0a4018;
    --text-charcoal: #000000;
    --background-cream-light: #ffffff;
  }
  
  .card {
    border: 2px solid var(--primary-green);
  }
}

/* Dark Mode Support */

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

/* Reduced Motion Specific Overrides */
@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }
  
  #hero .btn-success:hover {
    transform: none;
  }
  
  #team img:hover,
  #gallery img:hover {
    transform: none;
  }
}

/* Mobile Menu Improvements */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--background-cream-light);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 0.66rem;
    box-shadow: 0 9px 6px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--background-cream-dark);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Container Adjustments for Very Small Screens */
@media (max-width: 320px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .card {
    margin-bottom: 0.82rem;
  }
  
  .btn {
    font-size: 1.00rem;
    padding: 0.5rem 1rem;
  }
} 