/**
 * Facilities detail-page presentation. The overview reuses projects_auto.css.
 */

/* Detail routes are virtual, so their template is selected through
 * template_include and Avada never applies its 100%-width page-template
 * classes. Without this the theme leaves a --main_padding-top gap above the
 * hero and caps the page at --site_width, boxing the full-bleed background.
 * The header overlays #main, so the padding replaces it rather than zeroing. */
#main {
  padding-top: 88px !important;
  padding-right: 0px !important;
  padding-bottom: 0px !important;
  padding-left: 0px !important;
}

#main > .fusion-row {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.dart-facility-detail {
  min-height: calc(100vh - 88px);
  background: #080b0f;
  color: #f4f7f8;
}

.dart-facility-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(12rem, 24rem) minmax(18rem, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  min-height: min(72vh, 52rem);
  padding: clamp(6rem, 12vw, 10rem) clamp(1.5rem, 8vw, 9rem) 4rem;
  background-position: center;
  background-size: cover;
}

.dart-facility-hero-without-logo {
  grid-template-columns: minmax(18rem, 1fr);
}

.dart-facility-logo {
  width: 100%;
  max-height: 18rem;
  object-fit: contain;
  filter: drop-shadow(0 1rem 2rem rgba(0, 0, 0, 0.45));
}

.dart-facility-heading h1 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 6rem);
  line-height: 0.96;
}

.dart-facility-heading p {
  max-width: 48rem;
  margin: 0;
  color: #d9f7f2;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  line-height: 1.45;
}

.dart-facility-credit {
  position: absolute;
  right: clamp(1.5rem, 4vw, 4rem);
  bottom: 1rem;
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.72;
}

.dart-facility-body {
  width: min(72rem, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 7rem) 0;
  font-size: 1.1rem;
  line-height: 1.75;
}

.dart-facility-body h2,
.dart-facility-body h3 {
  color: #7de0d4;
}

.dart-facility-body a {
  color: #7de0d4;
}

.dart-facility-back {
  margin-top: 3rem;
}

.dart-facility-back a {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border: 1px solid currentColor;
  text-decoration: none;
}

@media only screen and (max-width: 1023px) {
  #main {
    padding-top: 74px !important;
  }

  .dart-facility-detail {
    min-height: calc(100vh - 74px);
  }
}

@media only screen and (max-width: 760px) {
  .dart-facility-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: 80vh;
    padding-top: 6rem;
    text-align: center;
  }

  .dart-facility-logo {
    width: min(70vw, 18rem);
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dart-facility-detail *,
  .dart-facility-detail *::before,
  .dart-facility-detail *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
