/*
 * Banca Julian - public site footer.
 * Markup: resources/views/frontend/layouts/common/footer.blade.php
 * Same palette and font as the header (navbar.css). Everything is scoped to .bj-footer.
 */

.bj-footer {
  --ft-bg: #0d121e;
  --ft-bg-2: #111827;
  --ft-text: #cbd5e1;
  --ft-strong: #f3f4f6;
  --ft-muted: #94a3b8;
  --ft-line: rgba(129, 140, 248, 0.18);
  --ft-primary: #6366f1;
  --ft-accent: #a855f7;
  --ft-cyan: #22d3ee;

  position: relative;
  margin-top: 64px;
  color: var(--ft-text);
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.bj-footer *,
.bj-footer *::before,
.bj-footer *::after {
  box-sizing: border-box;
}

/* Wave between the page and the footer (filled with the footer colour) */
.bj-footer__wave {
  display: block;
  width: 100%;
  height: 50px;
  margin-bottom: -1px;
}

.bj-footer__wave path {
  fill: var(--ft-bg);
}

.bj-footer__body {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(520px 260px at 92% 0%, rgba(168, 85, 247, 0.16), transparent 70%),
    radial-gradient(480px 240px at 0% 100%, rgba(6, 182, 212, 0.1), transparent 70%),
    var(--ft-bg);
}

.bj-footer__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.bj-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 48px;
}

/* Brand column */
.bj-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ft-strong);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.bj-footer__brand:hover {
  color: #fff;
}

.bj-footer__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.bj-footer__about {
  max-width: 320px;
  margin: 16px 0 0;
  color: var(--ft-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.bj-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.bj-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ft-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ft-text);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.bj-footer__social a:hover,
.bj-footer__social a:focus-visible {
  border-color: var(--ft-primary);
  background: rgba(99, 102, 241, 0.18);
  color: #fff;
  transform: translateY(-2px);
}

/* Link columns */
.bj-footer__title {
  margin: 6px 0 16px;
  color: var(--ft-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bj-footer__list,
.bj-footer__contacts {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bj-footer a {
  color: var(--ft-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.bj-footer__list a {
  position: relative;
  font-size: 15px;
}

.bj-footer__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ft-cyan), var(--ft-primary));
  transition: width 0.25s ease;
}

.bj-footer__list a:hover,
.bj-footer__list a:focus-visible,
.bj-footer__contacts a:hover,
.bj-footer__contacts a:focus-visible {
  color: #fff;
}

.bj-footer__list a:hover::after,
.bj-footer__list a:focus-visible::after {
  width: 100%;
}

.bj-footer__contacts li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.bj-footer__contacts svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: #a5b4fc;
}

.bj-footer__contacts address {
  margin: 0;
  font-style: normal;
}

/* Bottom bar */
.bj-footer__bottom {
  border-top: 1px solid var(--ft-line);
  background: var(--ft-bg-2);
}

.bj-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px;
  color: var(--ft-muted);
  font-size: 13.5px;
}

.bj-footer__bottom-inner p {
  margin: 0;
}

.bj-footer a:focus-visible {
  outline: 2px solid var(--ft-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 991.98px) {
  .bj-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 575.98px) {
  .bj-footer {
    margin-top: 40px;
  }

  .bj-footer__wave {
    height: 30px;
  }

  .bj-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 16px 36px;
  }

  .bj-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bj-footer * {
    transition: none !important;
  }
}
