/* AZ Design System — footer colophon bar
   Authored addition: the captured az-site.css covers the header, the
   4-column footer grid (name/role, Areas of Practice, Frameworks,
   Profile + GPT), but not the closing copyright/CTA row. Not present in
   the exported design bundle, so styled here to match the same flat,
   hairline system rather than folded into the verbatim az-site.css copy. */

.az-site-footer__bottom {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--az-token-action-primary-text) 14%, transparent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.az-site-footer__bottom p {
  margin: 0;
  font-family: var(--az-font-h6-family);
  font-size: var(--az-type-small);
  letter-spacing: var(--az-tracking-label);
  text-transform: uppercase;
  color: color-mix(in srgb, var(--az-token-action-primary-text) 68%, transparent);
}

/* ------------------------------------------------------------------ */
/* Footer grid refinements — parity with the DS export's Chrome.jsx    */
/* SiteFooter: 1.6/1/1/0.9 grid, 28px serif name, tracked support-blue */
/* role line, muted column labels, 82%-white links on 10px rhythm.     */
/* Loaded after az-site.css; overrides its footer defaults.            */
/* ------------------------------------------------------------------ */
.az-site-footer {
  border-top: 1px solid var(--az-color-border);
}

.az-site-footer__grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 40px;
}

.az-site-footer__intro-col {
  gap: 0;
}

.az-site-footer__name {
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 6px;
}

.az-site-footer__role {
  font-family: var(--az-font-h6-family);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: var(--az-tracking-label-strong);
  text-transform: uppercase;
  color: var(--az-color-accent-support-inverse, #3d94f6);
  margin: 0 0 18px;
}

.az-site-footer__note {
  font-size: 0.95rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--az-token-action-primary-text) 62%, transparent);
  max-width: 34ch;
}

.az-site-footer__section {
  gap: 1rem;
}

.az-site-footer__label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: var(--az-tracking-label-strong);
  /* 55% white (up from the DS export's 45%) — the minimum step that
     clears 4.5:1 on the inverse band while keeping the label muted. */
  color: color-mix(in srgb, var(--az-token-action-primary-text) 55%, transparent);
}

.az-site-footer__nav--stack {
  gap: 0.625rem;
}

.az-site-footer__nav--stack .wp-block-navigation-item__content {
  font-size: 0.92rem;
  line-height: 1.4;
  color: color-mix(in srgb, var(--az-token-action-primary-text) 82%, transparent);
}

.az-site-footer__nav--stack .wp-block-navigation-item__content:hover {
  color: var(--az-token-action-primary-text);
}

/* Contact sits directly under LinkedIn on the same 10px rhythm. */
.az-site-footer__nav--profile {
  margin-top: 0.625rem;
}

/* ------------------------------------------------------------------ */
/* Footer responsive reflow. The 4-column grid above wins the cascade  */
/* over az-site.css's mobile rules (this file loads later), so the     */
/* breakpoints must be restated here: 4 cols desktop → 2 cols tablet   */
/* (intro spanning the full row) → 1 col mobile.                       */
/* ------------------------------------------------------------------ */
@media (min-width: 782px) and (max-width: 1100px) {
  .az-site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 2.5rem;
  }

  .az-site-footer__intro-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 781px) {
  .az-site-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .az-site-footer__name {
    font-size: 24px;
  }

  .az-site-footer__note {
    max-width: none;
  }
}

/* The "Start a project" CTA was removed from the design (July 2026).
   The footer template part is customised in the Site Editor DB, which
   overrides parts/footer.html — so the retired link is switched off
   here too. display:none also removes it from the accessibility tree. */
.az-site-footer .az-site-footer__cta,
.az-site-footer__bottom a[href="/contact/"]:not(.wp-block-navigation-item__content) {
  display: none !important;
}

/* ------------------------------------------------------------------ */
/* Column alignment: the label→links offset must be identical in every */
/* footer column. Measured live: WP's flow layout adds a 19.2px        */
/* margin-block-start to the nav in some columns while the --profile   */
/* nav carried its own 10px margin — so first links sat on different   */
/* rows. The section's 16px grid gap is the single source of spacing;  */
/* nav blocks carry no margin of their own.                            */
.az-site-footer__section .az-site-footer__nav--stack,
.az-site-footer__section .az-site-footer__nav--profile,
.az-site-footer__section nav.wp-block-navigation {
  margin-top: 0;
  margin-bottom: 0;
}
