/* ========================================
   Footer — Cellsior dark, structured, brand-led
   ======================================== */
.footer {
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.74);
  background: var(--color-bg, #0a0a0a);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Subtle lime accent bar at the very top of the footer */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(193, 233, 78, 0.0) 10%,
    rgba(193, 233, 78, 0.35) 50%,
    rgba(193, 233, 78, 0.0) 90%,
    transparent 100%);
  pointer-events: none;
}

/* Faint radial glow behind the brand area */
.footer::after {
  content: "";
  position: absolute;
  top: -120px;
  left: -80px;
  width: 560px;
  height: 360px;
  background: radial-gradient(ellipse at center,
    rgba(16, 185, 129, 0.06) 0%,
    transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max-width, 1300px));
  margin-inline: auto;
  padding: 4.5rem var(--side-padding, 40px) 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

/* ── Brand block ── */
.footer-brand-block {
  max-width: 22rem;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  margin-bottom: 1.1rem;
}

.footer-brand {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.01em;
}

.footer-brand span {
  color: var(--color-accent);
}

.footer-kicker {
  display: inline-block;
  margin-bottom: 0.95rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.footer-copy {
  max-width: 22rem;
  margin: 0.6rem 0 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
}

/* ── Link columns ── */
.footer-column {
  min-width: 0;
}

.footer-heading {
  margin: 0 0 1.2rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.footer-links {
  display: grid;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  position: relative;
  display: inline-block;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
  word-break: break-word;
}

.footer-links a::before {
  content: "";
  position: absolute;
  left: -0.85rem;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  transform: translate(-4px, -50%);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-accent);
  transform: translateX(0.3rem);
}

.footer-links a:hover::before,
.footer-links a:focus-visible::before {
  transform: translate(0, -50%);
  opacity: 1;
}

.footer-links a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ── Bottom strip ── */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.42);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom .footer-made {
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom .footer-made strong {
  color: var(--color-accent);
  font-weight: 700;
}

/* ── Responsive ── */
@media (max-width: 1080px) {
  .footer-inner {
    padding: 3.8rem var(--side-padding, 32px) 1.4rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.25rem;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
    max-width: 30rem;
    margin-bottom: 0.6rem;
  }
}

@media (max-width: 720px) {
  .footer-inner {
    padding: 3rem 1.4rem 1.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.4rem;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
    max-width: 100%;
    margin-bottom: 0.3rem;
  }

  .footer-brand-link {
    gap: 0.75rem;
    margin-bottom: 0.9rem;
  }

  .clogo-wrap--footer {
    width: 72px;
    height: 72px;
  }

  .footer-brand {
    font-size: 1.55rem;
  }

  .footer-copy {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .footer-heading {
    margin-bottom: 0.9rem;
    font-size: 0.68rem;
  }

  .footer-links {
    gap: 0.72rem;
  }

  .footer-links a {
    font-size: 0.92rem;
  }

  /* Disable the translateX hover on touch to prevent lingering active states */
  .footer-links a:hover,
  .footer-links a:focus-visible {
    transform: none;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 2.4rem;
    padding-top: 1.3rem;
    font-size: 0.68rem;
  }
}

@media (max-width: 460px) {
  .footer-inner {
    padding: 2.6rem 1.2rem 1.1rem;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-brand-block {
    text-align: center;
  }

  .footer-brand-link {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
  }

  .footer-brand {
    font-size: 1.4rem;
  }

  .footer-copy {
    margin-left: auto;
    margin-right: auto;
    max-width: 22rem;
  }

  .footer-column {
    text-align: center;
  }

  .footer-links {
    gap: 0.65rem;
  }

  .footer-links a::before {
    display: none;
  }

  .footer-bottom {
    align-items: center;
    text-align: center;
  }
}
