/* CLS and performance fixes */

.hero-section {
  contain: layout style paint;
}

.hero-section .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.site-navbar {
  background-color: #08003c !important;
}

.navbar-brand {
  width: 110px;
  height: 50px;
}

.navbar-brand .logo {
  width: 110px;
  height: 50px;
  object-fit: contain;
}

.navbar-toggler {
  outline: 0 !important;
  contain: layout;
}

.navbar,
.navbar-collapse {
  contain: layout;
}

.navbar > .container {
  flex-wrap: nowrap;
  min-height: 50px;
}

.breadcrumb-section,
.page-title-area,
.breadcrumb-area {
  min-height: 400px;
  overflow: hidden;
  position: relative;
  background-color: #08003c;
  contain: layout paint;
}

.breadcrumb-section picture,
.breadcrumb-hero-img,
.page-title-area > img,
.breadcrumb-area > img {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
}

img[loading="lazy"]:not(.lcp-candidate):not(.hero-bg-img):not(.logo) {
  content-visibility: auto;
}

.overview-section {
  position: relative;
  z-index: 1;
  background-color: #fff;
  isolation: isolate;
}

.overview-section .feature-list-item {
  color: #212529 !important;
}

.footer-wrapper a.text-muted-light,
.footer-wrapper .text-muted-light {
  color: rgba(255, 255, 255, 0.78);
}

.footer-wrapper a.text-muted-light:hover {
  color: #fff;
}

.footer-logo .site-logo {
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Compositor-friendly hover motion */
.service-card:hover,
.feature-card:hover,
.blog-card:hover,
.card:hover {
  transform: translate3d(0, -5px, 0);
}

.overview-section .features-list li:hover .feature-list-item {
  transform: translate3d(5px, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .service-card:hover,
  .feature-card:hover,
  .blog-card:hover,
  .card:hover,
  .overview-section .features-list li:hover .feature-list-item {
    transform: none;
  }
}
