/* ============================================================
 * Footer — polished refresh
 *
 * Layered on top of app.css rather than replacing it: the footer keeps its
 * Bulma columns, white card and 40px top radius, and this file tightens the
 * spacing, gives the trust badges a consistent tile treatment, and fixes the
 * cramped stacking on touch widths.
 *
 * Accent (#282895) and hover wash (#f6f6fe) are the values app.css already
 * uses for footer menu links, so the two stylesheets stay in step.
 * ============================================================ */

.a4a-footer {
  --a4a-footer-accent: #282895;
  --a4a-footer-wash: #f6f6fe;
  --a4a-footer-border: #e8e8f2;
  --a4a-footer-muted: #6b6b80;
}

/* ---------- layout ---------- */

.a4a-footer .a4a-footer__columns {
  gap: 0.5rem 0;
}

.a4a-footer__column {
  min-width: 0;
}

.a4a-footer__logo {
  max-width: 190px;
  height: auto;
  margin-bottom: 1rem;
}

/* No max-width here: the about column is the one flexible column, so capping the
   text leaves a wide gap between it and the menu column. */
.a4a-footer__column--about .content {
  text-align: justify;
}

/* Section headings share one rhythm across all four columns. */
.a4a-footer__title {
  position: relative;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
}

.a4a-footer__title::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background-color: var(--a4a-footer-accent);
  opacity: 0.85;
}

/* ---------- menu ---------- */

.a4a-footer__column--menu .custom_menu_list a {
  /* app.css sets 16px top/bottom with !important; trim it so the column is not
     taller than the rest of the footer. */
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  border-radius: 8px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

/* ---------- trust badges ---------- */

.a4a-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.a4a-footer-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  padding: 8px;
  background-color: #fff;
  border: 1px solid var(--a4a-footer-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.a4a-footer-badge:hover,
.a4a-footer-badge:focus-visible {
  border-color: var(--a4a-footer-accent);
  box-shadow: 0 6px 16px rgba(40, 40, 149, 0.13);
  transform: translateY(-2px);
}

.a4a-footer-badge__image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* A pasted snippet brings its own markup — keep whatever it renders inside the
   tile so one oversized provider logo cannot stretch the row. */
.a4a-footer-badge--script > * {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.a4a-footer-badge--script img,
.a4a-footer-badge--script iframe {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ---------- contact ---------- */

.a4a-footer .contact_us_widget_icons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.85rem;
}

/* The markup carries Bulma's .is-inline-block, which is display:inline-block
   !important — without matching that weight the icon never centres in the circle. */
.a4a-footer .contact_us_widget_icons a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-inline-start: 0 !important;
  background-color: var(--a4a-footer-wash);
  border-radius: 50%;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.a4a-footer .contact_us_widget_icons a:hover,
.a4a-footer .contact_us_widget_icons a:focus-visible {
  background-color: #e6e6fb;
  transform: translateY(-2px);
}

/* app.css sets only a height on these, leaving Bulma's 1.5rem width in place, so
   the box is not square. Pin both so the glyph sits inside the circle. */
.a4a-footer .contact_us_widget_icons .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0;
}

.a4a-footer__phone a {
  color: var(--a4a-footer-accent);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- copyright ---------- */

.a4a-footer__copyright {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--a4a-footer-border);
  color: var(--a4a-footer-muted);
  font-size: 13px;
}

/* ---------- touch / mobile ---------- */

@media screen and (max-width: 1023px) {
  .a4a-footer__column {
    text-align: center;
  }

  .a4a-footer__logo {
    margin-inline: auto;
  }

  .a4a-footer__column--about .content {
    max-width: none;
    text-align: justify;
  }

  /* The underline reads as a stray dash under a centred heading. */
  .a4a-footer__title {
    padding-bottom: 0;
  }

  .a4a-footer__title::after {
    display: none;
  }

  .a4a-footer-badges,
  .a4a-footer .contact_us_widget_icons {
    justify-content: center;
  }

  .a4a-footer__copyright {
    margin-top: 0.5rem;
  }
}
