/* BOX 1: HEADER, the menu bar at the top of the page */

.site-header {
  position: fixed;   /* stays in the same place on screen while you scroll */
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;      /* stacking order: higher numbers sit on top of lower ones */
  height: var(--header-h);
  background: transparent;
  color: var(--navy);
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
              opacity 0.4s ease, translate 0.4s ease, visibility 0.4s;   /* fading and sliding away/back (see .is-hidden below) */

}

/* added by header_hide.js on Pages 3 and 4: the menu bar fades away and drifts up a little */
.site-header.is-hidden {
  opacity: 0;              /* invisible */
  translate: 0 -12px;      /* 12px higher than normal (first number = left/right, second = up/down) */
  visibility: hidden;      /* and can't be clicked or tabbed to while it's gone */
}


/* added by header_transparent.js once the page is scrolled: frosted white glass */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.75); /* rgba = red, green, blue, and how see-through (0 to 1) */
  backdrop-filter: blur(14px);           /* blurs what is behind it, like frosted glass */
  -webkit-backdrop-filter: blur(14px);   /* the same, for Safari */
  box-shadow: 0 1px 0 rgba(10, 0, 51, 0.08);
}

.header-inner {
  height: 100%;
  display: flex;                    /* puts the logo and the menu in a row */
  align-items: center;              /* lined up in the middle, top to bottom */
  justify-content: space-between;   /* logo at the left end, menu at the right end */
}

.logo {
  font-size: 22px;
  font-weight: 400;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;         /* space between the menu links */
  font-size: 14px;
  font-weight: 500;
}

.main-nav a:hover { opacity: 0.7; } /* opacity = how solid: 1 is fully visible, 0 is invisible */
.main-nav .btn:hover { opacity: 1; }

.chevron { font-size: 12px; }

/* The button in the header is a little bigger than the other buttons */
.main-nav .btn { padding: 13px 30px; font-size: 13px; }

/* On small screens only the button stays in the menu.
   @media: the rules inside only apply when the screen is 800px wide or less */
@media (max-width: 800px) {
  .main-nav a:not(.btn) { display: none; }
}
