/* Nesto Unified Navbar — single source of truth */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(247,251,252,0.82);
  border-bottom: 1px solid rgba(17,34,43,0.06);
}
.site-nav .shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.site-nav__bar {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-nav .brand { display: flex; align-items: center; flex: 0 0 auto; }
.site-nav .brand__logo { width: 140px; height: auto; }

/* Desktop nav items */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-item {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #5d7078;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-item:hover { color: #0a5f71; background: rgba(13,138,136,0.06); }

/* Active states via data-active on <header> */
.site-nav[data-active="home"] .nav-home,
.site-nav[data-active="why"] .nav-why,
.site-nav[data-active="blog"] .nav-blog,
.site-nav[data-active="faq"] .nav-faq { color: #0a5f71; font-weight: 700; }
.site-nav[data-active="features"] .nav-features,
.site-nav[data-active="tools"] .nav-tools { color: #0a5f71; font-weight: 700; }
.site-nav[data-active="therapists"] .nav-therapists { color: #0a5f71; font-weight: 700; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid rgba(17,34,43,0.08);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(18,38,46,0.12);
  padding: 8px;
  min-width: 210px;
  z-index: 200;
}
.nav-dropdown.is-open .nav-dropdown__menu { display: block; }
.nav-dropdown__menu a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #5d7078;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}
.nav-dropdown__menu a:hover { color: #0a5f71; background: rgba(13,138,136,0.06); }

/* CTA button */
.nav-actions { flex: 0 0 auto; }
.site-nav .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
}
.site-nav .btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #0d8a88 0%, #0a5f71 100%);
  box-shadow: 0 8px 24px rgba(13,138,136,0.22);
}
.site-nav .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(13,138,136,0.28);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(17,34,43,0.08);
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}
.hamburger span {
  width: 20px; height: 2px;
  background: #11222b;
  border-radius: 2px;
  display: block;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(247,251,252,0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(17,34,43,0.06);
  padding: 8px 0 16px;
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu > a:not(.btn) {
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #5d7078;
  border-bottom: 1px solid rgba(17,34,43,0.04);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.mobile-menu > a:not(.btn):hover { color: #0a5f71; background: rgba(13,138,136,0.05); }
.mobile-section__btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #5d7078;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(17,34,43,0.04);
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Inter", sans-serif;
  transition: color 0.2s;
}
.mobile-section__btn:hover { color: #0a5f71; background: rgba(13,138,136,0.05); }
.mobile-section__items { display: none; background: rgba(13,138,136,0.03); }
.mobile-section.is-open .mobile-section__items { display: block; }
.mobile-section__items a {
  display: block;
  padding: 12px 24px 12px 36px;
  font-size: 14px;
  font-weight: 600;
  color: #5d7078;
  border-bottom: 1px solid rgba(17,34,43,0.04);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-section__items a:hover { color: #0a5f71; }
.mobile-menu .btn {
  margin: 14px 24px 0;
  width: calc(100% - 48px);
  text-align: center;
}

/* Responsive */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .hamburger { display: flex; }
}
