/* ==========================================================================
   Africa CPTA Theme — Footer
   Works with footer-dark / footer-light variants
   ========================================================================== */

/* Base */
.site-footer { font-size: .95rem; position: relative; }
.site-footer .footer-links li { margin-bottom: .5rem; }
.site-footer .footer-links a { text-decoration: none; font-weight: 600; }

/* Variants */
.site-footer.footer-light {
  background: var(--color-surface, #fff);
  color: var(--color-text-dim, #5b6b79);
  border-top: 1px solid var(--color-border, rgba(0,0,0,.08));
}
.site-footer.footer-light .footer-links a { color: var(--color-text, #222); }
.site-footer.footer-light .footer-links a:hover { color: var(--color-primary, #007b5e); }
.site-footer.footer-light .footer-social a { color: var(--color-text-dim, #5b6b79); }
.site-footer.footer-light .footer-social a:hover { color: var(--color-primary, #007b5e); }

.site-footer.footer-dark {
  background: #0f1419;
  color: #cbd6e2;
}
.site-footer.footer-dark .footer-intro { color: #aab9c8; }
.site-footer.footer-dark .footer-links a { color: #e6edf5; opacity: .9; }
.site-footer.footer-dark .footer-links a:hover { color: var(--color-accent, #ffb703); }
.site-footer.footer-dark .footer-social a { color: #cbd6e2; opacity: .9; }
.site-footer.footer-dark .footer-social a:hover { color: var(--color-accent, #ffb703); }
.site-footer.footer-dark hr { border-color: rgba(255,255,255,.15); }

/* Brand block */
.footer-brand img { max-height: 44px; height: auto; }
.footer-social a { font-size: 1.2rem; transition: color .2s ease; }

/* Newsletter (CF7 defaults overridden lightly) */
.site-footer .newsletter-form form { display: flex; gap: .5rem; }
.site-footer .newsletter-form input[type="email"],
.site-footer .newsletter-form .wpcf7-email {
  flex: 1;
  border-radius: 10px;
  padding: .65rem .9rem;
}
.site-footer .newsletter-form input[type="submit"],
.site-footer .newsletter-form .wpcf7-submit {
  border-radius: 10px;
  background: var(--color-primary, #007b5e);
  color: #fff;
  padding: .65rem 1rem;
  border: 0;
}
.site-footer .newsletter-form .wpcf7-submit:hover {
  background: var(--color-accent, #ffb703);
}

/* Stack newsletter form on small screens */
@media (max-width: 575.98px) {
  .site-footer .newsletter-form form { flex-direction: column; }
}

/* Footer bottom */
.footer-bottom { opacity: .9; }

/* ------------------------------------------
   Scroll-to-Top Button
------------------------------------------- */
.scroll-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: none;
  background: var(--color-primary, #007b5e);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 1040; /* above footer */
}
.scroll-top:hover { background: var(--color-accent, #ffb703); }
.scroll-top i { font-size: 1.1rem; line-height: 1; }

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Safer tap target on very small screens */
@media (max-width: 420px) {
  .scroll-top { right: 12px; bottom: 12px; width: 48px; height: 48px; }
}
