/* Shared site footer — structural, editorial, flows naturally at page bottom.
   Latimont mark + tagline on the left (with a quiet copyright line tucked
   underneath). Four columns of nav links on the right. No internal divider.

   Canonical HTML pattern (paste verbatim when rebuilding a page):

   <footer class="site-footer">
       <div class="footer-mark">
           <a href="/" class="wordmark">Latimont</a>
           <span class="positioning">Mortgage infrastructure.</span>
           <span class="footer-copy">&copy; 2026 Latimont. All rights reserved.</span>
       </div>
       <nav class="footer-nav">
           <div class="footer-col">
               <span class="footer-col-label">Product</span>
               <a href="https://criteria.latimont.com">Criteria</a>
           </div>
           <div class="footer-col">
               <span class="footer-col-label">Company</span>
               <a href="/company/">About</a>
           </div>
           <div class="footer-col">
               <span class="footer-col-label">Docs</span>
               <a href="/docs/">Documentation</a>
           </div>
           <div class="footer-col">
               <span class="footer-col-label">Legal</span>
               <a href="/privacy/">Privacy</a>
               <a href="/terms/">Terms</a>
               <a href="/cookies/">Cookies</a>
           </div>
       </nav>
   </footer>
*/

footer.site-footer {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 64px;
    padding: 40px 60px 32px;
    border-top: 1px solid var(--border-light);
}

footer.site-footer .footer-mark {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Wordmark-as-link. The .wordmark class already sets its resting colour;
   this rule adds the hover lift (needed because the global a:hover rule
   in core.css would otherwise land the hover colour at the same value
   as .wordmark's default, producing no visible change). */
footer.site-footer .footer-mark a.wordmark:hover {
    color: var(--text);
}

footer.site-footer .footer-mark a.wordmark:active {
    color: var(--text);
}

footer.site-footer .footer-mark .positioning {
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--text-tertiary);
}

footer.site-footer .footer-mark .footer-copy {
    margin-top: 16px;
    font-size: 10px;
    letter-spacing: 0.04em;
    color: var(--text-tertiary);
}

footer.site-footer .footer-nav {
    display: grid;
    grid-auto-flow: column;
    gap: 56px;
    align-items: start;
}

footer.site-footer .footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 80px;
}

footer.site-footer .footer-col-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

footer.site-footer .footer-col a {
    font-size: 13px;
    letter-spacing: 0.01em;
    color: var(--text-secondary);
    transition: color var(--dur-hover);
}

footer.site-footer .footer-col a:hover {
    color: var(--text);
}

footer.site-footer .footer-col a:active {
    color: var(--text);
}

@media (max-width: 768px) {
    footer.site-footer {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 20px 32px;
    }
    footer.site-footer .footer-nav {
        grid-auto-flow: row;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    footer.site-footer {
        padding: 32px 20px 28px;
    }

    footer.site-footer .footer-nav {
        grid-auto-flow: row;
        grid-template-columns: 1fr 1fr;
        gap: 28px 24px;
    }

    footer.site-footer .footer-col {
        min-width: 0; /* override desktop 80px min so 1fr columns split cleanly */
    }
}
