/* 07-footer.css - P6 footer. Every selector begins with .s-footer.
   .s-footer__card gets position/z-index/background from base.css
   (coordinator note there: main, .s-footer__card share the footer-lift
   positioning context), so this file only adds the remaining declarations. */

.s-footer__card {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
}

.s-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}

.s-footer__brand {
  min-width: 0;
}

.s-footer__motto {
  font-size: 16px;
  color: var(--ink-72);
  max-width: 320px;
  margin: 16px 0 24px;
}

.s-footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.s-footer__links a {
  font-size: 16px;
  color: var(--ink-64);
  text-decoration: none;
}
.s-footer__links a:hover,
.s-footer__links a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--cedar);
}

.s-footer__contact {
  min-width: 0;
}

.s-footer__legal {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 20px;
}

/* underlay lift reveal (the Cardinal move, no JS required) */

.s-footer__under {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: var(--footer-under-h);
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  overflow: hidden;
}

/* no position/z-index here on purpose: the art must paint behind the
   stickers (matches the CTA band). It is a plain in-flow flex child that
   already paints above the underlay's yellow background; giving it a
   positive z-index would put it above the z-index:auto stickers instead. */

.s-footer__under .s-footer__f1 {
  position: absolute;
  left: 8%;
  top: 28px;
}
.s-footer__under .s-footer__f2 {
  position: absolute;
  right: 12%;
  top: 24px;
}
.s-footer__under .s-footer__f3 {
  position: absolute;
  right: 30%;
  bottom: 20px;
}

@media (max-width: 1199px) {
  .s-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .s-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 809px) {
  .s-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .s-footer__brand {
    grid-column: auto;
  }
  .s-footer__legal {
    flex-direction: column;
    gap: 8px;
  }
  .s-footer__f3 {
    display: none;
  }
  .s-footer__f1,
  .s-footer__f2 {
    transform: rotate(var(--rot)) scale(0.75);
  }
}
