/* Responsive CSS - BreadCraft Template */
/* Mobile-first responsive design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .display-4 {
    font-size: 2rem !important;
  }
  
  .lead {
    font-size: 1rem !important;
  }
  
  .navbar-brand {
    font-size: 1.1rem !important;
  }
  
  .btn-lg {
    padding: 12px 25px !important;
    font-size: 1rem !important;
  }
  
  /* Hero section adjustments */
  #hero {
    min-height: 80vh;
    padding-top: 80px;
  }
  
  .hero-decoration {
    display: none;
  }
  
  /* Card spacing */
  .card {
    margin-bottom: 1.5rem;
  }
  
  /* Remove hover effects on mobile */
  .card:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  #gallery img:hover {
    transform: none;
  }
  
  /* Typography adjustments */
  h1, .h1 {
    font-size: 1.8rem !important;
  }
  
  h2, .h2 {
    font-size: 1.6rem !important;
  }
  
  h3, .h3 {
    font-size: 1.4rem !important;
  }
  
  h4, .h4 {
    font-size: 1.2rem !important;
  }
  
  /* Form adjustments */
  .form-control {
    padding: 10px 12px;
  }
  
  /* Step numbers */
  .step-number {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.2rem !important;
  }
  
  /* Problem icons */
  .problem-icon {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.2rem !important;
  }
  
  /* Navigation adjustments */
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  /* Footer adjustments */
  #footer .col-lg-4 {
    margin-bottom: 2rem;
  }
  
  /* Gallery grid */
  #gallery .col-md-4 {
    margin-bottom: 1rem;
  }
  
  /* Team cards */
  .card-img-top {
    height: 200px;
  }
  
  /* Icon sizes */
  .fa-3x {
    font-size: 2rem !important;
  }
  
  .fa-2x {
    font-size: 1.5rem !important;
  }
  
  /* Disable animations on mobile for performance */
  * {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .display-4 {
    font-size: 2.2rem !important;
  }
  
  .navbar-brand {
    font-size: 1.15rem !important;
  }
  
  #hero {
    min-height: 85vh;
    padding-top: 80px;
  }
  
  .step-number,
  .problem-icon {
    width: 55px !important;
    height: 55px !important;
  }
  
  .card-img-top {
    height: 220px;
  }
  
  /* Disable animations on small screens */
  @media (prefers-reduced-motion: no-preference) {
    .card:hover {
      transform: none;
    }
    
    .btn-primary:hover {
      transform: none;
    }
    
    #gallery img:hover {
      transform: none;
    }
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .display-4 {
    font-size: 2.3rem !important;
  }
  
  #hero {
    min-height: 90vh;
  }
  
  .card-img-top {
    height: 240px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .display-4 {
    font-size: 2.5rem !important;
  }
  
  #hero {
    min-height: 100vh;
  }
  
  .card-img-top {
    height: 250px;
  }
  
  /* Enhanced hover effects for desktop */
  @media (prefers-reduced-motion: no-preference) {
    .card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
    
    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
    }
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .display-4 {
    font-size: 2.7rem !important;
  }
  
  .lead {
    font-size: 1.2rem !important;
  }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .display-4 {
    font-size: 3rem !important;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  #hero {
    min-height: 100vh;
    padding-top: 60px;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .card {
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  }
  
  .navbar {
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  }
}

/* Print styles */
@media print {
  .navbar,
  #footer,
  .btn,
  .hero-decoration {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    overflow-x: hidden;
}
  
  .card {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    break-after: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid #000;
  }
  
  .btn-primary {
    border: 2px solid #000;
  }
  
  .form-control:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.25);
  }
}

/* Dark mode support */