/* ==========================================================================
   jeddah24 v2 — footer ("harbour lights"), back-to-top, mobile bottom bar,
   and the network publish bar (.wa-footer-bar from Insert Headers & Footers).
   ========================================================================== */
.jd-ft {
    position: relative;
    margin-top: 72px;
    padding-top: 54px;
    background: var(--jd-ink);
    color: #bcd3da;
    font-family: var(--jd-font-ui);
    overflow: clip;
}
.jd-ft::before {                        /* lattice harbour lights */
    content: '';
    position: absolute;
    inset: 0;
    background: var(--jd-lattice-gold) center top / 36px 36px;
    opacity: .06;
    -webkit-mask-image: radial-gradient(120% 90% at 0% 0%, #000 0%, transparent 60%);
    mask-image: radial-gradient(120% 90% at 0% 0%, #000 0%, transparent 60%);
    pointer-events: none;
}
.jd-ft__wave {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 12px;
    transform: scaleY(-1);
}
.jd-ft__wave path { fill: var(--jd-ink); }
.jd-ft > .jd-wrap { position: relative; z-index: 1; }

.jd-ft__top {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 32px 56px;
    align-items: start;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.jd-ft__logo { display: inline-block; line-height: 0; }
.jd-ft__logo img { display: block; height: 76px !important; width: auto !important; }
.jd-ft__about {
    max-width: 560px;
    margin: 18px 0 0 !important;
    font: 400 15px/1.95 var(--jd-font-read);
    color: #bcd3da;
}
.jd-ft__geo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 14px 0 0 !important;
    font: 600 12.5px/1 var(--jd-font-ui);
    color: var(--jd-gold);
}
.jd-ft__geo bdi { direction: ltr; unicode-bidi: isolate; letter-spacing: .04em; }
.jd-ft__geo span { color: #8fb0ba; font-weight: 500; }
.jd-ft__label {
    margin: 0 0 14px !important;
    font: 700 13px/1 var(--jd-font-ui);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}
.jd-ft__label::before { content: ''; width: 18px; height: 3px; border-radius: 2px; background: var(--jd-gold); }
.jd-ft__reach {
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--jd-ink-2), var(--jd-ink-3));
    border: 1px solid rgba(255, 255, 255, .08);
}
.jd-ft__mail {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 700 18px/1.3 var(--jd-font-ui);
    color: #fff !important;
    text-decoration: none;
    word-break: break-all;
}
.jd-ft__mail bdi { direction: ltr; unicode-bidi: isolate; }
.jd-ft__mail svg { flex: none; color: var(--jd-gold); }
.jd-ft__mail:hover { color: var(--jd-gold-2) !important; }
.jd-ft__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.jd-ft__wa, .jd-ft__rss {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    font: 700 14px/1 var(--jd-font-ui);
    text-decoration: none;
}
.jd-ft__wa { background: var(--jd-gold); color: var(--jd-ink) !important; }
.jd-ft__wa:hover { background: var(--jd-gold-2); }
.jd-ft__rss { border: 1px solid rgba(255, 255, 255, .18); color: #dbe9ed !important; }
.jd-ft__rss:hover { border-color: var(--jd-gold); color: var(--jd-gold) !important; }
.jd-ft__wa svg, .jd-ft__rss svg { flex: none; }

.jd-ft__grid {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
    gap: 32px 56px;
    padding-block: 34px 38px;
}
.jd-ft__desks, .jd-ft__pages {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}
.jd-ft__desks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px 18px;
}
.jd-ft__desks li, .jd-ft__pages li { margin: 0; }
.jd-ft__desks a, .jd-ft__pages a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    color: #cfe2e7 !important;
    font: 500 14.5px/1.3 var(--jd-font-ui);
    text-decoration: none;
    transition: color .15s, transform .15s;
}
.jd-ft__desks a i {
    flex: none;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .06);
}
.jd-ft__pages a::before { content: ''; flex: none; width: 5px; height: 5px; transform: rotate(45deg); background: var(--jd-gold); }
.jd-ft__desks a:hover, .jd-ft__pages a:hover { color: #fff !important; transform: translateX(-3px); }

.jd-ft__legal {
    position: relative;
    z-index: 1;
    background: #061922;
    font: 500 13px/1.5 var(--jd-font-ui);
    color: #8fb0ba;
}
.jd-ft__legal-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 56px;
}
.jd-ft__tide {
    width: 120px;
    height: 8px;
    background: var(--jd-wave-gold) repeat-x center / 24px 6px;
    opacity: .7;
}

/* ---- back to top ---------------------------------------------------------------- */
.jd-v2 .jd-top {
    position: fixed;
    left: 20px;
    bottom: 24px;
    z-index: 9980;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0 !important;
    border: 2px solid var(--jd-gold);
    border-radius: 14px;
    background: var(--jd-ink) !important;
    color: var(--jd-gold) !important;
    box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .55) !important;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s, transform .25s, visibility 0s linear .25s;
}
.jd-v2 .jd-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.jd-v2 .jd-top:hover { background: var(--jd-gold) !important; color: var(--jd-ink) !important; }
.jd-top svg { flex: none; }

/* ---- mobile bottom bar ---------------------------------------------------------- */
.jd-bar { display: none; }
@media (max-width: 767.98px) {
    .jd-bar {
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 9970;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        height: 62px;
        padding-bottom: env(safe-area-inset-bottom);
        background: rgba(10, 37, 51, .97);
        border-top: 2px solid var(--jd-gold);
        box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .6);
    }
    .jd-v2 .jd-bar__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 0;
        padding: 0 !important;
        border: 0;
        border-radius: 0;
        background: none !important;
        color: #a9c3cb !important;
        box-shadow: none !important;
        font: 600 11px/1 var(--jd-font-ui);
        text-decoration: none;
        cursor: pointer;
    }
    .jd-bar__item svg { flex: none; }
    .jd-v2 .jd-bar__item.is-current, .jd-v2 .jd-bar__item:hover { color: var(--jd-gold) !important; }
    body.jd-v2 { padding-bottom: 62px; }
    .jd-v2 .jd-top { bottom: 78px; left: 14px; width: 42px; height: 42px; }
    /* lift the network WhatsApp FAB above the bar */
    .jd-v2 .adj-wa-float { bottom: 76px !important; }
}

/* ---- network publish bar (ihaf_insert_footer) ------------------------------------ */
.jd-v2 .wa-footer-bar {
    background: #061922 !important;
    border-top: 1px solid rgba(225, 174, 38, .35) !important;
    font-family: var(--jd-font-ui) !important;
}
.jd-v2 .wa-footer-bar a,
.jd-v2 .wa-footer-bar .wa-footer-btn,
.jd-v2 .wa-footer-bar button {
    background: var(--jd-gold) !important;
    color: var(--jd-ink) !important;
    border-color: var(--jd-gold) !important;
}

@media (max-width: 1023.98px) {
    .jd-ft__top, .jd-ft__grid { grid-template-columns: minmax(0, 1fr); }
    .jd-ft__desks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .jd-ft { margin-top: 56px; padding-top: 40px; }
    .jd-ft__desks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jd-ft__legal-in { flex-direction: column; justify-content: center; padding-block: 14px; text-align: center; }
    .jd-ft__mail { font-size: 16px; }
}
