.site-footer {
    background-color: #f9f9f9;
    padding: 57px 0 40px; /* logo lands 60px from the band top, matching the page margin */
}

.footer-container {
    width: 100%;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 var(--page-padding);
    position: relative;
}

.footer-studios {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0;
    gap: 100px;
}

.studio-column {
    flex: 1;
}

.studio-column h5 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
    color: var(--text-main);
    padding-bottom: 0;
    display: inline-block;
    font-weight: 600;
}

.studio-column address,
.studio-column .footer-contact {
    font-family: var(--font-body);
    font-style: normal;
    color: var(--text-muted);
    font-size: 0.72rem; /* 80% of the previous 0.9rem */
    line-height: 1.8;
}

.studio-column .footer-contact {
    margin-top: 16px; /* matches the logo-to-address gap */
}

.studio-column .footer-contact a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s ease, color 0.3s ease;
}

.studio-column .footer-contact a:hover {
    color: var(--text-main);
    border-bottom: 1px solid var(--text-main);
}

.studio-column address a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s ease, color 0.3s ease;
}

.studio-column address a:hover {
    color: var(--text-main);
    border-bottom: 1px solid var(--text-main);
}

.footer-bottom {
    padding-top: 32px; /* double the logo-to-address gap */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-copy,
.footer-links a {
    font-family: var(--font-body);
    font-size: 0.48rem; /* shrunk a further 20% from 0.6rem */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text-main);
}

/* Desktop-only: copyright line at 1.3x (mobile keeps 0.48rem) */
@media (min-width: 769px) {
    .footer-copy {
        font-size: 0.624rem;
    }
}

/* Award badge with social icons stacked beside it, right side of the band.
   Icon stack height: 24 + 17 + 24 = 65px; badge matches it. */
.footer-social {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-shrink: 0;
    margin-top: 3px; /* aligns the icon tops with the logo's visible top */
}

/* Icons: vertically centered in the band like the badge, at the right margin */
.footer-social-icons {
    display: flex;
    flex-direction: column;
    gap: 17px;
    position: absolute;
    right: var(--page-padding);
    top: calc(50% - 8.5px);
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .footer-social-icons {
        position: static;
        transform: none;
        flex-direction: row;
        gap: 17px;
    }
}

.footer-social-icons svg {
    width: 24px;
    height: 24px;
}

.footer-social a {
    color: var(--text-light);
    display: flex;
    align-items: center;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-social a:hover {
    color: var(--text-main);
}

/* Badge: 80px left of the icons, vertically centered in the band
   (band padding is 57 top / 40 bottom, hence the 8.5px correction) */
.footer-boe {
    position: absolute;
    right: calc(var(--page-padding) + 104px);
    top: calc(50% - 8.5px);
    transform: translateY(-50%);
}

.footer-boe img {
    height: 65px;
    width: auto;
    display: block;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .footer-boe {
        position: static;
        transform: none;
    }

    .footer-boe img {
        height: 39px; /* 40% smaller than the 65px desktop badge */
    }
}

.footer-boe:hover img {
    opacity: 1;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.footer-logo {
    height: 1.2em;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 60px 0;
    }

    .footer-studios {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-end;
        gap: 20px;
    }

    /* Middle band centered between the logo and the copyright:
       address drops so the gap above matches the 32px gap below */
    .studio-column address {
        margin-top: 16px;
    }

    /* Right group: icons row centered over the badge, stacked with the same
       16px gap as address-to-contact; icons centered on the address */
    .footer-social {
        position: absolute;
        right: var(--page-padding);
        top: 59.3px; /* address center (71.3px) minus half the 24px icon row */
        flex-direction: column-reverse;
        align-items: center;
        gap: 16px;
        margin-top: 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 32px; /* double the 16px address-to-contact gap */
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}
