/* Desktop footer layout prepared for up to four admin-managed QR items. */
section#footer {
    padding: 48px 0;
}

section#footer .footer-container {
    width: 92%;
    min-width: 0;
    max-width: 1440px;
}

.footer-desktop-layout {
    display: grid;
    grid-template-columns:
        minmax(130px, 0.75fr)
        minmax(235px, 1.45fr)
        minmax(145px, 0.85fr)
        minmax(440px, 2.45fr);
    gap: 28px;
    align-items: start;
}

.footer-brand img {
    width: 100%;
    max-width: 190px;
    height: auto;
}

.footer-contact h3,
.footer-links h3,
.footer-qr-heading {
    margin: 0 0 16px;
}

.footer-contact-copy,
.footer-contact-copy p,
.footer-links li,
.footer-links a {
    color: #fff;
    font-size: 13px;
    line-height: 24px;
}

.footer-links ul {
    margin: 0;
    padding: 0;
}

.footer-links li {
    list-style: none;
}

section#footer .footer-links a {
    display: inline;
    width: auto;
    height: auto;
    margin: 0;
    border: 0;
    line-height: inherit;
}

.footer-qr-section {
    min-width: 0;
}

.footer-qr-heading {
    text-align: center;
}

.footer-qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 18px 14px;
    align-items: start;
}

.footer-qr-item {
    min-width: 0;
    text-align: center;
}

.footer-qr-image {
    display: block;
    width: 112px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 10px;
}

section#footer .footer-qr-item p {
    max-width: 150px;
    min-height: 48px;
    margin: 0 auto;
    color: #fff;
    font-size: 13px;
    line-height: 20px;
    text-align: center;
    white-space: pre-line;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .footer-desktop-layout {
        grid-template-columns:
            minmax(120px, 0.8fr)
            minmax(250px, 1.5fr)
            minmax(145px, 0.9fr);
        gap: 30px 24px;
    }

    .footer-qr-section {
        grid-column: 1 / -1;
        padding-top: 28px;
        border-top: 1px solid rgba(255, 255, 255, 0.22);
    }

    .footer-qr-grid {
        grid-template-columns: repeat(4, minmax(96px, 1fr));
        max-width: 680px;
        margin: 0 auto;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .footer-desktop-layout {
        grid-template-columns: minmax(120px, 0.75fr) minmax(280px, 2fr);
    }

    .footer-links {
        grid-column: 1 / -1;
    }

    .footer-qr-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
        max-width: 420px;
    }
}
