/* Compact main footer (T-AIC-693, 18/10/2026).
   Adam: "the footer need to be condensed in height by 60%". The homepage footer measured 603.9px at
   1440x900; this takes it to about 40% of that. NOTHING is removed: every link, the social icons, the ABN
   line, Privacy/Terms and the trademark sentence are still in the markup. Only spacing and layout change.

   Loaded AFTER each page's own <style> block (it is linked beside footer-social.css), and every rule is
   prefixed with `footer` so it also beats the older per-page copies of the footer CSS (the webinars page
   keeps its own grid version). The legal pages (privacy, terms, refunds) use a different one-row footer and
   do not load this file.

   Layout at desktop: logo + social icons on one line over the blurb, on the left; the link columns on the
   right. Services and Company (the long lists) run as two sub-columns; the short columns stack in pairs. */

footer { padding: 24px 0 10px; }

footer .foot-top {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 24px 32px;
  align-items: start;
  margin-bottom: 10px;
  padding-bottom: 0;
}

/* ---- left: logo and icons share a line, blurb underneath ---------------- */
footer .foot-blurb {
  max-width: none;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 14px;
}
footer .foot-blurb .brand { grid-column: 1; grid-row: 1; margin: 0; }
/* the 40px tap target stays; the negative margin stops it adding height to the row */
footer .foot-blurb .foot-social { grid-column: 2; grid-row: 1; margin: -5px 0; }
footer .foot-blurb .foot-social a.soc:first-child { margin-left: 0; }
footer .foot-blurb p {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  max-width: none;
  font-size: 13px;
  line-height: 1.5;
}
footer .foot-blurb p + p { margin-top: 4px; }
footer .foot-blurb link { display: none; }

/* ---- right: link columns ------------------------------------------------- */
footer .foot-cols {
  display: grid;
  grid-auto-flow: column dense;
  grid-template-rows: auto auto;
  column-gap: 32px;
  row-gap: 6px;
  justify-content: end;
  align-items: start;
}
footer .foot-col h4 {
  margin: 0 0 4px;
  font-size: 11.5px;
  line-height: 1.3;
}
footer .foot-col a {
  margin: 0;
  padding: 0;
  font-size: 12.5px;
  line-height: 1.4;
  white-space: nowrap;
}

/* the two long lists run as two sub-columns, the heading across the top */
footer .foot-col-wide {
  grid-row: 1 / span 2;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: auto repeat(5, auto);
  column-gap: 24px;
  align-content: start;
}
footer .foot-col-wide h4 { grid-column: 1 / span 2; grid-row: 1; }

/* ---- bottom strip: ABN, Privacy/Terms, tagline on one line -------------- */
footer .foot-bot {
  padding-top: 10px;
  gap: 4px 16px;
  font-size: 12.5px;
  line-height: 1.4;
}

/* trademark sentence: full width, small, two lines at desktop */
footer .foot-platforms {
  margin: 6px 0 0;
  max-width: none;
  font-size: 10.5px;
  line-height: 1.5;
}

/* ---- narrower laptops: blurb goes above the columns --------------------- */
@media (max-width: 1180px) {
  footer .foot-top { grid-template-columns: 1fr; gap: 14px; }
  footer .foot-blurb { max-width: 640px; }
  footer .foot-cols { justify-content: start; }
}

/* ---- tablets and phones: two-up grid, still no horizontal scroll -------- */
@media (max-width: 900px) {
  footer { padding: 24px 0 14px; }
  footer .foot-top { gap: 18px; margin-bottom: 12px; }
  footer .foot-cols {
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 14px;
    justify-content: stretch;
  }
  footer .foot-col-wide {
    grid-column: 1 / -1;
    grid-row: auto;
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }
  footer .foot-col-wide h4 { grid-column: 1 / -1; }
  /* keep a comfortable tap target on touch screens */
  footer .foot-col a { padding: 5px 0; white-space: normal; overflow-wrap: anywhere; font-size: 13px; }
  footer .foot-bot { flex-direction: column; gap: 4px; }
}
