/*
 * The footer as the firm's directory (inc/footer.php, template-parts/footer-directory.php), 0.19.0.
 * Light surface, navy rule on top, four columns; guides hidden on phones (owner decision).
 */

.site-footer.agk-fd,
.agk-sheet .site-footer.agk-fd {
  padding-top: clamp(48px, 5vw, 64px);
  padding-bottom: 28px;
  background: var(--surface);
  box-shadow: inset 0 3px 0 var(--navy);
}

/*
 * 0.33.0 (owner request 2026-11-21, approved for desktop only; phones and small tablets keep the plain footer):
 * from 901px the footer is the last full screen. It fills the viewport (minus the sheet's bottom margin) and rises
 * over the sticky header (z-index 40), like a closing curtain; the shadow on its top edge gives the overlap depth.
 * While a menu of the header is open, the footer drops back under it, or it would cover the open menu.
 */
@media (min-width: 901px) {
  .site-footer.agk-fd,
  .agk-sheet .site-footer.agk-fd {
    position: relative;
    z-index: 41;
    box-sizing: border-box;
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    box-shadow: inset 0 3px 0 var(--navy), 0 -32px 64px -32px rgba(2, 40, 62, 0.45);
  }
  .agk-sheet .site-footer.agk-fd { min-height: calc(100vh - clamp(16px, 2vw, 32px)); min-height: calc(100svh - clamp(16px, 2vw, 32px)); }
  body.a360-menu-open .site-footer.agk-fd,
  body:has(.site-header :is(.has-sub.is-open, .has-sub:hover, .has-sub:focus-within)) .site-footer.agk-fd { z-index: auto; }
  .agk-fd .agk-fd__inner { display: flex; flex-direction: column; width: 100%; }
  .agk-fd .agk-fd__grid { margin-block: auto; padding-top: 24px; }
}

/* Studio credit, under the bottom bar. */
.agk-fd__credit {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline; /* 0.33.2 (owner): the logo's bottom edge sits on the text's baseline */
  gap: 10px 14px;
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}
.agk-fd__credit a { display: inline-block; line-height: 0; }
.agk-fd__credit img { display: inline-block; vertical-align: baseline; }
.agk-fd__credit img { width: auto; height: 24px; }
.agk-fd__credit a:hover img { opacity: 0.8; }
.cookie-banner-open .site-footer.agk-fd,
.agk-sheet.cookie-banner-open .site-footer.agk-fd { padding-bottom: calc(28px + var(--cookie-h, 96px)); }
.agk-fd .agk-fd__inner { gap: 0; }

.agk-fd__grid {
  display: grid;
  grid-template-columns: 1.25fr 1.2fr 0.8fr 1.25fr;
  gap: 48px;
  padding-bottom: 48px;
}
.agk-fd__h {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick-ink);
}

/* The firm */
.agk-fd__nobr { white-space: nowrap; }
.agk-fd__tag { margin: 22px 0; max-width: 20rem; font-size: 20px; font-weight: 500; line-height: 1.35; color: var(--navy); }
.agk-fd__direct { display: grid; gap: 6px; margin: 0 0 22px; font-size: 15px; }
.agk-fd__direct a { color: var(--navy); font-weight: 500; text-decoration: none; }
.agk-fd__direct a:hover { color: var(--brick-ink); }
.agk-fd__direct span { display: inline-block; width: 48px; font-size: 13px; font-weight: 400; color: var(--ink-muted); }
.agk-fd .agk-creds { justify-content: flex-start; }

/* Offices */
.agk-fd__office {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding: 10px 0;
  border-top: 1px solid var(--agk-line);
}
.agk-fd__office:last-child { border-bottom: 1px solid var(--agk-line); }
.agk-fd__city { font-size: 15px; font-weight: 500; color: var(--navy); }
.agk-fd__country { align-self: center; text-align: right; font-size: 12px; color: var(--ink-muted); }
.agk-fd__country em {
  margin-left: 6px;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brick-ink);
}
.agk-fd__office a { grid-column: 1 / -1; overflow-wrap: anywhere; font-size: 13px; color: var(--ink-soft); text-decoration: none; }
.agk-fd__office a:hover { color: var(--navy); text-decoration: underline; }

/* The firm (links) */
.agk-fd__links { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.agk-fd__links li { margin: 0; }
.agk-fd__links a { font-size: 15px; color: var(--ink-soft); text-decoration: none; }
.agk-fd__links a:hover { color: var(--navy); text-decoration: underline; }

/* Latest guides */
.agk-fd__guide {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--agk-line);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--navy);
  text-decoration: none;
}
.agk-fd__guide:hover { color: var(--brick-ink); }
.agk-fd__guide small { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: var(--ink-muted); }
.agk-fd__all { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--brick-ink); text-decoration: none; }
.agk-fd__all:hover { text-decoration: underline; }

/* Bottom bar */
.agk-fd__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--agk-line-strong);
  font-size: 13px;
  color: var(--ink-muted);
}
.agk-fd__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.agk-fd__legal a { font-size: 13px; font-weight: 500; color: var(--ink-muted); text-decoration: none; }
.agk-fd__legal a:hover { color: var(--navy); }

.agk-fd a:focus-visible,
.agk-fd button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (max-width: 1100px) {
  .agk-fd__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .agk-fd__grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 36px; }
  .agk-fd__guides { display: none; } /* owner 2026-11-19: no guides in the phone footer */
  .agk-fd__links { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .agk-fd__links a { display: inline-block; padding: 2px 0; }
  .agk-fd__tag { font-size: 18px; }
}
