/* Navigation matching site styles */

#top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #E8492C;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  z-index: 10000;
}

#top-nav .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
}

.nav-logo {
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  font-family: "Source Sans Pro", Helvetica, sans-serif;
  position: absolute;
  left: 10%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10001;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.35rem;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.nav-links li { list-style: none; }

/* Make nav links look like the site's button style */
.nav-links a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  padding: 0.45rem 0.95rem;
  /* border-radius: 0.325rem; */
  /* box-shadow: inset 0 0 0 2px rgba(255,255,255,0.12); */
  font-family: "Raleway", Helvetica, sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.18s ease-in-out;
}

.nav-links a:hover {
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.22);
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav-links a.active {
  background: #fff;
  color: #E8492C;
  box-shadow: none;
}

/* Prevent content overlap: keep padding consistent with nav height */
#top-nav { height: 64px; }
#top-nav + #wrapper { padding-top: 64px; }

/* Mobile */
@media screen and (max-width: 980px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 64px;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 0.5rem;
    border-left: 1px solid #eee;
    /* box-shadow: 0 2px 16px rgba(0,0,0,0.06); */
    transform: translateX(100%);
    transition: transform 0.25s ease-in-out;
    min-width: 220px;
  }

  .nav-links.open { transform: translateX(0); }

  /* Mobile: revert logo and link colors for contrast */
  .nav-logo {
    position: static;
    transform: none;
    color: #000;
  }

  .nav-links a { display: block; width: 100%; padding: 0.6rem 1rem; color: #000; box-shadow: inset 0 0 0 1px rgba(144,144,144,0.12); }
}

