/* =============================================================================
   Site Footer — sm-site-footer
   Background: #1f45d8 (brand blue)
   ============================================================================= */

/* ---- Shell (shared container) ---- */
.sm-site-footer__shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- Root ---- */
.sm-site-footer {
  background: #1f45d8;
  color: #fff;
}

/* Remove parent theme footer styles */
.sm-site-footer.site-footer,
footer.sm-site-footer {
  background: #1f45d8 !important;
  color: #fff !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ---- Main block ---- */
.sm-site-footer__main {
  padding: 64px 0 56px;
}

.sm-site-footer__main .sm-site-footer__shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}

/* ---- Brand column ---- */
.sm-site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sm-site-footer__logo .custom-logo-link {
  display: inline-flex;
}

.sm-site-footer__logo .custom-logo {
  display: block;
  max-width: 180px;
  max-height: 64px;
  width: auto;
  height: auto;
  /* Logos on blue bg: use brightness filter if original is dark */
  filter: brightness(0) invert(1);
}

.sm-site-footer__logo-fallback {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: #fff !important;
  text-decoration: none !important;
}

.sm-site-footer__logo-fallback span:first-child {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.sm-site-footer__logo-fallback span:last-child {
  font-size: 32px !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em;
}

.sm-site-footer__desc {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* ---- Social icons ---- */
.sm-site-footer__social {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.sm-site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #fff !important;
  text-decoration: none !important;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.sm-site-footer__social-link:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.sm-site-footer__social-link svg {
  display: block;
  flex-shrink: 0;
}

/* ---- Navigation grid ---- */
.sm-site-footer__nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.sm-site-footer__nav-col {
  display: flex;
  flex-direction: column;
}

.sm-site-footer__nav-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sm-site-footer__nav-list li {
  margin: 0 !important;
  padding: 0 !important;
}

.sm-site-footer__nav-list a {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #fff !important;
  text-decoration: none !important;
  line-height: 1.3 !important;
  display: inline-block;
  transition: opacity 0.2s;
}

.sm-site-footer__nav-list a:hover {
  opacity: 0.75;
  text-decoration: none !important;
}

/* ---- Partner logos strip ---- */
.sm-site-footer__logos-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 36px 0;
}

.sm-site-footer__logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.sm-site-footer__logo-item {
  flex-shrink: 0;
}

.sm-site-footer__logo-item img {
  display: block;
  max-height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* ---- Copyright bar ---- */
.sm-site-footer__copy-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px 0;
}

.sm-site-footer__copy-bar p {
  text-align: center;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.7) !important;
  margin: 0 !important;
}

/* ─── Override parent theme colophon styles ─── */
#colophon.sm-site-footer .site-info,
#colophon.sm-site-footer .footer-navigation,
#colophon.sm-site-footer .powered-by {
  display: none !important;
}

/* =============================================================================
   RESPONSIVE — TABLET (≤ 991px)
   ============================================================================= */

@media (max-width: 991px) {
  .sm-site-footer__main .sm-site-footer__shell {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sm-site-footer__brand {
    max-width: 400px;
  }

  .sm-site-footer__nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
}

/* =============================================================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================================================= */

@media (max-width: 600px) {
  .sm-site-footer__shell {
    padding: 0 20px;
  }

  .sm-site-footer__main {
    padding: 44px 0 40px;
  }

  .sm-site-footer__nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
  }

  .sm-site-footer__logos-row {
    gap: 24px;
  }

  .sm-site-footer__logo-item img {
    max-height: 32px;
  }
}

/* =============================================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================================================= */

@media (max-width: 480px) {
  .sm-site-footer__shell {
    padding: 0 16px;
  }

  .sm-site-footer__main {
    padding: 36px 0 32px;
  }

  .sm-site-footer__brand {
    max-width: 100%;
  }

  .sm-site-footer__desc {
    font-size: 12px !important;
  }

  .sm-site-footer__nav {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sm-site-footer__nav-list {
    gap: 14px;
  }

  .sm-site-footer__logos-strip {
    padding: 28px 0;
  }

  .sm-site-footer__logos-row {
    gap: 20px;
  }

  .sm-site-footer__logo-item img {
    max-height: 28px;
  }

  .sm-site-footer__copy-bar {
    padding: 16px 0;
  }

  .sm-site-footer__copy-bar p {
    font-size: 11px !important;
  }
}
