/* ============================================
   Footer (1440: عمود براند 332 + gap 56 + block 844 فيه 3 أعمدة 143/288/300)
   ============================================ */

.footer {
    background: #06230B;
    color: var(--white);
    padding-top: 40px;
}

.footer__inner {
    display: flex;
    align-items: flex-start;
    gap: 56px;
    padding-bottom: 46px;
}

/* عمود البراند */
.footer__col--brand {
    flex: 0 0 332px;
    width: 332px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.footer__col--brand .footer__logo {
    width: 140px;
    height: 102.79px;
    object-fit: contain;
}

.footer__about {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--white);
    max-width: 332px;
}

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

.footer__social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: color .2s;
}

.footer__social a:hover {
    color: var(--primary-500);
}

.footer__social svg {
    display: block;
    width: 26px;
    height: 26px;
}

/* block الأعمدة التلاتة */
.footer__cols {
    flex: 1 1 auto;
    max-width: 844px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer__col--links      { flex: 0 0 auto; min-width: 143px; }
.footer__col--contact    { flex: 0 1 288px; }
.footer__col--newsletter { flex: 0 1 300px; }

.footer__col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* العناوين */
.footer__heading {
    color: var(--white);
    font-size: 18px;
    line-height: 27px;
    font-weight: 600;
    margin-bottom: 32px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer__links a {
    font-size: 18px;
    line-height: 27px;
    font-weight: 400;
    color: var(--white);
    transition: color .2s;
}

.footer__links a:hover {
    color: var(--primary-500);
}

/* بيانات التواصل */
.footer__contact-inline {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 18px;
    line-height: 27px;
    font-weight: 400;
    color: var(--white);
}

.footer__contact-item svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--white);
}

/* النشرة الإخبارية */
.footer__col--newsletter .footer__newsletter {
    width: 100%;
}

.footer__newsletter-flash {
    font-size: 14px;
    line-height: 21px;
    color: var(--primary-500);
    background: rgba(38, 216, 68, 0.12);
    border: 1px solid rgba(38, 216, 68, 0.3);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    max-width: 300px;
}

.footer__newsletter label {
    display: block;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 8px;
}

.footer__newsletter-input {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 300px;
    max-width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--white);
    border-radius: 8px;
    background: transparent;
    box-sizing: border-box;
}

.footer__newsletter-input:focus-within {
    border-color: var(--primary-500);
}

.footer__newsletter-input svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--white);
}

.footer__newsletter-input input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 16px;
    line-height: 24px;
    color: var(--white);
}

.footer__newsletter-input input::placeholder {
    color: var(--white);
    opacity: 1;
}

/* الشريط السفلي — الـ border بعرض المحتوى (1232) بس */
.footer__bottom {
    border-top: 1px solid #093410;
    min-height: 64px;
    padding-block: 19px 20px; /* 1px border + 19 + 24 + 20 = 64 */
    box-sizing: border-box;
}

.footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.footer__bottom-inner p {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--white);
}

.footer__bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.footer__bottom-links a {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: var(--white);
    transition: color .2s;
}

.footer__bottom-links a:hover {
    color: var(--primary-500);
}

/* Responsive */
@media (max-width: 1199px) {
    .footer__inner {
        flex-direction: column;
        gap: 40px;
    }
    .footer__col--brand {
        flex-basis: auto;
    }
    .footer__cols {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 767px) {
    .footer__cols {
        flex-direction: column;
        gap: 40px;
    }
    .footer__col--brand,
    .footer__col--contact,
    .footer__col--newsletter {
        width: 100%;
        flex-basis: auto;
    }
    .footer__heading {
        margin-bottom: 24px;
    }
    .footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer__bottom-links {
        justify-content: center;
    }
}
