/* =========================================================
   Company Header & Footer - Footer Styles
   ملف مستقل تمامًا عن الهيدر - أي تعديل هنا مايأثرش على الهيدر
   ========================================================= */

:root {
    --chf-main: #222168;
    --chf-second: #6bbdcd;
    --chf-white: #ffffff;
    --chf-font: 'Plus Jakarta Sans', sans-serif;
}

.chf-footer * {
    box-sizing: border-box;
}

.chf-footer {
    /* --chf-footer-logo-w / --chf-footer-font-size بتتحط inline من الإعدادات */
    --chf-footer-logo-w: 140px;
    --chf-footer-font-size: 15px;

    direction: ltr;
    font-family: var(--chf-font);
    padding: 40px 24px 24px;
    background: transparent;
}

.chf-footer__card {
    max-width: 1280px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--chf-main) 0%, var(--chf-second) 150%);
    border-radius: 28px;
    padding: 56px 56px 0;
    box-shadow: 0 20px 50px rgba(34, 33, 104, 0.25);
    overflow: hidden;

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.chf-footer__card.chf-in-view {
    opacity: 1;
    transform: translateY(0);
}

.chf-footer__row {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 0.9fr;
    gap: 40px;
    padding-bottom: 32px;
}

/* ---------- Brand Column ---------- */
.chf-footer__logo {
    width: var(--chf-footer-logo-w);
    max-width: 100%;
    height: auto;
    margin-bottom: 18px;
    display: block;
}

.chf-footer__logo-text {
    display: inline-block;
    font-size: 22px;
    font-weight: 800;
    color: var(--chf-white);
    margin-bottom: 18px;
}

.chf-footer__desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--chf-footer-font-size);
    line-height: 1.8;
    margin: 0 0 24px;
    max-width: 320px;
}

.chf-footer__social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chf-social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--chf-white);
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.chf-social-icon:hover {
    transform: translateY(-4px) scale(1.06);
    opacity: 0.95;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.chf-social-icon--facebook { background: #1877f2; }
.chf-social-icon--instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.chf-social-icon--twitter { background: #1da1f2; }
.chf-social-icon--whatsapp { background: #25d366; }

/* ---------- Link Columns ---------- */
.chf-footer__title {
    color: var(--chf-white);
    font-size: calc(var(--chf-footer-font-size) + 3px);
    font-weight: 700;
    margin: 0 0 22px;
}

.chf-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* أيقونة سهم ثابتة قبل كل رابط، مع أنيميشن بسيط عند الـ hover */
.chf-footer__list li {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--chf-footer-font-size);
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.chf-footer__list li::before {
    content: '\2192'; /* → */
    display: inline-block;
    color: var(--chf-second);
    font-weight: 700;
    transform: translateX(0);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.chf-footer__list li:hover::before {
    transform: translateX(4px);
}

.chf-footer__list li a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.chf-footer__list li:hover a {
    color: var(--chf-white);
}

/* ---------- Bottom Bar (جوه الكارت) ---------- */
.chf-footer__bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.chf-footer__bottom p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .chf-footer__card {
        border-radius: 20px;
        padding: 40px 32px 0;
    }

    .chf-footer__row {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }
}

@media (max-width: 560px) {
    .chf-footer {
        padding: 24px 12px 16px;
    }

    .chf-footer__card {
        padding: 32px 24px 0;
    }

    .chf-footer__row {
        grid-template-columns: 1fr;
    }

    .chf-footer__desc {
        max-width: 100%;
    }
}
