/* =====================================================================
   الفوتر الموحد (عربي + إنجليزي)
   ===================================================================== */

:root {
    --rq-align-start: right;
    --rq-hover-shift: -5px;
}

html[dir="ltr"] {
    --rq-align-start: left;
    --rq-hover-shift: 5px;
}

:root {
        --footer-section-bg-dark: var(--brand-header-secondary-1);
        --footer-section-bg-main: var(--brand-header-secondary-2);
        --footer-section-accent: var(--brand-header-teal-green);
        --footer-section-hover-color: #8be0cf;
        --footer-section-text-white: #ffffff;
        --footer-section-text-muted: var(--rq-tint-d5eee8, #d5eee8);
        --footer-section-font: 'Cairo', sans-serif;
        --footer-section-transition: all 0.3s ease-in-out;
    }

* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: var(--footer-section-font);
    }

.footer-section-all {
        background-color: var(--rq-tint-fafdfc, #fafdfc);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

.footer-section-wrapper {
        position: relative;
        background-color: rgba(var(--rq-rgb-primary), 0.96);
        color: var(--footer-section-text-white);
        margin-top: 60px;
        width: 100%;
        overflow: hidden;
    }

.footer-section-wave-container {
        position: absolute;
        top: -1px;
        left: 0;
        width: 100%;
        overflow: hidden;
        line-height: 0;
        z-index: 2;
    }

.footer-section-wave-svg {
        position: relative;
        display: block;
        width: calc(100% + 1.3px);
        height: 65px;
    }

.footer-section-wave-path {
        fill: var(--rq-tint-fafdfc, #fafdfc); /* Matches body background */
    }

.footer-section-main-content {
        padding-top: 85px;
        padding-bottom: 30px;
        position: relative;
        z-index: 3;
        
    }

.footer-section-container {
        max-width: 1250px;
        margin: 0 auto;
        padding: 0 24px;
    }

.footer-section-grid {
        display: grid;
        grid-template-columns: 1.35fr 0.85fr 0.95fr 1.25fr;
        gap: 65px;
        align-items: start;
    }

.footer-section-column {
        display: flex;
        flex-direction: column;
    }

.footer-section-brand-box {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

.footer-section-logo-wrapper {
        display: flex;
        align-items: center;
        margin-bottom: 18px;
        text-decoration: none;
    }

.footer-section-logo-img {
        max-width: 220px;
        height: auto;
        display: block;
    }

.footer-section-about-text {
        font-size: 0.95rem;
        line-height: 1.75;
        color: var(--footer-section-text-white);
        margin-bottom: 22px;
        font-weight: 400;
        opacity: 0.95;
        text-align: justify;
    }

.footer-section-social-list {
        display: flex;
        align-items: center;
        gap: 10px;
        list-style: none;
    }

.footer-section-social-link {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.12);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--footer-section-text-white);
        text-decoration: none;
        font-size: 1.05rem;
        transition: var(--footer-section-transition);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

.footer-section-social-link:hover {
        background-color: var(--footer-section-hover-color);
        color: var(--footer-section-bg-dark);
        transform: translateY(-4px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

.footer-section-column-title {
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: 22px;
        position: relative;
        color: var(--footer-section-text-white);
        padding-bottom: 8px;
    }

.footer-section-column-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        inset-inline-start: 0;
        width: 35px;
        height: 3px;
        background-color: var(--footer-section-accent);
        border-radius: 2px;
    }

.footer-section-nav-list {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 7px;
    }

.footer-section-nav-item {
        display: block;
    }

.footer-section-nav-link {
        color: var(--footer-section-text-white);
        text-decoration: none;
        font-size: 0.96rem;
        font-weight: 400;
        transition: var(--footer-section-transition);
        display: inline-block;
    }

.footer-section-nav-link:hover {
        color: var(--footer-section-hover-color);
        transform: translateX(var(--rq-hover-shift));
    }

.footer-section-phone-box {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 20px;
        background-color: rgba(255, 255, 255, 0.08);
        padding: 10px 14px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

.footer-section-phone-icon {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background-color: var(--footer-section-accent);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        font-size: 0.95rem;
        flex-shrink: 0;
    }

.footer-section-phone-label {
        display: flex;
        flex-direction: column;
    }

.footer-section-phone-title {
        font-size: 0.78rem;
        color: var(--footer-section-text-muted);
    }

.footer-section-phone-number {
        color: var(--footer-section-text-white);
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 700;
        direction: ltr;
        text-align: var(--rq-align-start);
        transition: var(--footer-section-transition);
    }

.footer-section-phone-number:hover {
        color: var(--footer-section-hover-color);
    }

.footer-section-branches-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 6px;
    }

.footer-section-branches-table th {
        text-align: var(--rq-align-start);
        font-size: 0.85rem;
        color: var(--footer-section-hover-color);
        padding-bottom: 6px;
        font-weight: 700;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

.footer-section-branches-table td {
        font-size: 0.88rem;
        color: var(--footer-section-text-white);
        padding: 6px 0;
        vertical-align: middle;
    }

.footer-section-branch-name {
        font-weight: 700;
        color: var(--footer-section-text-white);
        white-space: nowrap;
    }

.footer-section-branch-address {
        color: var(--footer-section-text-muted);
    }

.footer-section-bottom-bar {
        margin-top: 35px;
        padding-top: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.25);
    }

.footer-section-copyright {
        font-size: 0.95rem;
        color: var(--footer-section-text-white);
        font-weight: 500;
    }

.footer-section-credit-text {
        font-size: 0.9rem;
        color: var(--footer-section-text-muted);
    }

.footer-section-credit-link {
        color: var(--footer-section-text-white);
        text-decoration: none;
        font-weight: 700;
        transition: var(--footer-section-transition);
        margin-inline-start: 3px;
    }

.footer-section-credit-link:hover {
        color: var(--footer-section-hover-color);
        text-decoration: none; /* إزالة الخط تحت كلمة كليك سبيس عند الهافر */
    }

.footer-section-contact-list {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 11px;
    }

.footer-section-contact-item {
        display: flex;
        align-items: center;
    }

.footer-section-contact-link {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--footer-section-text-white);
        text-decoration: none;
        font-size: 0.94rem;
        font-weight: 500;
        transition: var(--footer-section-transition);
    }

.footer-section-contact-icon-box {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.18);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: var(--footer-section-transition);
    }

.footer-section-contact-icon {
        font-size: 0.85rem;
        color: var(--footer-section-hover-color);
        transition: var(--footer-section-transition);
    }

.footer-section-contact-text-ltr {
        direction: ltr;
        display: inline-block;
    }

.footer-section-contact-link:hover {
        color: var(--footer-section-hover-color);
        transform: translateX(var(--rq-hover-shift));
    }

.footer-section-contact-link:hover .footer-section-contact-icon-box {
        background-color: var(--footer-section-hover-color);
        border-color: var(--footer-section-hover-color);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        transform: scale(1.1);
    }

.footer-section-contact-link:hover .footer-section-contact-icon {
        color: var(--footer-section-bg-dark);
    }

.footer-section-toast {
        position: fixed;
        bottom: 30px;
        inset-inline-start: 30px;
        background-color: var(--brand-header-secondary-1);
        color: #ffffff;
        padding: 12px 24px;
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.25);
        font-size: 0.95rem;
        border-inline-start: 4px solid var(--footer-section-accent);
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
        pointer-events: none;
        z-index: 9999;
    }

.footer-section-toast.footer-section-toast-active {
        opacity: 1;
        transform: translateY(0);
    }

@media (max-width: 1024px) {
        .footer-section-grid {
            grid-template-columns: 1fr 1fr;
            gap: 40px;
        }
    }

@media (max-width: 640px) {
        .footer-section-grid {
            grid-template-columns: 1fr;
            gap: 30px;
        }

        .footer-section-logo-img {
            max-width: 220px;
        }

        .footer-section-wave-svg {
            height: 45px;
        }

        .footer-section-main-content {
            padding-top: 60px;
        }
    }
