/*
 * Standalone styling for SiteNavbar on the native routes (/b2b, /coding-classes,
 * /404). The Webflow-derived routes get the same look from the mirrored
 * stylesheet and must NOT link this file — loading both would style the navbar
 * twice.
 *
 * Values mirror the Webflow navbar rules. Webflow sizes the bar in `em` off a
 * viewport root capped at 1440px; `--u` in brand.css is that root, so the bar's
 * own font-size is `--u` and every `em` below it is the export's value.
 */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: #2e4050;
  font-family: var(--font-body);
  font-size: var(--u);
}

.site-nav a {
  text-decoration: none;
}

.site-nav .navbar-copy-copy {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #eaeefb;
  background: #fff;
}

/* `flex: 1` with symmetric margins is how the mirrored sheet centres the bar. */
.site-nav .nav__container {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  max-width: 1360px;
  min-height: 5.56em;
  margin: 0 2.78em;
}

.site-nav .nav__left,
.site-nav .nav-menu,
.site-nav .nav__links,
.site-nav .nav__cta-links {
  display: flex;
  align-items: center;
}

.site-nav .nav__logo-container {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 5em;
}

/* Shown only below the collapse breakpoint, as Webflow's own sheet does. */
.site-nav .menu-button {
  display: none;
}

.site-nav .nav__logo {
  display: block;
  width: auto;
  height: 2.4em;
}

.site-nav .nav__link {
  display: flex;
  align-items: center;
  padding: 0 1.67em;
  color: inherit;
}

.site-nav .nav__link:hover,
.site-nav .nav__link.w--current {
  color: #3844ff;
}

.site-nav .button__text {
  margin: 0;
  padding: 0.56em 0;
  font-size: 1.11em;
  font-weight: 500;
  line-height: 1;
}

/* The component keeps Webflow's `.button` class for cross-shell markup
   compatibility. These rules fully define its native-route appearance. */
.site-nav .button.is--small {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 10em;
  max-width: none;
  height: 3.33em;
  min-height: 0;
  margin: 0;
  padding: 0 1.67em;
  border: 0;
  border-radius: 0.56em;
  background-image: linear-gradient(270deg, #3844ff, #3870ff);
  color: #fff;
  font-size: inherit;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
}

/* Below the Webflow `data-collapse="medium"` breakpoint the links move into the
   panel opened by the hamburger, so the bar switches to a fixed pixel scale. */
@media (max-width: 991px) {
  .site-nav {
    font-size: 14px;
  }

  .site-nav .nav__container {
    position: relative;
    min-height: 64px;
    margin: 0;
    padding: 0 24px;
  }

  .site-nav .nav__logo-container {
    margin-right: 0;
  }

  .site-nav .nav__logo {
    height: 32px;
  }

  .site-nav .nav-menu {
    display: none;
  }

  .site-nav .nav__cta-links {
    margin-left: auto;
    margin-right: 8px;
  }

  .site-nav .menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    cursor: pointer;
  }
}

/* Matches the mirrored sheet: below 768px the bar CTA gives way to the one
   SiteNavbar renders inside the menu panel. */
@media (max-width: 767px) {
  .site-nav .nav__cta-links {
    display: none;
  }

  .site-nav .nav__container {
    padding: 0 22px;
  }

  .site-nav .nav__logo {
    height: 24px;
  }
}
