/*******************
* Home Hero Basic Rotating Module
********************/

/* Inline Hero/"Above fold" CSS for CLS improvements */

/** Main container styles **/
.home-hero {
  position: relative;
  padding-top: 0;
}


/*******************
* Sticky bottom border
* -------------------
* Renders the brand border-image at the bottom of the hero. The element
* sits absolutely at the bottom of the .home-hero container by default.
* Once the user scrolls far enough that the border's natural position
* reaches the bottom edge of the fixed site header, module.js adds the
* .is-stuck modifier which switches the element to position:fixed and
* pins it directly under the header. position:sticky was tried first
* but breaks because at least one ancestor (DnD section / column /
* body wrappers) has an overflow value other than visible, which kills
* the sticky containing block. The JS approach avoids that entirely.
* Replaces the previous scrolled-state border that lived on the
* homepage header itself.
********************/

.home-hero__sticky-border {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 5;
  width: 100%;
  height: 10px;
  pointer-events: none;
  background-image: url("/hubfs/21499432/border-bottom.png");
  background-repeat: no-repeat;
  background-position: bottom center;
  /* Stretch to fill the 10px box - prevents the transparent gap that
     `auto` produces on narrow viewports where the image scales down
     proportionally and leaves dead space above the colored line. */
  background-size: 100% 100%;
}

@media (min-width: 64rem) /* 1024px */ {
  .home-hero__sticky-border {
    /* On desktop the image's natural ratio is large enough that
       100% auto matches the box height, so we let it preserve its
       aspect ratio there. */
    background-size: 100% auto;
  }
}

.home-hero__sticky-border.is-stuck {
  position: fixed;
  bottom: auto;
  /* `top` is set inline by module.js based on the live header height */
}

@media (min-width: 64rem) /* 1024px */ {
  .home-hero {
    padding-bottom: 0;
    margin-bottom: 3.125rem;
    /*margin-top: -113px;*/
  }
}

@media (max-width: 64rem) /* 1024px */ {
  .home-hero__swiper:not(.swiper-initialized) {
    overflow: hidden; 
  }
  .home-hero__swiper:not(.swiper-initialized).no-slide {
    max-height: none;
  }
}

.home-hero .content-container {
  margin: 0 auto;  
}

/** Slide wrapper and item styles **/
.home-hero__slide-wrap {
  position: relative;
  margin: 0;
  padding: 0;
}

.home-hero__slide-item {
  position: relative;
   /* min-height: 45rem;Keep full height on all screen sizes */
}

@media (min-width: 64rem) /* 1024px */ {
  .home-hero__slide-item {
    /*min-height: 62.5rem;*/
  }
}

/** Slide media styles **/
.home-hero__slide-media {
  position: relative;  
  border-radius: 0rem;
  overflow: hidden;
  /*height: 45rem;*/ /* Full height on all screen sizes - crops left/right on mobile */
}

.home-hero__slide-media--is-video {
  background-color: #122A3D;
  isolation: isolate;
  transition: background-color 0.25s ease-out;
}

.home-hero__slide-media--is-video.is-video-shifting,
.home-hero__slide-media--is-video.is-video-ready {
  background-color: #000;
}

@media (min-width: 48rem) /* 768px */ {
  .home-hero__slide-media--is-video {
    aspect-ratio: 16/9;
  }
}


@media (min-width: 64rem) /* 1024px */ {
  .home-hero__slide-media:before,
  .home-hero__slide-media:after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    border-radius: 0rem;
    pointer-events: none;
  }

  .home-hero__slide-media--is-video:before,
  .home-hero__slide-media--is-video:after {
    opacity: 0;
    transition: opacity 0.2s ease-out;
    transition-delay: 0s;
  }

  .home-hero__slide-media--is-video.is-video-ready:before,
  .home-hero__slide-media--is-video.is-video-ready:after {
    opacity: 1;
    transition-delay: 0.25s;
  }

  /* Main overlay — full height, sits in front */
  .home-hero__slide-media:before {
    top: 0;
    height: 100%;
    z-index: 4;
  }

  /* Bottom overlay — height set inline, sits behind main gradient */
  .home-hero__slide-media:after {
    bottom: 0;
    top: auto;
    z-index: 3;
  }
}

/** Mobile top scrim — keeps header/logo readable over video **/
@media (max-width: 63.9375rem) /* Below 1024px */ {
  .home-hero__slide-media::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15%;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(18, 42, 61, 0.88) 0%,
      rgba(18, 42, 61, 0.45) 55%,
      rgba(18, 42, 61, 0) 100%
    );
  }

  .home-hero__slide-media--is-video::before {
    opacity: 1;
  }
}

/** Image styles **/
.home-hero__slide-image {
  position: absolute;
  border-radius: 0rem;
  margin-bottom: -7px;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

/** Video styles **/
.home-hero__video-wrap {
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.home-hero__slide-media--is-video .home-hero__video-wrap {
  opacity: 0;
  background-color: transparent;
  transition: opacity 0.2s ease-out;
  transition-delay: 0s;
}

.home-hero__slide-media--is-video.is-video-ready .home-hero__video-wrap {
  opacity: 1;
  transition-delay: 0.25s;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__slide-media--is-video,
  .home-hero__slide-media--is-video:before,
  .home-hero__slide-media--is-video:after,
  .home-hero__slide-media--is-video .home-hero__video-wrap {
    transition: none;
  }

  .home-hero__slide-media--is-video.is-video-ready .home-hero__video-wrap,
  .home-hero__slide-media--is-video.is-video-ready:before,
  .home-hero__slide-media--is-video.is-video-ready:after {
    transition-delay: 0s;
  }
}

/* HubSpot player chrome — navy while loading, hidden controls until fade */
.home-hero__slide-media--is-video:not(.is-video-ready) .home-hero__video-wrap > div,
.home-hero__slide-media--is-video:not(.is-video-ready) .hs-video-wrapper,
.home-hero__slide-media--is-video:not(.is-video-ready) .hs-video-widget,
.home-hero__slide-media--is-video:not(.is-video-ready) .hs-video-widget .video-container {
  background-color: #122A3D !important;
}

.home-hero__slide-media--is-video:not(.is-video-ready) .hs-video-widget .vjs-big-play-button,
.home-hero__slide-media--is-video:not(.is-video-ready) .hs-video-widget .hs-video-loader,
.home-hero__slide-media--is-video:not(.is-video-ready) .hs-video-widget .hs-video-loading-spinner,
.home-hero__slide-media--is-video:not(.is-video-ready) .hs-video-widget [class*="loading"],
.home-hero__slide-media--is-video:not(.is-video-ready) .hs-video-widget [class*="spinner"] {
  visibility: hidden !important;
  opacity: 0 !important;
}

@media (min-width: 64rem)  {
  .home-hero__video-wrap {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    padding: 56.25% 0 0 0;
  }
}

.home-hero__video,
.home-hero__video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0rem;
}

/* HubSpot video player outputs a wrapper div – make it fill the hero video area */
.home-hero__video-wrap > div,
.home-hero__video-wrap .hs-video-wrapper {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
}

.home-hero__video-wrap .hs-video-wrapper iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/** Info toggle button styles **/
.home-hero__info-toggle {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  z-index: 5;
  padding: 0;
  border: none;
  background-color: transparent;
}

@media (min-width: 75rem) /* 1200px */ {
  .home-hero__info-toggle {
    bottom: 0.2rem;
  }
}

.home-hero__info-toggle .icon {
  width: 1.5rem;
  height: 1.5rem;
}

/** Background video play/pause control **/
.home-hero__video-toggle {
  position: absolute;
  bottom: 1.5rem; /* 24px — sits above the info toggle zone */
  left: 0.5rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0.75;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

@media (min-width: 75rem) /* 1200px */ {
  .home-hero__video-toggle {
    bottom: 1.25rem; /* 20px */
  }
}

.home-hero__video-toggle:hover,
.home-hero__video-toggle:focus {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.5);
  outline: none;
}

.home-hero__video-toggle .icon {
  width: 0.875rem;
  height: 0.875rem;
  fill: currentColor;
}

.home-hero__video-toggle .icon-play {
  display: none;
}

.home-hero__video-toggle .icon-pause {
  display: block;
}

.home-hero__video-toggle[aria-pressed="false"] .icon-play {
  display: block;
}

.home-hero__video-toggle[aria-pressed="false"] .icon-pause {
  display: none;
}

/** Info container styles **/
.home-hero__info-container {
  display: none;
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 5;
  max-width: 90%;
  width: auto;
  border-radius: 0rem;
  padding: 1rem;
  background-color: #fff;
}

.home-hero__info-text {
  color: #000;
}

.home-hero__info-container.open {
  display: block;
}

/** Slide content styles **/
.home-hero__slide-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
  color: #fff;
  box-sizing: border-box;
  background:#122A3D;
}

.home-hero--white-bg .home-hero__slide-content {
  color: #000;  
}

.home-hero__slide-content-wrap {
  max-width:calc(90rem + 2.5rem);
  width:100%;
  padding:0 1.25rem;
  margin:0 auto;
}

@media (min-width: 64rem) /* 1024px */ {
  .home-hero__slide-content {
    width: 100%;
    min-width: 31.25rem;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    background: transparent;
    pointer-events: none;
  }

  .home-hero__slide-content-wrap,
  .home-hero__slide-content a,
  .home-hero__slide-content button {
    pointer-events: auto;
  }

  .home-hero__video-toggle,
  .home-hero__info-toggle {
    pointer-events: auto;
  }
  
  .home-hero--white-bg .home-hero__slide-content {
    color: #fff;  
  }

  .hero-slide--light .home-hero__slide-content {
    color: #000;
  }
}

/** Title styles **/
.home-hero__slide-title { 
  margin: 1.563rem 0 1.563rem .25rem; 
  font-size: clamp(2.5rem, 5vw, 6rem);   /* smaller + responsive */
  line-height: 1;
}

@media (min-width: 64rem) {
  .home-hero__slide-title { 
    margin: 0 0 1rem;
  }
}

/** Text styles **/
.home-hero__slide-text {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  line-height: 1.5rem;
}

/** Button styles **/
@media (min-width: 64rem) /* 1024px */ {
  .home-hero__slide-buttons {
    display: flex;
    gap: 20px;
  }
}

.home-hero__slide-buttons .button {
  display: inline-block;
  width: auto;
  margin-bottom: 20px;
  border-color: #e06d3a !important;
  color: #122A3D !important;
  background-color:#e06d3a !important;
}

.home-hero__slide-buttons .button:hover,
.home-hero__slide-buttons .button:focus {
  color: #122A3D !important;
  background-color: #fff !important;
  border-color: #E06D3A !important;
}

@media (min-width: 64rem) /* 1024px */ {
  .home-hero__slide-buttons .button {
    display: inline-block;
    width: auto;
    margin-bottom: 0;
  }
}

/** Theme variations **/
.hero-slide--dark .home-hero__slide-content {
  color: #fff;  
}

@media (min-width: 64rem) /* 1024px */ {
  .hero-slide--dark .home-hero__slide-content {
    color: #fff;  
  }
  
  .hero-slide--dark .button--ghost {
    color: #fff;
  }

  .hero-slide--dark .button--ghost:hover, 
  .hero-slide--dark .button--ghost:focus {
    color: #000;
  }
}

/** Controls styles **/
.home-hero__controls {
  display: flex;
  align-items: center;
}

@media (min-width: 64rem) /* 1024px */ {
  .home-hero__controls {
    position: absolute;
    bottom: 18%;
    left: 8.125rem;
    z-index: 3;
  }
}

/** Pagination styles **/
.home-hero__paging {
  position: static !important;
  padding: 0 1rem;
}

.home-hero .swiper-pagination-bullet {
  background-color: #fff !important;
  transition: width .3s;
}

.home-hero .home-hero__controls--light .swiper-pagination-bullet {
  background-color: #000 !important;  
}  

@media (max-width: 64rem) /* 1024px */ {
  .home-hero--white-bg .swiper-pagination-bullet {
    background-color: #000 !important;
  }
}

.home-hero .swiper-pagination-bullet-active {
  width: 25px !important;
  border-radius: 5px !important;
}

/** Control button styles **/
.home-hero__control {
  position: relative !important;
  margin-top: 0 !important;
  border: 0;
  color: #fff !important;
  background-color: transparent;
}

.home-hero__controls--light .home-hero__control {
  color: #000 !important;  
}

@media (max-width: 64rem) /* 1024px */ {
  .home-hero--white-bg .home-hero__control {
    color: #000 !important;
  }
}

.home-hero__control:after {
  font-size: 1rem !important;  
}

/** Swiper fix **/
.home-hero .swiper-initialized .swiper-slide {
  opacity: 0 !important;
}

.home-hero .swiper-initialized .swiper-slide-active {
  opacity: 1 !important;
}

/*******************
* Quick Links Section
********************/

.quick-links {
  padding-top: var(--vertical-padding, 1rem);
  padding-bottom: var(--vertical-padding, 1rem);
}


