/* AdTrak shared navigation. Intentionally unique selectors: homepage and portfolio
   legacy headers may retain old CSS, but those selectors never match this header. */
.adtrak-site-header,
.adtrak-site-header * { box-sizing: border-box; }
.adtrak-site-header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  height: 74px;
  z-index: 1000;
  padding: 10px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  isolation: isolate;
  mix-blend-mode: normal;
  transform: none;
  font-family: Montserrat, Arial, sans-serif;
}
.adtrak-site-header__logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  text-decoration: none;
}
.adtrak-site-header__logo img {
  display: block;
  width: 65px;
  height: 60px;
  object-fit: contain;
}
.adtrak-site-header__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(15px, 1.6vw, 26px);
  margin: 0 0 0 auto;
  padding: 0;
  background: transparent;
}
.adtrak-site-header__links > a {
  display: inline-flex;
  align-items: center;
  color: #0265de;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity .18s ease;
}
.adtrak-site-header__links > a:hover { opacity: .76; }
.adtrak-site-header__login { flex: 0 0 32px; justify-content: center; }
.adtrak-site-header__login img { display: block; width: 30px; height: 30px; object-fit: contain; }
.adtrak-site-header__legal,
.adtrak-site-header__toggle { display: none; }
@media (max-width: 760px) {
  .adtrak-site-header {
    height: 66px;
    padding: 8px 20px;
    overflow: visible;
  }
  .adtrak-site-header__logo img { width: 65px; height: 52px; }
  .adtrak-site-header .site-menu-toggle.adtrak-site-header__toggle {
    display: flex !important;
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    margin: 0 0 0 auto;
    padding: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
  }
  .adtrak-site-header__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #0265de;
    border-radius: 3px;
    transition: transform .2s ease, opacity .2s ease;
  }
  .adtrak-site-header__toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .adtrak-site-header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .adtrak-site-header__toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .adtrak-site-header .adtrak-site-header__links {
    display: none !important;
    position: absolute;
    top: calc(100% - 4px);
    right: 20px;
    left: auto;
    width: min(240px, calc(100vw - 40px));
    max-height: calc(100dvh - 80px);
    margin: 0;
    padding: 8px 14px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    border: 1px solid #e9edf4;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(10,34,70,.16);
    z-index: 3;
  }
  .adtrak-site-header .adtrak-site-header__links.is-open { display: flex !important; }
  .adtrak-site-header__links > a {
    padding: 11px 4px;
    font-size: 13px;
    white-space: normal;
  }
  .adtrak-site-header__links > a + a { border-top: 1px solid #eef0f5; }
  .adtrak-site-header__login { align-self: flex-start; }
  .adtrak-site-header__login img { width: 28px; height: 28px; }
  .adtrak-site-header__legal {
    display: flex;
    flex-direction: column;
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px solid #e5eaf1;
  }
  .adtrak-site-header__legal a {
    padding: 7px 4px;
    color: #6a7282;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;
    text-decoration: none;
  }
}

/* Mobile-specific protection against legacy styles from older page templates. */
@media (max-width: 760px) {
  body .adtrak-site-header {
    display: flex !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow: visible !important;
  }
  body .adtrak-site-header .site-menu-toggle.adtrak-site-header__toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    flex-shrink: 0 !important;
    pointer-events: auto !important;
    margin-left: auto !important;
  }
  body .adtrak-site-header .site-menu-toggle.adtrak-site-header__toggle span {
    display: block !important;
    visibility: visible !important;
    opacity: 1;
    background: #0265de !important;
  }
  body .adtrak-site-header .site-menu-toggle.adtrak-site-header__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0 !important;
  }
}
