/* =============================================
   FOOTER
   ============================================= */

/* Prevent white body flash below footer on mobile */
html { background: #060C17; }

.ft {
    background-color: #0B1120;
    color: #94A3B8;
    font-family: inherit;
}

/* ── Top section ── */
.ft__top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    padding-top: 64px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ── Brand column ── */
.ft__logo-link { display: inline-block; }
.ft__logo {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.ft__tagline {
    margin: 14px 0 0;
    font-size: 13px;
    color: #475569;
    letter-spacing: 0.01em;
}

/* contacts */
.ft__contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
}

.ft__contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #64748B;
    font-size: 13px;
    transition: color 0.2s;
}

.ft__contact:hover { color: #CBD5E1; }

.ft__contact-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    color: #475569;
}

.ft__contact:hover .ft__contact-icon {
    background: rgba(19,97,140,0.2);
    border-color: rgba(19,97,140,0.35);
    color: #7DD3FA;
}

/* socials */
.ft__socials {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}

.ft__social {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
}

.ft__social:hover {
    background: rgba(19,97,140,0.2);
    border-color: rgba(19,97,140,0.35);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ── Nav columns ── */
.ft__nav-heading {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #F1F5F9;
    margin: 0 0 20px;
}

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

.ft__nav-list a {
    font-size: 13.5px;
    color: #64748B;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ft__nav-list a::before {
    content: '';
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #13618C, #1a7a3d);
    transition: width 0.2s;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.ft__nav-list a:hover { color: #CBD5E1; }
.ft__nav-list a:hover::before { width: 10px; }

/* ── Bottom bar ── */
.ft__bottom {
    background: #060C17;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.ft__bottom-inner {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 24px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.ft__left-section {
    display: flex;
    align-items: center;
}

.ft__middle-section {
    display: flex;
    justify-content: center;
}

.ft__right-section {
    display: flex;
    align-items: center;
}

.ft__copy {
    font-size: 12.5px;
    color: #334155;
    margin: 0;
    white-space: nowrap;
}

/* App Store Section */
.ft__app-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ft__app-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 4px;
    white-space: nowrap;
}

.ft__app-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #E2E8F0;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ft__app-badge:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.15);
    color: #F1F5F9;
    transform: translateY(-1px);
}

.ft__app-badge svg {
    width: 16px;
    height: 16px;
    color: #94A3B8;
    flex-shrink: 0;
}

/* payment badges */
.ft__payments {
    display: flex;
    gap: 6px;
    align-items: center;
}

.ft__pay-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 5px;
    width: 48px;
    height: 30px;
    padding: 0;
}

.ft__pay-badge img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 7px 9px;
    filter: brightness(1.15) contrast(0.95);
}

/* tulutech */
.ft__tulutech {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #334155;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.ft__tulutech:hover { color: #64748B; }

.ft__tulutech img {
    height: 18px;
    width: auto;
    vertical-align: middle;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
    .ft__top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding-top: 48px;
        padding-bottom: 40px;
    }

    .ft__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .ft {
        padding-bottom: 0;
    }

    /* Brand full-width, navs side by side below */
    .ft__top {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
        padding-top: 36px;
        padding-bottom: 32px;
    }

    .ft__brand {
        grid-column: 1 / -1;
        padding-bottom: 28px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    /* Tighten brand internals */
    .ft__contacts { margin-top: 20px; }
    .ft__socials  { margin-top: 18px; }

    /* Bottom bar: centred stack, padding absorbs floating nav height */
    .ft__bottom-inner {
        grid-template-columns: 1fr;
        align-items: center;
        text-align: center;
        gap: 14px;
        padding-top: 20px;
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    /* Reorganize for mobile */
    .ft__left-section { grid-column: 1 / -1; order: 1; }
    .ft__middle-section { grid-column: 1 / -1; order: -1; }
    .ft__right-section { grid-column: 1 / -1; order: 2; }

    .ft__app-section { justify-content: center; }
    .ft__copy { font-size: 11.5px; }
}

@media (max-width: 480px) {
    .ft__top {
        grid-template-columns: 1fr 1fr;
        gap: 28px 16px;
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .ft__nav-heading { font-size: 11px; margin-bottom: 14px; }
    .ft__nav-list    { gap: 11px; }
    .ft__nav-list a  { font-size: 13px; }

    .ft__pay-badge {
        width: 42px;
        height: 26px;
    }

    .ft__app-section {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .ft__app-label {
        flex-basis: 100%;
        margin-right: 0;
        margin-bottom: 4px;
    }

    .ft__app-badge {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* ── Language Switcher Dropdown ────────────────────────────── */
.ft__lang-dropdown-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}

.ft__lang-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 10px 38px 10px 14px;
    color: #e2e8f0;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
}

.ft__lang-select:hover,
.ft__lang-select:focus {
    border-color: #288CCB;
    background: rgba(40,140,203,0.1);
}

.ft__lang-select option {
    background: #0B1120;
    color: #e2e8f0;
}

.ft__lang-chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #94A3B8;
    display: flex;
    align-items: center;
}

/* ── RTL Support (Arabic) ──────────────────────────────────── */
[dir="rtl"] .ft__top        { direction: rtl; }
[dir="rtl"] .ft__lang-select { padding: 10px 14px 10px 38px; text-align: right; }
[dir="rtl"] .ft__lang-chevron { right: auto; left: 12px; }
[dir="rtl"] .ft__nav-list  { text-align: right; }
[dir="rtl"] .ft__contacts  { text-align: right; }
[dir="rtl"] .ft__bottom-inner { direction: rtl; }
[dir="rtl"] .ft__copy      { text-align: right; }
[dir="rtl"] .hdr-top__inner { direction: rtl; }
[dir="rtl"] .hdr-main__inner { direction: rtl; }
[dir="rtl"] .hdr-main__actions { margin-left: 0; margin-right: auto; }
[dir="rtl"] .hdr-main__logo { margin-right: 0; margin-left: auto; }
