/* Footer
 *
 * Figma (Group 78, node 206:6127): a 150px bar in UI Purple under the violet
 * contact panel — the two purples are deliberately different. Lockup 116 x 60
 * on the left, address at 20/26, then the social discs and the Cyber Essentials
 * badge right-aligned; the policy and copyright line sits under them at 14/26.
 *
 * The 150px is spent exactly: 37 above the top row, a 65 row (the tallest
 * child is the badge/disc strip), 18 down to the legal line, 26 for it, 4 to
 * the bottom edge.
 */
.site-footer {
    margin-top: auto;
    background-color: var(--tgc-violet-dark);
    color: var(--theme-white);
}

.footer-container {
    max-width: var(--tgc-container);
    margin: 0 auto;
    padding: calc(37 * var(--tgc-u)) var(--tgc-gutter) 0;
    display: flex;
    align-items: center;
    gap: calc(189 * var(--tgc-u));
}

/* The client asked for the whole bottom row a step smaller, so it reads as a
   sign-off rather than competing with the contact panel above it. */
.site-footer .wordmark--md {
    width: calc(88 * var(--tgc-u));
}

.footer-address {
    display: flex;
    flex-direction: column;
    font-size: var(--tgc-text-ui);
    font-style: normal;
    font-weight: 500;
    line-height: calc(26 * var(--tgc-ut));
    color: var(--theme-white);
}

.footer-marks {
    display: flex;
    align-items: center;
    gap: calc(20 * var(--tgc-u));
    margin-left: auto;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: calc(14 * var(--tgc-u));
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Without this the li keeps its 30px line-height and the inline disc sits on a
   baseline, making the strip 73 tall and dropping the badge 4px. */
.footer-socials li {
    display: flex;
}

/* The exported mark is the whole 65px disc, so the link needs no background of
   its own: the disc takes currentColor and the glyph --tgc-social-glyph. On the
   purple footer that inverts to a white disc with a violet glyph. */
.footer-socials a {
    display: inline-flex;
    width: calc(46 * var(--tgc-u));
    height: calc(46 * var(--tgc-u));
    color: var(--theme-white);
    --tgc-social-glyph: var(--tgc-violet);
    transition: color 0.2s ease;
}

.footer-socials a:hover {
    color: var(--tgc-lilac);
}

.footer-socials svg {
    display: block;
    width: 100%;
    height: 100%;
}

.footer-badge {
    display: flex;
    align-items: center;
    width: calc(136 * var(--tgc-u));
    padding: calc(11 * var(--tgc-u)) calc(15 * var(--tgc-u));
    border-radius: var(--tgc-radius);
    background-color: var(--tgc-violet);
}

.footer-badge img {
    display: block;
    width: 100%;
    height: auto;
}

.footer-bar__inner {
    max-width: var(--tgc-container);
    margin: 0 auto;
    padding: calc(18 * var(--tgc-u)) var(--tgc-gutter) 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: calc(40 * var(--tgc-u));
    font-size: calc(14 * var(--tgc-ut));
    font-weight: 500;
    line-height: calc(26 * var(--tgc-ut));
    color: var(--theme-white);
}

.footer-bar .footer-menu {
    display: flex;
    gap: calc(18 * var(--tgc-u));
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-bar__policy {
    font-weight: 600;
}

.footer-bar a {
    color: var(--theme-white);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-bar a:hover {
    color: var(--tgc-lilac);
}

@media (max-width: 968px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 30px 20px 0;
    }

    .footer-marks {
        margin-left: 0;
        flex-wrap: wrap;
    }

    .footer-bar__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: calc(16 * var(--tgc-u)) calc(20 * var(--tgc-u)) calc(24 * var(--tgc-u));
    }
}

@media (max-width: 768px) {
    .footer-socials a {
        width: 40px;
        height: 40px;
    }

    .site-footer .wordmark--md {
        width: 76px;
    }

    .footer-badge {
        width: 120px;
    }
}
