/* EthiSource - Responsive Styles */
/* Mobile-first responsive design */

/* Base Mobile Styles (up to 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.84rem;
  }
  
  h3 {
    font-size: 1.38rem;
  }
  
  /* Hero section mobile */
  #hero {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  #hero .btn {
    width: 100%;
    margin-top: 1rem;
  }
  
  /* Navigation mobile */
  .navbar-brand {
    font-size: 1.22rem !important;
  }
  
  .navbar-nav {
    text-align: center;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }
  
  /* Sections mobile */
  section {
    padding: 2rem 0;
  }
  
  /* Cards mobile */
  .card {
    margin-bottom: 1.72rem;
  }
  
  /* Form mobile */
  .btn {
    width: 100%;
  }
  
  /* Team member images */
  .rounded-circle {
    width: 120px !important;
    height: 120px !important;
  }
  
  /* Process steps mobile */
  .bg-primary.text-white.rounded-circle {
    width: 50px !important;
    height: 50px !important;
  }
  
  /* Contact info mobile */
  #contacts .row > div {
    margin-bottom: 2rem;
  }
  
  /* Footer mobile - Enhanced contrast */
  #footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
  }
  
  #footer .col-md-4 {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  #footer h5 {
    color: #ffffff !important;
    font-size: 1.3rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  #footer p {
    color: #ecf0f1 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }
  
  #footer a.text-light {
    color: #bdc3c7 !important;
    font-size: 1rem !important;
  }
  
  #footer a.text-light:hover {
    color: #3498db !important;
  }
  
  /* Gallery mobile - single column */
  #gallery .col-md-4 {
    margin-bottom: 1rem;
  }
  
  /* No animations on mobile to respect reduced motion */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  .card:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  #gallery img:hover {
    transform: none;
  }
}

/* Small tablets (576px to 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero adjustments */
  #hero {
    min-height: 85vh;
  }
  
  /* Typography */
  h1 {
    font-size: 2.35rem;
  }
  
  /* Team grid adjustment */
  .col-lg-2-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  /* Process steps */
  .bg-primary.text-white.rounded-circle {
    width: 55px !important;
    height: 55px !important;
  }
}

/* Medium tablets (768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero section */
  #hero {
    min-height: 90vh;
  }
  
  /* Team layout - 3 columns on tablets */
  .col-lg-2-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  /* Services grid - 2 columns */
  #services .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  /* Features grid - 2 columns */
  #eacf9ftures .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Large screens (992px to 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Team custom grid - 5 columns */
  .col-lg-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
  }
  
  /* Container adjustments */
  .container {
    max-width: 960px;
  }
}

/* Extra large screens (1200px and up) */
@media (min-width: 1200px) {
  /* Team custom grid - 5 columns */
  .col-lg-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
  }
  
  /* Hero section full height */
  #hero {
    min-height: 100vh;
  }
  
  /* Enhanced spacing */
  section {
    padding: 5rem 0;
  }
  
  /* Container max width */
  .container {
    max-width: 1140px;
  }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Enhanced typography */
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.57rem;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  #hero {
    min-height: 120vh;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .card-img-top,
  #gallery img,
  .rounded-circle {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn {
    padding: 1rem 2rem;
    font-size: 1.25rem;
  }
  
  .nav-link {
    padding: 1rem;
  }
  
  /* Remove hover effects on touch devices */
  .card:hover,
  .btn:hover,
  #gallery img:hover {
    transform: none;
    box-shadow: inherit;
  }
}

/* Dark mode support */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  /* Disable 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;
  }
  
  /* Remove floating animation */
  #hero::before {
    animation: none;
  }
}

/* Print styles */
@media print {
  /* Hide non-essential elements */
  .navbar,
  #footer,
  .btn,
  #hero::before {
    display: none !important;
  }
  
  /* Optimize layout for print */
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
    overflow-x: hidden;
}
  
  .container {
    width: 100% !important;
    max-width: none !important;
  }
  
  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .card {
    border: 1px solid #000;
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5 {
    color: #000;
    page-break-after: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
  /* High contrast mode */
  .card {
    border-width: 2px;
    border-color: #000;
  }
  
  .btn {
    border-width: 2px;
  }
  
  .form-control {
    border-width: 2px;
  }
  
  /* Footer high contrast */
  #footer {
    background: #000000 !important;
    color: #ffffff !important;
    border-top: 3px solid #ffffff !important;
  }
  
  #footer h5 {
    color: #ffffff !important;
    border-bottom: 2px solid #ffffff !important;
  }
  
  #footer p {
    color: #ffffff !important;
  }
  
  #footer a.text-light {
    color: #ffffff !important;
    text-decoration: underline !important;
  }
  
  #footer a.text-light:hover {
    background: #ffffff !important;
    color: #000000 !important;
  }
}

/* Focus improvements for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .nav-link:focus,
  .form-control:focus {
    transition: outline 0.60s ease;
  }
} 