/* ============================================================
   WTHEORY — SITE-WIDE FOOTER ("Ledger" brand system)
   Matches the landing page and the Access Canada app: ink panel,
   paper text, maple-vermilion accent, Newsreader / Schibsted
   Grotesk / IBM Plex Mono. Self-contained so it renders the same
   on every page that injects /components/footer*.html.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300..600;1,6..72,300..600&family=Schibsted+Grotesk:wght@400..700&family=IBM+Plex+Mono:wght@400;500&display=swap");

.wt-footer {
  --f-ink: #1c1a17;
  --f-paper: #f6f2ea;
  --f-text: #e6e0d4;
  --f-dim: #cfc7b6;
  --f-rule: rgba(246, 242, 234, 0.14);
  --f-accent: #ff7a57;
  --f-serif: "Newsreader", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --f-sans: "Schibsted Grotesk", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  position: relative;
  display: block;
  overflow: hidden;
  padding: clamp(72px, 9vw, 128px) 0 32px;
  background:
    radial-gradient(60% 70% at 0% 0%, rgba(182, 59, 31, 0.22), transparent 65%),
    radial-gradient(40% 50% at 100% 100%, rgba(124, 195, 207, 0.08), transparent 70%),
    var(--f-ink);
  color: var(--f-text);
  font-family: var(--f-sans);
  line-height: 1.5;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

.wt-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.09;
  mix-blend-mode: screen;
}

.wt-footer *,
.wt-footer *::before,
.wt-footer *::after { box-sizing: border-box; }

/* Zero-specificity reset so component rules below always win */
:where(.wt-footer) :where(p, ul, li, blockquote, cite, nav) { margin: 0; padding: 0; }

.wt-footer a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.wt-footer a:focus-visible { outline: 2px solid var(--f-accent); outline-offset: 3px; }

.wt-footer__inner {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

.wt-footer__heading {
  margin-bottom: 18px !important;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--f-dim);
}

/* Top: quote + contact */
.wt-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  align-items: end;
  gap: 40px 64px;
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--f-rule);
}

.wt-footer__quote p {
  max-width: 24ch;
  font-family: var(--f-serif);
  font-size: clamp(32px, 4.2vw, 64px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--f-paper);
}

.wt-footer__quote cite {
  display: block;
  margin-top: 20px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--f-accent);
}

.wt-footer__email {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(246, 242, 234, 0.4);
  font-family: var(--f-serif);
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.015em;
  color: var(--f-paper);
}

.wt-footer__email span { color: var(--f-accent); transition: transform 0.25s ease; }
.wt-footer__email:hover { border-bottom-color: var(--f-accent); }
.wt-footer__email:hover span { transform: translateX(4px); }

/* Middle: brand + link columns */
.wt-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.55fr) minmax(0, 0.65fr);
  gap: 40px 64px;
  padding: clamp(48px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--f-rule);
}

.wt-footer__name {
  font-family: var(--f-serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--f-paper);
}

.wt-footer__name em { font-style: italic; font-weight: 300; }

.wt-footer__desc {
  max-width: 40ch;
  margin-top: 12px !important;
  font-size: 15px;
  line-height: 1.6;
  color: var(--f-text);
}

.wt-footer__links { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.wt-footer__links li { list-style: none; }

.wt-footer__links a {
  position: relative;
  display: inline-block;
  padding: 5px 0;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--f-paper);
}

.wt-footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: var(--f-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.wt-footer__links a:hover { color: #fff; }
.wt-footer__links a:hover::after { transform: scaleX(1); }

/* Service areas */
.wt-footer__areas { padding: 36px 0; border-bottom: 1px solid var(--f-rule); }

.wt-footer__areas .wt-footer__heading { margin-bottom: 10px !important; }

.wt-footer__areas-list {
  max-width: 110ch;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--f-text);
}

/* Base */
.wt-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 28px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--f-dim);
}

.wt-footer__top-link { text-transform: uppercase; letter-spacing: 0.14em; }
.wt-footer__top-link:hover { color: var(--f-paper); }

/* Breathing room above the footer on /sites pages */
#footer-container > .wt-footer { margin-top: 6rem; }

@media (max-width: 900px) {
  .wt-footer__top { grid-template-columns: 1fr; }
  .wt-footer__grid { grid-template-columns: 1fr 1fr; }
  .wt-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .wt-footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .wt-footer__email { font-size: 22px; }
  #footer-container > .wt-footer { margin-top: 4rem; }
}
