/* ============================================================
   JAMMY FOOTER
   Concept C — compact. Everything references tokens from style.css.
   No !important: there is no theme to fight.
   ============================================================ */

.jam-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
  font-size: 14.5px;
}

.jam-footer a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  transition: color .18s;
}
.jam-footer a:hover { color: var(--white); }

.jam-f-in { max-width: var(--wrap); margin: 0 auto; padding: 0 26px; }

.jam-footer h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  color: var(--cream);
  letter-spacing: .5px;
  margin-bottom: 16px;
  text-shadow: 0 2px 0 var(--jam-red-deep);
}

/* ============================================================
   TRUST BAR
   ============================================================ */

.jam-f-trust {
  background: #101010;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.jam-f-trust-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

/* ---- Trustpilot ---- */
.jam-f-tp {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  color: rgba(255, 255, 255, .85);
}
.jam-f-tp:hover { color: var(--white); }
.jam-f-tp b { color: var(--white); }

.jam-f-stars { display: flex; gap: 2px; flex-shrink: 0; }
.jam-f-stars i {
  /* Trustpilot green. Squares, not rounded — matches their mark. */
  width: 20px; height: 20px;
  background: #00b67a;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-style: normal;
}

/* ---- GLI ---- */
.jam-f-gli {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1.5px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  padding: 8px 14px;
  transition: border-color .18s, background .18s;
}
.jam-f-gli:hover {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .1);
}
.jam-f-gli-mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f6fb2, #124a7d);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  flex-shrink: 0;
}

/* The certificate badge. White rounded container on purpose: the supplied
   file is a JPG, which can't carry transparency — without a container its
   white background would read as a stray box on the dark footer. This makes
   it look like a deliberate badge either way. */
.jam-f-gli-badge {
  background: var(--white);
  border-radius: 7px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.jam-f-gli-badge img {
  height: 30px;
  width: auto;
  display: block;
}
.jam-f-gli-txt {
  font-size: 12.5px;
  line-height: 1.3;
  color: rgba(255, 255, 255, .8);
}
.jam-f-gli-txt b { display: block; color: var(--white); font-size: 13px; }

/* ---- Payments ----
   Text labels, not brand logos. Reproducing Visa/Mastercard/PayPal marks
   means following each scheme's brand guidelines — swap in real images via
   the jammy_footer_payments filter once you've checked the usage rules. */
.jam-f-pay { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.jam-f-pay i {
  background: var(--white);
  border-radius: 6px;
  height: 30px;
  min-width: 48px;
  display: flex; align-items: center; justify-content: center;
  font-style: normal;
  font-weight: 800;
  font-size: 10.5px;
  color: var(--ink);
  padding: 0 9px;
  letter-spacing: .3px;
}

/* ============================================================
   COLUMNS
   ============================================================ */

.jam-f-cols {
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  gap: 30px;
  padding: 26px 0 22px;
  align-items: start;
}

.jam-f-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.jam-f-logo-link { display: inline-block; line-height: 0; }
.jam-f-logo {
  width: 118px;
  height: auto;
  display: block;
  filter: drop-shadow(0 5px 14px rgba(0, 0, 0, .5));
}
.jam-f-logo-mark {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--cream);
  text-shadow: 0 3px 0 var(--jam-red-deep);
  transform: skewX(-6deg);
  display: inline-block;
}

/* ---- Social ---- */
.jam-f-soc { display: flex; gap: 9px; }
.jam-f-soc a {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--jam-grad);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 3px 0 var(--jam-red-deep);
  transition: transform .18s var(--spring), box-shadow .18s;
}
.jam-f-soc a:hover { color: var(--white); }
.jam-f-soc a:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--jam-red-deep);
}
/* Icons use currentColor so they inherit the button colour. */
.jam-f-soc svg { width: 21px; height: 21px; display: block; }

/* ---- Link lists ----
   wp_nav_menu adds its own li classes; we only style structurally so any
   menu assigned in wp-admin renders correctly without extra work. */
.jam-f-links { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; }
.jam-f-links li { margin: 0; }
.jam-f-links a { font-weight: 600; font-size: 13.5px; display: inline-block; }

/* ---- Right column ---- */
.jam-f-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  text-align: right;
}

.jam-f-age {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .09);
  border: 1.5px solid rgba(255, 255, 255, .22);
  border-radius: var(--pill);
  padding: 7px 15px;
  font-weight: 700;
  font-size: 13px;
  color: rgba(255, 255, 255, .9);
  white-space: nowrap;
}
.jam-f-age-badge {
  background: var(--gold-grad);
  color: var(--gold-ink);
  font-family: var(--font-display);
  font-size: 12px;
  padding: 2px 9px;
  border-radius: var(--pill);
}

/* ============================================================
   SUPPORT STRIP

   Own full-width band rather than sitting in the right-hand column —
   four organisations (especially as logos) will not fit in ~260px.
   ============================================================ */

.jam-f-support {
  background: #0c0c0c;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.jam-f-support-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.jam-f-support p {
  font-size: 13px;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.5;
  margin: 0;
}

.jam-f-orgs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Text fallback, used until logo images are supplied. */
.jam-f-orgs a {
  font-weight: 800;
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .4px;
  border: 1.5px solid rgba(255, 255, 255, .18);
  padding: 6px 11px;
  border-radius: 7px;
  transition: color .18s, border-color .18s;
}
.jam-f-orgs a:hover {
  color: rgba(255, 255, 255, .85);
  border-color: rgba(255, 255, 255, .4);
}

/* Logo row. Desaturated and dimmed so the logos read as a quiet reference
   set rather than competing with the brand, brightening on hover. */
.jam-f-orgs-logos { gap: 18px; }
.jam-f-orgs-logos a {
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
}
.jam-f-orgs-logos img {
  height: 30px;
  width: auto;
  display: block;
  filter: grayscale(1) brightness(2.4) opacity(.55);
  transition: filter .2s;
}
.jam-f-orgs-logos a:hover img {
  filter: grayscale(1) brightness(2.8) opacity(.9);
}

/* ============================================================
   BOTTOM BAR
   ============================================================ */

.jam-f-bottom {
  background: var(--jam-grad);
  color: var(--white);
  font-weight: 700;
  font-size: 13.5px;
}
.jam-f-bottom-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 13px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.jam-f-bottom a { color: var(--white); text-decoration: underline; }
.jam-f-bottom a:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1080px) {
  .jam-f-cols { grid-template-columns: auto 1fr 1fr; }
  .jam-f-side {
    grid-column: 1 / -1;
    align-items: center;
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }
}

@media (max-width: 720px) {
  /*
   * The height saving on mobile comes from keeping the two link columns
   * SIDE BY SIDE rather than letting them stack. Brand block goes centred
   * above them, legal note centred below.
   */
  .jam-f-cols {
    grid-template-columns: 1fr 1fr;
    gap: 22px 18px;
    padding: 22px 0 18px;
  }

  .jam-f-brand {
    grid-column: 1 / -1;
    align-items: center;
    gap: 14px;
  }

  .jam-f-side {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 11px;
  }

  .jam-f-in { padding: 0 18px; }
  .jam-footer h4 { font-size: 15px; margin-bottom: 12px; }
  .jam-f-links { gap: 8px; }

  /* Support strip stacks and centres */
  .jam-f-support-in {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 16px 18px;
  }
  .jam-f-support p { max-width: none; font-size: 12.5px; }
  .jam-f-orgs { justify-content: center; }
  .jam-f-orgs-logos { gap: 14px; }
  .jam-f-orgs-logos img { height: 24px; }

  /* Trust bar stacks and centres */
  .jam-f-trust-in {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 11px;
    padding: 13px 18px;
  }
  .jam-f-tp { font-size: 12.5px; }
  .jam-f-stars i { width: 17px; height: 17px; font-size: 10px; }
  .jam-f-pay { justify-content: center; }
  .jam-f-pay i { height: 25px; min-width: 40px; font-size: 9px; padding: 0 7px; }
  .jam-f-gli-txt { text-align: left; }

  .jam-f-bottom-in {
    flex-direction: column;
    text-align: center;
    gap: 5px;
    padding: 12px 18px;
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jam-f-soc a { transition: none; }
}
