/*
 * تذييل BeeStore — طبقة تصميم مستقلة تأتي بعد footer.css و beestore.css.
 * الفكرة: خلفية داكنة بنقشة خلية نحل خافتة، وشريط عسلي رفيع أعلى التذييل،
 * وأعمدة روابط بعناوين معلّمة بخلية صغيرة، وبطاقات تواصل قابلة للنقر.
 */

.bee-footer {
    --ftr-bg: #201F1E;
    --ftr-bg-deep: #171615;
    --ftr-line: rgba(255, 255, 255, .09);
    --ftr-text: #B7B2AA;
    --ftr-text-soft: #8C8880;
    --ftr-white: #FFFFFF;
    --ftr-honey: #FFC928;
    --ftr-honey-soft: #FFD75E;

    position: relative;
    padding: 0 !important;
    background: var(--ftr-bg) !important;
    color: var(--ftr-text);
    overflow: hidden;
}

/* نقشة الخلية على الغامق: نفس الشبكة لكن بخطوط فاتحة حتى تُرى. */
.bee-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34.64' height='60' viewBox='0 0 34.64 60'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.055' stroke-width='1.05'%3E%3Cpath d='M17.32 -20 L34.64 -10 L34.64 10 L17.32 20 L0 10 L0 -10 Z'/%3E%3Cpath d='M0 10 L17.32 20 L17.32 40 L0 50 L-17.32 40 L-17.32 20 Z'/%3E%3Cpath d='M34.64 10 L51.96 20 L51.96 40 L34.64 50 L17.32 40 L17.32 20 Z'/%3E%3Cpath d='M17.32 40 L34.64 50 L34.64 70 L17.32 80 L0 70 L0 50 Z'/%3E%3C/g%3E%3C/svg%3E") center top / 36px 62.4px repeat;
    /* تتلاشى النقشة كلما نزلنا حتى لا تزاحم النصوص السفلية. */
    -webkit-mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, .35) 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, .35) 55%, transparent 100%);
    pointer-events: none;
}

/* شريط العسل الرفيع الذي يفصل التذييل عن الصفحة. */
.bee-footer::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-start: 0;
    height: 3px;
    background: linear-gradient(90deg, #F0B000, var(--ftr-honey) 35%, var(--ftr-honey-soft) 65%, #F0B000);
    pointer-events: none;
}

.bee-footer__top {
    position: relative;
    z-index: 1;
    padding-block: 72px 56px;
}

.bee-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, .76fr)) minmax(0, 1.45fr);
    gap: 48px 40px;
    align-items: start;
}

/* ── عمود العلامة ───────────────────────────────────────────── */

.bee-footer__logo {
    display: inline-block;
    margin-block-end: 20px;
    line-height: 0;
    transition: transform .25s ease, filter .25s ease;
}

.bee-footer__logo img {
    width: 208px;
    max-width: 100%;
    height: auto;
}

.bee-footer__logo:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 8px 18px rgba(255, 201, 40, .25));
}

.bee-footer__tagline {
    max-width: 42ch;
    margin: 0;
    color: var(--ftr-text);
    font-size: 14px;
    line-height: 1.85;
}

.bee-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-block-start: 24px;
}

.bee-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--ftr-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    transition: border-color .25s ease, background-color .25s ease, transform .25s ease;
}

.bee-footer__social-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.bee-footer__social-link:hover {
    border-color: rgba(255, 201, 40, .55);
    background: rgba(255, 201, 40, .12);
    transform: translateY(-2px);
}

/* ── أعمدة الروابط ──────────────────────────────────────────── */

.bee-footer__heading {
    position: relative;
    margin: 0 0 22px;
    padding-inline-start: 20px;
    color: var(--ftr-white);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

/* خلية نحل صغيرة تسبق كل عنوان. */
.bee-footer__heading::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: .45em;
    width: 11px;
    height: 12px;
    background: var(--ftr-honey);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.bee-footer__links {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bee-footer__links a {
    position: relative;
    display: inline-block;
    color: var(--ftr-text);
    font-size: 14px;
    text-decoration: none;
    transition: color .22s ease, transform .22s ease;
}

.bee-footer__links a::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: -3px;
    width: 0;
    height: 1px;
    background: var(--ftr-honey);
    transition: width .25s ease;
}

.bee-footer__links a:hover {
    color: var(--ftr-honey);
    transform: translateX(-3px);
}

html[dir="ltr"] .bee-footer__links a:hover {
    transform: translateX(3px);
}

.bee-footer__links a:hover::after {
    width: 100%;
}

/* ── عمود التواصل ───────────────────────────────────────────── */

.bee-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bee-footer__card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--ftr-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
    text-decoration: none;
    transition: border-color .25s ease, background-color .25s ease, transform .25s ease;
}

.bee-footer__card:hover {
    border-color: rgba(255, 201, 40, .45);
    background: rgba(255, 201, 40, .08);
    transform: translateY(-2px);
}

.bee-footer__card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--ftr-honey), #E6A900);
    color: #2F2415;
}

.bee-footer__card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.bee-footer__card-text small {
    color: var(--ftr-text-soft);
    font-size: 11px;
    line-height: 1.5;
}

.bee-footer__card-text strong {
    overflow: hidden;
    color: var(--ftr-white);
    font-size: 14.5px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bee-footer__whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    margin-block-start: 4px;
    padding: 0 18px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--ftr-honey), #E6A900);
    color: #2F2415 !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 26px -16px rgba(255, 201, 40, .9);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.bee-footer__whatsapp:hover {
    transform: translateY(-2px);
    filter: saturate(1.06);
    box-shadow: 0 16px 30px -16px rgba(255, 201, 40, 1);
}

.bee-footer__apps {
    margin-block-start: 8px;
}

.bee-footer__apps-label {
    display: block;
    margin-block-end: 10px;
    color: var(--ftr-text-soft);
    font-size: 12px;
}

.bee-footer__apps-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bee-footer__apps-badges img {
    width: auto;
    height: 40px;
    border-radius: 8px;
}

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

.bee-footer__bottom {
    position: relative;
    z-index: 1;
    border-block-start: 1px solid var(--ftr-line);
    background: var(--ftr-bg-deep);
}

.bee-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-block: 18px;
    flex-wrap: wrap;
}

.bee-footer__copy {
    margin: 0;
    color: var(--ftr-text-soft);
    font-size: 13.5px;
}

.bee-footer__copy span {
    color: var(--ftr-white);
    font-weight: 700;
}

.bee-footer__pay {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    direction: rtl;
}

.bee-footer__pay-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 58px;
    height: 40px;
    padding: 5px 10px;
    border: 1px solid var(--ftr-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    color: var(--ftr-honey);
}

.bee-footer__pay-item img {
    display: block;
    width: auto;
    max-width: 70px;
    height: 26px;
    object-fit: contain;
}

.bee-footer__pay-item small {
    color: var(--ftr-white);
    font-size: 10px;
    white-space: nowrap;
}

.bee-footer__top-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid var(--ftr-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    color: var(--ftr-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .25s ease, background-color .25s ease, color .25s ease, transform .25s ease;
}

.bee-footer__top-btn:hover {
    border-color: rgba(255, 201, 40, .5);
    background: rgba(255, 201, 40, .1);
    color: var(--ftr-honey);
    transform: translateY(-2px);
}

/* ── الشاشات الأصغر ─────────────────────────────────────────── */

@media (max-width: 1228.8px) {
    .bee-footer__grid {
        grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, .8fr));
        gap: 44px 32px;
    }

    .bee-footer__contact {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
        gap: 12px;
        align-items: stretch;
    }

    .bee-footer__contact .bee-footer__heading {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991px) {
    .bee-footer__top {
        padding-block: 56px 44px;
    }

    .bee-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 28px;
    }

    .bee-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575px) {
    .bee-footer__top {
        padding-block: 44px 36px;
    }

    .bee-footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .bee-footer__logo img {
        width: 178px;
    }

    .bee-footer__heading {
        margin-block-end: 16px;
        font-size: 16px;
    }

    .bee-footer__links {
        gap: 11px;
    }

    .bee-footer__bottom-inner {
        justify-content: center;
        text-align: center;
    }

    .bee-footer__pay {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bee-footer *,
    .bee-footer *::before,
    .bee-footer *::after {
        transition: none !important;
    }
}
