/* ==========================================================
   footer — خلفية داكنة بحافة سحابية + ٣ أعمدة + توقيع engz business ثلاثي الأبعاد
   ========================================================== */

:root {
    --ebmnt1-footer-accent-color: var(--ebmnt1-color-helper-mint-strong);
    --ebmnt1-footer-bar-background: var(--ebmnt1-color-helper-purple-darker);
    --ebmnt1-footer-background: var(--ebmnt1-color-helper-purple-deep);
    --ebmnt1-footer-edge-color: var(--ebmnt1-color-page-background);
    --ebmnt1-footer-wave-color: rgba(255, 255, 255, 0.22);
    --ebmnt1-footer-text-color: var(--ebmnt1-color-white);
    --ebmnt1-footer-muted-text-color: rgba(255, 255, 255, 0.78);
    --ebmnt1-footer-heading-color: var(--ebmnt1-color-white);
    --ebmnt1-footer-icon-color: var(--ebmnt1-color-helper-mint-strong);
    --ebmnt1-footer-link-hover-color: var(--ebmnt1-color-helper-yellow);
    --ebmnt1-footer-social-background: rgba(255, 255, 255, 0.12);
    --ebmnt1-footer-social-icon-color: var(--ebmnt1-color-white);
    --ebmnt1-footer-social-background-hover: var(--ebmnt1-color-primary);
    --ebmnt1-footer-divider-color: rgba(255, 255, 255, 0.18);
    --ebmnt1-footer-signature-background-start: var(--ebmnt1-color-primary);
    --ebmnt1-footer-signature-background-end: var(--ebmnt1-color-helper-lavender);
    --ebmnt1-footer-signature-text-color: var(--ebmnt1-color-white);
    --ebmnt1-footer-signature-depth-color: var(--ebmnt1-color-primary-dark);
    --ebmnt1-footer-signature-depth-deep-color: var(--ebmnt1-color-helper-purple);
    --ebmnt1-footer-signature-label-color: var(--ebmnt1-color-helper-yellow);
    --ebmnt1-footer-signature-icon-color: var(--ebmnt1-color-helper-yellow);
    --ebmnt1-footer-font-size-heading: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
    --ebmnt1-footer-font-size-text: clamp(0.85rem, 0.8rem + 0.3vw, 1rem);
    --ebmnt1-footer-font-size-signature: clamp(0.95rem, 0.85rem + 0.5vw, 1.2rem);
}

.ebmnt1-footer {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 5em;
    background-color: var(--ebmnt1-footer-background);
    color: var(--ebmnt1-footer-text-color);
    font-size: var(--ebmnt1-footer-font-size-text);
}

.ebmnt1-footer::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: calc(100% - 1px);
    height: 1.6rem;
    background-image:
        radial-gradient(circle at 50% 100%, var(--ebmnt1-footer-background) 0 66%, transparent 67%),
        radial-gradient(circle at 50% 100%, var(--ebmnt1-footer-accent-color) 0 76%, transparent 77%);
    background-size: 2.8rem 100%;
    background-repeat: repeat-x;
}

.ebmnt1-footer__watermark {
    position: absolute;
    left: 2%;
    bottom: 3.5rem;
    width: clamp(8rem, 6rem + 12vw, 16rem);
    height: auto;
    opacity: 0.12;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.ebmnt1-footer__bar {
    width: 100%;
    display: flex;
    padding-bottom: 6.5rem;
    background-color: var(--ebmnt1-footer-bar-background);
}

.ebmnt1-footer__wave {
    width: calc(100% - var(--ebmnt1-layout-gutter));
    max-width: var(--ebmnt1-layout-max-width);
    margin-inline: auto;
    height: 0.9rem;
    margin-top: 1.4rem;
    background-image: radial-gradient(circle at 50% 0, transparent 0 0.38rem, var(--ebmnt1-footer-wave-color) 0.4rem 0.52rem, transparent 0.55rem);
    background-size: 1.6rem 100%;
    background-repeat: repeat-x;
}

.ebmnt1-footer__inner {
    width: calc(100% - var(--ebmnt1-layout-gutter));
    max-width: var(--ebmnt1-layout-max-width);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 2em;
    margin-block: 1.6rem 1.4rem;
}

.ebmnt1-footer__columns {
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.ebmnt1-footer__column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.9em;
    text-align: start;
}

.ebmnt1-footer__brand {
    align-items: flex-start;
}

.ebmnt1-footer__logo {
    width: clamp(7rem, 6rem + 4vw, 9.5rem);
    height: auto;
    filter: drop-shadow(0 0.5rem 0.6rem rgba(0, 0, 0, 0.3));
}

.ebmnt1-footer__about {
    color: var(--ebmnt1-footer-muted-text-color);
    max-width: 22rem;
}

.ebmnt1-footer__heading {
    font-size: var(--ebmnt1-footer-font-size-heading);
    color: var(--ebmnt1-footer-heading-color);
    letter-spacing: 0.02em;
}

.ebmnt1-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.ebmnt1-footer__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--ebmnt1-footer-social-background);
    color: var(--ebmnt1-footer-social-icon-color);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

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

.ebmnt1-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7em;
}

.ebmnt1-footer__contact-item > i {
    margin-top: 0.3em;
    color: var(--ebmnt1-footer-icon-color);
    font-size: 1.15em;
}

.ebmnt1-footer__contact-body {
    display: flex;
    flex-direction: column;
    gap: 0.1em;
}

.ebmnt1-footer__contact-label {
    font-size: 0.85em;
    color: var(--ebmnt1-footer-muted-text-color);
}

.ebmnt1-footer__contact-value {
    font-weight: 700;
    direction: ltr;
    text-align: start;
    unicode-bidi: plaintext;
}

.ebmnt1-footer__contact-value--text {
    direction: rtl;
    font-weight: 600;
}

.ebmnt1-footer__link {
    color: var(--ebmnt1-footer-muted-text-color);
    transition: color 0.25s ease, transform 0.25s ease;
    display: inline-block;
}

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

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

/* ---------- الشريط السفلي ---------- */

.ebmnt1-footer__bottom {
    width: calc(100% - var(--ebmnt1-layout-gutter));
    max-width: var(--ebmnt1-layout-max-width);
    margin-inline: auto;
    min-height: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    text-align: center;
}

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

/* توقيع engz business — 3D + Signature */
.ebmnt1-signature {
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
    perspective: 700px;
}

.ebmnt1-signature__label {
    color: var(--ebmnt1-footer-signature-label-color);
    font-style: italic;
    font-size: 0.95em;
}

.ebmnt1-signature__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    padding: 0.45em 1.2em;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ebmnt1-footer-signature-background-start), var(--ebmnt1-footer-signature-background-end));
    color: var(--ebmnt1-footer-signature-text-color);
    font-size: var(--ebmnt1-footer-font-size-signature);
    font-weight: 700;
    transform-style: preserve-3d;
    transform: rotateX(var(--ebmnt1-signature-tilt-x, 0deg)) rotateY(var(--ebmnt1-signature-tilt-y, 0deg));
    box-shadow:
        0 1px 0 var(--ebmnt1-footer-signature-depth-color),
        0 2px 0 var(--ebmnt1-footer-signature-depth-color),
        0 3px 0 var(--ebmnt1-footer-signature-depth-color),
        0 4px 0 var(--ebmnt1-footer-signature-depth-deep-color),
        0 5px 0 var(--ebmnt1-footer-signature-depth-deep-color),
        0 10px 16px rgba(0, 0, 0, 0.35);
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease-out, box-shadow 0.25s ease;
    overflow: hidden;
}

.ebmnt1-signature__link::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    right: -60%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    animation: ebmnt1-signature-shine 3.8s ease-in-out infinite;
}

.ebmnt1-signature__link i {
    color: var(--ebmnt1-footer-signature-icon-color);
    transform: translateZ(1.2rem);
}

.ebmnt1-signature__text {
    transform: translateZ(1rem);
}

@keyframes ebmnt1-signature-shine {
    0%, 55% { right: -60%; }
    100% { right: 130%; }
}

@media (prefers-reduced-motion: reduce) {
    .ebmnt1-signature__link::after { animation: none; }
}

@media (min-width: 768px) {
    .ebmnt1-footer__columns {
        flex-direction: row;
        gap: 3em;
    }

    .ebmnt1-footer__bar {
        padding-bottom: 0;
    }

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