/* =========================================================
   MAYZAY.CODES — Premium Reusable Footer
   Classic editorial design, warm gold accents and subtle tech.
   All styles are scoped under .mz-footer.
   ========================================================= */

.mz-footer {
    --mz-gold: #c9a467;
    --mz-gold-light: #f0d39b;
    --mz-cream: #fff8ec;
    --mz-white: #ffffff;
    --mz-muted: #e0d9ce;
    --mz-black: #090a09;
    --mz-panel: rgba(255, 255, 255, 0.045);

    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--mz-white);
    background: var(--mz-black);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.75;
}

.mz-footer *,
.mz-footer *::before,
.mz-footer *::after {
    box-sizing: border-box;
}

.mz-footer a {
    color: inherit;
    text-decoration: none;
}

.mz-footer a:focus-visible,
.mz-footer button:focus-visible {
    outline: 2px solid var(--mz-gold-light);
    outline-offset: 5px;
}

/* =========================================================
   BACKGROUND ARTWORK
   ========================================================= */

.mz-footer__art {
    position: absolute;
    inset: 0;
    z-index: 0;

    background-image: url("../images/mayzay-cybernetic-footer.png");
    background-repeat: no-repeat;
    background-position: center 35%;
    background-size: cover;

    opacity: 0.58;
    filter: blur(1px) saturate(0.82);
    pointer-events: none;
    transform: scale(1.015);
}

.mz-footer__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(9, 10, 9, 0.77) 0%,
            rgba(9, 10, 9, 0.48) 45%,
            rgba(9, 10, 9, 0.36) 100%
        ),
        linear-gradient(
            180deg,
            rgba(9, 10, 9, 0.28) 0%,
            rgba(9, 10, 9, 0.56) 48%,
            rgba(9, 10, 9, 0.96) 100%
        );
}

/* =========================================================
   SUBTLE CIRCUIT DETAILS
   ========================================================= */

.mz-footer__circuit {
    position: absolute;
    z-index: 1;
    width: 210px;
    height: 90px;
    opacity: 0.24;
    pointer-events: none;
    border-top: 1px solid var(--mz-gold);
    border-right: 1px solid var(--mz-gold);
}

.mz-footer__circuit::before,
.mz-footer__circuit::after {
    content: "";
    position: absolute;
    display: block;
    width: 7px;
    height: 7px;
    border: 1px solid var(--mz-gold-light);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(240, 211, 155, 0.25);
}

.mz-footer__circuit::before {
    top: -4px;
    left: 35%;
}

.mz-footer__circuit::after {
    right: -4px;
    bottom: 22%;
}

.mz-footer__circuit--one {
    top: 12%;
    left: -90px;
    transform: skewY(-20deg);
}

.mz-footer__circuit--two {
    top: 25%;
    right: -125px;
    transform: rotate(180deg) skewY(-15deg);
}

/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.mz-footer__inner {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 64px));
    margin-inline: auto;
}

/* =========================================================
   BRAND INTRODUCTION
   ========================================================= */

.mz-footer__intro {
    max-width: 650px;
    padding: clamp(70px, 8vw, 112px) 0 72px;
}

.mz-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    transition: opacity 0.3s ease;
}

.mz-footer__brand:hover {
    opacity: 0.85;
}

.mz-footer__brand-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;

    border: 1px solid var(--mz-gold);
    color: var(--mz-gold-light);
    background: rgba(9, 10, 9, 0.45);

    font-family: "Playfair Display", Georgia, serif;
    font-size: 26px;
    line-height: 1;

    transform: rotate(-4deg);
    transition:
        transform 0.35s ease,
        background-color 0.35s ease,
        border-color 0.35s ease;
}

.mz-footer__brand:hover .mz-footer__brand-mark {
    transform: rotate(0deg) scale(1.06);
    background: rgba(201, 164, 103, 0.14);
    border-color: var(--mz-gold-light);
}

.mz-footer__brand-mark span {
    color: var(--mz-white);
}

.mz-footer__brand-name {
    color: var(--mz-white);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 1.2;
}

.mz-footer__brand-name span {
    color: var(--mz-gold-light);
}

.mz-footer__tagline {
    margin: 22px 0 12px;
    color: var(--mz-gold-light);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(23px, 2.7vw, 31px);
    font-weight: 500;
    line-height: 1.4;
}

.mz-footer__description {
    max-width: 490px;
    margin: 0;
    color: var(--mz-white);
    font-size: 15px;
    line-height: 1.9;
}

.mz-footer__specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    margin-top: 32px;
}

.mz-footer__specialties span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f5eee3;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.mz-footer__specialties i {
    color: var(--mz-gold-light);
    font-size: 18px;
    font-style: normal;
    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.mz-footer__specialties span:hover i {
    color: var(--mz-white);
    transform: translateY(-3px);
}

/* =========================================================
   FOOTER COLUMNS
   ========================================================= */

.mz-footer__columns {
    display: grid;
    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.25fr)
        minmax(0, 1.15fr);

    gap: clamp(36px, 6vw, 100px);
    padding: 24px 0 72px;

    border-top: 1px solid rgba(240, 211, 155, 0.24);
}

.mz-footer__column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
}

.mz-footer__heading {
    margin: 0 0 15px;
    color: var(--mz-gold-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.19em;
    line-height: 1.5;
    text-transform: uppercase;
}

.mz-footer__heading::before {
    content: "";
    display: block;
    width: 38px;
    height: 2px;
    margin-bottom: 18px;
    background: linear-gradient(
        90deg,
        var(--mz-gold-light),
        rgba(240, 211, 155, 0.25)
    );
    transition: width 0.3s ease;
}

.mz-footer__column:hover .mz-footer__heading::before {
    width: 58px;
}

/* Elegant animated underline for links */

.mz-footer__column > a:not(.mz-footer__contact-link) {
    position: relative;
    display: inline-block;
    max-width: 100%;
    padding-bottom: 3px;

    color: #f5f1e9;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.mz-footer__column > a:not(.mz-footer__contact-link)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    height: 1px;
    background: var(--mz-gold-light);

    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.mz-footer__column > a:not(.mz-footer__contact-link):hover {
    color: var(--mz-gold-light);
    transform: translateX(4px);
}

.mz-footer__column > a:not(.mz-footer__contact-link):hover::after {
    transform: scaleX(1);
}

/* =========================================================
   LOCATION AND CONTACT
   ========================================================= */

.mz-footer__location {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin: 0 0 8px;

    color: #f5f1e9;
    font-size: 14px;
    line-height: 1.9;
}

.mz-footer__contact-icon {
    display: inline-grid;
    place-items: center;
    min-width: 22px;

    color: var(--mz-gold-light);
    font-size: 21px;
    line-height: 1.5;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.mz-footer__location:hover .mz-footer__contact-icon,
.mz-footer__contact-link:hover .mz-footer__contact-icon {
    color: var(--mz-white);
    transform: translateY(-2px);
}

.mz-footer__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-top: 4px;
    padding: 9px 0;

    color: var(--mz-gold-light) !important;
    font-size: 14px;
    font-weight: 600;

    transition:
        color 0.3s ease,
        gap 0.3s ease;
}

.mz-footer__contact-link:hover {
    color: var(--mz-white) !important;
    gap: 16px;
}

/* =========================================================
   SOCIAL LINKS
   ========================================================= */

.mz-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.mz-footer__socials a {
    position: relative;
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    border: 1px solid rgba(240, 211, 155, 0.55);
    border-radius: 50%;

    color: var(--mz-white);
    background: rgba(9, 10, 9, 0.35);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;

    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.mz-footer__socials a:hover {
    color: #17130c;
    background: var(--mz-gold-light);
    border-color: var(--mz-gold-light);

    transform: translateY(-5px);

    box-shadow: 0 8px 24px rgba(201, 164, 103, 0.22);
}

/* =========================================================
   COPYRIGHT AND BACK TO TOP
   ========================================================= */

.mz-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;

    min-height: 92px;
    padding: 23px 0;

    border-top: 1px solid rgba(240, 211, 155, 0.32);
}

.mz-footer__bottom p {
    margin: 0;
    color: #e8e1d6;
    font-size: 12px;
    line-height: 1.8;
}

.mz-footer__motto {
    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--mz-gold-light) !important;
    font-size: 10px !important;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-align: center;
}

.mz-footer__motto span {
    display: block;
    flex-shrink: 0;
    width: 32px;
    height: 1px;
    background: var(--mz-gold-light);
}

.mz-footer__top {
    flex: 0 0 44px;
    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;
    padding: 0;

    border: 1px solid var(--mz-gold);
    border-radius: 50%;

    color: var(--mz-gold-light);
    background: rgba(9, 10, 9, 0.75);

    font: inherit;
    font-size: 25px;
    line-height: 1;

    cursor: pointer;

    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.mz-footer__top:hover {
    color: #17130c;
    background: var(--mz-gold-light);
    border-color: var(--mz-gold-light);
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(201, 164, 103, 0.2);
}

/* =========================================================
   LARGE SCREENS
   ========================================================= */

@media (min-width: 1500px) {
    .mz-footer__art {
        background-size: 1500px auto;
        background-position: center 34%;
    }
}

/* =========================================================
   TABLETS AND MOBILE
   ========================================================= */

@media (max-width: 900px) {
    .mz-footer__inner {
        width: min(100% - 48px, 720px);
    }

    .mz-footer__art {
        background-position: 58% 30%;
        background-size: auto 100%;
    }

    .mz-footer__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 48px 40px;
        padding-bottom: 55px;
    }

    .mz-footer__contact {
        grid-column: 1 / -1;
    }

    .mz-footer__bottom {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .mz-footer__inner {
        width: calc(100% - 36px);
    }

    .mz-footer__art {
        inset: 0 0 20%;
        background-size: auto 650px;
        background-position: 58% 5%;
        opacity: 0.35;
        filter: blur(1px) saturate(0.8);
    }

    .mz-footer__shade {
        background: linear-gradient(
            180deg,
            rgba(9, 10, 9, 0.38) 0%,
            rgba(9, 10, 9, 0.72) 36%,
            rgba(9, 10, 9, 0.96) 72%,
            #090a09 100%
        );
    }

    .mz-footer__intro {
        padding: 58px 0 48px;
    }

    .mz-footer__brand {
        gap: 12px;
    }

    .mz-footer__brand-mark {
        width: 44px;
        height: 44px;
        font-size: 23px;
    }

    .mz-footer__brand-name {
        font-size: clamp(27px, 7vw, 35px);
    }

    .mz-footer__tagline {
        margin-top: 20px;
        font-size: 23px;
    }

    .mz-footer__description {
        font-size: 14px;
    }

    .mz-footer__specialties {
        gap: 15px 20px;
        margin-top: 27px;
    }

    .mz-footer__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 24px;
        padding-top: 32px;
        padding-bottom: 45px;
    }

    .mz-footer__column {
        gap: 12px;
    }

    .mz-footer__heading {
        margin-bottom: 10px;
        font-size: 11px;
        letter-spacing: 0.13em;
    }

    .mz-footer__column > a:not(.mz-footer__contact-link) {
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    .mz-footer__contact {
        grid-column: 1 / -1;
    }

    .mz-footer__location,
    .mz-footer__contact-link {
        font-size: 14px;
    }

    .mz-footer__socials {
        margin-top: 12px;
    }

    .mz-footer__bottom {
        justify-content: space-between;
        gap: 18px;
        padding: 23px 0;
    }

    .mz-footer__bottom > p:first-child {
        flex-basis: calc(100% - 62px);
        order: 1;
    }

    .mz-footer__motto {
        order: 2;
        flex: 1 1 auto;
        justify-content: flex-start;
        text-align: left;
        font-size: 9px !important;
        letter-spacing: 0.1em;
    }

    .mz-footer__motto span {
        width: 20px;
    }

    .mz-footer__top {
        order: 3;
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 360px) {
    .mz-footer__inner {
        width: calc(100% - 28px);
    }

    .mz-footer__columns {
        gap: 34px 16px;
    }

    .mz-footer__specialties {
        gap: 12px;
    }

    .mz-footer__specialties span {
        font-size: 12px;
    }

    .mz-footer__motto {
        letter-spacing: 0.06em;
        font-size: 8px !important;
    }
}

/* =========================================================
   ACCESSIBILITY: REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .mz-footer *,
    .mz-footer *::before,
    .mz-footer *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
