/* Interaction, motion, and embedded-media parity with the production Elementor build. */

:root {
  --npdc-interaction-release: 0.1.95;
}

/* Production uses a four-frame, five-second fading background slideshow. */
.home .npdc-source-hero {
  background-color: #334155;
}

.npdc-home-slider {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.npdc-home-slider::after {
  position: absolute;
  z-index: 2;
  content: "";
  inset: 0;
  background: linear-gradient(rgba(39, 54, 74, 0.7), rgba(39, 54, 74, 0.73));
}

.npdc-home-slider__slide {
  position: absolute;
  z-index: 1;
  inset: -2%;
  opacity: 0;
  background-position: center center;
  background-size: cover;
  transition: opacity 0.8s ease-in-out;
  will-change: opacity, transform;
}

.npdc-home-slider__slide.is-active {
  z-index: 2;
  opacity: 1;
  animation: npdc-ken-burns-in 20s linear both;
}

.home .npdc-source-hero__inner,
.home .npdc-source-promises {
  position: relative;
  z-index: 3;
}

.home .npdc-source-promises {
  position: absolute;
}

@keyframes npdc-ken-burns-in {
  from { transform: scale(1); }
  to { transform: scale(1.2); }
}

/* Elementor's entrance-motion vocabulary, applied by the native runtime. */
.npdc-reveal {
  --npdc-reveal-delay: 0ms;
  visibility: hidden;
  opacity: 0;
}

.npdc-reveal.npdc-reveal--visible {
  visibility: visible;
  animation-duration: 1.25s;
  animation-delay: var(--npdc-reveal-delay);
  animation-fill-mode: both;
}

.npdc-reveal--visible.npdc-reveal--fade-left { animation-name: npdc-fade-in-left; }
.npdc-reveal--visible.npdc-reveal--fade-right { animation-name: npdc-fade-in-right; }
.npdc-reveal--visible.npdc-reveal--fade-up { animation-name: npdc-fade-in-up; }
.npdc-reveal--visible.npdc-reveal--fade-down { animation-name: npdc-fade-in-down; }
.npdc-reveal--visible.npdc-reveal--slide-up { animation-name: npdc-slide-in-up; }

@keyframes npdc-fade-in-left {
  from { opacity: 0; transform: translate3d(-100%, 0, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes npdc-fade-in-right {
  from { opacity: 0; transform: translate3d(100%, 0, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes npdc-fade-in-up {
  from { opacity: 0; transform: translate3d(0, 100%, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes npdc-fade-in-down {
  from { opacity: 0; transform: translate3d(0, -100%, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes npdc-slide-in-up {
  from { visibility: visible; opacity: 1; transform: translate3d(0, 100%, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* The production chevrons live inside the link box, 21px from its right edge. */
@media (min-width: 1121px) {
  .npdc-nav__parent {
    box-sizing: content-box;
    padding-right: 23px;
  }

  .npdc-nav__parent > button {
    position: absolute;
    top: 0;
    right: 21px;
    display: grid;
    width: 11px;
    height: 24px;
    place-items: center;
  }

  .npdc-nav__parent > button svg {
    display: block;
    width: 11px;
    height: 24px;
  }
}

@media (max-width: 1120px) {
  .npdc-nav {
    justify-content: stretch;
    justify-items: stretch;
  }

  .npdc-nav__parent {
    position: relative;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .npdc-nav__parent > a {
    width: 100%;
  }

  .npdc-nav__parent > button {
    position: absolute;
    z-index: 2;
    top: 2px;
    right: 21px;
    display: grid;
    width: 43px;
    height: 40px;
    place-items: center;
  }

  .npdc-nav__parent > button svg {
    width: 11px;
    height: 24px;
  }

  .npdc-nav__parent > button[aria-expanded="true"] + .npdc-nav__submenu {
    grid-column: 1;
  }
}

/* The two words are one centered background row; the cards obscure it. */
.npdc-footer__title {
  right: 0;
  left: 0;
  z-index: 1;
  justify-content: center;
}

.npdc-footer__title span:last-child {
  color: transparent;
  opacity: 1;
  -webkit-text-stroke: 2px #f3f3f3;
}

.npdc-footer__grid {
  z-index: 2;
}

/* Production map is a full-bleed 640px band at both gate widths. */
.npdc-contact-map {
  position: relative;
  width: 100%;
  height: 640px;
  min-height: 640px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #e5e7eb;
}

.npdc-contact-map iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
}

/* The migrated Contact section already reserves production's 640px map band
   in its minimum height. Fill that slot instead of adding a second band. */
.npdc-contact-source + .npdc-contact-map {
  z-index: 1;
  margin-top: -640px;
}

@media (max-width: 820px) {
  .npdc-footer__title {
    gap: 0;
  }

  .npdc-footer__title span:last-child {
    transform: none;
    -webkit-text-stroke-width: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .npdc-home-slider__slide {
    transition: none;
  }

  .npdc-home-slider__slide.is-active {
    animation: none;
  }

  .npdc-reveal,
  .npdc-reveal.npdc-reveal--visible {
    visibility: visible;
    opacity: 1;
    animation: none;
    transform: none;
  }
}
