/* ==========================================================================
   Footer
   Light theme (matches the rest of the site) so the logo shows in its true
   brand colors, kept short and compact — one tidy row on desktop instead
   of a tall stacked block.
   ========================================================================== */

.site-footer {
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  padding-inline: var(--edge-pad);
  padding-block: var(--space-md) var(--space-sm);
  border-top: 1px solid rgba(40, 16, 115, 0.08);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md) var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(40, 16, 115, 0.08);
}

/* ---- Brand / logo ---- */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 260px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-logo-mark {
  width: 34px;
  height: auto;
  flex-shrink: 0;
}

.footer-logo-text {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.footer-logo-text .logo-purple {
  color: var(--color-orange);
}

.footer-logo-text .logo-data {
  color: var(--color-indigo-deep);
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* Small brand-mark gradients, defined locally so this section stays fully
   independent of hero.css even though the artwork echoes the hero mark. */
.footer-stop-indigo { stop-color: var(--color-indigo-deep); }
.footer-stop-purple { stop-color: var(--color-purple-light); }
.footer-stop-orange { stop-color: var(--color-orange); }
.footer-stop-orange-light { stop-color: var(--color-orange-light); }

.footer-bar { fill: url(#footerBarGradient); }

.footer-line {
  stroke: url(#footerLineGradient);
  stroke-dasharray: 15 11;
  animation: footer-line-flow 1.8s linear infinite;
}

.footer-dot-halo { fill: var(--color-peach); }
.footer-dot { fill: var(--color-orange); }

.footer-dot-group {
  transform-box: fill-box;
  transform-origin: center;
  animation: footer-dot-blink 2.2s ease-in-out infinite;
}

@keyframes footer-line-flow {
  to {
    stroke-dashoffset: -52;
  }
}

@keyframes footer-dot-blink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-line {
    animation: none;
  }

  .footer-dot-group {
    animation: none;
    opacity: 1;
    transform: scale(1);
  }
}

/* ---- Nav links ---- */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.1rem;
  max-width: 380px;
}

.footer-links a {
  color: var(--color-text);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

/* ---- Contact ---- */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-start;
}

.footer-contact-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-text);
  font-size: 0.86rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-contact-line svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--color-purple-mid);
}

a.footer-contact-line:hover {
  color: var(--color-orange);
}

.footer-links a:hover {
  color: var(--color-orange);
}

.footer-address {
  color: var(--color-text-muted);
  font-weight: 500;
  max-width: 240px;
}

/* ---- Bottom bar ---- */
.footer-bottom {
  padding-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
}

@media (max-width: 760px) {
  .footer-top {
    flex-direction: column;
  }

  .footer-brand,
  .footer-links,
  .footer-contact {
    max-width: none;
  }
}
