/* Custom CSS - Performance Optimizations */

/* Font Display Optimization */
@font-face {
  font-family: 'Font Awesome 5 Free';
  font-display: swap;
}

@font-face {
  font-family: 'Font Awesome 5 Brands';
  font-display: swap;
}

@font-face {
  font-family: 'simple-line-icons';
  font-display: swap;
}

/* Force font-display: swap for all fonts */
* {
  font-display: swap !important;
}

/* Critical Above-the-fold Styles */
.hero-carousel {
  min-height: 670px;
  background-color: #26262a;
}

/* Reduce CLS - Reserve space for dynamic content */
.swiper-slide {
  min-height: 670px;
}

/* Optimize image rendering */
img {
  content-visibility: auto;
}

/* Lazy load below-the-fold images */
img[loading="lazy"] {
  background-color: #f5f5f5;
}

/* Reduce paint on scroll */
.header,
.footer,
.section {
  will-change: auto;
}

/* Optimize animations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Critical font styles */
body {
  font-family: var(--font-poppins), system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Improve contrast for accessibility (fixes Lighthouse issues) */
.home-intro .learn-more,
.home-intro .learn-more a,
.footer-ribbon span {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.home-intro p,
.home-intro span {
  color: rgba(255, 255, 255, 0.95) !important;
}

#footer p.text-2,
#footer .footer-copyright p {
  color: rgba(255, 255, 255, 0.85) !important;
}

#footer a {
  color: rgba(255, 255, 255, 0.9) !important;
}

#footer input.form-control {
  background-color: #fff !important;
  color: #333 !important;
}

#footer input.form-control::placeholder {
  color: #666 !important;
}
