/* ── ISA site footer ────────────────────────────────────────────
   Loads on every page, so every rule stays inside the
   .isa-footer scope — no element or global selectors.
   Mirrors the approach in site-header.css.
──────────────────────────────────────────────────────────────── */

.isa-footer,
.isa-footer *,
.isa-footer *::before,
.isa-footer *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.isa-footer {
  /* The green is fixed rather than themed: the footer carries ISA branding
     regardless of which data-theme the directory is running. */
  background: #093c29;
  color: #d7e2da;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 17px;
  line-height: 1.6;
  margin-top: 10rem;
}

.isa-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 64px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.isa-footer__heading {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 28px;
}

.isa-footer__text {
  max-width: 46em;
}

.isa-footer__logo {
  height: auto;
  width: 260px;
  max-width: 100%;
  display: block;
  margin-top: 32px;
}

/* ── Useful links ───────────────────────────────────────────── */

.isa-footer__links {
  list-style: none;
}

.isa-footer__links li + li {
  margin-top: 6px;
}

.isa-footer__link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: #d7e2da;
  text-decoration: none;
  border: none;
  box-shadow: none;
  transition: color .12s;
}
.isa-footer__link:hover,
.isa-footer__link:focus {
  color: #fff;
  text-decoration: none;
}

.isa-footer__link::after {
  content: "\203A"; /* › */
  font-size: 1.1em;
  line-height: 1;
}

/* ── Contact ────────────────────────────────────────────────── */

.isa-footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: #d7e2da;
  text-decoration: none;
  border: none;
  box-shadow: none;
}
.isa-footer__phone:hover { color: #fff; text-decoration: none; }

.isa-footer__phone svg {
  flex-shrink: 0;
  width: 16px;
  height: 20px;
  fill: currentColor;
}

/* ── Bottom bar ─────────────────────────────────────────────── */

.isa-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.isa-footer__bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.isa-footer__copyright {
  font-size: 16px;
}

.isa-footer__social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto; /* keeps social + top button grouped at the right */
}

.isa-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d7e2da;
  border: none;
  box-shadow: none;
  transition: color .12s;
}
.isa-footer__social-link:hover { color: #fff; }

.isa-footer__social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.isa-footer__top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-left: 8px;
  background: #fff;
  color: #093c29;
  border: none;
  box-shadow: none;
  text-decoration: none;
  transition: background .12s;
}
.isa-footer__top:hover { background: #e6f4ec; }
.isa-footer__top:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.isa-footer__top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 900px) {
  .isa-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 56px 24px 48px;
  }
  .isa-footer__col--about { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .isa-footer { font-size: 16px; }

  .isa-footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .isa-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  /* The auto margin groups social + top on one row on desktop; stacked it
     would push the block to the right edge instead. */
  .isa-footer__social { margin-left: 0; }

  .isa-footer__top { margin-left: 0; }
}
