/* ===== Jaro Spark — footer =====
   Sleeping Oso, soft glow, pill links. Change the colours here. */
footer.jf {
  --jf-text: #f3ecff;
  --jf-soft: #c9b8f2;
  --jf-gold: #ffc94a;
  --jf-edge: rgba(200, 170, 255, .28);
  position: relative;
  z-index: 2;
  padding: clamp(36px, 5vw, 56px) 16px 22px;
  text-align: center;
  background: transparent;           /* sits on your clouds and flowers */
  color: var(--jf-text);
  font-family: "Fredoka", "Outfit", system-ui, sans-serif;
  overflow-x: clip;                  /* no side scroll, but the glow may spill upwards */
}

/* moon-like glow behind Oso */
.jf-glow {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(560px, 120vw);
  aspect-ratio: 1;
  transform: translate(-50%, -30%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 120, .22), rgba(196, 120, 255, .14) 40%, transparent 68%);
  pointer-events: none;
  animation: jf-breathe 6s ease-in-out infinite;
}
@keyframes jf-breathe { 50% { opacity: .65; transform: translate(-50%, -30%) scale(1.06); } }

/* sleeping Oso */
.jf-bear { position: relative; width: clamp(190px, 22vw, 250px); margin: 0 auto; }
.jf-bear-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(10, 3, 34, .55));
  animation: jf-float 5s ease-in-out infinite;
}
@keyframes jf-float { 50% { transform: translateY(-7px); } }
.jf-bear-shadow {
  display: block;
  width: 70%;
  height: 16px;
  margin: 4px auto 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(230, 210, 255, .45), transparent 70%);
  animation: jf-shadow 5s ease-in-out infinite;
}
@keyframes jf-shadow { 50% { transform: scaleX(.85); opacity: .7; } }

/* Z z z floating up */
.jf-z {
  position: absolute;
  z-index: 2;
  left: 34%;
  top: 6%;
  font-family: "Lilita One", "Fredoka", sans-serif;
  color: #e6d6ff;
  text-shadow: 0 0 10px rgba(200, 160, 255, .8);
  opacity: 0;
  animation: jf-zzz 3.6s ease-in infinite;
}
.jf-z--1 { font-size: 26px; }
.jf-z--2 { font-size: 20px; animation-delay: 1.2s; }
.jf-z--3 { font-size: 15px; animation-delay: 2.4s; }
@keyframes jf-zzz {
  0%   { opacity: 0; transform: translate(0, 0) rotate(-10deg); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-34px, -70px) rotate(12deg); }
}

/* words */
.jf-tagline {
  position: relative;
  margin: 18px 0 4px;
  font-family: "Lilita One", "Fredoka", sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: .01em;
  background: linear-gradient(180deg, #fff6c2, var(--jf-gold) 60%, #ff9b2f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 #5b1f86);
}
.jf-tagline span { -webkit-text-fill-color: initial; color: #fff3c4; }
.jf-sub { position: relative; margin: 0 auto 24px; max-width: 42ch; font-family: "Outfit", sans-serif; font-size: 15px; line-height: 1.5; color: var(--jf-soft); }

/* main links: one glass pill bar */
.jf-nav {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--jf-edge);
  box-shadow: 0 10px 30px rgba(10, 2, 40, .35), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.jf-nav a {
  padding: 10px 20px;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.jf-nav a:hover { background: linear-gradient(135deg, #8b5cf6, #e04cf0); transform: translateY(-1px); }
.jf-nav a:focus-visible, .jf-legal a:focus-visible, .jf-top:focus-visible { outline: 3px solid #7cf3c4; outline-offset: 2px; }

/* bottom row: legal links · copyright · back to top */
.jf-bottom {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 20px;
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 18px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(255, 201, 74, .55), transparent) 1;
}
.jf-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; justify-self: start; }
.jf-legal a { color: var(--jf-soft); font-family: "Outfit", sans-serif; font-size: 14px; font-weight: 500; text-decoration: none; }
.jf-legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.jf-copy { margin: 0; font-family: "Outfit", sans-serif; font-size: 13px; letter-spacing: .04em; color: #a996d8; }
.jf-top {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--jf-edge);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.jf-top svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.jf-top:hover { transform: translateY(-3px); background: linear-gradient(135deg, #8b5cf6, #e04cf0); }

/* phones */
@media (max-width: 720px) {
  .jf-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .jf-legal, .jf-top { justify-self: center; }
  .jf-legal { justify-content: center; }
  .jf-top { order: -1; }
}
@media (max-width: 520px) {
  .jf-nav { display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 340px); border-radius: 24px; }
  .jf-nav a { padding: 10px 8px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .jf-glow, .jf-bear-img, .jf-bear-shadow, .jf-z { animation: none; }
  .jf-z { opacity: .8; }
  .jf-z--2 { transform: translate(-14px, -26px); }
  .jf-z--3 { transform: translate(-26px, -48px); }
}