/*
 * StratCraft marketing footer — ISSUE_9239 Phase 2.A
 * Visual parity with newhome-nuxt/components/sections/FooterSection.vue.
 * Self-contained tokens so the footer renders identically on any host page
 * (help-center forces dark, stratforge has its own dark bg, etc.).
 * All selectors scoped under .sc-footer per CLAUDE.md scoped-selector rule.
 */

.sc-footer {
  --sc-footer-bg: #0b1020;
  --sc-footer-rule: rgba(148, 163, 184, 0.12);
  --sc-footer-rule-2: rgba(148, 163, 184, 0.22);
  --sc-footer-ink: #e6ecf5;
  --sc-footer-ink-2: #93a2bd;
  --sc-footer-ink-3: #64748b;
  --sc-footer-accent: #5eead4;
  --sc-footer-maxw: 1480px;
  --sc-footer-gutter: 28px;
  --sc-footer-font: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sc-footer-font-display: var(--sc-footer-font);

  background: var(--sc-footer-bg);
  border-top: 1px solid var(--sc-footer-rule);
  padding: 64px 0 36px;
  font-size: 14px;
  color: var(--sc-footer-ink-2);
  font-family: var(--sc-footer-font);
  position: relative;
  z-index: 1;
}

.sc-footer * { box-sizing: border-box; }

.sc-footer .sc-footer-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: var(--sc-footer-maxw);
  margin: 0 auto;
  padding: 0 var(--sc-footer-gutter);
}

.sc-footer .sc-footer-col {
  display: flex;
  flex-direction: column;
}

.sc-footer .sc-footer-col h5 {
  font-family: var(--sc-footer-font-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sc-footer-ink);
  margin: 0 0 14px;
  font-weight: 700;
}

.sc-footer .sc-footer-col a {
  display: block;
  color: var(--sc-footer-ink-2);
  padding: 4px 0;
  text-decoration: none;
  transition: color 0.15s ease;
  font-size: 14px;
}

.sc-footer .sc-footer-col a:hover {
  color: var(--sc-footer-accent);
}

.sc-footer .sc-footer-brandcol {
  display: flex;
  flex-direction: column;
}

.sc-footer .sc-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sc-footer-font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--sc-footer-ink);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.sc-footer .sc-footer-brand-img,
.sc-footer .sc-footer-brand picture,
.sc-footer .sc-footer-brand img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-block;
  object-fit: contain;
}

.sc-footer .sc-footer-tagline {
  color: var(--sc-footer-ink-3);
  font-size: 13px;
  margin: 14px 0 18px;
  font-style: italic;
}

.sc-footer .sc-footer-copy {
  border-top: 1px solid var(--sc-footer-rule);
  margin-top: 40px;
  padding-top: 24px;
  font-size: 12px;
  color: var(--sc-footer-ink-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  /* override grid layout from .sc-footer-wrap */
  grid-template-columns: none;
}

@media (max-width: 980px) {
  .sc-footer .sc-footer-wrap {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .sc-footer .sc-footer-wrap {
    grid-template-columns: 1fr;
  }
}

/* When the shared marketing footer is on the page, hide GeneratePress's
   visible site-footer so only one footer renders. wp_footer() still fires
   via get_footer() — only the visible markup is suppressed. */
body:has(.sc-footer) .site-footer,
body:has(.sc-footer) .site-info {
  display: none !important;
}
