* {
  box-sizing: border-box;
}

.site-header {
  position: relative;
  width: 100%;
  background: rgba(243, 244, 248, 0.92);
  border-bottom: 1px solid #d9dbe3;
  backdrop-filter: blur(8px);
  z-index: 1000;
}

.nav-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  max-height: 42px;
  width: auto;
  display: block;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.nav-desktop a {
  position: relative;
  color: #687391;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  padding: 0 22px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-desktop a:hover {
  color: #3d4b73;
}

.nav-desktop a + a::before {
  content: "|";
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa3bb;
  font-weight: 400;
}

.nav-desktop .nav-login {
  font-weight: 700;
  color: #4d587d;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid #d7dbe7;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: #f8f9fc;
  border-color: #cfd6e5;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #4d587d;
  border-radius: 2px;
  display: block;
}

/* MENU MOBILE DESACOPLADO DO LAYOUT */
.nav-mobile {
  position: fixed !important;
  top: 72px;
  right: 12px;
  left: auto;
  width: min(320px, calc(100vw - 24px));
  display: none !important;
  padding: 14px;
  border: 1px solid #e0e4ee;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(22, 34, 66, 0.18);
  z-index: 99999 !important;
  margin: 0 !important;
}

.nav-mobile.is-open {
  display: block !important;
}

.nav-mobile a {
  display: block;
  padding: 13px 14px;
  margin-bottom: 8px;
  border: 1px solid #e6eaf2;
  border-radius: 12px;
  background: #ffffff;
  color: #687391;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-mobile a:last-child {
  margin-bottom: 0;
}

.nav-mobile a:hover {
  background: #f7f9fd;
  color: #3d4b73;
  border-color: #d6ddeb;
}

.nav-mobile .nav-login {
  font-weight: 700;
  color: #243a73;
}

/* DESKTOP */
@media (min-width: 901px) {
  .nav-toggle {
    display: none !important;
  }

  .nav-desktop {
    display: flex !important;
  }

  .nav-mobile {
    display: none !important;
  }
}

/* MOBILE */
@media (max-width: 900px) {
  .nav-wrap {
    padding: 12px 16px;
  }

  .brand-logo {
    max-height: 34px;
  }

  .nav-desktop {
    display: none !important;
  }

  .nav-toggle {
    display: inline-flex !important;
    margin-left: auto;
  }
}

@media (max-width: 520px) {
  .brand-logo {
    max-height: 30px;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .nav-mobile {
    width: calc(100vw - 24px);
    right: 12px;
    top: 64px;
    padding: 12px;
    border-radius: 16px;
  }

  .nav-mobile a {
    padding: 12px 12px;
    font-size: 14px;
  }
}