/* ==========================================================
   INDEX PAGE SPECIFIC STYLES - Moved from inline for performance
   ========================================================== */

/* Hero Section */
.hero {
  padding-top: 80px !important;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 70px !important;
  }
}

@media (max-width: 576px) {
  .hero {
    padding-top: 60px !important;
  }
}

/* Hero Section Responsive */
@media (max-width: 991px) {
  .hero {
    min-height: 70vh !important;
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center center !important;
  }
}

/* Force scroll on mobile for better performance */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll !important;
  }
  
  .hero h1 {
    font-size: 2rem !important;
  }
  
  .hero .lead {
    font-size: 1rem !important;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 60vh !important;
    padding: 2rem 0 !important;
  }
  
  .hero h1 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  .hero .lead {
    font-size: 0.9rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
  }
  
  .row > * {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media (max-width: 575px) {
  .hero {
    min-height: 55vh !important;
    padding: 1.5rem 0 !important;
  }
  
  .hero h1 {
    font-size: 1.25rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .hero .lead {
    font-size: 0.85rem !important;
    margin-bottom: 1rem !important;
  }
  
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .row > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Prevent horizontal scroll */
img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

.container, .container-fluid {
  max-width: 100%;
}

main, section, div {
  max-width: 100%;
  overflow-x: hidden;
}

/* Section responsive */
@media (max-width: 767px) {
  section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .card {
    margin-bottom: 1rem;
  }
  
  h2, h3 {
    font-size: 1.5rem !important;
  }
  
  .lead {
    font-size: 1rem !important;
  }
}

/* Carousel responsive */
@media (max-width: 767px) {
  .carousel-inner .card {
    margin: 0 0.5rem;
    padding: 1.5rem !important;
  }
  
  .carousel-inner .card p {
    font-size: 0.95rem !important;
  }
}
