/* Compact construction footer, based on the supplied reference. */
.mt-footer.mt-footer-reference {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: var(--m-footer-padding,24px) 10px;
    line-height: 1.35;
    border-top: 1px solid rgba(255,255,255,.25);
    text-align: var(--m-footer-align,left);
}
.mt-footer-reference::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: url('../images/footer-blueprint.svg') no-repeat right bottom / auto 100%;
    opacity: .46;
}
.mt-footer-reference .mt-footer-grid {
    align-items: start;
    gap: 0;
}
.mt-footer-reference .mt-footer-cols-4 {
    grid-template-columns: minmax(0,1.05fr) minmax(0,1.55fr) minmax(0,1fr) minmax(0,.95fr);
}
.mt-footer-reference .mt-footer-col {
    padding-inline: clamp(14px,2.2vw,30px);
    min-width: 0;
    overflow-wrap: anywhere;
}
.mt-footer-reference .mt-footer-col:first-child { padding-left: 0; }
.mt-footer-reference .mt-footer-col:last-child { padding-right: 0; }
.mt-footer-reference .mt-footer-col-2,
.mt-footer-reference .mt-footer-col:last-child:not(:first-child) { border-left: 1px solid rgba(255,255,255,.28); }
.mt-footer-reference .mt-footer-brand { display: flex; justify-content: flex-start; align-items: center; }
.mt-footer-reference .mc-brand { gap: 12px; font-size: clamp(12px,1.08vw,15px); font-weight: 700; line-height: 1.18; }
.mt-footer-reference .mc-brand img { width: clamp(44px,4.5vw,62px); height: clamp(44px,4.5vw,62px); }
.mt-footer-reference .mc-brand span { padding-left: 0; border: 0; }
.mt-footer-reference .mt-footer-brand .mt-logo,
.mt-footer-reference .mt-footer-brand .custom-logo { display: block; width: min(var(--m-logo-width,300px),100%); max-height: 76px; object-fit: contain; object-position: left center; }
.mt-footer-reference .mt-footer-brand > a { max-width: 100%; min-width: 0; }
.mt-footer-reference .mt-footer-brand .mc-brand img { flex-shrink: 0; }
.mt-footer-reference .mt-footer-description { margin-top: 12px; font-size: .9em; line-height: 1.55; color: inherit; opacity: .9; }
.mt-footer-reference .mt-footer-description p { margin: 0 0 8px; }
.mt-footer-reference .mt-footer-description > :last-child { margin-bottom: 0; }
.mt-footer-reference .mt-footer-contact { display: grid; gap: 8px; }
.mt-footer-reference .mt-footer-contact + .mt-footer-contact,
.mt-footer-reference .mt-footer-brand + .mt-footer-contact,
.mt-footer-reference .mt-footer-description + .mt-footer-contact,
.mt-footer-reference .mt-footer-contact + .mt-footer-quick,
.mt-footer-reference .mt-footer-brand + .mt-footer-quick { margin-top: 12px; }
.mt-footer-reference .mt-footer-contact-row { display: flex; align-items: flex-start; gap: 9px; margin: 0; font-size: .91em; text-align: left; }
.mt-footer-reference .mt-footer-contact-row > :last-child { min-width: 0; overflow-wrap: anywhere; }
.mt-footer-reference .mt-footer-icon { width: 19px; height: 19px; flex: 0 0 19px; }
.mt-footer-reference .footer-heading { color: var(--m-primary,#fbc320); font-size: 1em; font-weight: 700; margin: 0 0 6px; letter-spacing: 0; }
.mt-footer-reference .mt-footer-menu { display: block; columns: 2; column-gap: clamp(16px,2vw,30px); max-width: 300px; }
.mt-footer-reference .mt-footer-menu li { break-inside: avoid; margin: 0 0 3px; line-height: 1.35; font-size: .91em; }
.mt-footer-reference .mt-footer-menu .sub-menu { list-style: none; margin: 3px 0 0; padding-left: 10px; font-size: .95em; }
.mt-footer-reference .mt-footer-extra { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .85em; }
.mt-footer-reference .mt-footer-extra:has(.mt-socials:empty):has(.mt-legal:empty) { display: none; }
.mt-footer-reference .mt-footer-extra:not(:has(.mt-socials:empty):has(.mt-legal:empty)) { margin-top: 10px; }
.mt-footer-reference .mt-footer-bottom { border-top: 1px solid rgba(255,255,255,.36); margin-top: 12px; padding-top: 10px; display: block; text-align: center; }
.mt-footer-reference .mt-footer-bottom > p { margin: 0; font-size: .83em; text-align: center; width: 100%; }
@media (max-width: 1024px) {
    .mt-footer-reference .mt-footer-cols-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .mt-footer-reference .mt-footer-grid { gap: 18px 0; }
    .mt-footer-reference .mt-footer-col:nth-child(odd) { padding-left: 0; border-left: 0; }
    .mt-footer-reference .mt-footer-col:nth-child(even) { padding-right: 0; border-left: 1px solid rgba(255,255,255,.28); }
}
@media (max-width: 600px) {
    .mt-footer.mt-footer-reference { padding-block: var(--m-footer-padding,24px) 14px; }
    .mt-footer-reference .mt-footer-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
    .mt-footer-reference .mt-footer-grid .mt-footer-col { padding: 0; border: 0; }
    .mt-footer-reference .mt-footer-col:last-child:not(:first-child) { padding-top: 12px; border-top: 1px solid rgba(255,255,255,.22); }
    .mt-footer-reference .mt-footer-bottom { margin-top: 16px; }
    .mt-footer-reference::before { background-size: auto 55%; }
}

/* Office addresses: keep labels distinct and wrap long street lines within the contact column. */
.mt-footer-reference .mt-footer-office-label { display: block; color: var(--m-primary,#fbc320); font-weight: 700; margin-bottom: 3px; }
.mt-footer-reference .mt-footer-office-address { display: block; line-height: 1.5; }
.mt-footer-reference .mt-footer-office + .mt-footer-office { margin-top: 5px; }
.mt-footer-reference .mt-footer-widget-offices:not(:empty) { margin-bottom: 12px; }

/* Slightly larger footer branding on tablet and mobile only. */
@media (max-width: 1024px) {
    .mt-footer-reference .mt-footer-brand > a:not(.mc-brand) {
        width: min(calc(var(--m-logo-width,300px) * 1.15), 100%);
    }
    .mt-footer-reference .mt-footer-brand .mt-logo,
    .mt-footer-reference .mt-footer-brand .custom-logo {
        width: 100%;
        height: auto;
        max-height: 88px;
    }
    .mt-footer-reference .mt-footer-brand .mc-brand img {
        width: clamp(52px,5.2vw,70px);
        height: clamp(52px,5.2vw,70px);
    }
    .mt-footer-reference .mt-footer-brand .mc-brand {
        font-size: clamp(13px,1.25vw,16px);
    }
}

/* Keep the labeled phone and email together in the contact column. */
.mt-footer-reference .mt-footer-contact-details { gap: 13px; }
.mt-footer-reference .mt-footer-contact-details + .widget { margin-top: 12px; }
