/* ZUGA footer — orange band, newsletter, menus, giant wordmark. */

/* Paint above the last homepage band so the wavy top edge sits on top. */
.section-zuga-footer {
  position: relative;
  z-index: 3;
}

.zuga-footer {
  position: relative;
  padding-top: clamp(6rem, 8vw, 10rem);
  background: var(--zuga-footer-bg, var(--zuga-orange));
  color: var(--zuga-footer-text, var(--zuga-cream));
  overflow-x: clip;
}

.zuga-footer a {
  color: inherit;
}

/* --------------------------------------------------------------------------
   Top: signup + menu columns
   -------------------------------------------------------------------------- */
.zuga-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(4rem, 6vw, 8rem);
}

.zuga-footer__heading {
  --zuga-heading: var(--zuga-footer-text);

  font-size: clamp(3.6rem, 4.6vw, 6.4rem);
}

.zuga-footer__text {
  max-width: 44rem;
  margin: 1.6rem 0 2.4rem;
  font-family: var(--zuga-font);
  font-size: 1.5rem;
  line-height: 1.5;
}

.zuga-footer__text > :first-child {
  margin-top: 0;
}

.zuga-footer__text > :last-child {
  margin-bottom: 0;
}

.zuga-footer__field {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 48rem;
}

.zuga-footer__input {
  flex: 1 1 22rem;
  min-height: 4.8rem;
  padding: 0 2rem;
  border: 0.15rem solid var(--zuga-footer-text);
  border-radius: 99rem;
  background: rgba(255, 255, 255, 0.12);
  font-family: var(--zuga-font);
  font-size: 1.6rem; /* 16px minimum, or iOS Safari zooms the page on focus */
  color: var(--zuga-footer-text);
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.zuga-footer__input::placeholder {
  color: inherit;
  opacity: 0.75;
}

.zuga-footer__input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 0.3rem var(--zuga-yellow);
}

/* On orange the default orange outline vanishes; use a deeper burnt edge. */
.zuga-footer__submit {
  min-height: 4.8rem;
  padding: 0 2.4rem;
  border-color: #9e300b;
  box-shadow: 0 0.3rem 0 #9e300b;
}

@media (hover: hover) and (pointer: fine) {
  .zuga-footer__submit:hover {
    box-shadow: 0 0.5rem 0 #9e300b;
  }
}

.zuga-footer__message {
  margin: 1.2rem 0 0;
  font-family: var(--zuga-font);
  font-size: 1.4rem;
  font-weight: 600;
}

.zuga-footer__social {
  display: flex;
  gap: 0.6rem;
  margin-top: 2.8rem;
}

.zuga-footer__social .list-social__link {
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  padding: 0;
  border: 0.15rem solid var(--zuga-footer-text);
  border-radius: 50%;
  color: var(--zuga-footer-text);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.4s var(--zuga-ease-spring);
}

@media (hover: hover) and (pointer: fine) {
  .zuga-footer__social .list-social__link:hover {
    background: var(--zuga-yellow);
    color: var(--zuga-orange);
    transform: translateY(-0.3rem) rotate(-8deg);
  }
}

.zuga-footer__social .svg-wrapper {
  width: 1.8rem;
  height: 1.8rem;
}

.zuga-footer__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 3.2rem 2.4rem;
  align-content: start;
}

.zuga-footer__col-heading {
  margin: 0 0 1.4rem;
  font-family: var(--zuga-font);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zuga-yellow);
}

.zuga-footer__links {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zuga-footer__link {
  font-family: var(--zuga-font);
  font-size: 1.6rem;
  font-weight: 500;
  text-decoration: none;
}

/* Underline draws in from the left. */
.zuga-footer__link span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 0.15rem no-repeat;
  transition: background-size 0.35s var(--zuga-ease-out);
}

.zuga-footer__link[aria-current] span {
  background-size: 100% 0.15rem;
}

@media (hover: hover) and (pointer: fine) {
  .zuga-footer__link:hover span {
    background-size: 100% 0.15rem;
  }
}

.zuga-footer__col-text {
  font-family: var(--zuga-font);
  font-size: 1.5rem;
  line-height: 1.5;
}

.zuga-footer__col-text > :first-child {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   Giant wordmark — letters rise in one by one, bounce on hover.
   -------------------------------------------------------------------------- */
/* The traced can wordmark (snippets/zuga-wordmark.liquid), full content width.
   The wrapper clips, so letters rise up from behind the bottom bar. */
.zuga-footer__wordmark {
  margin-top: clamp(4rem, 6vw, 8rem);
  padding-top: 2rem; /* room for the hover bounce */
  overflow: hidden;
  color: var(--zuga-footer-text);
  line-height: 0;
}

.zuga-footer__wordmark .zuga-wordmark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.zuga-footer__wordmark .zuga-wordmark__letter {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition:
    transform 0.9s var(--zuga-ease-spring),
    fill 0.2s ease;
  transition-delay: calc(var(--zuga-i) * 0.08s);
}

.zuga-motion .zuga-footer__wordmark .zuga-wordmark__letter {
  transform: translateY(115%);
}

.zuga-motion .zuga-footer__wordmark.is-inview .zuga-wordmark__letter {
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .zuga-footer__wordmark .zuga-wordmark__letter:hover {
    fill: var(--zuga-yellow);
    transform: translateY(-6%) rotate(-4deg);
    transition-delay: 0s;
  }
}

/* --------------------------------------------------------------------------
   Bottom bar
   -------------------------------------------------------------------------- */
.zuga-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem 3rem;
  padding-top: 2rem;
  padding-bottom: 2.4rem;
  border-top: 0.1rem solid rgba(255, 245, 181, 0.35);
  font-family: var(--zuga-font);
  font-size: 1.3rem;
}

.zuga-footer__copyright {
  margin: 0;
}

.zuga-footer__copyright a,
.zuga-footer__policies a {
  text-decoration: none;
}

.zuga-footer__policies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (hover: hover) and (pointer: fine) {
  .zuga-footer__policies a:hover {
    text-decoration: underline;
  }
}

.zuga-footer__payments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zuga-footer__payment {
  display: block;
  width: 3.8rem;
  height: 2.4rem;
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */
@media screen and (max-width: 749px) {
  .zuga-footer__top {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  .zuga-motion .zuga-footer__wordmark .zuga-wordmark__letter {
    transform: none;
  }

  .zuga-footer__wordmark .zuga-wordmark__letter,
  .zuga-footer__social .list-social__link,
  .zuga-footer__link span {
    transition: none;
  }
}
