/* Site footer — warm dark, cute & modern */

.site-footer {
  --footer-ink: #faf9f5;
  --footer-muted: #9a968c;
  --footer-soft: #2a2824;
  --footer-panel: #1f1e1b;
  --footer-coral: #cc785c;
  --footer-coral-soft: rgba(204, 120, 92, 0.18);
  position: relative;
  margin-top: 48px;
  padding: 0 16px 28px;
  background: transparent;
  color: var(--footer-muted);
  overflow: clip;
}

.site-footer .footer-shell {
  position: relative;
  width: min(100%, var(--design-container, 1120px));
  margin: 0 auto;
  padding: 28px 28px 20px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(204, 120, 92, 0.16), transparent 42%),
    radial-gradient(circle at 92% 18%, rgba(93, 184, 166, 0.08), transparent 36%),
    linear-gradient(160deg, #252320 0%, var(--footer-panel) 55%, #1a1916 100%);
  border: 1px solid rgba(250, 249, 245, 0.1);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  isolation: isolate;
}

.site-footer .footer-glow {
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 180px;
  background: radial-gradient(circle, rgba(204, 120, 92, 0.18), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.site-footer .footer-dots {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(rgba(250, 249, 245, 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 78%);
}

.site-footer .footer-top,
.site-footer .footer-tagline,
.site-footer .footer-actions,
.site-footer .footer-mid,
.site-footer .footer-bottom {
  position: relative;
  z-index: 1;
}

.site-footer .footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer .footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.site-footer .footer-logo-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  overflow: hidden;
  flex: none;
  border: 1px solid rgba(250, 249, 245, 0.14);
  background: rgba(250, 249, 245, 0.06);
  box-shadow: 0 0 0 4px rgba(204, 120, 92, 0.12);
  transition: transform 280ms cubic-bezier(0.22, 1.25, 0.36, 1), box-shadow 220ms ease;
}

.site-footer .footer-brand-link:hover .footer-logo-wrap {
  transform: rotate(-4deg) scale(1.05);
  box-shadow: 0 0 0 5px rgba(204, 120, 92, 0.2);
}

.site-footer .footer-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer .footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.site-footer .footer-brand-name {
  color: var(--footer-ink);
  font-family: "Fredoka", "Quicksand", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.site-footer .footer-brand-domain {
  color: var(--footer-muted);
  font-family: "Quicksand", sans-serif;
  font-size: 12px;
  font-weight: 500;
}

.site-footer .footer-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--footer-coral-soft);
  border: 1px solid rgba(204, 120, 92, 0.28);
  color: #e8b39a;
  font-family: "Quicksand", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-footer .footer-kicker i {
  font-size: 13px;
  animation: footerSparkle 2.4s ease-in-out infinite;
}

@keyframes footerSparkle {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 1; }
  50% { transform: rotate(12deg) scale(1.12); opacity: 0.75; }
}

.site-footer .footer-tagline {
  margin: 14px 0 0;
  max-width: 38ch;
  color: var(--footer-muted);
  font-family: "Quicksand", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.site-footer .footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.site-footer .footer-action-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--footer-coral);
  color: #fff;
  text-decoration: none;
  font-family: "Quicksand", sans-serif;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  box-shadow: none;
  transition: transform 200ms cubic-bezier(0.22, 1.25, 0.36, 1), background 180ms ease;
}

.site-footer .footer-action-link--soft {
  background: rgba(250, 249, 245, 0.06);
  color: var(--footer-ink);
  border-color: rgba(250, 249, 245, 0.1);
}

.site-footer .footer-action-link:hover {
  transform: translateY(-2px);
  background: #d8896c;
  color: #fff;
}

.site-footer .footer-action-link--soft:hover {
  background: rgba(204, 120, 92, 0.2);
  border-color: rgba(204, 120, 92, 0.35);
  color: #faf9f5;
}

.site-footer .footer-action-link i {
  font-size: 15px;
}

.site-footer .footer-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(250, 249, 245, 0.08);
}

.site-footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.site-footer .footer-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--footer-muted);
  text-decoration: none;
  font-family: "Quicksand", sans-serif;
  font-size: 13px;
  font-weight: 500;
  transition: color 160ms ease, background 160ms ease, transform 200ms ease;
}

.site-footer .footer-nav-link i {
  font-size: 14px;
  opacity: 0.75;
}

.site-footer .footer-nav-link:hover {
  color: var(--footer-ink);
  background: rgba(250, 249, 245, 0.07);
  transform: translateY(-1px);
}

.site-footer .footer-nav-link:hover i {
  opacity: 1;
  color: var(--footer-coral);
}

.site-footer .footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer .footer-social-bubble {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(250, 249, 245, 0.06);
  border: 1px solid rgba(250, 249, 245, 0.1);
  text-decoration: none;
  transition: transform 240ms cubic-bezier(0.22, 1.25, 0.36, 1), background 180ms ease, border-color 180ms ease;
}

.site-footer .footer-social-bubble:hover {
  transform: translateY(-3px) scale(1.06);
  background: var(--footer-coral-soft);
  border-color: rgba(204, 120, 92, 0.35);
}

.site-footer .footer-social-bubble .pill-img-wrap {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0.06) 75%);
  background-size: 200px 100%;
  animation: footerPillShimmer 1.4s ease-in-out infinite;
}

.site-footer .footer-social-bubble .pill-img-wrap.loaded-ok {
  background: transparent !important;
  animation: none !important;
}

@keyframes footerPillShimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

.site-footer .footer-social-bubble .pill-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.site-footer .footer-social-bubble .pill-img-wrap img.loaded {
  opacity: 0.92;
}

.site-footer .footer-social-bubble:hover .pill-img-wrap img.loaded {
  opacity: 1;
  transform: scale(1.08);
}

.site-footer .footer-social-bubble .pill-img-wrap.has-error {
  background: rgba(250, 249, 245, 0.08) !important;
  animation: none !important;
  display: grid;
  place-items: center;
}

.site-footer .footer-social-bubble .pill-img-wrap.has-error::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--footer-coral);
  opacity: 0.7;
}

.site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(250, 249, 245, 0.1);
  font-family: "Quicksand", sans-serif;
  font-size: 12.5px;
}

.site-footer .footer-copy {
  color: var(--footer-muted);
}

.site-footer .footer-copy strong {
  color: var(--footer-ink);
  font-weight: 600;
  font-family: "Fredoka", "Quicksand", sans-serif;
}

.site-footer .footer-made {
  color: var(--footer-muted);
}

.site-footer .footer-heart {
  display: inline-block;
  color: #e08a8a;
  margin: 0 2px;
  animation: footerHeartbeat 1.6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes footerHeartbeat {
  0%, 100% { transform: scale(1); }
  18% { transform: scale(1.22); }
  32% { transform: scale(1); }
  48% { transform: scale(1.14); }
  64% { transform: scale(1); }
}

@media (max-width: 767px) {
  .site-footer {
    margin-top: 36px;
    padding: 0 12px 20px;
  }

  .site-footer .footer-shell {
    padding: 22px 18px 16px;
    border-radius: 24px;
  }

  .site-footer .footer-brand-name {
    font-size: 20px;
  }

  .site-footer .footer-mid {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .site-footer .footer-actions {
    width: 100%;
  }

  .site-footer .footer-action-link {
    flex: 1 1 auto;
    justify-content: center;
  }

  .site-footer .footer-nav {
    width: 100%;
  }

  .site-footer .footer-nav-link {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer .footer-kicker i,
  .site-footer .footer-heart,
  .site-footer .footer-logo-wrap,
  .site-footer .footer-action-link,
  .site-footer .footer-social-bubble {
    animation: none !important;
    transition: none !important;
  }
}
