/* BabyBloom — nav-v2 shared stylesheet
   Applied to all static pages with <!-- bb-nav-v2 --> marker.
   This is the single source of truth for nav dropdown behaviour.
   Do NOT duplicate these rules in page-level <style> blocks.
*/

/* ── Sticky nav bar ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #f0e8e6;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* ── Logo ────────────────────────────────────────────────────────────── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a1412;
  text-decoration: none;
  flex-shrink: 0;
}

/* ── Link row ────────────────────────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.nav-link {
  padding: 0.375rem 0.625rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4a3f3a;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.nav-link:hover { background: #f5f0ef; }

.nav-sign-in {
  padding: 0.375rem 0.625rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  white-space: nowrap;
}
.nav-sign-in:hover { background: #f5f0ef; }

.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #FF9AA2, #a29bfe);
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.9; }

/* ── Dropdowns — CLOSED BY DEFAULT ──────────────────────────────────── */
.nav-dd {
  position: relative;
}

.nav-dd-menu {
  display: none;                       /* ← always closed by default */
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: white;
  border: 1px solid #f0e8e6;
  border-radius: 1rem;
  padding: 0.5rem;
  min-width: 240px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
  z-index: 200;
}

/* Open on hover or keyboard focus-within (accessible) */
.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu {
  display: block;
}

.nav-dd-item {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a1412;
  text-decoration: none;
  border-radius: 0.5rem;
}
.nav-dd-item:hover { background: #fdf0f1; }

.nav-dd-sep {
  height: 1px;
  background: #f0e8e6;
  margin: 0.25rem 0.5rem;
}

/* ── Hamburger ───────────────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1412;
  border-radius: 2px;
}

/* ── Mobile breakpoint ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none !important; }
  .hamburger { display: flex; }
}

/* ── Content area padding (for pages using article-outer wrapper) ── */
.article-outer {
  padding-top: 2rem;
}

/* Growth Tracker nav CTA */
.nav-growth-cta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #FF9AA2;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid #FF9AA2;
  background: rgba(255,154,162,0.08);
  transition: background 0.15s, opacity 0.15s;
}
.nav-growth-cta:hover { background: rgba(255,154,162,0.16); }

/* Growth Tracker — always visible on all screen sizes */
.nav-growth-always {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 0.875rem;
  border-radius: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #FF9AA2;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid #FF9AA2;
  background: rgba(255,154,162,0.08);
  transition: background 0.15s;
  flex-shrink: 0;
}
.nav-growth-always:hover { background: rgba(255,154,162,0.16); }
@media (max-width: 900px) {
  .nav-growth-always { font-size: 0.75rem; padding: 0.35rem 0.7rem; }
}
