/* ============================================================
   Search.TheFinanceStory — Navigation & Footer
   nav.css  (dark header)
   ============================================================ */

/* ── Top Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .90;
}
.nav-logo-mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,.90);
  line-height: 1.2;
}
.nav-logo-text .accent { color: var(--blue-light); }
.nav-logo-sub {
  font-size: 9px;
  color: rgba(255,255,255,.35);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}
.nav-links li { list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,.70);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 6px;
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,.12);
}
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,.18);
  font-weight: 600;
}

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Override btn styles for dark nav */
.site-nav .btn-ghost {
  color: rgba(255,255,255,.80) !important;
  border-color: rgba(255,255,255,.22) !important;
  background: transparent !important;
}
.site-nav .btn-ghost:hover {
  color: #fff !important;
  border-color: rgba(255,255,255,.50) !important;
  background: rgba(255,255,255,.06) !important;
}
.site-nav .btn-primary {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
}
.site-nav .btn-primary:hover {
  background: var(--brand-dark) !important;
  border-color: var(--brand-dark) !important;
}

/* Mobile burger */
.nav-burger {
  display: none;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-burger [data-lucide] { width: 18px; height: 18px; color: rgba(255,255,255,.7); }

/* ── Mobile sidebar drawer ── */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, calc(100vw - 48px));
  background: var(--navy, #0f172a);
  border-left: 1px solid rgba(255,255,255,.08);
  box-shadow: -8px 0 32px rgba(0,0,0,.4);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  z-index: 1002;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .28s cubic-bezier(.4,0,.2,1), visibility .28s;
}
.nav-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

/* Drawer header */
.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.nav-drawer-header .nav-logo-img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.nav-drawer-close {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  background: transparent;
  color: rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s;
}
.nav-drawer-close:hover {
  color: #fff;
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
}
.nav-drawer-close [data-lucide] { width: 16px; height: 16px; }

/* Drawer links */
.nav-drawer-links {
  flex: 1;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-drawer a {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 8px;
  transition: color .15s, background .15s;
  display: block;
}
.nav-drawer a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-drawer a.active { color: #fff; background: rgba(255,255,255,.12); font-weight: 600; }
.nav-drawer .drawer-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* Overlay */
.nav-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.nav-drawer-overlay.open { display: block; }

body.nav-drawer-open { overflow: hidden; }

/* ── Breadcrumb ── */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 11px 48px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-muted);
  max-width: 1160px;
  margin: 0 auto;
}
.breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.18s;
}
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [data-lucide] { width: 12px; height: 12px; }
.breadcrumb-current { color: var(--ink); font-weight: 500; }

/* ── Footer ── */
.site-footer {
  background: #0a0a0a;
  padding: 60px 48px 30px;
}
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 28px;
}
.footer-brand-logo {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px; font-weight: 600;
  color: rgba(255,255,255,.75);
  margin-bottom: 12px;
}
.footer-brand-logo .accent { color: var(--brand); }
.footer-brand-desc {
  font-size: 13px; color: rgba(255,255,255,.38);
  line-height: 1.7; margin-bottom: 18px;
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 32px; height: 32px; border-radius: 7px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: all 0.18s;
}
.footer-social a:hover { border-color: var(--brand); background: rgba(1,115,242,.12); }
.footer-social a svg { width: 14px; height: 14px; color: rgba(255,255,255,.55); stroke: rgba(255,255,255,.55); }
.footer-social a:hover svg { color: #fff; stroke: #fff; }
.footer-col-title {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.55);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-col-links { display: flex; flex-direction: column; gap: 11px; }
.footer-col-links a { font-size: 13px; color: rgba(255,255,255,.35); text-decoration: none; transition: color 0.18s; }
.footer-col-links a:hover { color: rgba(255,255,255,.75); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,.22); }
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { font-size: 12px; color: rgba(255,255,255,.25); text-decoration: none; transition: color 0.18s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.6); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .site-nav { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-burger { display: flex; }
  .breadcrumb-bar { padding: 10px 24px; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .site-footer { padding: 40px 24px 24px; }
}
@media (max-width: 400px) {
  .footer-top { grid-template-columns: 1fr; }
}
