/**
 * Site footer — compact modern layout (public pages)
 */

.eman-site-footer {
    background: linear-gradient(180deg, #faf9fc 0%, #fff 48%);
    color: var(--eman-text-dark);
    border-top: 1px solid var(--eman-border-light);
    font-size: 0.9rem;
}

.eman-site-footer__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 28px 0 20px;
    border-bottom: 1px solid var(--eman-border-light);
}

.eman-site-footer__logo img {
    display: block;
    max-height: 36px;
    width: auto;
}

.eman-site-footer__social-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.eman-site-footer__social-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--eman-text-muted, #64748b);
    white-space: nowrap;
}

.eman-site-footer__social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eman-site-footer .eman-site-footer__social a.eman-site-footer__social-link,
.eman-site-footer .eman-site-footer__social a,
.eman-site-footer__social a.eman-site-footer__social-link,
.eman-site-footer__social a,
.eman-site-footer__social a:link,
.eman-site-footer__social a:visited,
.eman-site-footer__social a:focus,
.eman-site-footer__social a:active {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    color: #4b5563 !important;
    box-shadow: none !important;
    font-size: 15px;
    line-height: 1;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none;
    transition: color 0.18s ease,
                background-color 0.18s ease,
                border-color 0.18s ease,
                transform 0.18s ease,
                box-shadow 0.18s ease;
}

/* Brand icon colors — same white circle for all */
.eman-site-footer__social a.is-facebook,
.eman-site-footer__social a.is-facebook:link,
.eman-site-footer__social a.is-facebook:visited,
.eman-site-footer__social a.is-facebook:focus,
.eman-site-footer__social a.is-facebook:active {
    color: #1877f2 !important;
}

.eman-site-footer__social a.is-instagram,
.eman-site-footer__social a.is-instagram:link,
.eman-site-footer__social a.is-instagram:visited,
.eman-site-footer__social a.is-instagram:focus,
.eman-site-footer__social a.is-instagram:active {
    color: #e4405f !important;
}

.eman-site-footer__social a.is-youtube,
.eman-site-footer__social a.is-youtube:link,
.eman-site-footer__social a.is-youtube:visited,
.eman-site-footer__social a.is-youtube:focus,
.eman-site-footer__social a.is-youtube:active {
    color: #ff0000 !important;
}

.eman-site-footer__social a.is-telegram,
.eman-site-footer__social a.is-telegram:link,
.eman-site-footer__social a.is-telegram:visited,
.eman-site-footer__social a.is-telegram:focus,
.eman-site-footer__social a.is-telegram:active {
    color: #26a5e4 !important;
}

.eman-site-footer__social a.is-whatsapp,
.eman-site-footer__social a.is-whatsapp:link,
.eman-site-footer__social a.is-whatsapp:visited,
.eman-site-footer__social a.is-whatsapp:focus,
.eman-site-footer__social a.is-whatsapp:active {
    color: #25d366 !important;
}

.eman-site-footer .eman-site-footer__social a:hover,
.eman-site-footer .eman-site-footer__social a:focus-visible,
.eman-site-footer__social a:hover,
.eman-site-footer__social a:focus-visible,
.eman-site-footer__social a.is-facebook:hover,
.eman-site-footer__social a.is-instagram:hover,
.eman-site-footer__social a.is-youtube:hover,
.eman-site-footer__social a.is-telegram:hover,
.eman-site-footer__social a.is-whatsapp:hover,
.eman-site-footer__social a.is-facebook:focus-visible,
.eman-site-footer__social a.is-instagram:focus-visible,
.eman-site-footer__social a.is-youtube:focus-visible,
.eman-site-footer__social a.is-telegram:focus-visible,
.eman-site-footer__social a.is-whatsapp:focus-visible {
    color: #fff !important;
    background-color: var(--eman-purple, #6a1b9a) !important;
    border-color: var(--eman-purple, #6a1b9a) !important;
    box-shadow: 0 6px 14px rgba(106, 27, 154, 0.2) !important;
    transform: translateY(-1px);
    outline: none;
}

.eman-site-footer__social-icon,
.eman-site-footer__social a svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    flex-shrink: 0;
    fill: currentColor !important;
    color: inherit !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 !important;
    pointer-events: none;
}

.eman-site-footer__list .eman-site-footer__icon,
.eman-site-footer__list a svg,
.eman-site-footer__list .eman-site-footer__icon-wrap svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    display: block;
    flex-shrink: 0;
}

.eman-site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px 32px;
    padding: 24px 0 20px;
}

.eman-site-footer__col h5 {
    margin: 0 0 14px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--eman-purple);
    letter-spacing: 0.01em;
}

.eman-site-footer__bio {
    margin: 0 0 16px;
    color: var(--eman-text-light);
    line-height: 1.7;
    font-size: 0.88rem;
}

.eman-site-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eman-site-footer__list a,
.eman-site-footer__list li {
    color: var(--eman-text-light);
    line-height: 1.45;
}

.eman-site-footer__list > li {
    display: flex;
    align-items: flex-start;
}

.eman-site-footer__list a,
.eman-site-footer__contact-static {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.eman-site-footer__list a span:last-child,
.eman-site-footer__contact-static span:last-child {
    min-width: 0;
    word-break: break-word;
}

.eman-site-footer__list a:hover {
    color: var(--eman-purple);
}

.eman-site-footer__list a:hover .eman-site-footer__icon-wrap {
    background: var(--eman-purple, #6a1b9a);
    border-color: var(--eman-purple, #6a1b9a);
    color: #fff;
}

.eman-site-footer__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 9px;
    border: 1px solid rgba(106, 27, 154, 0.14);
    background: rgba(106, 27, 154, 0.07);
    color: var(--eman-purple, #6a1b9a);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.eman-site-footer__icon {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    stroke-width: 2.1;
    color: inherit;
    margin: 0 !important;
}

.eman-site-footer__list--contact {
    gap: 12px;
}

.eman-site-footer__list--contact a,
.eman-site-footer__list--contact .eman-site-footer__contact-static {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--eman-text-dark, #334155);
}

.eman-site-footer__list--contact .eman-site-footer__icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.eman-site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 0 22px;
    border-top: 1px solid var(--eman-border-light);
    font-size: 0.82rem;
}

.eman-site-footer__copyright {
    color: var(--eman-text-dark);
    line-height: 1.5;
}

.eman-site-footer__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.eman-site-footer__legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 14px;
}

.eman-site-footer__legal a {
    color: var(--eman-text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.eman-site-footer__legal a:hover {
    color: var(--eman-purple);
}

.eman-site-footer__dev-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 16px !important;
    font-size: 0.8rem !important;
    background-color: var(--eman-accent) !important;
    border-color: var(--eman-accent) !important;
    color: #fff !important;
    border-radius: 999px !important;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.eman-site-footer__dev-btn:hover {
    background-color: #00c4db !important;
    border-color: #00c4db !important;
    transform: translateY(-1px);
}

.eman-site-footer__dev-btn .lucide-icon {
    width: 16px;
    height: 16px;
    margin: 0 !important;
}

@media (max-width: 991px) {
    .eman-site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .eman-site-footer__col--about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575px) {
    .eman-site-footer__bar {
        padding: 20px 0 16px;
    }

    .eman-site-footer__social-wrap {
        width: 100%;
        justify-content: space-between;
    }

    .eman-site-footer__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0 16px;
    }

    .eman-site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .eman-site-footer__meta {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .eman-site-footer__dev-btn {
        width: 100%;
    }
}

html.-dark-mode .eman-site-footer {
    background: linear-gradient(180deg, #121820 0%, #1a2230 48%);
    border-top-color: #334155;
}

html.-dark-mode .eman-site-footer__bar,
html.-dark-mode .eman-site-footer__bottom {
    border-color: #334155;
}

html.-dark-mode .eman-site-footer__bio,
html.-dark-mode .eman-site-footer__list a,
html.-dark-mode .eman-site-footer__list li,
html.-dark-mode .eman-site-footer__contact-static,
html.-dark-mode .eman-site-footer__legal a {
    color: rgba(255, 255, 255, 0.72);
}

html.-dark-mode .eman-site-footer__list--contact a,
html.-dark-mode .eman-site-footer__list--contact .eman-site-footer__contact-static {
    color: rgba(255, 255, 255, 0.88);
}

html.-dark-mode .eman-site-footer__icon-wrap {
    background: rgba(212, 165, 224, 0.12);
    border-color: rgba(212, 165, 224, 0.28);
    color: var(--eman-purple-light, #d4a5e0);
}

html.-dark-mode .eman-site-footer__list a:hover .eman-site-footer__icon-wrap {
    background: var(--eman-purple, #6a1b9a);
    border-color: var(--eman-purple, #6a1b9a);
    color: #fff;
}

html.-dark-mode .eman-site-footer__copyright {
    color: rgba(255, 255, 255, 0.9);
}

html.-dark-mode .eman-site-footer__social a {
    background: #0f172a !important;
    border-color: #334155 !important;
}

html.-dark-mode .eman-site-footer__social a.is-facebook { color: #1877f2 !important; }
html.-dark-mode .eman-site-footer__social a.is-whatsapp { color: #25d366 !important; }
html.-dark-mode .eman-site-footer__social a.is-instagram { color: #e4405f !important; }
html.-dark-mode .eman-site-footer__social a.is-youtube { color: #ff0000 !important; }
html.-dark-mode .eman-site-footer__social a.is-telegram { color: #26a5e4 !important; }

html.-dark-mode .eman-site-footer__social a:hover {
    color: #fff !important;
    background-color: var(--eman-purple, #6a1b9a) !important;
    border-color: var(--eman-purple, #6a1b9a) !important;
}
