/* Footer styles for Intelion */

.fd-footer {
  background: radial-gradient(circle at top left, #111827, #020617 55%);
  color: #e5e7eb;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  margin-top: 3rem;
}

.fd-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 2.5rem;
}

.fd-footer__brand-block {
  max-width: 420px;
}

.fd-footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.fd-footer__logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: radial-gradient(circle at 25% 0%, #3b82f6, #020617 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: #e5f0ff;
}

.fd-footer__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.fd-footer__brand-name {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #f9fafb;
}

.fd-footer__brand-tagline {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: #9ca3af;
}

.fd-footer__summary {
  margin-top: 0.5rem;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #d1d5db;
}

.fd-footer__links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.fd-footer__column {
  min-width: 0;
}

.fd-footer__heading {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 0.75rem;
}

.fd-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fd-footer__link {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
  color: #e5e7eb;
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.fd-footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.05rem;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #60a5fa, #38bdf8);
  transition: width 160ms ease;
}

.fd-footer__link:hover::after,
.fd-footer__link:focus-visible::after {
  width: 100%;
}

.fd-footer__link:hover,
.fd-footer__link:focus-visible {
  color: #f9fafb;
}

.fd-footer__link:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.fd-footer__bottom {
  border-top: 1px solid rgba(55, 65, 81, 0.9);
  padding: 0.9rem 1.25rem 1.2rem;
}

.fd-footer__bottom > * {
  max-width: 1200px;
  margin: 0 auto;
}

.fd-footer__copyright {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  color: #9ca3af;
}

/* Cookie banner */

.fd-cookie {
  position: fixed;
  inset-inline: 0.75rem;
  bottom: 0.75rem;
  max-width: 540px;
  margin-inline: auto;
  background: radial-gradient(circle at top left, #111827, #020617 65%);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  z-index: 1200;
  opacity: 0;
  transform: translateY(120%);
  transition: opacity 180ms ease-out, transform 220ms ease-out;
}

.fd-cookie--visible {
  opacity: 1;
  transform: translateY(0);
}

.fd-cookie--hidden {
  opacity: 0;
  transform: translateY(120%);
}

.fd-cookie__inner {
  padding: 1rem 1.1rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.fd-cookie__text {
  flex: 1 1 auto;
}

.fd-cookie__title {
  margin: 0 0 0.1rem;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  color: #f9fafb;
}

.fd-cookie__desc {
  margin: 0 0 0.35rem;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #d1d5db;
}

.fd-cookie__link {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: #93c5fd;
  text-decoration: underline;
}

.fd-cookie__link:hover,
.fd-cookie__link:focus-visible {
  color: #bfdbfe;
}

.fd-cookie__link:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.fd-cookie__actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fd-cookie__button {
  min-width: 120px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.42rem 0.8rem;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
}

.fd-cookie__button--primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: rgba(37, 99, 235, 0.8);
  color: #f9fafb;
}

.fd-cookie__button--primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1d4ed8);
}

.fd-cookie__button--secondary {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.8);
  color: #e5e7eb;
}

.fd-cookie__button--secondary:hover {
  background: rgba(31, 41, 55, 0.9);
}

.fd-cookie__button:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .fd-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .fd-footer__links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fd-footer__column--legal {
    grid-column: 1 / -1;
  }

  .fd-cookie__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .fd-cookie__actions {
    flex-direction: row;
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .fd-footer__links-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .fd-cookie {
    inset-inline: 0.5rem;
  }

  .fd-cookie__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .fd-cookie__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fd-cookie {
    transition: none !important;
  }
}
