/*
 * Madibana SA site header + footer — matches www.madibana.com (Elementor header 18 / footer 137).
 * Scoped under .mdb-hdr / .mdb-ftr so the legacy Bootstrap 3 theme of the client zone is untouched.
 * Used by includes/header.php and includes/footer.php.
 */
@font-face {
    font-family: "mdb-icons";
    src: url("mdb-icons.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

.mdb-hdr, .mdb-ftr {
    --mdb-navy: #043042;
    --mdb-navy-deep: #002231;
    --mdb-red: #C5031D;
    --mdb-green: #099B4A;
    --mdb-gold: #C49C25;
    --mdb-ink: #182029;
    --mdb-soft: #F5F0F2;
    --mdb-muted: #CECECE;
    font-family: "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    text-align: left;
}
.mdb-hdr *, .mdb-hdr *::before, .mdb-hdr *::after,
.mdb-ftr *, .mdb-ftr *::before, .mdb-ftr *::after { box-sizing: border-box; }
/* The client zone theme sets Poppins directly on p / span / li, which beats inheritance. */
.mdb-hdr *, .mdb-ftr * { font-family: "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: normal; }
.mdb-hdr ul, .mdb-ftr ul { list-style: none; margin: 0; padding: 0; }
.mdb-hdr li, .mdb-ftr li { margin: 0; padding: 0; float: none; }
.mdb-hdr a, .mdb-ftr a { text-decoration: none; }
.mdb-hdr a:hover, .mdb-hdr a:focus, .mdb-ftr a:hover, .mdb-ftr a:focus { text-decoration: none; }
.mdb-hdr img, .mdb-ftr img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
.mdb-ico::before {
    font-family: "mdb-icons" !important;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    speak: never;
    -webkit-font-smoothing: antialiased;
}
.mdb-ico-phone::before { content: "\e830"; }
.mdb-ico-home::before { content: "\ea29"; }
.mdb-ico-call::before { content: "\ea53"; }
.mdb-ico-mail::before { content: "\ea14"; }
.mdb-ico-down::before { content: "\e994"; }

/* ───────────── top bar ───────────── */
.mdb-top {
    background: var(--mdb-navy);
    padding: 10px;
    display: flex;
    align-items: center;
}
.mdb-top__contacts { width: 17%; }
.mdb-top__btns { width: 23%; padding: 0 13px 0 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.mdb-top__gold { width: 23%; position: relative; margin-bottom: 20px; }
.mdb-top__clocks { width: 37%; display: flex; justify-content: flex-end; }

.mdb-contacts li a {
    display: flex;
    align-items: center;
    color: #FDFBFC;
    font-size: 12px;
    font-weight: 400;
    line-height: 21px;
    transition: color .3s;
}
.mdb-contacts li a:hover, .mdb-contacts li a:focus { color: var(--mdb-gold); }
.mdb-contacts .mdb-ci { width: 14px; display: inline-flex; justify-content: center; flex: 0 0 14px; font-size: 14px; }
.mdb-contacts .mdb-ci svg { width: 14px; height: 14px; fill: currentColor; }
.mdb-contacts .mdb-ct { padding-left: 5px; }

.mdb-btn {
    display: inline-block;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 14px;
    color: #fff !important;
    border-radius: 10px;
    text-align: center;
    transition: background-color .3s, color .3s, border-color .3s;
    white-space: nowrap;
}
.mdb-btn--track { background: var(--mdb-red); padding: 14px 46px; }
.mdb-btn--portal { background: var(--mdb-green); padding: 14px 54px; }
.mdb-btn--track:hover, .mdb-btn--portal:hover { filter: brightness(1.08); }

.mdb-gold { display: block; }
.mdb-gold img { width: 100%; display: block; }
.mdb-hand {
    position: absolute;
    top: 52%;
    width: 55px;
    z-index: 9;
    pointer-events: none;
}
.mdb-hand--l { left: -55px; animation: mdb-left-point 1s ease-in-out infinite; }
.mdb-hand--r { right: -55px; animation: mdb-right-point 1s ease-in-out infinite; }
@keyframes mdb-left-point { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(10px); } }
@keyframes mdb-right-point { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-10px); } }

.mdb-clocks { display: inline-flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.mdb-clock { text-align: center; }
/* www renders the face inline, which leaves ~6px under it before the flag's own 6px */
.mdb-clock svg { display: block; margin: 0 auto; }
.mdb-clock img { height: 40px; width: auto; display: block; margin: 12px auto 0; }
.mdb-clock span {
    display: block;
    font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    line-height: 19.5px;
    color: #fff;
    margin-top: 2px;
}

/* ───────────── nav bar ───────────── */
.mdb-nav {
    background: #fff;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1000;
}
.mdb-nav__logo { width: 19%; }
.mdb-nav__logo img { width: 187px; }
.mdb-nav__menu { width: 64%; padding-right: 35px; display: flex; justify-content: flex-end; }
.mdb-nav__actions { width: 16.554%; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }

.mdb-menu { display: flex; align-items: center; height: 53px; }
.mdb-menu > li { position: relative; height: 53px; display: flex; align-items: center; }
.mdb-menu > li > a {
    display: flex;
    align-items: center;
    height: 53px;
    padding: 0 11px;
    border-radius: 8px;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 22.5px;
    color: var(--mdb-ink);
    background: transparent;
    white-space: nowrap;
}
.mdb-menu > li:hover > a, .mdb-menu > li > a:focus, .mdb-menu > li.is-current > a { background: var(--mdb-soft); color: var(--mdb-navy); }
.mdb-menu > li.mdb-menu__feature > a,
.mdb-menu > li.mdb-menu__feature:hover > a {
    background: var(--mdb-navy);
    color: #fff;
    padding: 5px 16px;
    line-height: 1;
    height: 43px;
    margin: 6px 0 0 3px;
}
.mdb-menu .mdb-caret { font-size: 11px; color: #101010; margin: 3px 4px 0 7px; display: inline-flex; }
.mdb-menu .mdb-lang-flag { width: 16px; height: 11px; }
.mdb-menu .mdb-lang-name { margin-left: .3em; }

.mdb-sub {
    position: absolute;
    top: calc(100% - 10px);
    left: 0;
    width: 220px;
    background: #fff;
    border: 1px solid #DADADA;
    border-radius: 6px;
    box-shadow: 0 10px 30px 0 rgba(45, 45, 45, .2);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 1001;
}
.mdb-menu > li:hover > .mdb-sub, .mdb-menu > li.is-open > .mdb-sub, .mdb-menu > li:focus-within > .mdb-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mdb-sub li a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 3px 18px 0;
    font-family: "Inter", -apple-system, sans-serif;
    font-size: 14px;
    line-height: 2;
    color: #000;
}
.mdb-sub li:first-child a { border-radius: 6px 6px 0 0; }
.mdb-sub li:last-child a { border-radius: 0 0 6px 6px; padding-bottom: 3px; }
.mdb-sub li a:hover, .mdb-sub li.is-current a { background: var(--mdb-soft); color: var(--mdb-ink); }
.mdb-sub--lang li a img { width: 16px; height: 11px; margin-right: .3em; }

.mdb-act {
    display: inline-block;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
    color: #fff !important;
    border-radius: 10px;
    border: 1px solid;
    white-space: nowrap;
    transition: background-color .3s, border-color .3s;
}
.mdb-act--login { background: var(--mdb-red); border-color: var(--mdb-red); padding: 12px 17px; }
.mdb-act--login:hover, .mdb-act--login:focus { background: var(--mdb-navy-deep); border-color: var(--mdb-navy-deep); }
.mdb-act--register { background: var(--mdb-navy); border-color: var(--mdb-navy-deep); padding: 12px 19px; }
.mdb-act--register:hover, .mdb-act--register:focus { background: var(--mdb-navy-deep); }
.mdb-act--balance { background: #fff; color: var(--mdb-navy) !important; border-color: #DADADA; padding: 12px 14px; font-weight: 600; }

.mdb-burger {
    display: none;
    background: #002F43;
    border: 0;
    border-radius: 3px;
    padding: 12px;
    width: 45px;
    cursor: pointer;
}
.mdb-burger span { display: block; height: 1px; background: #fff; margin: 4px 0; }
.mdb-drawer-close { display: none; }
.mdb-drawer-head { display: none; }
.mdb-drawer-backdrop { display: none; }

/* tablet */
@media (max-width: 1024px) {
    .mdb-top__contacts { display: none; }
    .mdb-top__clocks { display: none; }
    .mdb-top__btns { width: 44%; }
    .mdb-top__gold { width: 56%; max-width: 420px; margin: 0 auto 0 0; }
    .mdb-btn { font-size: 11px; }
    .mdb-nav { padding: 10px; }
    .mdb-nav__logo { width: 29%; }
    .mdb-nav__menu { width: 51%; padding-right: 0; justify-content: flex-end; }
    .mdb-nav__actions { width: 48%; }
    .mdb-burger { display: block; }
    .mdb-drawer {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: 350px;
        background: #fff;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform .3s;
        z-index: 100000;
        box-shadow: 0 0 30px rgba(0, 0, 0, .2);
    }
    .mdb-hdr.is-drawer-open .mdb-drawer { transform: translateX(0); }
    .mdb-hdr.is-drawer-open .mdb-drawer-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .45);
        z-index: 99999;
    }
    .mdb-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; border-bottom: 1px solid #eee; }
    .mdb-drawer-head img { max-width: 120px; max-height: 50px; }
    .mdb-drawer-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #002F43;
        color: #fff;
        border: 0;
        border-radius: 3px;
        width: 36px;
        height: 36px;
        font-size: 16px;
        cursor: pointer;
    }
    .mdb-menu { display: block; height: auto; }
    .mdb-menu > li { display: block; height: auto; }
    .mdb-menu > li > a { height: auto; padding: 10px 15px; color: #000; border-radius: 0; justify-content: space-between; }
    .mdb-menu > li.mdb-menu__feature > a,
    .mdb-menu > li.mdb-menu__feature:hover > a { margin: 6px 15px; height: auto; padding: 12px 16px; border-radius: 8px; line-height: 22.5px; }
    .mdb-menu > li.mdb-menu__lang > a { justify-content: flex-start; }
    .mdb-menu .mdb-caret { padding: 1px 0 0 10px; margin: 2px 0 0 0; font-size: 12px; }
    .mdb-sub {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        min-width: 0;
        width: auto;
    }
    .mdb-menu > li.is-open > .mdb-sub { display: block; }
    .mdb-menu > li:hover > .mdb-sub { display: none; }
    .mdb-menu > li.is-open:hover > .mdb-sub { display: block; }
    .mdb-sub li a { padding: 15px 15px 15px 30px !important; border-radius: 0 !important; line-height: 1.3; }
}

/* phone */
@media (max-width: 767px) {
    .mdb-top { padding: 10px; }
    .mdb-top__btns { width: 43%; padding: 0 7px 0 0; align-items: center; }
    .mdb-top__gold { width: 50%; margin: 0 0 0 auto; padding: 0 12px; }
    .mdb-btn--track, .mdb-btn--portal { font-size: 10px; padding: 10px 20px; }
    .mdb-btn--portal { padding: 9px 13px 8px; }
    .mdb-hand { width: 23px; top: 50%; }
    .mdb-hand--l { left: 1px; }
    .mdb-hand--r { right: 1px; }
    .mdb-nav__logo { width: 35%; }
    .mdb-nav__menu { width: 21%; justify-content: center; }
    .mdb-nav__actions { width: 44%; gap: 6px; }
    .mdb-act { font-size: 12px; }
    .mdb-act--login { padding: 5px 14px 5px 12px; }
    .mdb-act--register { padding: 5px 12px; }
    .mdb-act--balance { padding: 5px 8px; font-size: 11px; }
}

/* ───────────── footer ───────────── */
.mdb-ftr { position: relative; }
.mdb-ftr__main {
    position: relative;
    background-color: #121521;
    background-image: url("footer-bg.jpg");
    background-size: cover;
    background-position: 50% 50%;
    border-top: 2px solid var(--mdb-red);
    padding: 45px 0 30px;
}
.mdb-ftr__main::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--mdb-navy-deep);
    opacity: .88;
}
.mdb-ftr__wrap { position: relative; max-width: 1252px; margin: 0 auto; padding: 0 10px; }
.mdb-ftr__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mdb-ftr__logo img { width: 209px; }
.mdb-ftr__about p {
    margin: 28px 0 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    color: var(--mdb-muted);
}
.mdb-ftr h2, .mdb-ftr .mdb-ftr__h {
    margin: 0 0 14px;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 15px;
    text-transform: uppercase;
    color: var(--mdb-gold);
}
.mdb-ftr__more, .mdb-ftr__all {
    display: inline-block;
    font-size: 15px;
    line-height: 15px;
    color: var(--mdb-gold) !important;
}
.mdb-ftr__more { font-weight: 600; }
.mdb-ftr__all { font-weight: 700; margin-top: 12px; }
.mdb-ftr__more:hover, .mdb-ftr__all:hover { color: #fff !important; }
.mdb-ftr__links li { padding-bottom: 5px; }
.mdb-ftr__links a, .mdb-ftr__info a {
    display: flex;
    align-items: flex-start;
    font-size: 15px;
    font-weight: 500;
    line-height: 22.5px;
    color: var(--mdb-muted);
    transition: color .3s;
}
.mdb-ftr__info a { font-weight: 400; }
.mdb-ftr__links a:hover, .mdb-ftr__info a:hover { color: #fff; }
.mdb-ftr__info li { padding-bottom: 5px; }
.mdb-ftr__info .mdb-ico { color: var(--mdb-red); font-size: 14px; width: 14px; flex: 0 0 14px; margin: 4px 6px 0 0; display: inline-flex; justify-content: center; }
.mdb-ftr__bar {
    background: var(--mdb-navy-deep);
    border-top: 1px solid rgba(206, 206, 206, .17);
}
.mdb-ftr__bar .mdb-ftr__wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 73px; padding-top: 12px; padding-bottom: 12px; }
.mdb-ftr__copy { margin: 0; font-size: 13px; line-height: 19.5px; color: var(--mdb-muted); }
.mdb-ftr__legal { display: flex; flex-wrap: wrap; justify-content: flex-end; max-width: 610px; }
.mdb-ftr__legal li a { display: block; padding: 0 0 0 10px; font-size: 13px; line-height: 19.5px; color: var(--mdb-muted); }
.mdb-ftr__legal li a:hover { color: #fff; }
.mdb-wa {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 50;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}
/* the client zone's own back-to-top button sits in the same corner */
.to-top { margin-bottom: 76px !important; right: 20px !important; }

@media (max-width: 1024px) and (min-width: 768px) {
    .mdb-ftr__cols { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
}
@media (max-width: 767px) {
    .mdb-ftr__main { padding: 30px 0 20px; }
    .mdb-ftr__wrap { padding: 0 15px; }
    .mdb-ftr__cols { grid-template-columns: 56% 1fr; row-gap: 28px; column-gap: 0; }
    .mdb-ftr__about, .mdb-ftr__office { grid-column: 1 / -1; }
    .mdb-ftr__links a, .mdb-ftr__info a { font-size: 13px; }
    .mdb-ftr__bar .mdb-ftr__wrap { flex-direction: column; text-align: center; }
    .mdb-ftr__copy { font-size: 11px; }
    .mdb-ftr__legal { justify-content: center; }
    .mdb-ftr__legal li a { font-size: 11px; padding: 0 5px; }
}
