/* /assets/css/footer.css */
.site-footer {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-top: 3px solid rgba(224, 214, 188, 0.92);
    background:
        linear-gradient(180deg, rgba(22, 35, 30, 0.20), rgba(22, 35, 30, 0.34)),
        url("/assets/images/footer.png") center center / cover no-repeat,
        linear-gradient(180deg, rgba(118, 129, 120, 0.99), rgba(100, 111, 103, 0.99));
    color: #f8f4ea;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(18, 28, 25, 0.16), rgba(18, 28, 25, 0.02) 38%, rgba(18, 28, 25, 0.14));
    pointer-events: none;
    z-index: 0;
}

.site-footer::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.05), transparent 24%),
        radial-gradient(circle at 73% 64%, rgba(255, 255, 255, 0.04), transparent 20%);
    pointer-events: none;
    z-index: 0;
}

.footer {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.18rem 1.38rem 1.22rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, auto);
    gap: 0.8rem 2.4rem;
    align-items: center;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
    padding-bottom: 0.08rem;
}

.footer__logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 22px rgba(17, 25, 23, 0.18);
    text-decoration: none;
}

.footer__logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.footer__name {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.08rem, 1.8vw, 1.5rem);
    line-height: 1.1;
    color: #fffef8;
    text-wrap: balance;
}

.footer__left,
.footer__right {
    min-width: 0;
}

.footer__left {
    padding-left: 0.05rem;
}

.footer__text,
.footer__meta {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.42;
    color: rgba(255, 252, 244, 0.97);
    text-shadow: 0 1px 0 rgba(21, 32, 29, 0.08);
}

.footer__text a,
.footer__meta a {
    color: inherit;
    text-decoration: none;
}

.footer__text a:hover,
.footer__text a:focus-visible,
.footer__meta a:hover,
.footer__meta a:focus-visible {
    text-decoration: underline;
}

.footer__right {
    justify-self: end;
    text-align: right;
}

.footer__right--social {
    padding-bottom: 0.08rem;
}

.footer__socials {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.58rem;
}

.footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 999px;
    color: #fffef8;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 16px rgba(18, 28, 25, 0.12);
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.footer__social-link:hover,
.footer__social-link:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.28);
}

.footer__social-icon {
    width: 15px;
    height: 15px;
}

.footer__left.is-empty,
.footer__right.is-empty,
.footer__right--spacer {
    min-height: 0;
}

@media (max-width: 860px) {
    .footer {
        padding: 1.02rem 1rem 1.08rem;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 0.62rem;
    }

    .footer__right {
        justify-self: start;
        text-align: left;
    }

    .footer__socials {
        justify-content: flex-start;
    }

    .footer__right--spacer {
        display: none;
    }
}

@media (max-width: 560px) {
    .site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(18, 28, 25, 0.16), rgba(18, 28, 25, 0.02) 38%, rgba(18, 28, 25, 0.14));
    pointer-events: none;
    z-index: 0;
}

    .footer {
        padding: 0.95rem 0.9rem 1rem;
    }

    .footer__brand {
        gap: 0.72rem;
        align-items: flex-start;
    }

    .footer__logo-link {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }

    .footer__logo {
        width: 40px;
        height: 40px;
    }

    .footer__text,
    .footer__meta {
        font-size: 0.92rem;
    }
}
