/* =========================================================
   PUBLIC MARKETING HEADER — Indemption.com style
   Loaded with includes/header-public.html (logged-out only).
   Authenticated shell uses includes/header.html (.bw-header).
========================================================= */

.bw-nav-shell--public,
.bw-nav-shell.bw-nav-shell--public {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #03060d;
  border-bottom: 1px solid rgba(255, 170, 60, 0.14);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.bw-nav-shell--public .bw-nav-wrap {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 1.5vw, 20px);
  width: 100%;
  max-width: none;
  min-height: 72px;
  margin: 0 auto;
  padding: 12px clamp(12px, 2vw, 28px);
  position: relative;
  color: #f5e6cf;
  box-sizing: border-box;
}

.bw-nav-shell--public .bw-nav-left,
.bw-nav-shell--public .bw-nav-center,
.bw-nav-shell--public .bw-nav-right,
.bw-nav-shell--public .bw-login-block {
  display: flex;
  align-items: center;
}

.bw-nav-shell--public .bw-nav-left {
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
}

.bw-nav-shell--public .bw-brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(6, 10, 18, 0.92);
  border: 1px solid rgba(255, 170, 60, 0.14);
}

.bw-nav-shell--public .bw-brand-logo {
  display: block;
  width: clamp(120px, 10vw, 168px);
  height: auto;
  max-height: 40px;
  object-fit: contain;
}

.bw-nav-shell--public .bw-nav-panel {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  gap: clamp(8px, 1.2vw, 16px);
  min-width: 0;
  overflow: visible;
}

.bw-nav-shell--public .bw-nav-center {
  flex: 1 1 auto;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
}

.bw-nav-shell--public .bw-nav-center a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 170, 60, 0.32);
  background: rgba(0, 0, 0, 0.38);
  color: rgba(245, 230, 207, 0.92);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.bw-nav-shell--public .bw-nav-center a:hover {
  border-color: rgba(255, 170, 60, 0.55);
  color: #fff8eb;
  background: rgba(0, 0, 0, 0.5);
  text-decoration: none;
  text-shadow: none;
}

.bw-nav-shell--public .bw-nav-right {
  flex: 0 1 auto;
  flex-shrink: 1;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}

.bw-nav-shell--public .bw-auth-links,
.bw-nav-shell--public .bw-user-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.bw-nav-shell--public .bw-auth-links[hidden],
.bw-nav-shell--public .bw-user-links[hidden] {
  display: none !important;
}

html.bw-signed-in .bw-nav-shell--public #authLinks,
html.bw-signed-in .bw-nav-shell--public .bw-auth-links {
  display: none !important;
}

html.bw-signed-in .bw-nav-shell--public #userLinks,
html.bw-signed-in .bw-nav-shell--public .bw-user-links {
  display: inline-flex !important;
}

.bw-nav-shell--public .bw-public-user-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(245, 230, 207, 0.82);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bw-nav-shell--public .bw-login--text {
  text-decoration: none;
}

.bw-nav-shell--public .bw-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 230, 207, 0.28);
  background: rgba(0, 0, 0, 0.42);
  color: rgba(245, 230, 207, 0.92);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.bw-nav-shell--public .bw-login:hover {
  border-color: rgba(255, 170, 60, 0.45);
  color: #fff8eb;
  background: rgba(0, 0, 0, 0.55);
}

.bw-nav-shell--public .bw-login:focus-visible,
.bw-nav-shell--public .bw-signup:focus-visible,
.bw-nav-shell--public .bw-demo-btn:focus-visible {
  outline: 2px solid rgba(255, 170, 60, 0.85);
  outline-offset: 2px;
}

/* Sign Up — more prominent than Log In, less dominant than Request a Demo */
.bw-nav-shell--public .bw-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 170, 60, 0.72);
  background: rgba(255, 154, 40, 0.14);
  color: #ffd7a0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease,
    box-shadow 0.18s ease;
}

.bw-nav-shell--public .bw-signup:hover {
  border-color: rgba(255, 170, 60, 0.95);
  color: #fff3df;
  background: rgba(255, 154, 40, 0.26);
  box-shadow: 0 6px 18px rgba(255, 120, 20, 0.12);
}

.bw-nav-shell--public .bw-signup:active {
  background: rgba(255, 154, 40, 0.34);
  transform: translateY(0.5px);
}

.bw-nav-shell--public .bw-demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 170, 60, 0.82);
  background: linear-gradient(180deg, #ff9a28 0%, #f07810 100%);
  color: #140800;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(255, 120, 20, 0.18);
  transition: filter 0.18s ease, box-shadow 0.18s ease;
}

.bw-nav-shell--public .bw-demo-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 26px rgba(255, 120, 20, 0.28);
  color: #140800;
}

.bw-nav-shell--public .bw-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 170, 60, 0.28);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.38);
  color: #f5e6cf;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.bw-nav-shell--public .bw-menu-toggle__icon {
  font-size: 20px;
  line-height: 1;
}

.bw-nav-shell--public .bw-login-block {
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .bw-nav-shell--public .bw-nav-wrap {
    min-height: 80px;
    padding: 14px 20px;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .bw-nav-shell--public .bw-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .bw-nav-shell--public .bw-nav-panel {
    display: none;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px 0 4px;
    border-top: 1px solid rgba(255, 170, 60, 0.14);
  }

  .bw-nav-shell--public .bw-nav-panel.open {
    display: flex;
  }

  .bw-nav-shell--public .bw-nav-center,
  .bw-nav-shell--public .bw-nav-right {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .bw-nav-shell--public .bw-nav-center a,
  .bw-nav-shell--public .bw-login,
  .bw-nav-shell--public .bw-signup,
  .bw-nav-shell--public .bw-demo-btn {
    width: 100%;
    justify-content: flex-start;
  }

  .bw-nav-shell--public .bw-auth-links,
  .bw-nav-shell--public .bw-user-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .bw-nav-shell--public .bw-auth-links .bw-login,
  .bw-nav-shell--public .bw-auth-links .bw-signup,
  .bw-nav-shell--public .bw-user-links .bw-login,
  .bw-nav-shell--public .bw-user-links .bw-login--text {
    width: 100%;
    justify-content: flex-start;
  }

  .bw-nav-shell--public .bw-public-user-name {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .bw-nav-shell--public .bw-brand-logo-wrap {
    padding: 10px 14px;
  }

  .bw-nav-shell--public .bw-brand-logo {
    width: clamp(140px, 42vw, 180px);
  }
}
