/* ═══════════════════ SHARED NAV STYLES ═══════════════════
   Loaded by all pages that use data-include="/shared/nav.html".
   Expects CSS variables: --cream, --coral, --ink, --ink2, --ink3, --border, --cream2
   ═════════════════════════════════════════════════════════ */

nav { background: var(--cream, #FFFBF3); border-bottom: 1px solid rgba(44, 36, 22, 0.08); position: sticky; top: 0; z-index: 100; height: 72px; display: flex; align-items: center; }
.nav-inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.35rem; color: var(--ink); }
.nav-logo .net { color: var(--coral, #E8624A); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { text-decoration: none; color: var(--ink); font-size: 0.95rem; font-weight: 600; opacity: 0.75; transition: opacity 0.2s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a.active { color: var(--coral, #E8624A); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-actions a { text-decoration: none; font-size: 0.95rem; font-weight: 600; }
.nav-actions .sign-in { color: var(--ink); opacity: 0.75; transition: opacity 0.2s; }
.nav-actions .sign-in:hover { opacity: 1; }
.nav-actions .get-started { background: var(--coral, #E8624A); color: #fff; padding: 8px 20px; border-radius: 8px; transition: background 0.2s, transform 0.15s; }
.nav-actions .get-started:hover { background: #d4553f; transform: translateY(-1px); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; font-family: inherit; font-weight: 700; border-radius: 100px; border: none; cursor: pointer; transition: all 0.18s; text-decoration: none; white-space: nowrap; }
.btn-sm { font-size: 13px; padding: 8px 20px; }
.btn-ghost { background: transparent; color: var(--ink2); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--ink3); color: var(--ink); }
.btn-primary { background: var(--coral, #E8624A); color: #fff; box-shadow: 0 3px 0 #b84030; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #b84030; }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 1px 0 #b84030; }

/* ── Nav Dropdown ── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ink2); background: none; border: none; cursor: pointer; padding: 4px 0; font-family: inherit; transition: color 0.15s; }
.nav-dropdown-toggle:hover { color: var(--ink); }
.nav-dropdown-toggle svg { transition: transform 0.2s ease; }
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu { display: none; position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); min-width: 240px; background: var(--cream, #FFFBF3); border: 1px solid var(--border); border-radius: 12px; padding: 8px; box-shadow: 0 12px 36px rgba(0,0,0,0.12); z-index: 100; }
.nav-dropdown.open .nav-dropdown-menu { display: block; animation: dropdownIn 0.18s ease-out; }
@keyframes dropdownIn { from { opacity: 0; transform: translateX(-50%) translateY(-6px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.nav-dropdown-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; text-decoration: none; transition: background 0.15s ease; }
.nav-dropdown-item:hover { background: var(--cream2, #FFF6E8); }
.nav-dropdown-item::after { display: none !important; }
.nav-dropdown-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--cream2, #FFF6E8); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--ink2); }
.nav-dropdown-icon svg { width: 18px; height: 18px; }
.nav-dropdown-item:hover .nav-dropdown-icon { background: #FBEAE6; color: var(--coral, #E8624A); }
.nav-dropdown-label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.nav-dropdown-desc { display: block; font-size: 12px; color: var(--ink3); font-weight: 400; }

/* ── Mobile Nav Toggle ── */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink); border-radius: 8px; position: relative; z-index: 101; }
.nav-toggle:hover { background: rgba(44,36,22,0.05); }
.nav-toggle .hamburger-line {
  display: block;
  width: 20px;
  height: 2.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  margin: 2px 0;
}
.nav-toggle.open .hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open .hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; max-height: calc(100vh - 72px); overflow-y: auto; background: rgba(255,251,243,0.98); backdrop-filter: blur(20px); flex-direction: column; padding: 12px 24px 20px; gap: 0; border-bottom: 1px solid rgba(44,36,22,0.08); box-shadow: 0 12px 32px rgba(44,36,22,0.1); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid rgba(44,36,22,0.06); font-size: 1rem; width: 100%; opacity: 0.85; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; order: -1; }
  .nav-actions .sign-in { display: none; }
  .nav-hide-mobile { display: none; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { padding: 14px 0; border-bottom: 1px solid rgba(44,36,22,0.06); font-size: 1rem; width: 100%; justify-content: space-between; }
  .nav-dropdown-menu { position: static; transform: none; box-shadow: none; border: none; padding: 0 0 0 16px; min-width: auto; background: transparent; }
  .nav-dropdown.open .nav-dropdown-menu { animation: none; }
}
