/* ==========================================================
   footer.css — الفوتر + توقيع engz business ثلاثي الأبعاد
   ========================================================== */
:root {
    --ebmnt1-footer-bg: var(--ebmnt1-color-secondary);
    --ebmnt1-footer-bg-image: url("../images/dark-section-bg-shape.png");
    --ebmnt1-footer-title-color: var(--ebmnt1-color-white);
    --ebmnt1-footer-title-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
    --ebmnt1-footer-text-color: var(--ebmnt1-color-text-muted-on-dark);
    --ebmnt1-footer-link-color: var(--ebmnt1-color-text-muted-on-dark);
    --ebmnt1-footer-link-hover-color: var(--ebmnt1-color-helper);
    --ebmnt1-footer-contact-icon-color: var(--ebmnt1-color-helper);
    --ebmnt1-footer-logo-text-color: var(--ebmnt1-color-white);
    --ebmnt1-footer-logo-mark-bg: var(--ebmnt1-color-primary);
    --ebmnt1-footer-logo-mark-icon: var(--ebmnt1-color-white);
    --ebmnt1-footer-social-border: var(--ebmnt1-color-glass-border);
    --ebmnt1-footer-social-color: var(--ebmnt1-color-white);
    --ebmnt1-footer-social-hover-bg: var(--ebmnt1-color-primary);
    --ebmnt1-footer-divider: var(--ebmnt1-color-glass-border);
    --ebmnt1-footer-copy-color: var(--ebmnt1-color-text-muted-on-dark);
    --ebmnt1-footer-credit-bg-from: var(--ebmnt1-color-primary);
    --ebmnt1-footer-credit-bg-to: var(--ebmnt1-color-primary-dark);
    --ebmnt1-footer-credit-depth: var(--ebmnt1-color-helper);
    --ebmnt1-footer-credit-text: var(--ebmnt1-color-white);
    --ebmnt1-footer-credit-label: var(--ebmnt1-color-text-muted-on-dark);
    --ebmnt1-footer-credit-icon: var(--ebmnt1-color-helper);
    --ebmnt1-footer-credit-sheen: rgba(255, 255, 255, 0.35);
    --ebmnt1-footer-credit-shadow: rgba(0, 0, 0, 0.45);
}

.ebmnt1-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    background-color: var(--ebmnt1-footer-bg);
    background-image: var(--ebmnt1-footer-bg-image);
    background-size: cover;
    background-position: center;
}

.ebmnt1-footer::before,
.ebmnt1-footer::after {
    content: "";
    display: block;
    flex: none;
    height: var(--ebmnt1-layout-filled-space);
}

.ebmnt1-footer__inner {
    width: calc(100% - var(--ebmnt1-layout-inner-gutter));
    max-width: var(--ebmnt1-layout-max-width);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 2.5em;
}

.ebmnt1-footer__grid {
    display: flex;
    flex-direction: column;
    gap: 2.5em;
}

.ebmnt1-footer__col {
    display: flex;
    flex-direction: column;
    gap: 1.1em;
}

.ebmnt1-footer__logo {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.6em;
}

.ebmnt1-footer__logo-mark {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ebmnt1-footer-logo-mark-icon);
    background-color: var(--ebmnt1-footer-logo-mark-bg);
    border-radius: 50%;
}

.ebmnt1-footer__logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ebmnt1-footer-logo-text-color);
}

.ebmnt1-footer__text {
    color: var(--ebmnt1-footer-text-color);
}

.ebmnt1-footer__title {
    font-size: var(--ebmnt1-footer-title-size);
    font-weight: 700;
    color: var(--ebmnt1-footer-title-color);
}

.ebmnt1-footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.7em;
}

.ebmnt1-footer__link {
    display: inline-block;
    color: var(--ebmnt1-footer-link-color);
    transition: color var(--ebmnt1-layout-transition), transform var(--ebmnt1-layout-transition);
}

.ebmnt1-footer__link:hover {
    color: var(--ebmnt1-footer-link-hover-color);
    transform: translateX(-0.25rem);
}

.ebmnt1-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75em;
    color: var(--ebmnt1-footer-link-color);
}

.ebmnt1-footer__contact-item i {
    margin-top: 0.35em;
    color: var(--ebmnt1-footer-contact-icon-color);
}

.ebmnt1-footer__social {
    display: flex;
    gap: 0.6em;
}

.ebmnt1-footer__social-link {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ebmnt1-footer-social-color);
    border: 1px solid var(--ebmnt1-footer-social-border);
    border-radius: 50%;
    transition: background-color var(--ebmnt1-layout-transition), transform var(--ebmnt1-layout-transition);
}

.ebmnt1-footer__social-link:hover {
    background-color: var(--ebmnt1-footer-social-hover-bg);
    transform: translateY(-0.25rem);
}

.ebmnt1-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25em;
    padding-top: 1.5em;
    text-align: center;
    border-top: 1px solid var(--ebmnt1-footer-divider);
}

.ebmnt1-footer__copy {
    font-size: 0.95rem;
    color: var(--ebmnt1-footer-copy-color);
}

/* ---------- توقيع 3D ---------- */
.ebmnt1-credit {
    perspective: 700px;
    display: inline-flex;
    align-items: center;
    gap: 0.75em;
    flex-wrap: wrap;
    justify-content: center;
    color: var(--ebmnt1-footer-credit-label);
    font-size: 0.95rem;
}

.ebmnt1-credit__badge {
    --ebmnt1-credit-rotate-x: 0deg;
    --ebmnt1-credit-rotate-y: 0deg;
    --ebmnt1-credit-sheen-x: -120%;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.65em 1.2em;
    font-weight: 700;
    color: var(--ebmnt1-footer-credit-text);
    background: linear-gradient(135deg, var(--ebmnt1-footer-credit-bg-from), var(--ebmnt1-footer-credit-bg-to));
    border-radius: 0.9rem;
    transform-style: preserve-3d;
    transform: rotateX(var(--ebmnt1-credit-rotate-x)) rotateY(var(--ebmnt1-credit-rotate-y));
    box-shadow:
        0 0.35rem 0 var(--ebmnt1-footer-credit-depth),
        0 1rem 1.5rem var(--ebmnt1-footer-credit-shadow);
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    animation: ebmnt1CreditIdle 5s ease-in-out infinite;
}

.ebmnt1-credit__badge.ebmnt1-is-tilting {
    animation: none;
}

.ebmnt1-credit__badge::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 30%, var(--ebmnt1-footer-credit-sheen) 50%, transparent 70%);
    transform: translateX(var(--ebmnt1-credit-sheen-x));
    transition: transform 0.7s ease;
    pointer-events: none;
}

.ebmnt1-credit__badge:hover::after {
    --ebmnt1-credit-sheen-x: 120%;
}

.ebmnt1-credit__icon {
    color: var(--ebmnt1-footer-credit-icon);
    transform: translateZ(1.5rem);
}

.ebmnt1-credit__name {
    transform: translateZ(1.25rem);
    text-shadow: 0 0.15rem 0.3rem rgba(0, 0, 0, 0.35);
}

@keyframes ebmnt1CreditIdle {
    0%, 100% { transform: rotateX(4deg) rotateY(-6deg); }
    50% { transform: rotateX(-4deg) rotateY(6deg); }
}

@media (min-width: 768px) {
    .ebmnt1-footer__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2.5em 2em;
    }

    .ebmnt1-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .ebmnt1-footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    }
}
