/* ===========================================================================
   Lippukone — site footer
   ===========================================================================

   Section 8 of site.css, split out for the same reason header.css was: two
   documents render this footer and it must look the same in both. Blade draws
   it on the marketing pages (resources/views/site/partials/footer.blade.php);
   the buyer app draws it in Vue (frontend/apps/buyer/src/components/
   SiteFooter.vue) from the same server-side content
   (App\Support\Site\SiteFooter). A rule added for one renderer and not the
   other is the drift this split exists to prevent.

   Needs tokens.css before it, and .wrap from header.css.
   =========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
  font-size: 0.9375rem;
}

.site-footer__inner {
  display: grid;
  gap: 36px;
  padding-block: 52px 40px;
}

@media (min-width: 640px) {
  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 940px) {
  .site-footer__inner {
    /* Five columns for five blocks: the brand and four lists. Four used to leave the legal
       list wrapping under the brand on every desktop width. */
    grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr));
    gap: 40px;
  }
}

.site-footer__tagline {
  margin-top: 14px;
  color: var(--ink-muted);
  max-width: 34ch;
}

/* The social icons: a row of 40px targets, which is the smallest a thumb reliably hits, drawn
   in the muted ink until hovered so they read as a footer detail rather than a call to action. */
.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--ink-muted);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
  color: var(--accent-text);
  background: var(--accent-soft);
}

.site-footer__social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.site-footer__column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: start;
}

.site-footer__heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.site-footer__column a {
  color: var(--ink);
  text-decoration: none;
}

.site-footer__column a:hover {
  color: var(--accent-text);
}

.site-footer__note {
  color: var(--ink-muted);
  font-size: 0.875rem;
  max-width: 28ch;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-block: 20px 32px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.875rem;
}
