/*
 * Nordkapp footer, copied from the nordkapp-web skill (nk-web.css 1.0.4) so the
 * footer matches nordkapp.fi and the other subsites (e.g. aicoaching.nordkapp.fi).
 * Only the footer's own rules are copied: the full nk-web.css resets would
 * break the AFT layout. Base resets are scoped to .nk-footer.
 * To update: re-copy the "Footer", "Links" and plus-icon rules from the skill.
 */
.nk-footer {
  --nk-black: rgb(10, 10, 10);
  --nk-white: rgb(255, 255, 255);
  --nk-gray: rgb(245, 245, 245);
  --nk-muted: rgba(10, 10, 10, 0.6);
  --nk-gutter: 36px;
  --nk-container: 1520px;
  --nk-gap: 4px;
  --nk-spring-button: linear(0, 0.0348, 0.1223, 0.2406, 0.3726, 0.5054, 0.63, 0.7408, 0.8348, 0.9108, 0.9694, 1.0122, 1.041, 1.0583, 1.0665, 1.0679, 1.0643, 1.0577, 1.0493, 1.0402, 1.0312, 1.023, 1.0158, 1.0097, 1.0049, 1.0012, 0.9985, 0.9968, 0.9958, 0.9954, 0.9954, 0.9957, 0.9962, 0.9968, 0.9974, 1);
  --nk-spring-button-dur: 0.37s;
  --nk-spring-ui: linear(0, 0.0233, 0.0822, 0.1633, 0.2561, 0.353, 0.4486, 0.5389, 0.6217, 0.6957, 0.7603, 0.8155, 0.8619, 0.9001, 0.9309, 0.9553, 0.9742, 0.9884, 0.9987, 1.0059, 1.0107, 1.0135, 1.0149, 1.0152, 1.0147, 1.0137, 1.0125, 1.011, 1.0096, 1.0081, 1.0068, 1.0055, 1.0044, 1.0035, 1.0027, 1);
  --nk-spring-ui-dur: 0.36s;
  font-family: "APK Protocol", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--nk-black);
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 1199.98px) { .nk-footer { --nk-gutter: 30px; } }
@media (max-width: 809.98px) { .nk-footer { --nk-gutter: 20px; } }

/* Scoped base resets (nk-web.css "Base") */
/* :where() keeps these at zero specificity so the skill's own rules win. */
.nk-footer, .nk-footer :where(*, *::before, *::after) { box-sizing: border-box; }
.nk-footer :where(p, ul, li) { margin: 0; padding: 0; }
.nk-footer :where(ul) { list-style: none; }
.nk-footer :where(a, a:hover, a:focus) { color: inherit; text-decoration: none; }
.nk-footer :where(img, svg) { display: block; max-width: 100%; }

/* Layout helper */
.nk-stack { display: flex; flex-direction: column; }

/* Plus icons */
.nk-plus { position: relative; display: inline-block; width: 16px; height: 16px; flex: none; color: currentColor; transition: transform var(--nk-spring-ui-dur) var(--nk-spring-ui); }
.nk-plus::before, .nk-plus::after { content: ""; position: absolute; left: 7px; top: 0; width: 2px; height: 16px; background: currentColor; }
.nk-plus::after { transform: rotate(90deg); }
.nk-plus--faint { opacity: 0.3; }
.nk-plus-dot { position: relative; display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: var(--nk-black); flex: none; transition: transform var(--nk-spring-ui-dur) var(--nk-spring-ui); }
.nk-plus-dot::before, .nk-plus-dot::after { content: ""; position: absolute; left: 7px; top: 4px; width: 2px; height: 8px; background: var(--nk-white); }
.nk-plus-dot::after { transform: rotate(90deg); }

/* Links */
.nk-slink { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; line-height: 1.2; }
.nk-slink--s { font-size: 14px; }
.nk-slink__arrow { position: relative; width: 10px; height: 11px; overflow: hidden; flex: none; }
.nk-slink__arrow svg { position: absolute; left: 0; top: 0; width: 10px; height: 10px; opacity: 0.3; transition: transform var(--nk-spring-button-dur) var(--nk-spring-button); }
.nk-slink__arrow svg + svg { transform: translate(-16px, 16px); }
.nk-slink:hover .nk-slink__arrow svg:first-child { transform: translate(16px, -16px); }
.nk-slink:hover .nk-slink__arrow svg + svg { transform: translate(0, 0); }
@media (max-width: 809.98px) { .nk-slink { font-size: 16px; } }

/* List link (footer / menu lists): a dot fades in on the left on hover */
.nk-llink { position: relative; display: inline-flex; align-items: center; gap: 4px; font-size: 21px; line-height: 1.2; transition: gap var(--nk-spring-button-dur) var(--nk-spring-button); }
.nk-llink::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--nk-black); opacity: 0; position: absolute; left: -12px; transition: opacity 0.39s, left var(--nk-spring-button-dur) var(--nk-spring-button); }
.nk-llink:hover { gap: 7px; }
.nk-llink:hover::before { opacity: 0.25; position: relative; left: 0; }
.nk-on-dark .nk-llink::before, .nk-dark .nk-llink::before { background: var(--nk-white); }
@media (max-width: 809.98px) { .nk-llink { font-size: 16px; } }

/* Email link: plus dot + Para L address with 2px underline */
.nk-email { display: inline-flex; align-items: center; gap: 7px; font-size: 28px; line-height: 1.2; }
.nk-email__addr { position: relative; padding-bottom: 6px; }
.nk-email__addr::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transition: opacity var(--nk-spring-ui-dur) var(--nk-spring-ui); }
.nk-email:hover .nk-plus-dot { transform: rotate(90deg); }
.nk-email:hover .nk-email__addr::after { opacity: 0; }
@media (max-width: 1199.98px) { .nk-email { font-size: 21px; } }

/* Footer */
.nk-footer { background: var(--nk-gray); }
.nk-footer__top { padding: 200px var(--nk-gutter) 100px; }
.nk-footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--nk-gap); max-width: var(--nk-container); margin-inline: auto; }
.nk-footer__col { display: flex; flex-direction: column; gap: 80px; padding-right: 80px; }
.nk-footer__group { display: flex; flex-direction: column; gap: 4px; }
.nk-footer__label { font-size: 16px; line-height: 1.3; color: var(--nk-muted); margin-bottom: 10px; }
.nk-footer__tel, .nk-footer__address a { font-size: 16px; line-height: 1.5; text-decoration: underline; text-underline-offset: 2px; }
.nk-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--nk-gap); }
.nk-footer__links ul { display: flex; flex-direction: column; gap: 8px; }
.nk-footer__ext { display: inline-flex; align-items: center; gap: 10px; }
.nk-footer__wordmark { width: 100%; max-width: 520px; }
.nk-footer__bottom { padding: 42px var(--nk-gutter); background: linear-gradient(90deg, var(--nk-black) 0%, rgb(5, 5, 5) 85%); color: var(--nk-white); }
.nk-footer__bottom-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--nk-gap); max-width: var(--nk-container); margin-inline: auto; align-items: center; font-size: 16px; line-height: 1.3; }
.nk-footer__legal { display: flex; gap: 40px; flex-wrap: wrap; }
.nk-footer__legal a:hover { color: rgba(255, 255, 255, 0.8); }
@media (max-width: 1199.98px) {
  .nk-footer__top { padding: 140px 30px 100px; }
  .nk-footer__col { gap: 70px; padding-right: 30px; }
  .nk-footer__bottom { padding: 42px 30px; }
}
@media (max-width: 809.98px) {
  .nk-footer__top { padding: 50px 20px; }
  .nk-footer__grid, .nk-footer__bottom-grid { grid-template-columns: 1fr; gap: 40px; }
  .nk-footer__col { gap: 40px; padding-right: 0; }
  .nk-footer__bottom { padding: 40px 24px; }
  .nk-footer__legal { flex-direction: column; gap: 12px; }
}

/* AFT additions: the footer sits fixed behind the page and is revealed on
   scroll (assets/js/footer-reveal.js), and the small "V3 / GitHub" label. */
.nk-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 1;
}
.nk-footer .site-version { font-size: 12px; opacity: 0.5; margin-left: 20px; white-space: nowrap; }
