/**
 * Fat footer — self-contained styles (not dependent on bundle footer rules).
 * Themes: .footer-container.black | .white | .blue
 */

/* -------------------------------------------------------------------------
   Theme tokens
   ------------------------------------------------------------------------- */
.footer-container {
  --footer-bg: #f5f6fa;
  --footer-heading: #030235;
  --footer-text: #4a4a5a;
  --footer-link: #4a4a5a;
  --footer-link-hover: #030235;
  --footer-muted: #6b6b7b;
  --footer-divider: #807FA1;
  --footer-col-rule: #1a1a2e;
  background: var(--footer-bg);
  color: var(--footer-text);
  overflow: hidden;
}

.footer-container.white {
  --footer-bg: #ffffff;
}

.footer-container.blue {
  --footer-bg: #ebf0ff;
  --footer-col-rule: #D9D9D9;
}

.footer-container.black {
  --footer-bg: #030235;
  --footer-heading: #ffffff;
  --footer-text: #c8c7d8;
  --footer-link: #c8c7d8;
  --footer-link-hover: #ffffff;
  --footer-muted: #807fa1;
  --footer-divider: rgba(255, 255, 255, 0.18);
  --footer-col-rule: #ffffff;
}

/* -------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------- */
.footer-container .footer.footer--fat {
  padding: 0 20px;
  max-width: 1240px;
  margin: 0 auto;
}

.footer--fat ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer--fat .footer__row--top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--footer-divider);
}

.footer--fat .footer-logo {
  display: inline-flex;
  max-width: 200px;
  width: auto;
}

.footer--fat .footer-logo .logo-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 44px;
  object-fit: contain;
}

/* Socials — icons from ACF (Messagewhiz Settings → Footer) */
.footer--fat .social-networks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 150px;
  max-height: 24px;
  flex-shrink: 0;
}

.footer--fat .social-networks .network {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  max-height: 24px;
}

.footer--fat .social-networks .network img {
  display: block;
  width: auto;
  height: auto;
  max-height: 24px;
  max-width: 28px;
  object-fit: contain;
}

/* Columns */
.footer--fat .footer__row--nav {
  padding: 38px 0 40px;
  border-bottom: 1px solid var(--footer-divider);
}

.footer--fat .footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 40px;
}

.footer--fat .footer__col-title {
  display: block;
  width: 100%;
  font-weight: 700;
  font-size: 16px;
  line-height: 142%;
  letter-spacing: 0.01em;
  color: var(--footer-heading);
  margin: 0 0 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--footer-col-rule);
}

.footer-container.blue .footer--fat .footer__col-title {
  color: #807fa1;
  margin-bottom: 32px;
}

.footer--fat .footer__group {
  margin-bottom: 32px;
}

.footer--fat .footer__group:last-child {
  margin-bottom: 0;
}

.footer--fat .footer__group-title {
  display: block;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  color: var(--footer-heading);
  margin-bottom: 16px;
}

.footer--fat .footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer--fat .footer__links a {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--footer-link);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer--fat .footer__links a:hover {
  color: var(--footer-link-hover);
}

.footer--fat .footer__group--flat .footer__links {
  gap: 6px;
}

/* Trust + copyright */
.footer--fat .footer__row--trust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--footer-divider);
}

.footer--fat .partners {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 28px;
  flex-shrink: 0;
}

.footer--fat .partners .partner {
  display: inline-flex;
  line-height: 0;
}

.footer--fat .partners .partner-logo {
  display: block;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.footer--fat .developer {
  flex: 1 1 280px;
  max-width: 520px;
  text-align: right;
}

.footer--fat .developer .mw {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--footer-muted);
  text-align: left
}

/* Legal bar */
.footer--fat .footer__row--legal {
  padding: 20px 0 48px;
}

.footer--fat .footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  justify-content: space-between;
}

.footer--fat .footer__legal a {
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--footer-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer--fat .footer__legal a:hover {
  color: var(--footer-link-hover);
}

/* -------------------------------------------------------------------------
   Back to top
   ------------------------------------------------------------------------- */
#myBtn {
  display: none;
  position: fixed;
  bottom: 105px;
  right: 16px;
  z-index: 99;
  outline: none;
  color: white;
  cursor: pointer;
  padding: 21px;
  font-size: 18px;
  background: rgba(0, 145, 232, 0.1);
  border: 0.5px solid #0091e8;
  box-sizing: border-box;
  border-radius: 50%;
  width: 60px;
  height: 60px;
}

#myBtn .arrow-up {
  background: url(/wp-content/themes/messagewhiz/images/up-btn.svg) center center no-repeat;
  width: 16px;
  height: 16px;
  z-index: 1;
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  top: 0;
  bottom: 0;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer--fat .footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
  }

  .footer--fat .footer__row--trust {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer--fat .developer {
    text-align: left;
    max-width: none;
    flex: auto;
  }
}

@media (max-width: 768px) {
  #myBtn {
    right: 15px;
    bottom: 100px;
  }
}

@media (max-width: 640px) {
  .footer--fat .footer__row--top {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 0 24px;
  }

  .footer--fat .footer__cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer--fat .footer__row--legal {
    padding-bottom: 36px;
  }

  .footer--fat .footer__legal {
    gap: 10px 24px;
  }

  .footer--fat .partners {
    justify-content: flex-start;
  }
}
