/* Ankored · Footer (ank-site-footer)
   Colors come from the module's Style tab (--ank-sf-*), set in module.html. */

.ank-site-footer {
  --ank-sf-line: rgba(var(--ank-sf-text-rgb), .2);
  --ank-sf-soft: rgba(var(--ank-sf-text-rgb), .78);
  padding: 96px 0 32px;
  background: var(--ank-sf-bg);
  color: var(--ank-sf-text);
}

.ank-site-footer p,
.ank-site-footer ul,
.ank-site-footer li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The theme colors footer li/span/p with its own footer text color */
.ank-site-footer li,
.ank-site-footer span {
  color: inherit;
}

.ank-site-footer a {
  color: inherit;
  text-decoration: none;
}

.ank-site-footer a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Headline + button */

/* Headline column wraps on its own; the button keeps the second column */
.ank-site-footer__cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--ank-sf-line);
}

.ank-site-footer__headline {
  color: var(--ank-sf-text);
  font-family: var(--ank-sf-heading-font);
  font-size: clamp(34px, 4.25vw, 56px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1;
  text-wrap: balance;
}

.ank-site-footer__headline--outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ank-sf-text);
}

/* Fallback where text-stroke isn't supported */
@supports not (-webkit-text-stroke: 1px black) {
  .ank-site-footer__headline--outline {
    color: var(--ank-sf-text);
  }
}

.ank-site-footer__headline em {
  color: var(--ank-sf-accent);
  font-size: calc(var(--ank-accent-scale, 1.25) * 1em);
  line-height: .8;
  -webkit-text-stroke: 0;
}

.ank-site-footer__cta .ank-btn {
  justify-self: end;
  white-space: nowrap;
}

.ank-site-footer__cta .ank-btn__icon {
  width: 18px;
  line-height: 0;
}

.ank-site-footer__cta .ank-btn__icon svg {
  display: block;
  width: 100%;
  fill: currentColor;
}

/* Logo, social, menu columns */

/* Logo left, menu columns pushed to the container's right edge */
.ank-site-footer__main {
  display: flex;
  justify-content: space-between;
  gap: 48px 80px;
  padding: 56px 0 64px;
}

.ank-site-footer__logo img {
  display: block;
  width: auto;
  max-width: 200px;
  max-height: 44px;
}

.ank-site-footer__logo--white img {
  filter: brightness(0) invert(1);
}

.ank-site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.ank-site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ank-sf-line);
  border-radius: 50%;
  transition: background-color .15s ease, border-color .15s ease;
}

.ank-site-footer__social-link svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.ank-site-footer__social-link:hover,
.ank-site-footer__social-link:focus {
  border-color: var(--ank-sf-text);
  background-color: rgba(var(--ank-sf-text-rgb), .1);
  color: var(--ank-sf-text);
}

/* Columns of stacked sections; the column count is set by module.html */
.ank-site-footer__nav {
  display: grid;
  grid-template-columns: repeat(var(--ank-sf-cols, 3), max-content);
  gap: 40px clamp(48px, 6vw, 96px);
}

.ank-site-footer__section + .ank-site-footer__section {
  margin-top: 44px;
}

.ank-site-footer .ank-site-footer__col-title {
  margin: 0 0 20px;
  color: var(--ank-sf-heading);
  font-family: var(--ank-sf-heading-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ank-site-footer__links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.ank-site-footer__links li {
  line-height: 1.4;
}

.ank-site-footer .ank-site-footer__link {
  color: var(--ank-sf-link);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  transition: color .15s ease;
}

.ank-site-footer .ank-site-footer__link:hover,
.ank-site-footer .ank-site-footer__link:focus {
  color: var(--ank-sf-link-hover);
}

/* Menu items without a link inside a column */
.ank-site-footer .ank-site-footer__sub-title {
  color: var(--ank-sf-heading);
  font-size: 14px;
  font-weight: 600;
}

.ank-site-footer .ank-site-footer__sub-title:not(:first-child) {
  margin-top: 14px;
}

/* Utility row */

.ank-site-footer__utility {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 28px;
  border-top: 1px solid var(--ank-sf-line);
  font-size: 14px;
}

.ank-site-footer__copyright {
  color: var(--ank-sf-soft);
}

.ank-site-footer__utility-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.ank-site-footer .ank-site-footer__utility-link {
  color: var(--ank-sf-link);
  font-weight: 500;
  transition: color .15s ease;
}

.ank-site-footer .ank-site-footer__utility-link:hover,
.ank-site-footer .ank-site-footer__utility-link:focus {
  color: var(--ank-sf-link-hover);
}

@media (max-width: 1024px) {
  .ank-site-footer {
    padding-top: 72px;
  }

  .ank-site-footer__main {
    flex-direction: column;
    gap: 40px;
  }

}

@media (max-width: 767px) {
  .ank-site-footer {
    padding-top: 56px;
  }

  .ank-site-footer__cta {
    padding-bottom: 40px;
  }

  .ank-site-footer__cta {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .ank-site-footer__cta .ank-btn {
    justify-self: stretch;
    justify-content: center;
  }

  .ank-site-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ank-site-footer__utility {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ank-site-footer * {
    transition: none !important;
  }
}

@media (max-width: 480px) {
  .ank-site-footer__nav {
    grid-template-columns: minmax(0, 1fr);
  }
}
