/* ==========================================================================
   Site footer. Loaded on every page; the footer markup is the same on all of
   them (copy it from any page, change it on every page). Laid out like the
   old odro.co.uk footer (badge, contact, columns of links, social icons and
   two buttons), in the new design. Copy: docs/homepage-copy-v1.md, section 13.
   The template-built pages don't load tokens.css, so every var() carries the
   brand hex as its fallback (as styles/site-nav.css).
   ========================================================================== */

footer.sf {
  background: var(--odro-navy, #0E2050);
  color: var(--odro-white, #FFFFFF);
  border-top: 1px solid rgba(148, 206, 242, 0.25);
  font-family: var(--font-body, 'Baloo 2', Arial, sans-serif);
  font-size: 15px;
  line-height: 1.5;
}
footer.sf *, footer.sf *::before, footer.sf *::after { box-sizing: border-box; }
.v-page ~ footer.sf { border-top: 0; }  /* product pages: the close's navy runs straight into the footer (as styles/flow.css) */

footer.sf .sf-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 64px clamp(16px, 4vw, 32px) 32px;
  display: flex; flex-direction: column; gap: 48px;
}

/* Columns: brand and contact | Products | Solutions and Resources | Company and Log in | Stay connected */
footer.sf .sf-cols {
  display: grid; gap: 40px 32px;
  grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(120px, 1fr)) minmax(264px, 1.2fr);
}
/* Minimums lowered 29 Nov 2026 (Tommy): the old ones (240, 140 x 3, 264) plus gaps and padding needed about 1,116px,
   so between 1,024px and that width the footer stuck out and the page scrolled sideways. These fit from 1,024px.
   Stay connected keeps 264px so its five social icons stay on one row. */
footer.sf .sf-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
footer.sf .sf-label {
  margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: #94CEF2;
}
footer.sf .sf-label + a, footer.sf .sf-label + ul { margin-top: 0; }
footer.sf .sf-col .sf-label:not(:first-child) { margin-top: 16px; }
footer.sf ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

footer.sf a { color: var(--odro-white, #FFFFFF); text-decoration: none; border-radius: 4px; }
footer.sf a:hover { color: #94CEF2; text-decoration: underline; text-underline-offset: 3px; }
footer.sf a:focus-visible { outline: 2px solid #94CEF2; outline-offset: 3px; }

/* Brand column */
footer.sf .sf-brand { gap: 10px; }
footer.sf .sf-logo { height: 52px; width: auto; align-self: flex-start; }
footer.sf .sf-strap {
  margin: 6px 0 10px; font-family: var(--font-display, Epilogue, Arial, sans-serif);
  font-weight: 600; font-size: 18px; line-height: 1.3;
}
footer.sf address { font-style: normal; display: flex; flex-direction: column; gap: 6px; }
/* The certification mark: as supplied (300x200, shown at half size so it stays sharp on high-density screens) */
footer.sf .sf-iso { display: block; width: 150px; height: auto; margin-top: 14px; }

/* Stay connected: social icons, then the two buttons */
footer.sf .sf-social { flex-direction: row; flex-wrap: wrap; gap: 10px; }
footer.sf .sf-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(148, 206, 242, 0.35);
}
footer.sf .sf-social a:hover { background: rgba(148, 206, 242, 0.12); border-color: #94CEF2; }
footer.sf .sf-social svg { width: 22px; height: 22px; }
footer.sf .sf-btns { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; max-width: 280px; }
footer.sf .sf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 22px; border-radius: 999px;
  font-family: var(--font-display, Epilogue, Arial, sans-serif); font-weight: 700; font-size: 16px;
  text-decoration: none;
}
footer.sf .sf-btn:hover { text-decoration: none; }
footer.sf .sf-btn-gold { background: var(--odro-gold, #FFDB29); color: var(--odro-navy, #0E2050); }
footer.sf .sf-btn-gold:hover { color: var(--odro-navy, #0E2050); filter: brightness(0.95); }
footer.sf .sf-btn-ghost { border: 2px solid var(--odro-white, #FFFFFF); color: var(--odro-white, #FFFFFF); }
footer.sf .sf-btn-ghost:hover { background: var(--odro-white, #FFFFFF); color: var(--odro-navy, #0E2050); }

/* Bottom line */
footer.sf .sf-base {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  border-top: 1px solid rgba(148, 206, 242, 0.25); padding-top: 20px;
  font-size: 14px; color: #94CEF2;
}
footer.sf .sf-base p { margin: 0; }
footer.sf .sf-base ul { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
footer.sf .sf-base a { color: #94CEF2; text-decoration: underline; text-underline-offset: 3px; }
footer.sf .sf-base a:hover { color: var(--odro-white, #FFFFFF); }

/* Tablet: brand across the top, three link columns, Stay connected across the bottom */
@media (max-width: 1023px) {
  footer.sf .sf-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  footer.sf .sf-brand, footer.sf .sf-connect { grid-column: 1 / -1; }
  footer.sf .sf-connect .sf-btns { flex-direction: row; flex-wrap: wrap; max-width: none; }
}
/* Phone: two link columns side by side */
@media (max-width: 599px) {
  footer.sf .sf-inner { padding-top: 48px; gap: 36px; }
  footer.sf .sf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  /* Company and Log in side by side across the full width */
  footer.sf .sf-company {
    grid-column: 1 / -1; display: grid; gap: 8px 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; grid-auto-flow: column;
    align-items: start;
  }
  footer.sf .sf-company .sf-label:not(:first-child) { margin-top: 0; }
  footer.sf .sf-connect .sf-btns { flex-direction: column; }
  footer.sf .sf-base { flex-direction: column; }
}
