/* Targeted fixes only. Native CSS/assets in this project remain authoritative. */

/* Existing local hero videos should render in the existing DST background layer. */
.c-bg__media[data-ds-bg-media] {
  width: 100%;
  max-width: none;
}

/* Bot trap used by the PHP forms. */
.php-form__hp {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

/* Menu buttons must remain tappable while using the original DST mobile drawer. */
.nav-main .js-sub-menu-toggle {
  pointer-events: auto !important;
  cursor: pointer !important;
  touch-action: manipulation;
}

/* Do not let overlays steal clicks from the native service arrows. */
.tabs-v6 .dst-tabs__arrows,
.tabs-v6 .dst-tabs__arrow {
  pointer-events: auto;
}

/* The captured accordion CSS disables pointer events on <summary>; restore the actual click target. */
.haccordion-v1 .dst-hacc__summary {
  pointer-events: auto !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .dst-marquee__wrapper { animation: none !important; }
}


/* -------------------------------------------------------------
   Revision: supplied local logo
   The SVG is the source asset already present in images/logo.svg.
-------------------------------------------------------------- */
.site-header__logo .site-header__logo-svg {
  display: block;
  width: auto;
  height: 40px;
  max-width: min(25rem, 100%);
  object-fit: contain;
}
.site-footer__logo-svg {
  display: block;
  width: 180px;
  height: 40px;
  max-width: 100%;
  object-fit: contain;
}
@media (max-width: 767px) {
  .site-header__logo .site-header__logo-svg {
    height: 32px;
  }
}

/* Native DST button anatomy. This matches the existing .c-btn styles in the project. */
.gform_wrapper button.c-btn.-secondary.-default.has-icon.icon-right,
.php-form button.c-btn.-secondary.-default.has-icon.icon-right {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  min-height: var(--dst--btn-height, 5.8rem);
}
.gform_wrapper button.c-btn.-secondary.-default.has-icon.icon-right .c-btn__txt,
.php-form button.c-btn.-secondary.-default.has-icon.icon-right .c-btn__txt {
  position: relative;
  z-index: 2;
}
.gform_wrapper button.c-btn.-secondary.-default.has-icon.icon-right .c-btn__ico,
.php-form button.c-btn.-secondary.-default.has-icon.icon-right .c-btn__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}
.gform_wrapper button.c-btn.-secondary.-default.has-icon.icon-right .c-btn__ico svg,
.php-form button.c-btn.-secondary.-default.has-icon.icon-right .c-btn__ico svg {
  display: block;
  width: 3rem;
  height: 3rem;
}
.gform_wrapper button.c-btn.-secondary.-default.has-icon.icon-right .c-btn__decor,
.php-form button.c-btn.-secondary.-default.has-icon.icon-right .c-btn__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Explore Our Services: keep native scroller/icon state authoritative.
   The selected item must expose the same active state used by view_1.js. */
.tabs-v6 .dst-tabs__scroller .dst-tabs__navbar-item.is-active,
.tabs-v6 .dst-tabs__scroller .dst-tabs__navbar-item[aria-selected="true"] {
  z-index: 3;
}
.tabs-v6 .dst-tabs__scroller .dst-tabs__navbar-item.is-active .dst-tabs__icon img,
.tabs-v6 .dst-tabs__scroller .dst-tabs__navbar-item[aria-selected="true"] .dst-tabs__icon img {
  filter: brightness(0) invert(1);
}

/* Banner slider: let the existing DST component create and position its controls.
   These rules only stabilize the track/controls at the breakpoints in this page. */
.dst-banner-slider .dst-banner-slider__track.dst-slider.banner-layout {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.dst-banner-slider .dst-banner-slider__track > .dst-slider__controls,
.dst-banner-slider .dst-banner-slider__controls > .dst-slider__controls {
  position: relative;
  z-index: 20;
}
.dst-banner-slider .dst-slider__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.dst-banner-slider .dst-slider__arrows {
  flex: 0 0 auto;
}
.dst-banner-slider .dst-banner-slider__thumbs {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.dst-banner-slider .dst-banner-slider__thumbs::-webkit-scrollbar {
  display: none;
}
@media (max-width: 1112px) {
  .dst-banner-slider .dst-banner-slide {
    min-width: 100%;
  }
  .dst-banner-slider .dst-slider__controls {
    width: 100%;
  }
  .dst-banner-slider .dst-slider__nav {
    justify-content: center;
  }
}
@media (max-width: 767px) {
  .dst-banner-slider .dst-banner-slider__track.dst-slider.banner-layout {
    --custom-height: auto;
  }
  .dst-banner-slider .dst-banner-slide {
    min-width: 100%;
  }
  .dst-banner-slider .dst-banner-slider__thumbs {
    width: 100%;
  }
  .dst-banner-slider .dst-slider__arrows {
    width: 4.6rem;
    height: 4.6rem;
  }
}

/* Whitepaper lead form: one fluid row on desktop, stacked on mobile; preserve the
   existing DST input/button treatment and native hover animation. */
.whitepaper-form_wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.whitepaper-form_wrapper .whitepaper-form {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: stretch;
  gap: 1rem;
  box-sizing: border-box;
  margin: 0;
}
.whitepaper-form_wrapper .whitepaper-form .php-form__field {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
.whitepaper-form_wrapper .whitepaper-form .php-form__field input[type="email"] {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.whitepaper-form_wrapper .whitepaper-form .php-form__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  margin: 0;
}
.whitepaper-form_wrapper .whitepaper-form .php-form__submit {
  width: auto;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .whitepaper-form_wrapper .whitepaper-form {
    flex-direction: column;
    align-items: stretch;
  }
  .whitepaper-form_wrapper .whitepaper-form .php-form__actions,
  .whitepaper-form_wrapper .whitepaper-form .php-form__submit {
    width: 100%;
  }
  .whitepaper-form_wrapper .whitepaper-form .php-form__submit {
    justify-content: center;
  }
}

/* "Let's grow your brand" footer heading: the scroll-reveal script that clears
   this opacity was never ported to app.js, so the heading stays invisible.
   Neutralize the dead animation hook instead of hiding real content. */
[data-viewport-effect="animate-headings"] .c-heading {
  opacity: 1 !important;
}
