/* ============================================================
   footer.css — site footer columns, bottom bar, back-to-top
   Markup: includes/footer.php  ·  Behaviour: js/footer.js
   ============================================================ */

.site-footer { background: var(--navy); color: #cbd5e1; margin-top: 50px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }

/* Main footer columns */
.footer-main .container {
  /* Last column holds the payment artwork rather than text links, so it gets
     extra width — the logo wall stops being readable when it's squeezed. */
  display: grid; grid-template-columns: 1.5fr minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 1.8fr; gap: 32px;
  padding: 44px 20px 36px;
}
.footer-col .footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-col .brand-logo {
  font-size: 28px; font-weight: 800; letter-spacing: -1px;
  border: 3px solid var(--blue); border-radius: 8px; padding: 0 7px; line-height: 1.3;
}
.footer-col .brand-logo .e { color: var(--red); }
.footer-col .brand-logo .bn { color: #60a5fa; }
.footer-col .brand-name { color: #fff; font-weight: 700; font-size: 15px; }
.footer-col .brand-tag { color: #60a5fa; font-size: 12.5px; font-weight: 600; margin-top: 2px; }

.footer-contact { list-style: none; margin-top: 16px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; margin-bottom: 10px; }
.footer-contact .ci { font-size: 15px; line-height: 1.3; }

.footer-col h4 {
  color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px;
  position: relative; padding-bottom: 10px;
}
.footer-col h4::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 32px; height: 3px; background: var(--blue); border-radius: 2px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: 13.5px; display: inline-flex; align-items: center; gap: 7px; }
.footer-links a:hover { padding-left: 3px; transition: padding .15s; }

/* Social row — sits under the contact details in the About column. */
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 8px; background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.footer-social a:hover { background: var(--blue); }

/* Payment column — the artwork is on white, so it needs its own light card
   against the dark footer. */
.footer-pay-logo {
  display: block; background: #fff; border-radius: 8px; padding: 8px;
  transition: box-shadow .15s ease;
}
.footer-pay-logo:hover { box-shadow: 0 0 0 3px rgba(255,255,255,.14); }
.footer-pay-logo img { display: block; width: 100%; height: auto; }

/* Bottom bar */
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 18px 20px; flex-wrap: wrap;
}
.footer-bottom .copy { font-size: 13px; color: #94a3b8; }
.footer-bottom .copy strong { color: #fff; }
.footer-bottom .pay { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #94a3b8; }
.footer-bottom .pay .chip {
  background: #fff; color: #0f172a; border-radius: 5px; padding: 3px 8px;
  font-size: 11.5px; font-weight: 700;
}
.footer-bottom .pay strong { color: #fff; font-weight: 700; }

/* Tablet */
@media (max-width: 1000px) {
  .footer-main .container { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-col.about { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 600px) {
  .site-footer { margin-top: 36px; }

  .footer-main .container { grid-template-columns: 1fr; gap: 26px; padding: 34px 18px 30px; }

  /* Bottom bar centers and wraps */
  .footer-bottom .container { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .footer-bottom .pay { flex-wrap: wrap; justify-content: center; }
}

/* Back to top */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 999;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--blue); color: #fff; font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(29,78,216,.45);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s, background .15s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-dark); }
@media (max-width: 600px) {
  .back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; font-size: 13px; }
}
