/* ===================================================
   SmithBook — Shell (shared topbar + footer)
   ----------------------------------------------------
   Visual identity for the App-family chrome (topbar-v2
   + global-footer). Loaded by pages that DON'T already
   pull in /css/style.css (which defines these natively).

   Depends on /css/tokens.css for variables.
   =================================================== */

/* ===== BASE (universal page styling — single source of truth) ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-primary);
  background:
    radial-gradient(ellipse at 20% 0%,  rgba(168,85,247,0.10), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(230,195,66,0.06), transparent 50%),
    var(--navy-deep);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== TOPBAR V2 ===== */
.topbar-v2 {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-bottom: 24px;
}
.topbar-logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
}
.topbar-brand-name { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.topbar-brand-sub { font-size: 11px; color: var(--accent); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.topbar-spacer-v2 { flex: 1; }
.topbar-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text);
  text-decoration: none;
}
.topbar-pill:hover { color: var(--accent); }
.user-avatar-v2 {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--social), #d44a7d);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 12px;
  color: white;
  border: 2px solid var(--border);
  cursor: pointer;
  text-decoration: none;
}

/* ===== SITE NAV (horizontal route map, sits below the topbar) ===== */
.site-nav {
  max-width: 1200px;
  margin: -8px auto 24px;
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.site-nav-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.site-nav-link:hover {
  color: var(--text);
  border-color: var(--border);
}
.site-nav-link-active {
  color: var(--navy-deep);
  background: var(--accent);
  border-color: var(--accent);
}

/* ===== UNIVERSAL CONTAINER + SHELL WRAP =====
   Single width across all pages so chrome (topbar/footer) lines up
   with body content. Page-specific .container rules were removed
   from landing.css, style.css and the services/paywall inline
   styles to make this rule the source of truth. */
.shell-wrap,
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.shell-wrap { padding-top: 24px; }

/* ===== GLOBAL FOOTER ===== */
.global-footer {
  max-width: 1200px;
  margin: 60px auto 20px;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
}
@media (max-width: 720px) { .global-footer { grid-template-columns: 1fr 1fr; } }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  object-fit: contain;
}
.footer-tag { font-size: 12px; color: var(--text-muted); line-height: 1.55; max-width: 280px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.footer-col a {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  transition: color 0.15s;
  text-decoration: none;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--accent); }
