/* =========================================================
   Bread & Butter — Pill nav (new style)
   Only active on pages set to "Pill" in the Nav style box (adds body class "nav-pill").
   Markup is unchanged: same links, same order in the HTML.
   ========================================================= */

/* Outer bar: transparent, just spacing around the pill */
.nav-pill nav,
.nav-pill nav.scrolled {
  padding: 16px 24px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}

/* The pill */
.nav-pill nav .container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 10px 10px 28px;
  justify-content: flex-start;
  gap: 48px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid #E6EBF1;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(10, 37, 64, 0.04);
  transition: box-shadow 0.3s;
}
.nav-pill nav.scrolled .container {
  box-shadow: 0 8px 28px rgba(10, 37, 64, 0.08), 0 1px 2px rgba(10, 37, 64, 0.04);
}

/* Links sit left, next to the logo */
.nav-pill .nav-links {
  flex: 1;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.nav-pill .nav-links a {
  color: #0A2540;
  font-size: 15px;
}
.nav-pill .nav-links a:hover {
  color: #1300FC;
}

/* Buttons pushed to the right (visual order only, HTML unchanged) */
.nav-pill .nav-links li:has(.nav-cta) {
  order: 98;
  margin-left: auto;
}
.nav-pill .nav-links > li:last-child {
  order: 99;
  margin-left: -16px; /* tightens the gap between the two buttons */
}

/* Primary button: yellow pill with arrow */
.nav-pill .nav-cta {
  background: #FFC700;
  color: #0A2540 !important;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 15px !important;
  font-weight: 500 !important;
  gap: 10px;
  transition: background 0.2s;
}
.nav-pill .nav-cta::after {
  content: "\2192";
  font-size: 17px;
  line-height: 1;
}
.nav-pill .nav-cta:hover {
  background: #F2BA00;
  color: #0A2540 !important;
}

/* Secondary button: outlined pill (last item: "Sign in" logged out, "Hello, name" logged in) */
.nav-pill .nav-links > li:last-child > a {
  border: 1px solid #0A2540;
  border-radius: 999px;
  padding: 11px 20px;
  color: #0A2540;
  font-size: 15px;
  transition: background 0.2s;
}
.nav-pill .nav-links > li:last-child > a:hover {
  background: #F6F8FA;
  color: #0A2540;
}
.nav-pill .greeting-b {
  background: transparent;
  padding: 0;
}
.nav-pill .greeting-b span {
  font-size: 15px;
  font-weight: 400;
  color: #0A2540;
}

/* ---------- Older page templates (e.g. /agencies) ----------
   The plugin prints the new nav on these and hides the old header. */
body.nav-pill-legacy > header {
  display: none !important;
}
body.nav-pill-legacy {
  padding-top: 93px; /* space the old sticky header used to take */
}
.nav-pill nav.bb-pill-nav {
  font-family: neue-haas-unica, Inter, -apple-system, system-ui, sans-serif;
}
.nav-pill nav.bb-pill-nav a,
.nav-pill nav.bb-pill-nav a:hover {
  text-decoration: none;
}
.nav-pill nav.bb-pill-nav ul {
  margin: 0;
}

/* ---------- Mobile (matches the theme's 900px breakpoint) ---------- */
@media (max-width: 900px) {
  .nav-pill nav,
  .nav-pill nav.scrolled {
    padding: 12px 16px;
  }
  .nav-pill nav .container {
    padding: 8px 8px 8px 20px;
    justify-content: space-between;
  }
  .nav-pill .nav-toggle {
    border-radius: 999px;
  }

  /* Dropdown becomes a rounded card under the pill */
  .nav-pill .nav-links {
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    border: 1px solid #E6EBF1;
    border-radius: 24px;
    padding: 12px 20px 20px;
    box-shadow: 0 12px 32px rgba(10, 37, 64, 0.12);
  }
  /* Back to the original list order on mobile */
  .nav-pill .nav-links li:has(.nav-cta),
  .nav-pill .nav-links > li:last-child {
    order: 0;
    margin-left: 0;
  }
  .nav-pill .nav-links .nav-cta {
    display: flex;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 24px;
  }
  .nav-pill .nav-links > li:last-child > a {
    justify-content: center;
    margin-top: 8px;
  }
  body.nav-pill-legacy {
    padding-top: 80px;
  }
}
