/* Standard footer for the canonical footer markup used site-wide. */
footer {
  position: relative;
  width: 100% !important;
  margin: 0 !important;
  padding: 0;
  overflow: hidden;
  color: #e5e7eb;
  background: linear-gradient(135deg, #1f2937 0%, #111827 55%, #0f172a 100%);
  border-top: 2px solid #46bbe5;
}

footer > .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
  margin: 0;
  padding: 2.5rem 0 2rem;
}

.footer-section {
  min-width: 0;
}

.footer-brand .brand-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.footer-logo {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: cover;
  border: 2px solid #46bbe5;
  border-radius: 50%;
  background: rgba(70, 187, 229, 0.1);
  padding: 3px;
}

.footer-brand h3,
.footer-section h3 {
  margin: 0 0 0.9rem;
  color: #46bbe5;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.footer-brand h3 {
  margin: 0;
  font-size: 1.2rem;
}

.footer-brand p {
  max-width: 28rem;
  margin: 0;
  color: #d1d5db;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-section h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-section h3::after {
  display: none;
}

.footer-section ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-section li {
  margin: 0;
}

.footer-section li a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2rem;
  padding: 0.25rem 0.45rem;
  color: #d1d5db;
  border-left: 2px solid transparent;
  border-radius: 0.25rem;
  font-size: 0.85rem;
  line-height: 1.3;
  text-decoration: none;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.footer-section li a i {
  width: 1rem;
  color: #9ca3af;
  text-align: center;
}

.footer-section li a:hover,
.footer-section li a:focus-visible {
  color: #fff;
  background: rgba(70, 187, 229, 0.1);
  border-left-color: #46bbe5;
  outline: none;
  transform: translateX(3px);
}

.footer-section li a:hover i,
.footer-section li a:focus-visible i {
  color: #46bbe5;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 5.5rem;
  margin: 0;
  padding: 1.25rem 0;
  color: #9ca3af;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid #374151;
}

/* Override legacy layout-fixes.css full-viewport rules. */
footer > .container,
footer .footer-bottom {
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.footer-bottom-left,
.footer-bottom-center,
.footer-bottom-right {
  min-width: 0;
}
.footer-bottom-left {
  justify-self: start;
}
.footer-bottom-right {
  justify-self: end;
}

.footer-bottom-left p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
}

.footer-bottom-left .footer-subtitle {
  color: #6b7280;
  font-size: 0.72rem;
  font-style: italic;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.4rem;
  color: #9ca3af;
  border-radius: 0.25rem;
  font-size: 0.78rem;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #46bbe5;
  background: rgba(70, 187, 229, 0.1);
  outline: none;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
}

@media (max-width: 800px) {
  .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .footer-bottom-left,
  .footer-bottom-right {
    justify-self: center;
  }
}

@media (max-width: 480px) {
  footer > .container {
    padding: 0 1rem;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.75rem 0 1.5rem;
  }
  .footer-brand {
    grid-column: auto;
  }
  .footer-section:not(.footer-brand) h3,
  .footer-section:not(.footer-brand) ul {
    justify-content: center;
    text-align: center;
  }
  .footer-section:not(.footer-brand) h3 {
    justify-content: center;
  }
  .footer-section li a {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-section li a {
    transition: none;
  }
}
