/* =====================================================
   BD THEME FOOTER
   ===================================================== */

.bd-footer {
    background: #0a0f1c;
    color: #94a3b8;
    margin-top: 0;
}

/* ── Main section ─────────────────────────────────── */
.bd-footer-main { padding: 64px 0 48px; }

.bd-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
}

/* ── Col titles ───────────────────────────────────── */
.bd-footer-col-title {
    font-size: .92rem; font-weight: 800; color: #f1f5f9;
    text-transform: uppercase; letter-spacing: .08em;
    margin: 0 0 20px; padding-bottom: 12px;
    border-bottom: 2px solid rgba(99,102,241,.3);
    position: relative;
}
.bd-footer-col-title::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 36px; height: 2px;
    background: linear-gradient(90deg, #6366f1, #2563eb);
    border-radius: 2px;
}

/* ── Brand column ─────────────────────────────────── */
.bd-footer-brand { display: flex; flex-direction: column; gap: 16px; }

.bd-footer-logo img { height: 48px; width: auto; filter: brightness(0) invert(1); }
.bd-footer-site-name {
    font-size: 1.5rem; font-weight: 900; color: #fff;
    text-decoration: none; letter-spacing: -.02em;
}

.bd-footer-tagline { color: #64748b; font-size: .87rem; line-height: 1.7; margin: 0; max-width: 280px; }

/* Social icons */
.bd-footer-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.bd-fsoc {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; text-decoration: none; color: #fff;
    transition: transform .2s, filter .2s;
    border: 1px solid rgba(255,255,255,.1);
}
.bd-fsoc:hover { transform: translateY(-3px); filter: brightness(1.15); color: #fff; }
.bd-fsoc-fb { background: #1877f2; }
.bd-fsoc-tw { background: #1da1f2; }
.bd-fsoc-yt { background: #ff0000; }
.bd-fsoc-ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.bd-fsoc-li { background: #0a66c2; }
.bd-fsoc-wa { background: #25d366; }

.bd-footer-wa-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 50px;
    background: #25d366; color: #fff; font-weight: 700;
    font-size: .83rem; text-decoration: none;
    transition: transform .2s, box-shadow .2s; width: fit-content;
    box-shadow: 0 4px 16px rgba(37,211,102,.3);
}
.bd-footer-wa-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.4); color: #fff; }

/* ── Links list ───────────────────────────────────── */
.bd-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bd-footer-links a {
    color: #64748b; text-decoration: none; font-size: .87rem;
    display: flex; align-items: center; gap: 8px;
    transition: color .2s, gap .2s;
}
.bd-footer-links a:hover { color: #a5b4fc; gap: 12px; }
.bd-footer-links i { font-size: .65rem; color: #4f46e5; transition: color .2s; }
.bd-footer-links a:hover i { color: #818cf8; }

/* ── Contact items ────────────────────────────────── */
.bd-footer-contact-items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.bd-fci { display: flex; align-items: flex-start; gap: 12px; }
.bd-fci-icon {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    background: rgba(99,102,241,.15); color: #818cf8;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.bd-fci span, .bd-fci a {
    color: #64748b; font-size: .85rem; line-height: 1.5;
    text-decoration: none; padding-top: 8px;
}
.bd-fci a:hover { color: #a5b4fc; }

/* Trust badges */
.bd-footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.bd-fb-badge {
    display: flex; align-items: center; gap: 5px;
    padding: 4px 12px; border-radius: 999px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    color: #94a3b8; font-size: .72rem; font-weight: 700;
}
.bd-fb-badge i { color: #fbbf24; }

/* ── Bottom bar ───────────────────────────────────── */
.bd-footer-bottom {
    background: rgba(0,0,0,.3);
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 18px 0;
}
.bd-footer-bottom-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
}
.bd-footer-bottom p { margin: 0; font-size: .82rem; color: #475569; }
.bd-footer-pay-icons {
    display: flex; align-items: center; gap: 14px;
    font-size: .82rem; color: #475569;
}
.bd-footer-pay-icons span { display: flex; align-items: center; gap: 4px; }
.bd-footer-pay-icons .fab { font-size: 1.3rem; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1100px) {
    .bd-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .bd-footer-brand { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
    .bd-footer-tagline { max-width: 400px; }
}
@media (max-width: 640px) {
    .bd-footer-grid { grid-template-columns: 1fr; }
    .bd-footer-brand { flex-direction: column; }
    .bd-footer-bottom-inner { flex-direction: column; align-items: center; text-align: center; }
    .bd-footer-pay-icons { justify-content: center; flex-wrap: wrap; }
}

/* ── Smooth transition for mode switch ──────────────── */
.bd-footer,
.bd-footer * { transition: background-color .3s ease, color .3s ease, border-color .3s ease; }

/* ── Light Mode Footer ───────────────────────────────
   Footer stays dark in both modes (common design pattern).
   But we lighten it slightly for better contrast.
   ─────────────────────────────────────────────────── */

/* ── Dark Mode Footer ─────────────────────────────── */
body.dark-mode .bd-footer {
    background: #060d1f;
    color: #94a3b8;
}
body.dark-mode .bd-footer-main {
    border-top: 1px solid rgba(255,255,255,.04);
}
body.dark-mode .bd-footer-col-title { color: #f1f5f9; }
body.dark-mode .bd-footer-site-name { color: #f8fafc; }
body.dark-mode .bd-footer-tagline { color: #475569; }
body.dark-mode .bd-footer-links a { color: #475569; }
body.dark-mode .bd-footer-links a:hover { color: #818cf8; }
body.dark-mode .bd-fci span,
body.dark-mode .bd-fci a { color: #475569; }
body.dark-mode .bd-fci a:hover { color: #818cf8; }
body.dark-mode .bd-footer-bottom { background: rgba(0,0,0,.4); border-top-color: rgba(255,255,255,.04); }
body.dark-mode .bd-footer-bottom p { color: #334155; }
body.dark-mode .bd-footer-pay-icons { color: #334155; }
body.dark-mode .bd-fb-badge { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.06); color: #64748b; }
body.dark-mode .bd-footer-logo img { filter: brightness(0) invert(.7); }
