/* ============================================================================
   Author: N1CHO
   Made for LynxLayers
   ============================================================================ */
/* ============================================================================
   LynxThemeN1CHO - Footer (lynxlayers.me columns). Token-driven dark/light.
   Products column is dynamic ($footerGroups from the footer hook).
   ============================================================================ */

section#footer.ll-footer {
  background: linear-gradient(180deg, transparent, color-mix(in oklch, var(--bg-base) 70%, transparent)) !important;
  border-top: 1px solid var(--border-color) !important;
  padding: 64px 0 28px !important;
  color: var(--text-secondary) !important;
}
.ll-footer .ll-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.ll-footer .ll-footer-logo { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text-primary); }
.ll-footer .ll-footer-logo::first-letter { color: var(--primary-color); }
.ll-footer .ll-footer-brand p { color: var(--text-muted); font-size: 14px; margin: 14px 0 0; max-width: 340px; line-height: 1.6; }
.ll-footer .ll-footer-col h5 {
  font-family: var(--font-display); font-size: 13px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--text-primary); margin: 0 0 16px; font-weight: 600;
}
.ll-footer .ll-footer-col a {
  position: relative; display: block; width: -moz-fit-content; width: fit-content;
  color: var(--text-secondary); font-size: 14px; padding: 6px 0; text-decoration: none;
  transition: color .2s var(--ease-out, cubic-bezier(.22,1,.36,1)),
              transform .25s var(--ease-out, cubic-bezier(.22,1,.36,1));
}
/* Animated underline that grows in from the left on hover/keyboard focus. */
.ll-footer .ll-footer-col a::after {
  content: ""; position: absolute; left: 0; bottom: 4px;
  width: 100%; height: 1.5px; border-radius: 2px;
  background: var(--primary-strong);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .3s var(--ease-out, cubic-bezier(.22,1,.36,1));
}
.ll-footer .ll-footer-col a:hover,
.ll-footer .ll-footer-col a:focus-visible { color: var(--primary-strong); text-decoration: none; transform: translateX(4px); }
.ll-footer .ll-footer-col a:hover::after,
.ll-footer .ll-footer-col a:focus-visible::after { transform: scaleX(1); }
/* Keep the WCAG focus ring hugging the word, not the whole column */
.ll-footer .ll-footer-col a:focus-visible { outline-offset: 3px; border-radius: var(--radius-sm, 6px); }
.ll-footer .ll-footer-bottom {
  padding-top: 22px; border-top: 1px solid var(--border-color);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.ll-footer .ll-footer-bottom p { color: var(--text-muted); font-size: 13px; margin: 0; }
.ll-footer .back-to-top {
  position: static; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0;
  background: none; border: 0; border-radius: 50%;
  color: var(--text-muted); font-size: 17px; line-height: 1; cursor: pointer;
  transition: color .2s var(--ease-out, cubic-bezier(.22,1,.36,1)),
              transform .28s var(--ease-out, cubic-bezier(.22,1,.36,1));
}
.ll-footer .back-to-top i { transition: transform .28s var(--ease-out, cubic-bezier(.22,1,.36,1)); }
.ll-footer .back-to-top:hover,
.ll-footer .back-to-top:focus-visible { color: var(--primary-strong); }
.ll-footer .back-to-top:hover i { transform: translateY(-3px); }
.ll-footer .back-to-top:active i { transform: translateY(-1px); }
.ll-footer .back-to-top:focus-visible { outline-offset: 3px; border-radius: var(--radius-sm, 6px); }

@media (max-width: 880px) { .ll-footer .ll-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 560px) { .ll-footer .ll-footer-grid { grid-template-columns: 1fr; } .ll-footer .ll-footer-bottom { flex-direction: column; align-items: flex-start; } }
