/* ─── SITE FOOTER ─────────────────────────────────────────────────────────
   Shared footer used on every UK page. Mirrors the mega-menu's three
   columns (Estimate / Find / For accountants) so the footer earns its
   keep as a crawlable internal-link surface — most of the SEO value
   on a static directory site lives in these home → hub-page links.

   HTML lives inline per page so per-page customisation (e.g. adding
   a city link on a city hub) stays simple. CSS is shared so styling
   stays consistent.

   Page-scoped colour vars used: --bg / --text / --muted / --border. */

footer.tx-footer {
  background: var(--bg, #FAFAFE);
  border-top: 1px solid var(--border, #e8e8e3);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13.5px;
  color: var(--muted, #6b6b66);
  padding: 56px 40px 28px;
  margin-top: 80px;
}
.tx-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Brand cell ───────────────────────────────────────────────── */
.tx-footer-brand { display: flex; flex-direction: column; gap: 14px; }
.tx-footer-brand-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.tx-footer-brand-logo img { height: 30px; width: auto; display: block; }
.tx-footer-tagline {
  font-size: 13px;
  color: var(--muted, #6b6b66);
  line-height: 1.5;
  max-width: 280px;
  margin: 0;
}
.tx-footer-tagline em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--text, #0f0f0e);
}

/* ── "Powered by Workiro" partner block ──────────────────────────
   Sits below the TaxReady tagline inside the brand cell. Workiro
   handles AI matching + secure lead delivery — the footer is the
   right place to credit the platform without competing with the
   page's own CTAs. Classy/restrained: small uppercase mono label
   + the brand logo, separated from the tagline by a hairline. */
.tx-footer-partner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--border, #e8e8e3);
  text-decoration: none;
  align-self: flex-start;
  transition: opacity .18s ease;
}
.tx-footer-partner:hover { opacity: .72; }
.tx-footer-partner-label {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted, #6b6b66);
}
.tx-footer-partner-logo {
  height: 22px;
  width: auto;
  display: block;
}
/* Short note under the partner block — for the accountant who clicks
   into the footer out of curiosity. Two beats: who Workiro is, then
   the no-fee promise. Kept to ~2 lines so it doesn't bloat the
   footer for everyone else. */
.tx-footer-partner-note {
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted, #6b6b66);
  max-width: 290px;
}
/* Bold = weight only, inherits the paragraph's muted body colour
   so the emphasis is typographic, not a colour shift. */
.tx-footer-partner-note strong { font-weight: 600; }
/* About Workiro link — links are already distinct via colour /
   underline / arrow, so no explicit bold weight is applied. */
.tx-footer-partner-note a {
  color: var(--text, #0f0f0e);
  text-decoration: none;
  border-bottom: 1px solid var(--border, #e8e8e3);
  transition: border-color .15s ease;
}
.tx-footer-partner-note a:hover { border-bottom-color: var(--text, #0f0f0e); }

/* ── Link columns ─────────────────────────────────────────────── */
.tx-footer-col {}
.tx-footer-col h4 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text, #0f0f0e);
  margin: 0 0 16px;
}
.tx-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tx-footer-col a {
  font-size: 13.5px;
  color: var(--muted, #6b6b66);
  text-decoration: none;
  transition: color .15s ease;
}
.tx-footer-col a:hover { color: var(--text, #0f0f0e); }

/* ── Footer accent on the "For accountants" column ───────────────
   Subtle pink bullet before the heading + gradient text on the
   primary link so accountants reading the footer notice their
   path. Reused via the .tx-footer-col--accent modifier so other
   columns stay unstyled. */
.tx-footer-col--accent h4 {
  display: inline-flex; align-items: center; gap: 8px;
}
.tx-footer-col--accent h4::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, #E77481, #9B3FC7);
  box-shadow: 0 0 8px rgba(231,116,129,.5);
  flex-shrink: 0;
}
/* Primary link in the accent column reads as a soft outlined button —
   1px border + pill rounding + light hover wash. Elevates it above the
   plain text links below so a firm-owner skimming the footer sees the
   claim entry point as an action, not another navigation item. */
.tx-footer-col--accent a.is-primary {
  color: var(--text, #0f0f0e);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--border, #e8e8e3);
  border-radius: 8px;
  transition: border-color .15s ease, background .15s ease;
}
.tx-footer-col--accent a.is-primary:hover {
  border-color: rgba(231,116,129,.55);
  background: rgba(231,116,129,.05);
}
.tx-footer-col--accent a.is-primary::after {
  content: '→';
  font-weight: 700;
  color: #E77481;
  transition: transform .15s ease;
  display: inline-block;
}
.tx-footer-col--accent a.is-primary:hover::after {
  transform: translateX(3px);
}

/* ── Bottom bar — copyright + legal ──────────────────────────── */
.tx-footer-bar {
  max-width: 1200px;
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--border, #e8e8e3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--muted, #6b6b66);
}
.tx-footer-bar a {
  color: var(--muted, #6b6b66);
  text-decoration: none;
  transition: color .15s ease;
}
.tx-footer-bar a:hover { color: var(--text, #0f0f0e); }
.tx-footer-bar-legal { display: flex; gap: 14px; flex-wrap: wrap; }
.tx-footer-bar-legal span { color: var(--border, #e8e8e3); }
/* Disclaimer line ("Estimates only — not financial or tax advice.")
   sits darker than the surrounding muted bar so the legal point
   doesn't disappear into footer fine-print. */
.tx-footer-bar-legal .tx-footer-disclaimer { color: var(--text, #0f0f0e); font-weight: 600; }

/* ── Mobile stack ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  footer.tx-footer { padding: 44px 24px 24px; margin-top: 56px; }
  .tx-footer-inner { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .tx-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .tx-footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .tx-footer-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
}
