/*
 * Homepage JELLi footer, isolated for the Noosa Headz case study.
 * Geometry and type follow the homepage footer; colours use the case palette.
 */
footer.jelli-footer {
  --jf-paper: #f3efe7;
  --jf-earth: #292d27;
  --jf-line: var(--jf-paper);
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--jf-line);
  background: var(--jf-earth);
  color: var(--jf-paper);
  font-family: "Figtree", sans-serif;
  -webkit-font-smoothing: antialiased;
}

footer.jelli-footer *,
footer.jelli-footer *::before,
footer.jelli-footer *::after {
  box-sizing: border-box;
}

footer.jelli-footer .jf-inner {
  display: flex;
  align-items: stretch;
  min-height: 108px;
  padding: 0;
  margin: 0;
}

footer.jelli-footer .jf-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  padding: 14px 28px 14px 20px;
  border-right: 2px solid var(--jf-line);
  flex-shrink: 0;
}

footer.jelli-footer .jf-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

footer.jelli-footer .jf-logo-svg {
  height: 120px;
  width: auto;
  display: block;
  filter: brightness(0) invert(93%) sepia(8%) saturate(235%) hue-rotate(350deg) brightness(103%) contrast(92%);
}

footer.jelli-footer .jf-tagline {
  font-family: "Figtree", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--jf-paper);
  line-height: 1.45;
  margin: 0;
  padding-left: 18px;
}

footer.jelli-footer .jf-links-wrap {
  flex: 1;
  display: flex;
  align-items: stretch;
  min-width: 0;
  background: var(--jf-earth);
}

footer.jelli-footer .jf-col {
  display: flex;
  flex-direction: column;
  border-right: 2px solid var(--jf-line);
}

footer.jelli-footer .jf-col:last-of-type {
  border-right: none;
  flex: 1;
}

footer.jelli-footer .jf-link {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 0 18px;
  color: var(--jf-paper);
  font-family: "Figtree", sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: normal;
  border-bottom: 2px solid var(--jf-line);
  white-space: nowrap;
  line-height: 1.1;
}

footer.jelli-footer .jf-link:first-child {
  border-top: 2px solid var(--jf-line);
}

footer.jelli-footer .jf-link:last-child {
  border-bottom: none;
}

footer.jelli-footer .jf-link-static {
  cursor: default;
}

footer.jelli-footer a.jf-link:hover {
  background: rgba(243, 239, 231, 0.12);
  color: #a4c1b6;
}

footer.jelli-footer .jf-smiley {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  font-size: 34px;
  color: var(--jf-earth);
  background: var(--jf-paper);
  flex-shrink: 0;
  line-height: 1;
  border-left: 2px solid var(--jf-line);
}

footer.jelli-footer .jf-mobile-logo-slot {
  display: none;
}

footer.jelli-footer .jf-mobile-privacy {
  display: block;
}

@media (max-width: 768px) {
  footer.jelli-footer,
  footer.jelli-footer .jf-inner {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  footer.jelli-footer .jf-inner {
    flex-wrap: wrap;
    min-height: auto;
  }

  footer.jelli-footer .jf-brand {
    width: 100%;
    border-right: none;
    border-bottom: 2px solid var(--jf-line);
    padding: 18px 20px;
  }

  footer.jelli-footer .jf-logo,
  footer.jelli-footer .jf-tagline,
  footer.jelli-footer .jf-brand {
    display: none;
  }

  footer.jelli-footer .jf-mobile-privacy {
    display: block !important;
  }

  footer.jelli-footer .jf-mobile-logo-slot {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-bottom: 2px solid var(--jf-line) !important;
    flex: 1;
    min-height: 0;
  }

  footer.jelli-footer .jf-mobile-logo-img {
    height: auto;
    width: 85%;
    max-width: 200px;
    display: block;
  }

  footer.jelli-footer .jf-links-wrap {
    flex: none;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    align-items: stretch;
    border-top: 2px solid var(--jf-line);
  }

  footer.jelli-footer .jf-col {
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 120px;
    border-right: 2px solid var(--jf-line);
    border-bottom: none;
  }

  footer.jelli-footer .jf-col:last-of-type {
    border-right: none;
    border-bottom: none;
    flex: 2 1 auto;
  }

  footer.jelli-footer .jf-link {
    display: block;
    flex: unset;
    padding: 12px 16px;
    font-size: 0.95rem;
    border-top: none;
    border-bottom: 2px solid var(--jf-line);
    border-right: none;
    white-space: normal;
    line-height: 1.2;
  }

  footer.jelli-footer .jf-link:first-child {
    border-top: none;
  }

  footer.jelli-footer .jf-link:last-child {
    border-bottom: none;
  }

  footer.jelli-footer .jf-smiley {
    width: 100%;
    height: 52px;
    border-left: none;
    border-top: 2px solid var(--jf-line);
    margin-left: 0;
  }
}
