/* Give the fixed navigation its own surface, independent of the section below. */
html body #header.site-header[id] {
  background-color: #fff !important;
  background-image: none !important;
  color: #142044 !important;
  border-bottom-color: #dce5ef;
  box-shadow: 0 2px 12px #14204412;
}

html body #header.site-header[id] .logo img {
  content: url("assets/logo-azul.png");
  filter: none !important;
}

html body #header.site-header[id] :is(.primary-nav, .primary-nav a, .primary-nav summary, .header-contact, .menu, .site-nav-toggle) {
  color: #142044 !important;
}

html body #header.site-header[id] :is(.primary-nav a[aria-current], .cap-nav-group.is-current-section > summary, .cap-nav-group.is-current-section > summary a) {
  color: #2451c9 !important;
}

html body #header.site-header[id] .cap-nav-group > div {
  background: #fff !important;
}

html body #header.site-header[id] .header-client {
  background: #36c4c6 !important;
  color: #0f1a45 !important;
  border-color: #36c4c6 !important;
}

html body #header.site-header[id] .header-client:hover {
  background: #80e6e9 !important;
}

html body #header.site-header[id] .menu > span {
  background-color: currentColor;
}

html body #header.site-header[id] {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background-color .24s ease, border-color .24s ease, box-shadow .24s ease;
}

html body #header.site-header[id].cap-header-on-dark:not([data-menu-open=true]) {
  background-color: rgba(4, 12, 30, .64) !important;
  color: #fff !important;
  border-bottom-color: #ffffff30;
}

html body #header.site-header[id].cap-header-on-dark:not([data-menu-open=true]) .logo img {
  content: url("assets/logo-branca.png");
}

html body #header.site-header[id].cap-header-on-dark:not([data-menu-open=true]) :is(.header-contact, .menu, .site-nav-toggle) {
  color: #fff !important;
  border-color: #ffffff80 !important;
}

@media (max-width: 1280px) {
  html body #header.site-header[id] .primary-nav {
    background: #fff !important;
  }
}

@media (min-width: 1281px) {
  html body #header.site-header[id] .primary-nav {
    background: transparent !important;
  }

  html body #header.site-header[id].cap-header-on-dark:not([data-menu-open=true]) .primary-nav > a,
  html body #header.site-header[id].cap-header-on-dark:not([data-menu-open=true]) .primary-nav > details > summary :is(a, span),
  html body #header.site-header[id].cap-header-on-dark:not([data-menu-open=true]) .primary-nav > details > summary {
    color: #fff !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body #header.site-header[id] { transition: none; }
}

#header :is(.reading-progress, .page-reading-progress) {
  position: absolute;
  inset: auto 0 0;
}

html body #header.site-header[id]::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: currentColor;
  opacity: .12;
  pointer-events: none;
}

html body #header.site-header[id] .header-main {
  background: transparent !important;
}

html body.home-motion-sample #header.site-header[id].cap-header-on-dark:not([data-menu-open=true]) {
  background-color: rgba(4, 12, 30, .64) !important;
}

#header .cap-shared-progress {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, #2551e4, #80e6e9);
  transform: scaleX(var(--cap-page-progress, 0));
  transform-origin: left;
  pointer-events: none;
}
