/* ============================================================
   PARENTING PATH — UNIVERSAL NAV STYLESHEET
   Load this AFTER components.css to override legacy nav rules.
   ============================================================ */

/* ===========================
   STICKY HEADER WRAPPER
   =========================== */

.pp-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
}

/* ===========================
   ANNOUNCEMENT BANNER
   =========================== */

.pp-banner {
  position: relative;
  background-color: var(--blue);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 48px;
}

.pp-banner[hidden],
.pp-banner.is-hidden {
  display: none !important;
}

.pp-banner-text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: #ffffff;
  text-align: center;
  line-height: 1.4;
  margin: 0;
}

.pp-banner-text a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.15s ease;
}

.pp-banner-text a:hover {
  opacity: 0.85;
  color: #ffffff;
}

.pp-banner-dismiss {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
  font-family: var(--font-body);
}

.pp-banner-dismiss:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.pp-banner-dismiss:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .pp-banner {
    height: auto;
    min-height: 40px;
    padding: 8px 44px 8px 16px;
  }

  .pp-banner-text {
    text-align: left;
  }
}

/* ===========================
   SITE NAV — RESET & BASE
   =========================== */

.pp-header .site-nav {
  position: static;
  top: auto;
  height: 72px;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  width: 100%;
}

.pp-header .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
}

/* ===========================
   LOGO
   =========================== */

.pp-header .nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.pp-header .nav-logo:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 4px;
}

.pp-header .nav-logo svg {
  width: 22px;
  height: 26px;
  fill: var(--navy);
  flex-shrink: 0;
}

.pp-header .nav-logo-text {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ===========================
   DESKTOP NAV LINKS
   =========================== */

.pp-header .nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

/* NAV ITEM wrapper */
.pp-header .nav-item {
  position: relative;
}

/* NAV LINK — both <a> and <button> variants */
.pp-header .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}

.pp-header .nav-link:hover {
  color: var(--blue);
  background-color: var(--blue-light);
}

.pp-header .nav-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Active state — current section */
.pp-header .nav-item.nav-active > .nav-link {
  color: var(--blue);
  position: relative;
}

.pp-header .nav-item.nav-active > .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background-color: var(--blue);
  border-radius: 1px;
}

/* ===========================
   CHEVRON
   =========================== */

.pp-header .nav-chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--mid);
  stroke: currentColor;
}

.pp-header .nav-item.is-open > .nav-link .nav-chevron {
  transform: rotate(180deg);
  color: var(--blue);
}

/* ===========================
   DROPDOWN PANEL — BASE
   =========================== */

.pp-header .nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
  transform: translateY(-6px);
  z-index: 200;
  min-width: 240px;
}

.pp-header .nav-dropdown.is-right-align {
  left: auto;
  right: 0;
}

/* Two-column dropdown (Features) */
.pp-header .nav-dropdown.is-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  min-width: 560px;
  transform: translateY(-6px);
}

/* Open state — driven by JS .is-open class */
.pp-header .nav-item.is-open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Column heading */
.pp-header .nav-dropdown-col-head {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 4px 8px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  white-space: nowrap;
}

/* Dropdown footer link (see all features) */
.pp-header .nav-dropdown-footer {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 6px;
}

.pp-header .nav-dropdown-footer a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.12s ease, background 0.12s ease;
}

.pp-header .nav-dropdown-footer a:hover {
  background: var(--blue-light);
  color: var(--navy);
}

.pp-header .nav-dropdown-footer a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===========================
   DROPDOWN ITEM
   =========================== */

.pp-header .nav-dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.12s ease;
  margin-bottom: 1px;
}

.pp-header .nav-dropdown-item:last-of-type {
  margin-bottom: 0;
}

.pp-header .nav-dropdown-item:hover {
  background-color: var(--blue-light);
}

.pp-header .nav-dropdown-item:hover .nav-dropdown-item-title {
  color: var(--blue);
}

.pp-header .nav-dropdown-item:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-radius: 6px;
}

.pp-header .nav-dropdown-item-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.3;
  transition: color 0.12s ease;
}

.pp-header .nav-dropdown-item-subtitle {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--mid);
  line-height: 1.4;
  margin-top: 2px;
}

/* ===========================
   RIGHT CTA
   =========================== */

.pp-header .nav-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.pp-header .nav-cta-wrapper {
  position: relative;
}

/* Pre-launch coming soon */
.pp-header .nav-cta {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  background-color: var(--navy);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: default;
  opacity: 0.85;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}

/* Post-launch active state */
.pp-header .nav-cta.is-active {
  background-color: var(--blue);
  cursor: pointer;
  opacity: 1;
  transition: background-color 0.15s ease;
}

.pp-header .nav-cta.is-active:hover {
  background-color: #0D47A1;
}

.pp-header .nav-cta:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Coming soon tooltip */
.pp-header .nav-cta-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--charcoal);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  padding: 7px 12px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10;
}

.pp-header .nav-cta-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--charcoal);
}

.pp-header .nav-cta-tooltip a {
  color: #ffffff;
  text-decoration: underline;
  pointer-events: auto;
}

.pp-header .nav-cta-wrapper:hover .nav-cta-tooltip {
  opacity: 1;
}

/* ===========================
   MOBILE HAMBURGER
   =========================== */

.pp-header .nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
}

.pp-header .nav-hamburger:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

.pp-header .nav-hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--navy);
  border-radius: 2px;
  pointer-events: none;
}

/* ===========================
   MOBILE BACKDROP
   =========================== */

.nav-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 75, 0.3);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-mobile-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ===========================
   MOBILE SLIDE-IN PANEL
   =========================== */

.nav-mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 90vw);
  height: 100vh;
  height: 100dvh;
  background-color: var(--white);
  z-index: 151;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.32, 1);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
}

.nav-mobile-panel.is-open {
  transform: translateX(0);
}

.nav-mobile-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 72px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

/* Mobile panel logo inherits .nav-logo styles */
.nav-mobile-panel-header .nav-logo-text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.nav-mobile-panel-header .nav-logo svg {
  width: 20px;
  height: 24px;
  fill: var(--navy);
}

.nav-mobile-close {
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--charcoal);
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.nav-mobile-close:hover {
  background: var(--stone);
}

.nav-mobile-close:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

.nav-mobile-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ===========================
   MOBILE ACCORDION
   =========================== */

.nav-mobile-group {
  border-bottom: 1px solid var(--border);
}

.nav-mobile-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 20px;
  min-height: 52px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--charcoal);
  text-align: left;
  text-decoration: none;
  transition: background 0.12s ease;
  -webkit-appearance: none;
  appearance: none;
}

.nav-mobile-trigger:hover {
  background: var(--stone);
}

.nav-mobile-trigger:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.nav-mobile-trigger .nav-chevron {
  flex-shrink: 0;
  color: var(--mid);
  transition: transform 0.2s ease;
}

.nav-mobile-group.is-open > .nav-mobile-trigger .nav-chevron {
  transform: rotate(180deg);
  color: var(--blue);
}

.nav-mobile-submenu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.28s ease;
}

.nav-mobile-group.is-open > .nav-mobile-submenu {
  max-height: 800px;
}

.nav-mobile-sub-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 20px 10px 28px;
  text-decoration: none;
  min-height: 48px;
  transition: background 0.12s ease;
  border-left: 3px solid transparent;
}

.nav-mobile-sub-item:hover {
  background: var(--blue-light);
  border-left-color: var(--blue);
}

.nav-mobile-sub-item:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.nav-mobile-sub-item-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.3;
}

.nav-mobile-sub-item:hover .nav-mobile-sub-item-title {
  color: var(--blue);
}

.nav-mobile-sub-item-subtitle {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--mid);
  line-height: 1.4;
  margin-top: 2px;
}

/* ===========================
   MOBILE PANEL FOOTER
   =========================== */

.nav-mobile-panel-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.nav-mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  background-color: var(--navy);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  cursor: default;
  opacity: 0.85;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
}

.nav-mobile-cta.is-active {
  background-color: var(--blue);
  cursor: pointer;
  opacity: 1;
  transition: background-color 0.15s ease;
}

.nav-mobile-cta.is-active:hover {
  background-color: #0D47A1;
}

.nav-mobile-cta:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Prevent body scroll when mobile panel is open */
body.nav-panel-open {
  overflow: hidden;
}

/* ===========================
   RESPONSIVE — SHOW/HIDE
   =========================== */

@media (max-width: 992px) {
  .pp-header .nav-links,
  .pp-header .nav-actions {
    display: none;
  }

  .pp-header .nav-hamburger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .pp-header .site-nav {
    height: 60px;
  }

  .pp-header .nav-logo-text {
    font-size: 15px;
  }
}
