/* ============================================================
   BodhDisha Footer V3.3
   Information-first. WCAG AA contrast. Brand-tinted hovers.
   ============================================================ */

.bd-footer {
  position: relative;
  margin-top: 56px;
  padding: 0;
  color: #cbd5e1;
  background: #101923;
  border-top: 1px solid #dfe4ea;
  overflow: hidden;
}

/* Brand signal strip */
.bd-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg,
              var(--bd-primary, #1d4f91) 0%,
              #3b6fd4 50%,
              var(--bd-primary, #1d4f91) 100%);
}

.bd-footer > .bd-container { position: relative; z-index: 1; }

.bd-footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.55fr) repeat(3, minmax(160px, 1fr));
  gap: 40px;
  padding: 44px 0 38px;
}

.bd-footer-brand { min-width: 0; }
.bd-footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.bd-footer-logo-img { width: 34px; height: 34px; object-fit: contain; }
.bd-footer-logo-text {
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.4px;
}
.bd-footer-logo-beta {
  padding: 3px 8px;
  border: 1px solid #344354;
  border-radius: 999px;
  color: #aebaca;
  background: #182330;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.bd-footer-tagline {
  max-width: 330px;
  margin: 0 0 18px;
  color: #a3b1c0;
  font-size: 13px;
  line-height: 1.7;
}
.bd-footer-tagline-find,
.bd-footer-tagline-understand,
.bd-footer-tagline-act { color: #d8e1eb; font-weight: 750; }

.bd-footer-whatsapp,
.bd-push-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  transition: transform .16s ease, border-color .16s ease,
              background .16s ease, color .16s ease,
              box-shadow .16s ease;
}
.bd-footer-whatsapp {
  padding: 0 14px;
  color: #fff;
  background: #18794e;
  border: 1px solid #18794e;
  box-shadow: 0 1px 2px rgba(24,121,78,.3);
}
.bd-footer-whatsapp:hover {
  color: #fff;
  transform: translateY(-2px);
  background: #146641;
  box-shadow: 0 4px 14px rgba(24,121,78,.4);
}
.bd-footer-whatsapp i { font-size: 16px; }

.bd-footer-push-box { margin-top: 9px; }
.bd-push-btn {
  padding: 0 14px;
  border: 1px solid #38506a;
  background: #172432;
  color: #c9d8e8;
  cursor: pointer;
  font-family: inherit;
}
.bd-push-btn:hover {
  transform: translateY(-1px);
  border-color: #55708d;
  background: #1b2b3b;
  box-shadow: 0 3px 10px rgba(0,0,0,.2);
}
.bd-push-btn.enabled {
  color: #9ed4b9;
  border-color: #356a52;
  background: #172a22;
  box-shadow: 0 0 0 1px rgba(158,212,185,.15) inset;
}
.bd-push-status {
  min-height: 16px;
  margin-top: 6px;
  color: #8394a6;
  font-size: 10.5px;
}

.bd-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 17px;
}
.bd-social {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #344354;
  border-radius: 7px;
  color: #aebaca;
  background: #141f2b;
  text-decoration: none;
  transition: transform .16s ease, color .16s ease,
              background .16s ease, border-color .16s ease,
              box-shadow .16s ease;
}
.bd-social:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.bd-social--twitter:hover   { background: #1d9bf0; border-color: #1d9bf0; }
.bd-social--facebook:hover  { background: #1877f2; border-color: #1877f2; }
.bd-social--youtube:hover   { background: #ff0000; border-color: #ff0000; }
.bd-social--linkedin:hover  { background: #0a66c2; border-color: #0a66c2; }
.bd-social--instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: #dc2743;
}
.bd-footer-version {
  margin: 12px 0 0;
  color: #7a8898;
  font-size: 10.5px;
}

.bd-footer-col { min-width: 0; }
.bd-footer-col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 14px;
  padding-bottom: 10px;
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .02em;
  position: relative;
}
.bd-footer-col-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #3b6fd4 0%, transparent 100%);
  opacity: .6;
}
.bd-footer-col-head > i { color: #8fa2b8; font-size: 11px; }

.bd-footer-list { list-style: none; padding: 0; margin: 0; }
.bd-footer-list li { margin: 0; }
.bd-footer-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 3px 0;
  color: #a8b6c5;
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
  position: relative;
  transition: color .16s ease, transform .16s ease;
}
.bd-footer-list a:hover { color: #ffffff; transform: translateX(2px); }
.bd-footer-list a i {
  width: 15px;
  text-align: center;
  flex: 0 0 15px;
  font-size: 10px;
  color: #77899d;
  opacity: .9;
  transition: color .16s ease, transform .16s ease;
}
.bd-footer-list a:hover i {
  color: #cbd5e1;
  transform: scale(1.08);
}

/* Converged muted icon system */
.bd-footer-icon--primary,
.bd-footer-icon--danger,
.bd-footer-icon--amber,
.bd-footer-icon--warn,
.bd-footer-icon--success,
.bd-footer-icon--teal,
.bd-footer-icon--violet,
.bd-footer-icon--info { color: #8293a7; }

.bd-footer-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 15px 0;
  border-top: 1px solid #263341;
  border-bottom: 1px solid #263341;
}
.bd-footer-trust-item {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 3px 16px;
  color: #93a2b2;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  position: relative;
  transition: color .16s ease;
}
.bd-footer-trust-item:hover { color: #cbd5e1; }
.bd-footer-trust-item:hover i { color: #cbd5e1 !important; }
.bd-footer-trust-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #465463;
  transform: translateY(-50%);
}
.bd-footer-trust-item a { color: inherit; text-decoration: none; }
.bd-footer-trust-item a:hover { color: #c7d2df; }
.bd-footer-trust-item i {
  color: #718397 !important;
  font-size: 9px;
  transition: color .16s ease;
}

.bd-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0 20px;
}
.bd-footer-copy {
  margin: 0;
  color: #8394a6;
  font-size: 10.5px;
  line-height: 1.6;
}
.bd-footer-sep { margin: 0 5px; color: #344150; }
.bd-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.bd-footer-legal a {
  color: #96a5b6;
  font-size: 10.5px;
  text-decoration: none;
  position: relative;
  transition: color .15s ease;
}
.bd-footer-legal a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width .18s ease;
}
.bd-footer-legal a:hover { color: #fff; }
.bd-footer-legal a:hover::after { width: 100%; }
.bd-footer-legal-sep { color: #354352; font-size: 9px; }

/* --- Floating actions --- */
.bd-back-to-top,
.bd-floating-chat {
  position: fixed;
  z-index: 1200;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 8px 22px rgba(15,23,42,.18);
  transition: transform .18s ease, background .18s ease,
              box-shadow .18s ease, opacity .18s ease;
}
.bd-back-to-top {
  right: 18px;
  bottom: 72px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(7px);
  color: #fff;
  background: var(--bd-primary, #1d4f91);
  cursor: pointer;
}
.bd-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.bd-back-to-top:hover {
  background: var(--bd-primary-700, #173e72);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
.bd-floating-chat {
  right: 18px;
  bottom: 18px;
  color: #fff;
  background: #24384d;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(36,56,77,.35);
}
.bd-floating-chat:hover {
  color: #fff;
  background: #304a64;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
.bd-floating-chat-dot {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #18794e;
  border: 2px solid #24384d;
  animation: bd-chat-dot-pulse 2s ease-in-out infinite;
}
@keyframes bd-chat-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(24,121,78,.5); }
  50%      { box-shadow: 0 0 0 4px rgba(24,121,78,0); }
}

/* --- Modal --- */
html body #pushNotificationModal.bd-push-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  margin: 0;
  overflow: hidden;
}
html body #pushNotificationModal.bd-push-modal.show { display: flex; }
html body #pushNotificationModal .bd-push-modal-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(2,6,23,.68);
  backdrop-filter: blur(4px);
}
html body #pushNotificationModal .bd-push-modal-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  box-sizing: border-box;
  padding: 30px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #172033;
  box-shadow: 0 24px 70px rgba(2,6,23,.24);
  text-align: center;
  animation: bd-modal-in .22s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes bd-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
html body #pushNotificationModal .bd-push-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  font: 500 21px/1 Arial, sans-serif;
  transition: background .15s ease, color .15s ease,
              transform .15s ease;
}
html body #pushNotificationModal .bd-push-modal-close:hover {
  background: #e2e8f0;
  color: #172033;
  transform: rotate(90deg);
}
html body #pushNotificationModal .bd-push-modal-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 10px;
  color: var(--bd-primary, #1d4f91);
  background: linear-gradient(135deg, #eef4fb 0%, #dbeafe 100%);
  border: 1px solid var(--bd-primary-line, #bfdbfe);
  font-size: 20px;
}
html body #pushNotificationModal .bd-push-modal-card h3 {
  margin: 0 0 8px;
  color: #172033;
  font-size: 19px;
  line-height: 1.3;
}
html body #pushNotificationModal .bd-push-modal-card p {
  margin: 0 auto 20px;
  max-width: 350px;
  color: #667085;
  font-size: 13px;
  line-height: 1.65;
}
html body #pushNotificationModal .bd-push-modal-enable {
  width: 100%;
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--bd-primary, #1d4f91);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(30,64,175,.2);
  transition: background .15s ease, transform .15s ease,
              box-shadow .15s ease;
}
html body #pushNotificationModal .bd-push-modal-enable:hover {
  background: var(--bd-primary-700, #173e72);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(30,64,175,.28);
}
html body #pushNotificationModal .bd-push-modal-enable:disabled {
  opacity: .7;
  cursor: wait;
  transform: none;
}
html body #pushNotificationModal .bd-push-modal-later {
  display: block;
  margin: 12px auto 0;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: #667085;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
html body #pushNotificationModal .bd-push-modal-later:hover {
  color: #172033;
  text-decoration: underline;
}
html body #pushNotificationModal .bd-push-modal-status {
  min-height: 18px;
  margin-top: 10px;
  color: #667085;
  font-size: 12px;
}

body.bd-push-modal-open { overflow: hidden; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .bd-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
  }
  .bd-footer-brand { grid-row: span 2; }
  .bd-footer-trust-item { padding-inline: 12px; }
}
@media (max-width: 720px) {
  .bd-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px 20px;
    padding: 36px 0 28px;
  }
  .bd-footer-brand { grid-column: 1 / -1; grid-row: auto; }
  .bd-footer-trust-item { padding-inline: 10px; }
  .bd-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-width: 480px) {
  .bd-footer { margin-top: 42px; }
  .bd-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .bd-footer-trust { justify-content: flex-start; }
  .bd-footer-trust-item {
    justify-content: flex-start;
    width: 50%;
    box-sizing: border-box;
    padding-inline: 8px;
  }
  .bd-footer-trust-item:not(:last-child)::after { display: none; }
  .bd-footer-bottom { padding-bottom: 18px; }
  .bd-footer-legal { gap: 7px; }
  .bd-back-to-top { right: 14px; bottom: 68px; }
  .bd-floating-chat { right: 14px; bottom: 14px; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .bd-footer *, .bd-footer *::before, .bd-footer *::after,
  .bd-back-to-top, .bd-floating-chat {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .bd-floating-chat-dot,
  html body #pushNotificationModal .bd-push-modal-card {
    animation: none !important;
  }
}