/* Sticky top menu: appears after scrolling, replaces the big centered logo */
html { scroll-behavior: smooth; }
#about, #how-we-do, #portfolio, #contact { scroll-margin-top: 114px; }
#home { scroll-margin-top: 0; }

/* Desktop bar (hidden on tablet/phone by the theme's hidden-* classes) */
.navigation {
  display: block;
  position: fixed; top: 0; left: 0; right: 0; bottom: auto;
  width: 100%; height: 115px;
  background: rgb(52, 166, 67);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  z-index: 1000 !important;
  transform: translateY(-100%);
  opacity: 0; visibility: hidden;
  transition: transform .35s ease, opacity .35s ease, visibility 0s linear .35s;
}
body.nav-stuck .navigation {
  transform: none; opacity: 1; visibility: visible;
  transition-delay: 0s;
}
.nav-logo { position: absolute; left: 0; top: 4px; display: block; line-height: 0; }
.nav-logo img { height: 87px; width: auto; display: block; }

/* Big centered logo fades out once the menu is shown */
#badge { transition: opacity .25s ease, visibility 0s linear 0s; }
body.nav-stuck #badge {
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, visibility 0s linear .25s;
}

/* Mobile menu: let the opened list actually show */
#nav.opened { clip: auto; }
@media (max-width: 979px) {
  #about, #how-we-do, #portfolio, #contact { scroll-margin-top: 57px; }
}
