/* WaaFaa Gutenberg Header - last-mile scoped CSS */
body .waafaa-header {
  --waafaa-page: #030711;
  --waafaa-border: rgba(116, 135, 180, 0.22);
  --waafaa-border-strong: rgba(133, 151, 205, 0.36);
  --waafaa-blue: #00a6ff;
  --waafaa-gradient: linear-gradient(135deg, #0a68ff 0%, #7c2dff 100%);
  background: #030711;
  color: #ffffff;
  margin-block-start: 0 !important;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 10000;
}

body:not(.block-editor-iframe__body) .waafaa-header {
  left: 0;
  position: fixed;
  right: 0;
}

body.admin-bar:not(.block-editor-iframe__body) .waafaa-header {
  top: 32px;
}

body:not(.block-editor-iframe__body) .waafaa-header + :where(.waafaa-section, .waafaa-inner) {
  margin-top: 74px !important;
}

@media (max-width: 782px) {
  body.admin-bar:not(.block-editor-iframe__body) .waafaa-header {
    top: 46px;
  }
}

body.home .wp-site-blocks > header.wp-block-template-part,
body.home .wp-site-blocks > footer.wp-block-template-part,
body.page .wp-site-blocks > header.wp-block-template-part,
body.page .wp-site-blocks > footer.wp-block-template-part,
body.home .wp-block-post-title {
  display: none !important;
}

body.page .wp-block-post-title {
  display: none !important;
}

body.home .wp-site-blocks,
body.home .entry-content,
body.page .wp-site-blocks,
body.page .entry-content {
  margin-block-start: 0 !important;
  padding-block-start: 0 !important;
}

body.home main#wp--skip-link--target,
body.page main#wp--skip-link--target {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
}

body.home main#wp--skip-link--target > .wp-block-group.alignfull,
body.page main#wp--skip-link--target > .wp-block-group.alignfull {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
  padding-top: 0 !important;
  padding-block-start: 0 !important;
}

body .waafaa-header .waafaa-header__inner {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  gap: 1rem;
  height: 74px;
  justify-content: space-between;
  margin-inline: auto;
  max-width: 1184px;
  padding-inline: 2rem;
  width: 100%;
}

body .waafaa-header .waafaa-header__brand,
body .waafaa-header .waafaa-header__actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 1rem;
  margin: 0 !important;
}

body .waafaa-header .waafaa-header__logo {
  line-height: 0;
  margin: 0 !important;
}

body .waafaa-header .waafaa-header__logo img {
  display: block;
  height: auto;
  width: 126px;
}

body .waafaa-header .waafaa-header__logo--color {
  display: none;
}

body .waafaa-header .waafaa-header__nav {
  flex: 1 1 auto;
  justify-content: center;
  margin: 0 !important;
}

body .waafaa-header .wp-block-navigation__container {
  align-items: center;
  display: flex;
  gap: 1.9rem;
}

body .waafaa-header .wp-block-navigation-item__content {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.3rem 0;
  position: relative;
  text-decoration: none;
}

body.home .waafaa-header .wp-block-navigation-item:first-child .wp-block-navigation-item__content::after,
body.waafaa-page-home .waafaa-header .wp-block-navigation-item:first-child .wp-block-navigation-item__content::after,
body.waafaa-page-about-us .waafaa-header .wp-block-navigation-item:nth-child(2) .wp-block-navigation-item__content::after,
body.waafaa-page-blog .waafaa-header .wp-block-navigation-item:nth-child(4) .wp-block-navigation-item__content::after,
body.waafaa-page-blog-single .waafaa-header .wp-block-navigation-item:nth-child(4) .wp-block-navigation-item__content::after,
body.waafaa-page-contact .waafaa-header .wp-block-navigation-item:nth-child(5) .wp-block-navigation-item__content::after,
body.page-id-90 .waafaa-header .wp-block-navigation-item:nth-child(2) .wp-block-navigation-item__content::after,
body.page-id-92 .waafaa-header .wp-block-navigation-item:nth-child(4) .wp-block-navigation-item__content::after,
body.page-id-93 .waafaa-header .wp-block-navigation-item:nth-child(4) .wp-block-navigation-item__content::after,
body.page-id-94 .waafaa-header .wp-block-navigation-item:nth-child(5) .wp-block-navigation-item__content::after,
body .waafaa-header .wp-block-navigation-item__content:hover::after {
  background: var(--waafaa-blue);
  bottom: -0.4rem;
  content: "";
  display: block;
  height: 2px;
  left: 0;
  position: absolute;
  width: 2rem;
}

body .waafaa-header .waafaa-header__mode {
  border: 0;
  border-radius: 999px;
  color: transparent;
  display: inline-flex;
  height: 2.8rem;
  line-height: 1;
  margin: 0 !important;
  overflow: hidden;
  position: relative;
  width: 2.8rem;
}

body .waafaa-header .waafaa-header__mode::before {
  background: #2965ff;
  border-radius: 999px;
  box-shadow: -0.45rem 0.1rem 0 0 #030711 inset;
  content: "";
  height: 1.7rem;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1.7rem;
}

body .waafaa-header .waafaa-header__cta {
  margin: 0 !important;
}

body .waafaa-header .waafaa-header__mode-wrap,
body .waafaa-header .waafaa-header__mode-button {
  margin: 0 !important;
}

body .waafaa-header .waafaa-button .wp-block-button__link {
  align-items: center;
  background: var(--waafaa-gradient);
  border: 1px solid transparent;
  border-radius: 0.375rem;
  box-shadow: none;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.65rem;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.72rem 1.25rem;
  text-decoration: none;
}

body .waafaa-header .waafaa-button .wp-block-button__link:hover {
  box-shadow: 0 0 28px rgba(37, 101, 255, 0.18);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  body .waafaa-header .waafaa-header__inner {
    gap: 0.75rem;
    padding-inline: 1rem;
  }

  body .waafaa-header .waafaa-header__brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  body .waafaa-header .waafaa-header__actions {
    display: none;
  }

  body .waafaa-header .waafaa-header__cta {
    display: none;
  }

  body .waafaa-header .waafaa-header__mode {
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--waafaa-border);
    justify-content: center;
    min-height: 2.65rem;
    min-width: 2.65rem;
  }

  body .waafaa-header .waafaa-header__nav {
    flex: 0 0 auto;
    order: 3;
  }

  body .waafaa-header .wp-block-navigation__responsive-container-open {
    border: 1px solid var(--waafaa-border);
    border-radius: 999px;
    color: #ffffff;
    min-height: 2.65rem;
    min-width: 2.65rem;
    padding: 0.6rem;
  }

  body .waafaa-header .wp-block-navigation__responsive-container.is-menu-open {
    background: rgba(4, 10, 22, 0.98);
    color: #ffffff;
    padding: 1rem;
  }
}

@media (max-width: 599px) {
  body .waafaa-header .waafaa-header__actions {
    display: flex;
    gap: 0.55rem;
    margin-left: auto !important;
    order: 2;
  }

  body .waafaa-header .waafaa-header__nav {
    justify-content: flex-end;
  }
}
