/* Total Commerce — Shared nav + footer chrome
   Included on every public page except docs.
   Page-specific styles remain in each page's own <style> block.
*/

/* Tokens & resets used by chrome */
:root {
  --bg: #fff;
  --bg-subtle: #f7f7f8;
  --text: #111113;
  --text-secondary: #62636c;
  --text-muted: #9d9ea6;
  --border: #e8e8ec;
  --border-subtle: #f1f1f4;
  --accent: #4f46e5;
  --accent-light: #eef2ff;
  --shadow-md: 0 6px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 18px 48px rgba(0,0,0,0.12);
}

/* NAV (top floating pill) */
nav.site-nav {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 100; width: calc(100% - 32px); max-width: 800px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 100px; padding: 8px 8px 8px 24px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}
.site-nav .nav-logo {
  font-family: 'Clash Display', sans-serif;
  font-size: 17px; font-weight: 600;
  letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
  color: var(--text); text-decoration: none;
}
.site-nav .nav-logo-icon {
  width: 24px; height: 24px;
  background: var(--accent);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}
.site-nav .nav-logo-icon svg { width: 14px; height: 14px; }
.site-nav .nav-center { display: flex; gap: 4px; }
.site-nav .nav-center a {
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  padding: 8px 14px; border-radius: 100px;
  transition: all 0.2s; text-decoration: none;
}
.site-nav .nav-center a:hover { color: var(--text); background: var(--bg-subtle); text-decoration: none; }
.site-nav .nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: #fff;
  background: var(--text);
  padding: 9px 18px 9px 14px; border-radius: 100px;
  transition: all 0.2s;
  white-space: nowrap; text-decoration: none;
}
.site-nav .nav-cta:hover { background: #2a2a2e; box-shadow: var(--shadow-md); text-decoration: none; }
.site-nav .nav-cta-shopify { width: 16px; height: 18px; flex-shrink: 0; }
.site-nav .mobile-menu-btn {
  display: none; background: none; border: none;
  font-size: 20px; cursor: pointer; padding: 8px; color: var(--text);
}
.site-nav .mobile-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff;
  border-radius: 12px;
  margin-top: 8px; padding: 12px;
  box-shadow: var(--shadow-lg);
  flex-direction: column; gap: 4px;
}
.site-nav .mobile-menu.active { display: flex; }
.site-nav .mobile-menu a {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s; text-decoration: none;
}
.site-nav .mobile-menu a:hover { background: var(--bg-subtle); color: var(--text); text-decoration: none; }

/* FOOTER */
footer.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--border-subtle);
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  color: var(--text);
  text-align: left;
}
.site-footer * { text-align: left; }
.site-footer .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.site-footer .footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.site-footer .footer-brand {
  font-family: 'Clash Display', sans-serif;
  font-size: 17px; font-weight: 600; letter-spacing: -0.03em;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
  color: var(--text);
}
.site-footer .footer-logo-icon {
  width: 28px; height: 28px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.site-footer .footer-logo-icon svg { width: 16px; height: 16px; }
.site-footer .footer-desc {
  font-size: 14px; color: var(--text-muted); line-height: 1.7; max-width: 280px;
}
.site-footer .footer-col-title {
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;
}
.site-footer .footer-col a {
  display: block; font-size: 14px; color: var(--text-secondary);
  padding: 4px 0; transition: color 0.2s; text-decoration: none;
}
.site-footer .footer-col a:hover { color: var(--text); text-decoration: none; }
.site-footer .footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--border-subtle);
  font-size: 12px; color: var(--text-muted);
}
.site-footer .footer-bottom-right {
  display: flex; align-items: center; gap: 8px;
}
.site-footer .footer-bottom a {
  color: var(--text-secondary); margin-left: 12px; text-decoration: none;
}
.site-footer .footer-bottom a:hover { color: var(--text); text-decoration: none; }

/* Reserve room for the fixed nav at the top of every page */
body.site-shell { padding-top: 88px; }

/* Responsive */
@media (max-width: 768px) {
  nav.site-nav { border-radius: 16px; padding: 10px 16px; position: relative; }
  .site-nav .nav-center { display: none; }
  .site-nav .mobile-menu-btn { display: block; }
  .site-nav .nav-cta { display: none; }
  body.site-shell { padding-top: 16px; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .site-footer .footer-bottom-right { flex-wrap: wrap; justify-content: center; }
  .site-footer .footer-bottom a:first-of-type { margin-left: 0; }
}
@media (max-width: 480px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}
