/* Mohindera Arts — unified site footer */
.ma-site-footer {
    --ma-footer-bg: #080808;
    --ma-footer-surface: rgba(255, 255, 255, 0.03);
    --ma-footer-border: rgba(255, 255, 255, 0.08);
    --ma-footer-text: rgba(255, 255, 255, 0.68);
    --ma-footer-heading: rgba(255, 255, 255, 0.92);
    --ma-footer-accent: #c8a96e;
    --ma-footer-accent-soft: rgba(200, 169, 110, 0.14);
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(200, 169, 110, 0.08), transparent 55%),
        var(--ma-footer-bg);
    color: var(--ma-footer-text);
    border-top: 1px solid var(--ma-footer-border);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.ma-site-footer__accent {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(520px, 70%);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ma-footer-accent), transparent);
    opacity: 0.85;
    pointer-events: none;
}

.ma-site-footer__shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3rem) clamp(1.1rem, 4vw, 2.5rem) calc(1.25rem + env(safe-area-inset-bottom, 0px));
}

.ma-site-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}

.ma-site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: 22rem;
}

.ma-site-footer__logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ma-footer-heading);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.ma-site-footer__logo-link:hover,
.ma-site-footer__logo-link:focus-visible {
    color: var(--ma-footer-accent);
    outline: none;
}

.ma-site-footer__logo {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.65rem;
    object-fit: cover;
    box-shadow: 0 0 0 1px var(--ma-footer-border);
}

.ma-site-footer__brand-name {
    font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.ma-site-footer__tagline {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--ma-footer-text);
}

.ma-site-footer__since {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.ma-site-footer__heading {
    margin: 0 0 1rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ma-footer-heading);
}

.ma-site-footer__text-list,
.ma-site-footer__contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.ma-site-footer__text-link {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    color: inherit;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.ma-site-footer__text-link:hover,
.ma-site-footer__text-link:focus-visible {
    color: var(--ma-footer-accent);
    outline: none;
    transform: translateX(2px);
}

.ma-site-footer__contact-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.6rem;
    min-height: 2.25rem;
    color: inherit;
    text-decoration: none;
    font-size: 0.86rem;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.ma-site-footer__contact-link:hover,
.ma-site-footer__contact-link:focus-visible {
    color: var(--ma-footer-accent);
    outline: none;
}

.ma-site-footer__contact-icon {
    display: inline-flex;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-top: 0.15rem;
    color: var(--ma-footer-accent);
    opacity: 0.9;
}

.ma-site-footer__contact-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ma-site-footer__social-pills {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.ma-site-footer__social-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--ma-footer-border);
    background: var(--ma-footer-surface);
    color: var(--ma-footer-heading);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ma-site-footer__social-pill:hover,
.ma-site-footer__social-pill:focus-visible {
    border-color: rgba(200, 169, 110, 0.45);
    background: var(--ma-footer-accent-soft);
    color: var(--ma-footer-accent);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    outline: none;
}

.ma-site-footer__social-icon {
    display: inline-flex;
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
}

.ma-site-footer__social-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ma-site-footer__bottom {
    margin-top: clamp(1.75rem, 4vw, 2.25rem);
    padding-top: 1.15rem;
    border-top: 1px solid var(--ma-footer-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    font-size: 0.8rem;
}

.ma-site-footer__copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
}

.ma-site-footer__legal {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: center;
}

.ma-site-footer__legal-link {
    color: inherit;
    text-decoration: none;
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.ma-site-footer__legal-link:hover,
.ma-site-footer__legal-link:focus-visible {
    color: var(--ma-footer-accent);
    outline: none;
}

.ma-site-footer__dot {
    color: rgba(255, 255, 255, 0.28);
    user-select: none;
}

.ma-site-footer__credit {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.ma-site-footer__credit:hover,
.ma-site-footer__credit:focus-visible {
    color: var(--ma-footer-accent);
    outline: none;
}

/* Flipbook compact variant */
.ma-site-footer--flipbook .ma-site-footer__shell {
    padding-top: 1.35rem;
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
}

.ma-site-footer--flipbook .ma-site-footer__top--compact {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.25rem 2rem;
    align-items: end;
}

.ma-site-footer--flipbook .ma-site-footer__brand--compact .ma-site-footer__tagline {
    font-size: 0.8rem;
}

.ma-site-footer--flipbook .ma-site-footer__social-pills {
    flex-flow: row wrap;
}

.ma-site-footer--flipbook .ma-site-footer__social-pill {
    min-height: 2.25rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
}

.ma-site-footer--flipbook .ma-site-footer__bottom {
    margin-top: 1rem;
    padding-top: 0.85rem;
    font-size: 0.74rem;
}

/* Page context tweaks */
.showcase-page .ma-site-footer,
.portfolio-page .ma-site-footer {
    --ma-footer-bg: #0a0a0a;
}

.footer_wrap.ma-site-footer,
.ma-site-footer.footer_wrap {
    margin-top: 0;
}

/* Tablet */
@media (max-width: 1024px) {
    .ma-site-footer__top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ma-site-footer__brand {
        grid-column: 1 / -1;
        max-width: none;
    }

    .ma-site-footer--flipbook .ma-site-footer__top--compact {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .ma-site-footer__top {
        grid-template-columns: 1fr;
        gap: 1.65rem;
        text-align: center;
    }

    .ma-site-footer__brand {
        align-items: center;
    }

    .ma-site-footer__logo-link {
        justify-content: center;
    }

    .ma-site-footer__text-list,
    .ma-site-footer__contact-list {
        align-items: center;
    }

    .ma-site-footer__text-link {
        justify-content: center;
        min-height: 44px;
    }

    .ma-site-footer__text-link:hover,
    .ma-site-footer__text-link:focus-visible {
        transform: none;
    }

    .ma-site-footer__contact-link {
        justify-content: center;
        text-align: left;
        max-width: 18rem;
        margin: 0 auto;
        min-height: 44px;
    }

    .ma-site-footer__social-pills {
        align-items: stretch;
        max-width: 16.5rem;
        margin: 0 auto;
        width: 100%;
    }

    .ma-site-footer__social-pill {
        justify-content: center;
        min-height: 44px;
    }

    .ma-site-footer--flipbook .ma-site-footer__social-pills {
        max-width: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .ma-site-footer--flipbook .ma-site-footer__social-pill {
        flex: 0 1 auto;
    }

    .ma-site-footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .ma-site-footer__credit {
        min-height: 44px;
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .ma-site-footer__brand-name {
        font-size: 1.05rem;
    }

    .ma-site-footer--flipbook .ma-site-footer__social-pill .ma-site-footer__social-label {
        display: none;
    }

    .ma-site-footer--flipbook .ma-site-footer__social-pill {
        width: 2.75rem;
        height: 2.75rem;
        min-height: 2.75rem;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ma-site-footer__text-link,
    .ma-site-footer__social-pill {
        transition: none;
    }

    .ma-site-footer__text-link:hover,
    .ma-site-footer__text-link:focus-visible,
    .ma-site-footer__social-pill:hover,
    .ma-site-footer__social-pill:focus-visible {
        transform: none;
    }
}