/* ==========================================================================
   Quantum Microfinance Bank — Site Chrome (chrome.css)
   Top utility bar · navbar polish · dark footer · back-to-top · page hero
   Depends on ds.css for brand tokens (--q-orange, --q-green, etc.)
   Defensive + class-scoped: only adds accents, never resets Bootstrap layout.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Slim top utility bar
   -------------------------------------------------------------------------- */
.qmfb-topbar {
  background: var(--q-ink, #111);
  color: #fff;
  font-family: var(--q-fb, system-ui, sans-serif);
  font-size: .82rem;
  line-height: 1;
}
.qmfb-topbar__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}
.qmfb-topbar__left,
.qmfb-topbar__right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.qmfb-topbar a {
  color: rgba(255,255,255,.88);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s ease;
}
.qmfb-topbar a:hover { color: var(--q-orange, #F47C20); }
.qmfb-topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.qmfb-topbar__item svg { width: 14px; height: 14px; flex: 0 0 auto; }

/* USSD pill */
.qmfb-topbar__ussd {
  background: var(--q-orange, #F47C20);
  color: #fff !important;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: .3px;
}
.qmfb-topbar__ussd:hover { background: var(--q-orange-d, #D9641A); color: #fff !important; }

/* social icons in topbar */
.qmfb-topbar__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.qmfb-topbar__social a {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.12);
  color: #fff;
}
.qmfb-topbar__social a:hover { background: var(--q-orange, #F47C20); color: #fff; }
.qmfb-topbar__social svg { width: 14px; height: 14px; }

@media (max-width: 767px) {
  .qmfb-topbar__inner { justify-content: center; flex-wrap: wrap; gap: 10px 16px; padding-top: 7px; padding-bottom: 7px; }
}
@media (max-width: 480px) {
  .qmfb-topbar__email,
  .qmfb-topbar__social { display: none; }
}

/* --------------------------------------------------------------------------
   2. Navbar polish (defensive accents on existing Bootstrap navbar)
   -------------------------------------------------------------------------- */
.navbar .navbar-nav > li > a,
.navbar .navbar-nav > li > .nav-link {
  font-family: var(--q-fh, "Montserrat", sans-serif);
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--q-ink, #111);
  position: relative;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  transition: color .18s ease;
}

/* animated orange underline */
.navbar .navbar-nav > li > a::after,
.navbar .navbar-nav > li > .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: .55rem;
  width: 0;
  height: 2px;
  background: var(--q-orange, #F47C20);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width .22s ease;
}
.navbar .navbar-nav > li > a:hover,
.navbar .navbar-nav > li > .nav-link:hover,
.navbar .navbar-nav > li.active > a,
.navbar .navbar-nav > li.active > .nav-link,
.navbar .navbar-nav > li > a.active,
.navbar .navbar-nav > li > .nav-link.active {
  color: var(--q-orange, #F47C20);
}
.navbar .navbar-nav > li > a:hover::after,
.navbar .navbar-nav > li > .nav-link:hover::after,
.navbar .navbar-nav > li.active > a::after,
.navbar .navbar-nav > li.active > .nav-link::after,
.navbar .navbar-nav > li > a.active::after,
.navbar .navbar-nav > li > .nav-link.active::after {
  width: calc(100% - 1.6rem);
}

/* logo / brand breathing room */
.navbar .navbar-brand { padding-top: .4rem; padding-bottom: .4rem; }
.navbar .navbar-brand img { max-height: 52px; width: auto; }

/* generic .menu / .nav fallbacks (jango theme variants) */
.qmfb-nav .menu > li > a {
  font-family: var(--q-fh, "Montserrat", sans-serif);
  font-weight: 600;
  color: var(--q-ink, #111);
}
.qmfb-nav .menu > li > a:hover,
.qmfb-nav .menu > li.active > a { color: var(--q-orange, #F47C20); }

/* --------------------------------------------------------------------------
   3. Dark footer
   -------------------------------------------------------------------------- */
.qmfb-footer {
  background: #141414;
  color: #B9BCC2;
  font-family: var(--q-fb, system-ui, sans-serif);
  font-size: .95rem;
  line-height: 1.7;
}
.qmfb-footer a { color: #B9BCC2; text-decoration: none; transition: color .15s ease; }
.qmfb-footer a:hover { color: var(--q-orange, #F47C20); }

.qmfb-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Newsletter row */
.qmfb-footer__news {
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.qmfb-footer__news-copy { max-width: 460px; }
.qmfb-footer__news-title {
  font-family: var(--q-fh, "Montserrat", sans-serif);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 .25rem;
}
.qmfb-footer__news-sub { margin: 0; color: #9A9DA4; font-size: .92rem; }
.qmfb-footer__news-form {
  display: flex;
  gap: 10px;
  flex: 1 1 360px;
  max-width: 480px;
}
.qmfb-footer__news-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 13px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  background: #1E1E1E;
  color: #fff;
  font-size: .95rem;
  font-family: inherit;
}
.qmfb-footer__news-input::placeholder { color: #7E8189; }
.qmfb-footer__news-input:focus {
  outline: none;
  border-color: var(--q-orange, #F47C20);
  box-shadow: 0 0 0 3px rgba(244,124,32,.18);
}
.qmfb-footer__news-btn {
  border: 0;
  cursor: pointer;
  background: var(--q-orange, #F47C20);
  color: #fff;
  font-family: var(--q-fb, system-ui, sans-serif);
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .15s ease, transform .15s ease;
}
.qmfb-footer__news-btn:hover { background: var(--q-orange-d, #D9641A); transform: translateY(-1px); }

/* Columns grid */
.qmfb-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding: 52px 0;
}
.qmfb-footer__col-title {
  font-family: var(--q-fh, "Montserrat", sans-serif);
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .4px;
  margin: 0 0 1.2rem;
  padding-bottom: .55rem;
  position: relative;
}
.qmfb-footer__col-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 38px; height: 3px;
  border-radius: 3px;
  background: var(--q-orange, #F47C20);
}

/* Brand column */
.qmfb-footer__brand-name {
  font-family: var(--q-fh, "Montserrat", sans-serif);
  color: #fff;
  font-size: 1.18rem;
  font-weight: 800;
  margin: 0 0 .1rem;
}
.qmfb-footer__brand-logo { max-height: 46px; width: auto; margin-bottom: 14px; }
.qmfb-footer__tagline { color: var(--q-orange, #F47C20); font-weight: 600; font-size: .92rem; margin: 0 0 .9rem; }
.qmfb-footer__blurb { color: #9A9DA4; font-size: .92rem; margin: 0 0 1.2rem; }

/* footer social row */
.qmfb-footer__social { display: flex; gap: 10px; }
.qmfb-footer__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: background .18s ease, transform .18s ease, color .18s ease;
}
.qmfb-footer__social a:hover {
  background: var(--q-orange, #F47C20);
  color: #fff;
  transform: translateY(-3px);
}
.qmfb-footer__social svg { width: 17px; height: 17px; }

/* Link lists */
.qmfb-footer__links { list-style: none; margin: 0; padding: 0; }
.qmfb-footer__links li { margin: 0 0 .65rem; }
.qmfb-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #B9BCC2;
}
.qmfb-footer__links a::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--q-orange, #F47C20);
  opacity: .55;
  flex: 0 0 auto;
  transition: opacity .15s ease, transform .15s ease;
}
.qmfb-footer__links a:hover::before { opacity: 1; transform: scale(1.25); }

/* Contact column */
.qmfb-footer__contact { list-style: none; margin: 0; padding: 0; }
.qmfb-footer__contact li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 0 0 .85rem;
  color: #B9BCC2;
  font-size: .92rem;
}
.qmfb-footer__contact svg {
  width: 17px; height: 17px;
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--q-orange, #F47C20);
}
.qmfb-footer__ussd-pill {
  display: inline-block;
  background: var(--q-green, #3AA935);
  color: #fff !important;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: .4px;
  font-size: .86rem;
}
.qmfb-footer__ussd-pill:hover { background: var(--q-green-d, #2E8A2A); color: #fff !important; }

/* Bottom bar */
.qmfb-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: #8A8D94;
}
.qmfb-footer__bottom-left span { display: inline-block; }
.qmfb-footer__bottom-left .dot { color: var(--q-orange, #F47C20); margin: 0 .4rem; }
.qmfb-footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.qmfb-footer__legal a { color: #8A8D94; }
.qmfb-footer__legal a:hover { color: var(--q-orange, #F47C20); }

@media (max-width: 991px) {
  .qmfb-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 575px) {
  .qmfb-footer__grid { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .qmfb-footer__news { flex-direction: column; align-items: flex-start; }
  .qmfb-footer__news-form { width: 100%; max-width: none; }
  .qmfb-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   4. Back-to-top button
   -------------------------------------------------------------------------- */
.qmfb-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: var(--q-orange, #F47C20);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(244,124,32,.42);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .25s ease, transform .25s ease, background .15s ease, visibility .25s;
  z-index: 1040;
}
.qmfb-top svg { width: 20px; height: 20px; }
.qmfb-top:hover { background: var(--q-orange-d, #D9641A); transform: translateY(-2px); }
.qmfb-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.qmfb-top.is-visible:hover { transform: translateY(-2px); }

@media (max-width: 575px) {
  .qmfb-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}
