/* WordPress header / footer adjustments */

html,
body {
  max-width: 100%;
}

.brand .brand-logo {
  display: block;
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.footer-brand .brand .brand-logo {
  height: 40px;
  max-width: 160px;
}

ul.nav-links,
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0;
}

.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links .current-menu-ancestor > a {
  color: #fff;
}

ul.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu li {
  margin: 0;
}

/* Full-width header and footer bars; inner .shell keeps content aligned */
body > .site-header,
body > .site-footer,
.site-header,
.site-footer,
.site-header.alignfull,
.site-footer.alignfull {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  left: auto;
  right: auto;
}

.site-header {
  display: flex;
  align-items: center;
  background: rgba(5, 11, 26, .88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-footer {
  background: var(--deep-navy);
  color: #b2c0d5;
  padding-top: 48px;
}

body:has(.hero) .site-header:not(.is-scrolled):not(.is-open),
body:has(.inner-hero) .site-header:not(.is-scrolled):not(.is-open),
body:has(.about-hero) .site-header:not(.is-scrolled):not(.is-open) {
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.skip-link.screen-reader-text {
  position: absolute;
  left: -9999px;
}

.skip-link.screen-reader-text:focus {
  left: 12px;
  top: 12px;
  z-index: 100000;
  padding: 10px 16px;
  background: #fff;
  color: var(--deep-navy);
}

/* Home template: full-width layout, no boxed WordPress content */
body.rnds-home-page .rnds-home,
body.rnds-home-page .rnds-home > * {
  max-width: none !important;
}

body.rnds-home-page .site-main,
body.rnds-home-page #content,
body.rnds-inner-page .site-main,
body.rnds-inner-page #content {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0;
}

body.rnds-about-page .rnds-about,
body.rnds-about-page .rnds-about > *,
body.rnds-solutions-page .rnds-solutions,
body.rnds-solutions-page .rnds-solutions > *,
body.rnds-contact-page .rnds-contact,
body.rnds-contact-page .rnds-contact > *,
body.rnds-insights-page .rnds-insights,
body.rnds-insights-page .rnds-insights > *,
body.rnds-single-post .rnds-single,
body.rnds-single-post .rnds-single > * {
  max-width: none !important;
}
