/* Shared Quant Glob footer for all generated service pages. */
footer.qg-footer[data-qg-shared-footer] {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 20%, rgba(105,255,240,0.075), transparent 28%),
    radial-gradient(circle at 84% 82%, rgba(29,23,102,0.25), transparent 34%),
    linear-gradient(180deg, rgba(2,5,12,0.10), rgba(2,5,12,0.98));
  border-top: 1px solid rgba(255,255,255,0.075);
}
footer.qg-footer[data-qg-shared-footer]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(920px, 86vw);
  height: 1px;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(105,255,240,0.34), transparent);
  opacity: 0.95;
}
footer.qg-footer[data-qg-shared-footer]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7.5rem;
  width: min(760px, 92vw);
  height: 15rem;
  transform: translateX(-50%);
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(105,255,240,0.075), transparent 70%);
  filter: blur(44px);
  opacity: 0.86;
}
footer.qg-footer[data-qg-shared-footer] .qg-footer-inner {
  position: relative;
  z-index: 2;
  max-width: 82rem;
  margin: 0 auto;
  padding: clamp(3.25rem, 5vw, 4.75rem) 1.25rem 1.35rem;
}
footer.qg-footer[data-qg-shared-footer] .qg-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 0.75fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding-bottom: 2.3rem;
}
footer.qg-footer[data-qg-shared-footer] .qg-footer-brand { max-width: 25rem; }
footer.qg-footer[data-qg-shared-footer] .qg-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fffdf8;
  text-decoration: none;
  font-family: var(--font-display, var(--font-alternate, 'Sora', 'Manrope', system-ui, sans-serif));
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}
footer.qg-footer[data-qg-shared-footer] .qg-footer-copy {
  margin-top: 1rem;
  max-width: 22rem;
  color: rgba(255,255,255,0.48);
  font-size: 0.86rem;
  line-height: 1.68;
}
footer.qg-footer[data-qg-shared-footer] .qg-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
footer.qg-footer[data-qg-shared-footer] .qg-footer-link-inline {
  color: rgba(255,255,255,0.76);
  font-family: var(--font-display, var(--font-alternate, 'Sora', 'Manrope', system-ui, sans-serif));
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.22s ease, color 0.22s ease;
}
footer.qg-footer[data-qg-shared-footer] .qg-footer-link-inline:hover {
  color: #fff;
  transform: translateX(3px);
}
footer.qg-footer[data-qg-shared-footer] .qg-footer-col-title {
  margin-bottom: 0.95rem;
  color: rgba(255,255,255,0.92);
  font-family: var(--font-display, var(--font-alternate, 'Sora', 'Manrope', system-ui, sans-serif));
  font-size: 0.86rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}
footer.qg-footer[data-qg-shared-footer] .qg-footer-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
footer.qg-footer[data-qg-shared-footer] .qg-footer-list a,
footer.qg-footer[data-qg-shared-footer] .qg-footer-list span {
  color: rgba(255,255,255,0.48);
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1.48;
  transition: color 0.22s ease, transform 0.22s ease;
}
footer.qg-footer[data-qg-shared-footer] .qg-footer-list a {
  display: inline-flex;
  width: fit-content;
}
footer.qg-footer[data-qg-shared-footer] .qg-footer-list a:hover {
  color: var(--cyan, #69fff0);
  transform: translateX(3px);
}
footer.qg-footer[data-qg-shared-footer] .qg-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.34);
  font-size: 0.74rem;
  line-height: 1.6;
}
footer.qg-footer[data-qg-shared-footer] .qg-footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
footer.qg-footer[data-qg-shared-footer] .qg-footer-bottom-links a {
  color: rgba(255,255,255,0.42);
  text-decoration: none;
  transition: color 0.22s ease;
}
footer.qg-footer[data-qg-shared-footer] .qg-footer-bottom-links a:hover {
  color: var(--cyan, #69fff0);
}
@media (max-width: 900px) {
  footer.qg-footer[data-qg-shared-footer] .qg-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  footer.qg-footer[data-qg-shared-footer] .qg-footer-brand {
    grid-column: 1 / -1;
    max-width: 34rem;
  }
}
@media (max-width: 640px) {
  footer.qg-footer[data-qg-shared-footer] .qg-footer-inner { padding-top: 3rem; }
  footer.qg-footer[data-qg-shared-footer] .qg-footer-main {
    grid-template-columns: 1fr;
    gap: 1.65rem;
  }
  footer.qg-footer[data-qg-shared-footer] .qg-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Brand mark beside Quant Glob logo text - editable from WordPress Customizer. */
.brand .qg-brand-mark,
.qg-footer-logo .qg-brand-mark,
header.nav[data-qg-shared-header] .brand .qg-brand-mark,
footer.qg-footer[data-qg-shared-footer] .qg-footer-logo .qg-brand-mark {
  width: var(--qg-brand-mark-size, 34px) !important;
  height: var(--qg-brand-mark-size, 34px) !important;
  display: block !important;
  object-fit: contain !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  filter: drop-shadow(0 0 12px rgba(105,255,240,.22)) drop-shadow(0 8px 20px rgba(0,0,0,.28));
}

.brand,
.qg-footer-logo,
header.nav[data-qg-shared-header] .brand,
footer.qg-footer[data-qg-shared-footer] .qg-footer-logo {
  gap: .58rem !important;
}

@media (max-width: 560px) {
  .brand .qg-brand-mark,
  header.nav[data-qg-shared-header] .brand .qg-brand-mark {
    width: min(var(--qg-brand-mark-size, 34px), 30px) !important;
    height: min(var(--qg-brand-mark-size, 34px), 30px) !important;
  }
}
