/* DSP shared nav additions: Services / Industries dropdowns.
   Built on top of the Altrum navbar; does not replace its styles. */

.dsp-has-menu {
  position: relative;
}

.dsp-submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 268px;
  padding: 10px 0;
  margin-top: 14px;
  background: rgba(11, 11, 12, .985);
  border: 1px solid #26262b;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 60;
}

/* hover bridge so the pointer can cross the gap without closing the panel */
.dsp-submenu::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
}

.dsp-submenu.dsp-wide {
  min-width: 340px;
}

.dsp-has-menu:hover > .dsp-submenu,
.dsp-has-menu:focus-within > .dsp-submenu,
.dsp-has-menu.dsp-open > .dsp-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.dsp-submenu a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 20px;
  color: #ffffff9c;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease;
}

.dsp-submenu a:hover,
.dsp-submenu a:focus-visible {
  color: #fff;
  background: #ffffff0d;
}

.dsp-submenu a[aria-current="page"] {
  color: #fff;
}

.dsp-submenu .dsp-sub-n {
  min-width: 1.6em;
  color: #ffffff45;
  font-size: .76rem;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.dsp-submenu a:hover .dsp-sub-n {
  color: #d4382c;
}

/* caret on the parent nav item */
.dsp-caret {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .5;
  transition: opacity .2s ease, transform .2s ease;
}

.dsp-has-menu:hover .dsp-caret,
.dsp-has-menu.dsp-open .dsp-caret {
  opacity: 1;
  transform: translateY(0) rotate(225deg);
}

/* ---- fullscreen (hamburger) menu sublists ---- */
.dsp-menu-sub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 26px;
  padding: 4px 0 16px 30px;
}

.dsp-menu-sub a {
  display: block;
  padding: 5px 0;
  color: #ffffff8c;
  font-size: .96rem;
  text-decoration: none;
  transition: color .18s ease;
}

.dsp-menu-sub a:hover,
.dsp-menu-sub a:focus-visible {
  color: #fff;
}

@media screen and (max-width: 767px) {
  .dsp-menu-sub {
    grid-template-columns: 1fr;
    padding-left: 22px;
  }
}

/* dropdowns are hover/desktop only; the hamburger menu covers small screens */
@media screen and (max-width: 991px) {
  .dsp-submenu {
    display: none;
  }
}

/* ---- mobile: collapse Services / Industries in the fullscreen menu ----
   Above 767px the sublist stays exactly as before (always expanded, no
   toggle button). Below it, the list starts collapsed and a tap on the
   toggle expands it — the full list of 9-11 links was pushing "About" and
   "Contact" off the bottom of small screens. */
.dsp-menu-toggle {
  display: none;
}

@media screen and (max-width: 767px) {
  .dsp-big-item {
    display: flex;
    align-items: center;
  }

  .dsp-big-item .button-big-menu {
    flex: 1;
    min-width: 0;
  }

  .dsp-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: 10px;
    flex-shrink: 0;
    background: transparent;
    border: 1px solid #ffffff30;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    padding: 0;
  }

  .dsp-menu-toggle-ic {
    display: block;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  .dsp-menu-toggle[aria-expanded="true"] .dsp-menu-toggle-ic {
    transform: rotate(225deg);
  }

  .dsp-menu-sub {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
  }

  .dsp-menu-sub.dsp-menu-sub-open {
    max-height: 700px;
    opacity: 1;
    padding: 4px 0 16px 22px;
  }
}

/* Kill the Altrum/Webflow IX3 page-load intro on the navbar: it held the nav at
   opacity 0 / y 10vw until ~3.2s, so on every page the header was missing (and
   visibly dropped down) for the first few seconds. Mike, 2026-09-15: the header
   must be there immediately. !important beats the inline styles IX3 writes. */
.navigation-top {
  opacity: 1 !important;
  transform: none !important;
}

/* Mike, 2026-09-15: the slide-out menu panel is fixed at 100vh with no scroll,
   so on any viewport short enough (or with enough nav items) the bottom of
   the panel — including the contact info — gets clipped and there's no way
   to reach it. Let the panel itself scroll when content is taller than the
   viewport, at every breakpoint (the Webflow CSS only added overflow:scroll
   on some mobile breakpoints). */
.fixed-menu {
  overflow-y: auto !important;
}
.navigation-content {
  min-height: 100%;
  height: auto !important;
  overflow-y: visible !important;
}

/* Two-column panel for the long Services list (18 items) */
.dsp-submenu.dsp-cols2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 4px;
  min-width: 620px;
}
@media (max-width: 991px) {
  .dsp-submenu.dsp-cols2 { min-width: 0; grid-template-columns: 1fr; }
}

/* Dropdown parents (Services / Industries / Our Work / About) are triggers, not
   links — they must not read as clickable. Mike, 2026-09-17. */
.dsp-mm-trigger,
.dsp-big-item > div.button-big-menu {
  cursor: default;
}
.dsp-mm-trigger * ,
.dsp-big-item > div.button-big-menu * {
  cursor: default;
}

/* ===== Menu minor fixes, Mike 2026-09-17 =====
   1) The panel scrolls but its dark background was painted by a 100vh box, so
      scrolling past one viewport showed the page behind it. Paint the
      background on the scrolling content itself. */
.fixed-menu {
  background-color: #0a0a0b;
}
.navigation-content {
  background-color: #0a0a0b;
}

/* 2) Section sublists are collapsed at every breakpoint now and expand when
      the row is clicked (was mobile-only). */
.dsp-big-item {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.dsp-big-item .button-big-menu {
  flex: 1;
  min-width: 0;
}
.dsp-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: 10px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid #ffffff30;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  padding: 0;
  transition: border-color .2s ease, background-color .2s ease;
}
.dsp-menu-toggle:hover {
  border-color: #d4382c;
  background: #d4382c1f;
}
.dsp-menu-toggle-ic {
  display: block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.dsp-menu-toggle[aria-expanded="true"] .dsp-menu-toggle-ic {
  transform: rotate(225deg);
}
/* Height is driven in js (measured), so open/close both ease smoothly instead
   of snapping from an arbitrary max-height. Mike, 2026-09-17. */
.dsp-menu-sub {
  display: block;
  width: 100%;
  height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  transform: translateY(-6px);
  transition: height .42s cubic-bezier(.22,1,.36,1),
              opacity .3s ease,
              transform .42s cubic-bezier(.22,1,.36,1);
  will-change: height, opacity;
}
.dsp-menu-sub.dsp-menu-sub-open {
  opacity: 1;
  transform: none;
}
.dsp-menu-sub-inner {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 26px;
  padding: 4px 0 16px 30px;
}
@media screen and (max-width: 767px) {
  .dsp-menu-sub-inner {
    grid-template-columns: 1fr;
    padding-left: 22px;
  }
}


/* 3) Social row: red circular buttons + info email */
.dsp-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dsp-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #d4382c;
  color: #fff;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}
.dsp-social-btn:hover {
  background: #b82e24;
  transform: translateY(-2px);
}
.dsp-social-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Return visits in the same session: no preloader (js flag in index head) */
.dsp-skip-intro .dsp-intro,
.dsp-skip-intro .page-overlay-main {
  display: none !important;
}

/* Solid black header once scrolled past the hero (Mike, 2026-09-17):
   avoids the transparent navbar letting page content show through/overlay. */
.navigation-top.dsp-nav-solid .navbar {
  background-color: #0b0b0c;
  transition: background-color .25s ease;
}
.navbar {
  transition: background-color .25s ease;
}
