/* Site footer, shared by every page. The markup is the same everywhere: copy
   the <footer class="site-footer"> block from index.html when adding a page.
   Pages with their own <style> block link this file; styles.css @imports it
   for the pages built on it (legal, skidata, recruit, testing, brandcolors).

   Each page keeps its own footer background and the mountain ridge above it.
   This file only lays out what's inside, so it never sets position or margin
   on <footer> (styles.css hangs its ridge off footer::before).

   To add a link, add one <li> to the right list on every page, e.g. Press:
   <li><a href="/press/">Press</a></li> after Contact in Support.

   Social icons: Instagram and Threads from Simple Icons (CC0),
   LinkedIn from Font Awesome Free 6 (CC BY 4.0). */

.site-footer {
    /* Contrast on the footer green #1E3323 */
    --sf-text: rgba(246, 241, 230, 0.8);    /* 8.3:1 */
    --sf-quiet: rgba(246, 241, 230, 0.66);  /* 6.1:1 */
    --sf-strong: #F6F1E6;                   /* 12:1 */
    --sf-head: #E1B64C;                     /* 7.1:1, the dark-ground gold */
    padding: 40px 32px 48px;
    color: var(--sf-text);
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    line-height: 1.5;
}

.sf-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 32px 64px;
    align-items: start;
}

/* Brand line and social icons */
.sf-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sf-copy {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--sf-quiet);
    font-size: 0.85rem;
    line-height: 1.4;
}
.sf-copy img {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 5px;
}
.sf-social {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0 0 0 -12px; /* lines the first glyph up with the logo */
    padding: 0;
}
.sf-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    color: rgba(246, 241, 230, 0.72);
}
.sf-social svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Link columns. The pages style a bare `nav` as their sticky top bar,
   so the footer nav resets everything those rules set. */
.site-footer .sf-nav {
    position: static;
    inset: auto;
    transform: none;
    z-index: auto;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    will-change: auto;
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: end;
    align-items: start;
    column-gap: clamp(40px, 6vw, 80px);
    row-gap: 28px;
}
.sf-head {
    margin: 0 0 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sf-head);
}
.sf-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sf-list a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: var(--sf-text);
    font-size: 0.9rem;
    line-height: 1.35;
    text-decoration: none;
}

.site-footer a { -webkit-tap-highlight-color: rgba(246, 241, 230, 0.12); }
.site-footer a:hover { color: var(--sf-strong); }
.sf-list a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.site-footer a:focus-visible {
    color: var(--sf-strong);
    outline: 2px solid var(--sf-head);
    outline-offset: 2px;
    border-radius: 4px;
}
.sf-social a:focus-visible { border-radius: 10px; }

/* Tablet: brand line on top, the three columns below it */
@media (max-width: 959px) {
    .sf-inner { grid-template-columns: minmax(0, 1fr); }
    .site-footer .sf-nav { justify-content: start; }
}

/* Touch screens get 44px rows */
@media (pointer: coarse) {
    .sf-list a { min-height: 44px; }
}

/* Phone: one column, each link a full-width 44px row */
@media (max-width: 599px) {
    .site-footer { padding: 32px 20px 40px; }
    .sf-inner { gap: 28px; }
    .site-footer .sf-nav { grid-template-columns: minmax(0, 1fr); }
    .sf-list a { display: flex; min-height: 44px; }
}
