/* ===== Footer (views/footer.php) =====
   Uses the colour and font variables from style.css, with fallbacks. */
.site-footer {
    padding-block: 56px 32px;
    border-top: 1px solid var(--line, #dce3d9);
    background: var(--bg, #fff);
    color: var(--muted, #5a6156);
    font-size: 13.5px;
    line-height: 1.65;
}
.site-footer__wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }

/* Logo and description */
.site-footer__brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--ink, #292c27); font: 700 15px var(--font-head, system-ui, sans-serif); text-decoration: none; }
.site-footer__logo { width: 80px; height: 75px; object-fit: contain; padding: 4px; background: #fff; border-radius: 6px; box-shadow: 0 2px 8px #0000001f; }
html.dark .site-footer__logo { padding: 8px; background: #1f2937; }
.site-footer__grid p { max-width: 34ch; }

/* Link columns */
.site-footer h2 { margin-bottom: 12px; color: var(--ink, #292c27); font: 600 13.5px var(--font-head, system-ui, sans-serif); letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 4px; }
.site-footer a { transition: color .2s; }
.site-footer li a { display: inline-block; padding-block: 3px; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.site-footer li a:hover,
.site-footer__social a:hover,
.site-footer__legal a:hover { color: var(--green-strong, #1b7a3c); }

/* Social icons */
.site-footer__social { display: flex; gap: 4px; margin: 14px 0 0 -9px; }
.site-footer__social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: inherit; }
.site-footer__social svg { width: 18px; height: 18px; }

/* Copyright row */
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line, #dce3d9); font-size: 12.5px; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer__legal a { color: inherit; text-decoration: none; }

@media (min-width: 560px) {
    .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    .site-footer__grid { grid-template-columns: 1.15fr 1fr 1fr 1.35fr; }
}
