/* =============================================================
   FAIR BUSINESS — SHARED FOOTER
   Loaded by footer.js into <div id="fb-footer"></div>.
   Self-contained: scoped tokens for the dark footer surface,
   independent from the page-level design system.
   ============================================================= */

.site-footer {
  --fb-bg: #0B0F14;
  --fb-surface: #141A23;
  --fb-surface-2: #1A2230;
  --fb-border: #1F2733;
  --fb-text: #F1F5F9;
  --fb-text-muted: #94A3B8;
  --fb-text-dim: #64748B;
  --fb-green: #38AD4E;
  --fb-green-light: #4DBE63;
  --fb-green-dark: #237D38;
  --fb-green-glow: rgba(56,173,78,.40);
  --fb-radius-md: 10px;
  --fb-radius-lg: 14px;
  --fb-ease: cubic-bezier(.4,0,.2,1);

  background: var(--fb-bg);
  color: var(--fb-text);
  padding: 64px 0 0;
  font-family: 'FiraGO', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.site-footer * { box-sizing: border-box; }
.site-footer a { text-decoration: none; color: inherit; }
.site-footer img { display: block; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }

.site-footer .footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.site-footer .footer-logo {
  margin-bottom: 40px;
  display: inline-flex;
}
.site-footer .footer-logo img {
  height: 40px;
  width: auto;
}

/* ============ MAIN GRID ============ */
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 2.4fr;
  gap: 40px;
  padding-bottom: 56px;
}

.site-footer .cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.site-footer .footer-col-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--fb-text-dim);
  letter-spacing: .02em;
  margin-bottom: 18px;
  text-transform: capitalize;
}

.site-footer .footer-link-list {
  display: grid;
  gap: 11px;
}
.site-footer .footer-link {
  color: var(--fb-text-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  transition: color .15s var(--fb-ease);
}
.site-footer .footer-link:hover { color: var(--fb-text); }
.site-footer .footer-link.is-active { color: var(--fb-green-light); }

/* ============ INFO CARDS ============ */
.site-footer .info-card {
  background: var(--fb-surface);
  border-radius: var(--fb-radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: background .2s var(--fb-ease);
  min-height: 138px;
}
.site-footer a.info-card:hover { background: var(--fb-surface-2); }

.site-footer .info-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--fb-radius-md);
  background: rgba(56,173,78,.10);
  color: var(--fb-green-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.site-footer .info-icon svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

.site-footer .info-label {
  font-size: 12px;
  color: var(--fb-text-dim);
  margin-bottom: 4px;
}
.site-footer .info-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--fb-text);
  line-height: 1.3;
  word-break: break-word;
}

/* ============ JOIN US CARD ============ */
.site-footer .join-card {
  background: linear-gradient(135deg, var(--fb-green-light) 0%, var(--fb-green) 55%, var(--fb-green-dark) 100%);
  border-radius: var(--fb-radius-lg);
  padding: 20px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 16px 40px -12px var(--fb-green-glow);
  cursor: pointer;
  min-height: 138px;
  transition: box-shadow .25s var(--fb-ease);
}
.site-footer .join-card:hover {
  box-shadow: 0 20px 50px -10px var(--fb-green-glow);
}

.site-footer .join-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.site-footer .join-blob.b-a { width: 200px; height: 200px; background: #7FE89A; top: -70px; right: -50px; opacity: .65; }
.site-footer .join-blob.b-b { width: 180px; height: 180px; background: #1A6B2F; bottom: -70px; left: -50px; opacity: .55; }
.site-footer .join-blob.b-c { width: 90px;  height: 90px;  background: #FFFFFF; top: 50%; right: 30%; opacity: .14; }

.site-footer .join-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  opacity: .22;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes fb-ja { 0%,100% { transform: translate(0,0); } 50% { transform: translate(14px,-10px); } }
  @keyframes fb-jb { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-12px,8px); } }
  @keyframes fb-jc { 0%,100% { transform: scale(1); opacity: .14; } 50% { transform: scale(1.3); opacity: .22; } }
  .site-footer .join-blob.b-a { animation: fb-ja 9s ease-in-out infinite; }
  .site-footer .join-blob.b-b { animation: fb-jb 11s ease-in-out infinite; }
  .site-footer .join-blob.b-c { animation: fb-jc 7s ease-in-out infinite; }
}

.site-footer .join-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}
.site-footer .join-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.92);
}
.site-footer .join-arrow {
  width: 32px; height: 32px;
  border-radius: var(--fb-radius-md);
  background: rgba(255,255,255,.18);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .25s var(--fb-ease), transform .25s var(--fb-ease);
}
.site-footer .join-card:hover .join-arrow {
  background: white;
  color: var(--fb-green-dark);
  transform: rotate(-12deg);
}
.site-footer .join-arrow svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}

.site-footer .join-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: white;
  position: relative;
  z-index: 2;
}

/* ============ BOTTOM BAR ============ */
.site-footer .footer-bottom {
  border-top: 1px solid var(--fb-border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer .footer-copyright {
  font-size: 12px;
  color: var(--fb-text-dim);
}
.site-footer .footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.site-footer .footer-legal a {
  font-size: 12px;
  color: var(--fb-text-muted);
  transition: color .15s var(--fb-ease);
}
.site-footer .footer-legal a:hover { color: var(--fb-text); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px 28px;
  }
  .site-footer .cards-grid { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .site-footer { padding: 48px 0 0; }
  .site-footer .footer-container { padding: 0 24px; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 28px; padding-bottom: 40px; }
  .site-footer .footer-logo { margin-bottom: 32px; }
  .site-footer .footer-logo img { height: 36px; }
  .site-footer .cards-grid { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .site-footer .footer-container { padding: 0 16px; }
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    padding-bottom: 32px;
  }
  .site-footer .footer-grid > div:first-child { grid-column: 1 / -1; }
  .site-footer .footer-col-title { font-size: 11px; margin-bottom: 14px; }
  .site-footer .footer-link { font-size: 13px; line-height: 1.35; }
  .site-footer .footer-link-list { gap: 10px; }
  .site-footer .cards-grid {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }
  .site-footer .footer-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 0;
  }
  .site-footer .footer-legal { gap: 16px; }
}

