/* Shared navigation for the GGK Incident Reporting marketing pages. */
.topbar {
  z-index: 100;
}

.topbar .container.nav {
  width: min(1440px, calc(100% - 2rem));
  min-height: 82px !important;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.topbar .brand {
  display: flex;
  flex: 0 0 64px;
  min-width: 64px;
}

.topbar .brand-logo {
  display: block;
  width: 64px !important;
  height: 64px !important;
  object-fit: contain;
}

.topbar .nav-links {
  position: static;
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(0.18rem, 0.42vw, 0.55rem);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  max-height: none;
  overflow: visible;
  color: #3f566d;
  font-size: clamp(0.875rem, 0.74vw, 0.9rem);
  line-height: 1.1;
}

.topbar .nav-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.42rem clamp(0.32rem, 0.34vw, 0.58rem);
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.topbar .nav-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.75rem;
}

.topbar .btn-primary {
  min-height: 44px;
  padding: 0.8rem 1.05rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
}

.topbar .menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1280px) {
  .topbar .nav-links {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.15rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 110px);
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
    font-size: 1rem;
  }

  .topbar .nav-links.open {
    display: flex;
  }

  .topbar .nav-links a {
    padding: 0.65rem 0.8rem;
  }

  .topbar .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 760px) {
  .topbar .container.nav {
    min-height: 76px !important;
  }
}
