/* AllMyCraft — responsive heritage footer */
:root {
    --amc-footer-brown: #563321;
    --amc-footer-brown-deep: #432719;
    --amc-footer-ivory: #fff6e7;
    --amc-footer-muted: #e6d5c2;
    --amc-footer-accent: #d94b3f;
}

.amc-footer {
    margin-top: 0;
    color: var(--amc-footer-ivory);
    font-family: inherit;
}

/* Brand artwork: keep the full original artwork visible on an ivory canvas */
.amc-footer-brand-strip {
    width: 100%;
    background: var(--amc-footer-ivory);
    padding: clamp(12px, 2vw, 24px) clamp(16px, 3vw, 40px);
    box-sizing: border-box;
    line-height: 0;
    text-align: center;
}

.amc-footer-brand-art {
    display: block;
    width: 60%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
}

.amc-footer-main {
    background: var(--amc-footer-brown);
    color: var(--amc-footer-ivory);
    padding: 34px 0 22px;
}

.amc-footer-container {
    width: min(1320px, calc(100% - 64px));
    margin: 0 auto;
}

/* Preserve reference order: contact, QR, ABOUT, TERMS */
.amc-footer-top {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) 132px minmax(200px, 1fr) minmax(230px, 1.15fr);
    gap: clamp(22px, 3vw, 42px);
    align-items: start;
}

.amc-footer-contact {
    text-align: right;
    padding-top: 2px;
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.7;
    font-weight: 500;
    letter-spacing: .01em;
}

.amc-footer-contact p,
.amc-footer-contact a {
    display: block;
    margin: 0;
    color: var(--amc-footer-ivory);
    text-decoration: none;
}

.amc-footer-contact p:last-child {
    margin-top: 3px;
    color: var(--amc-footer-muted);
    font-size: .92em;
}

.amc-footer-contact a:hover,
.amc-footer-links a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.amc-footer-qr {
    display: block;
    width: 132px;
    aspect-ratio: 1 / 1;
    background: var(--amc-footer-ivory);
    padding: 6px;
    border-radius: 2px;
    box-sizing: border-box;
    transition: transform .2s ease;
}

.amc-footer-qr:hover {
    transform: translateY(-2px);
}

.amc-footer-qr img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.amc-footer-links h2 {
    margin: 0 0 10px;
    color: var(--amc-footer-ivory);
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: .09em;
}

.amc-footer-links a {
    display: block;
    width: fit-content;
    max-width: 100%;
    color: var(--amc-footer-muted);
    text-decoration: none;
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.8;
    font-weight: 400;
    transition: color .18s ease;
}

.amc-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid rgb(255 246 231 / 18%);
}

.amc-footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(140px, 18%, 210px);
    background: var(--amc-footer-ivory);
    padding: 4px 7px;
    box-sizing: border-box;
    line-height: 0;
}

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

.amc-footer-socials {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: clamp(10px, 1.4vw, 18px);
}

.amc-footer-socials a {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(255 246 231 / 45%);
    border-radius: 50%;
    background: var(--amc-footer-ivory);
    color: var(--amc-footer-brown);
    text-decoration: none;
    font-size: 19px;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.amc-footer-socials a:hover {
    transform: translateY(-3px);
    background: var(--amc-footer-accent);
    border-color: var(--amc-footer-accent);
    color: #fff;
}

.amc-footer-copyright {
    margin-top: 17px;
    color: var(--amc-footer-muted);
    font-size: 13px;
    line-height: 1.6;
    letter-spacing: .015em;
}

@media (min-width: 1400px) {
    .amc-footer-brand-art {
        max-height: 150px;
    }
}

@media (max-width: 1100px) {
    .amc-footer-container {
        width: calc(100% - 48px);
    }

    .amc-footer-top {
        grid-template-columns: minmax(0, 1.25fr) 112px minmax(0, 1fr) minmax(0, 1.1fr);
        gap: 22px;
    }

    .amc-footer-qr {
        width: 112px;
    }

    .amc-footer-contact {
        font-size: 15px;
    }
}

@media (max-width: 767.98px) {
    .amc-footer-brand-strip {
        padding: 14px 12px;
    }

    .amc-footer-brand-art {
        width: 50%;
        max-width: 540px;
        max-height: 140px;
    }

    .amc-footer-main {
        padding: 28px 0 18px;
    }

    .amc-footer-container {
        width: calc(100% - 36px);
    }

    .amc-footer-top {
        grid-template-columns: minmax(0, 1fr) 104px;
        gap: 26px 18px;
    }

    .amc-footer-contact {
        text-align: left;
        font-size: 14px;
        line-height: 1.75;
        overflow-wrap: anywhere;
    }

    .amc-footer-qr {
        grid-column: 2;
        grid-row: 1;
        width: 104px;
        padding: 5px;
    }

    .amc-footer-links h2 {
        margin-bottom: 7px;
        font-size: 15px;
    }

    .amc-footer-links a {
        font-size: 14px;
        line-height: 1.8;
    }

    .amc-footer-bottom {
        margin-top: 28px;
        padding-top: 22px;
        gap: 22px;
    }

    .amc-footer-logo {
        width: min(36%, 180px);
        min-width: 125px;
    }

    .amc-footer-socials {
        gap: 9px;
    }

    .amc-footer-socials a {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .amc-footer-copyright {
        margin-top: 16px;
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .amc-footer-container {
        width: calc(100% - 28px);
    }

    .amc-footer-top {
        grid-template-columns: minmax(0, 1fr) 88px;
        gap: 22px 12px;
    }

    .amc-footer-qr {
        width: 88px;
    }

    .amc-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .amc-footer-logo {
        width: 155px;
    }

    .amc-footer-socials {
        justify-content: flex-start;
    }
}
