/*
 * Footer refinements (site-wide).
 * Reuses the --ahorn-* tokens from header.css. Accessibility mode keeps the
 * theme's own high-contrast footer.
 */

html:not(.js-ia-accessibility-active) .c-footer {
  --footer-color: rgba(255, 255, 255, .92);
  --footer-border-color: rgba(255, 255, 255, .12);
  --footer-bottom-color: rgba(255, 255, 255, .7);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 255, 255, .07) 0%, transparent 50%),
    linear-gradient(165deg, var(--ahorn-green-900) 0%, #0c5530 55%, var(--ahorn-green-700) 100%);
  border-radius: 32px 32px 0 0;
  margin-top: 48px;
  overflow: hidden;
  position: relative;
}

/* thin highlight along the rounded top edge */
html:not(.js-ia-accessibility-active) .c-footer::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  content: "";
  height: 1px;
  left: 10%;
  position: absolute;
  right: 10%;
  top: 0;
}

html:not(.js-ia-accessibility-active) .c-footer .c-footer__body {
  padding: 64px 0 32px;
}

/* ---------- Column headings ---------- */

html:not(.js-ia-accessibility-active) .c-footer .c-footer__main__details > .c-title,
html:not(.js-ia-accessibility-active) .c-footer .nav--footer > li > a {
  color: rgba(255, 255, 255, .6);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

html:not(.js-ia-accessibility-active) .c-footer .nav--footer > li > a {
  pointer-events: none;
}

html:not(.js-ia-accessibility-active) .c-footer .c-footer__main__details h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

/* ---------- Contact details ---------- */

html:not(.js-ia-accessibility-active) .c-footer .c-footer__main__details__info .ia-contact-info-item {
  font-size: .875rem;
}

html:not(.js-ia-accessibility-active) .c-footer .c-footer__main__details__info .ia-contact-info-item__icon {
  align-items: center;
  background: rgba(255, 255, 255, .1);
  border-radius: 50%;
  flex-shrink: 0;
  height: 34px;
  justify-content: center;
  width: 34px;
}

html:not(.js-ia-accessibility-active) .c-footer .c-footer__main__details__info .ia-contact-info-item__icon svg {
  height: 20px;
  width: 20px;
}

html:not(.js-ia-accessibility-active) .c-footer .c-footer__main__details__info a {
  transition: opacity .2s ease;
}

html:not(.js-ia-accessibility-active) .c-footer .c-footer__main__details__info a:hover {
  opacity: .75;
}

html:not(.js-ia-accessibility-active) .c-footer .c-ia-social-icons__item {
  transition: transform .25s var(--ahorn-ease), opacity .2s ease;
}

html:not(.js-ia-accessibility-active) .c-footer .c-ia-social-icons__item:hover {
  opacity: .85;
  transform: translateY(-2px);
}

/* ---------- Menu columns ---------- */

html:not(.js-ia-accessibility-active) .c-footer .nav--footer .sub-menu .menu-item {
  font-size: .9rem;
}

html:not(.js-ia-accessibility-active) .c-footer .nav--footer .sub-menu .menu-item a {
  color: rgba(255, 255, 255, .85);
  display: inline-block;
  transition: color .2s ease, transform .25s var(--ahorn-ease);
}

html:not(.js-ia-accessibility-active) .c-footer .nav--footer .sub-menu .menu-item a:hover {
  color: #fff;
  transform: translateX(3px);
}

/* accessibility toggle as an outlined pill */
html:not(.js-ia-accessibility-active) .c-footer .c-footer__bottom-widgets .c-ia-accessibility {
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 6px 16px 6px 8px;
  transition: background-color .2s ease, border-color .2s ease;
  width: max-content;
}

html:not(.js-ia-accessibility-active) .c-footer .c-footer__bottom-widgets .c-ia-accessibility:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .4);
}

/* ---------- Legal footnotes ---------- */

html:not(.js-ia-accessibility-active) .c-footer .c-footer__high-digits {
  background: rgba(0, 0, 0, .14);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  margin-top: 16px;
  opacity: .85;
  padding: 24px 28px;
}

/* ---------- Bottom bar ---------- */

html:not(.js-ia-accessibility-active) .c-footer .c-footer__bottom {
  gap: 16px;
}

html:not(.js-ia-accessibility-active) .c-footer .c-footer__bottom > svg {
  height: 56px;
  opacity: .8;
  width: 56px;
}

@media (max-width: 767.98px) {
  html:not(.js-ia-accessibility-active) .c-footer {
    border-radius: 24px 24px 0 0;
  }

  html:not(.js-ia-accessibility-active) .c-footer .c-footer__body {
    padding-top: 48px;
  }

  html:not(.js-ia-accessibility-active) .c-footer .c-footer__high-digits {
    padding: 18px;
  }
}
