/* —— Site footer: light, wave-topped, grid-paper backdrop + newsletter —— */
.site-footer {
  margin-top: 1.5rem;
}
#site-footer .site-footer {
  --ft-bg: #f4f8ff;
  --ft-ink: #22324a;
  --ft-muted: #5f6f84;
  position: relative;
  z-index: 2;
  padding: 0;
  border-top: 0;
  background: transparent;
  color: var(--ft-ink);
}

/* Curved art border */
.footer-wave {
  position: relative;
  height: 116px;
  margin-bottom: -1px;
  pointer-events: none;
}
.footer-wave svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.footer-wave-back { opacity: 0.75; }
.footer-wave-mid { fill: #e8f0fe; }
.footer-wave-front { fill: var(--ft-bg); }
.footer-wave-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 2px 4px rgba(24, 119, 242, 0.25));
}

.footer-body {
  position: relative;
  isolation: isolate;
  padding: 0.75rem 0 0;
  background:
    radial-gradient(38% 60% at 100% 0%, rgba(167, 139, 250, 0.1), transparent 70%),
    radial-gradient(40% 55% at 0% 100%, rgba(94, 214, 186, 0.1), transparent 70%),
    linear-gradient(180deg, var(--ft-bg) 0%, #f8faff 55%, #fbfcff 100%);
}
/* Grid-paper graphic: fine lines with a stronger line every 4th cell, fading toward the edges */
.footer-body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(24, 119, 242, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 119, 242, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(24, 119, 242, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 119, 242, 0.045) 1px, transparent 1px);
  background-size: 128px 128px, 128px 128px, 32px 32px, 32px 32px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 85%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 85%);
}

/* Newsletter (plain row) */
.footer-news {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 1.25rem 2.5rem;
  padding: 0.5rem 0 1.6rem;
  margin-bottom: 1.6rem;
  background: linear-gradient(90deg, transparent, rgba(24, 119, 242, 0.18) 20%, rgba(139, 108, 240, 0.18) 80%, transparent) bottom / 100% 1px no-repeat;
}
.footer-news-copy {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}
.footer-news-badge {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #1877f2 0%, #5b8cf5 55%, #8b6cf0 100%);
  box-shadow: 0 10px 22px -10px rgba(24, 119, 242, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: rotate(-6deg);
}
.footer-news-badge svg { width: 23px; height: 23px; }
.footer-news h3 {
  margin: 0 0 0.15rem;
  font-size: 1.3rem;
  color: var(--ft-ink);
}
.footer-news p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ft-muted);
}
.footer-news-form { min-width: 0; }
.footer-news-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.3rem 0.3rem 0.95rem;
  background: #fff;
  border: 1.5px solid rgba(24, 119, 242, 0.16);
  border-radius: 999px;
  box-shadow: 0 6px 16px -10px rgba(12, 63, 160, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.footer-news-field:focus-within {
  border-color: rgba(24, 119, 242, 0.55);
  box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.12), 0 6px 16px -10px rgba(12, 63, 160, 0.35);
}
.footer-news-field.is-error {
  border-color: rgba(214, 69, 88, 0.6);
  box-shadow: 0 0 0 4px rgba(214, 69, 88, 0.1);
}
.footer-news-field-ico {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #8a9ab0;
}
.footer-news-field input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0.55rem 0.2rem;
  font-size: 0.9rem;
  color: var(--ft-ink);
}
.footer-news-field input::placeholder { color: #95a3b5; }
.footer-news-field button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.62rem 1.15rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1877f2 0%, #3b82f6 50%, #6d6af2 100%);
  box-shadow: 0 8px 18px -8px rgba(24, 119, 242, 0.75);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.footer-news-field button svg { width: 16px; height: 16px; }
.footer-news-field button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px -8px rgba(24, 119, 242, 0.8);
}
.footer-news-field button:disabled { cursor: progress; filter: saturate(0.7) brightness(1.05); }
.footer-news-note,
.footer-news-msg {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.5rem 0 0 1rem;
  font-size: 0.76rem;
}
.footer-news-note { color: #7d8ca0; }
.footer-news-note svg { width: 14px; height: 14px; color: #12957a; }
.footer-news-msg { color: #c23a4e; font-weight: 600; }
.footer-news-done {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #0f6f5b;
  font-size: 0.92rem;
  font-weight: 600;
  animation: footer-news-in 0.35s ease;
}
.footer-news-done-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #12957a, #34c29e);
  box-shadow: 0 6px 14px -6px rgba(18, 149, 122, 0.7);
}
.footer-news-done-ico svg { width: 16px; height: 16px; stroke-width: 2.6; }
@keyframes footer-news-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* Menu columns (no cards) */
#site-footer .footer-grid {
  /* Columns / gap / breakpoints: src/styles/footer-grid.css (bundled, authoritative). */
  margin: 0 0 1.5rem;
}
.footer-col {
  --fc-accent: #1877f2;
  min-width: 0;
}
#site-footer .footer-col-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ft-ink);
}
.footer-col-ico {
  display: inline-grid;
  place-items: center;
  color: var(--fc-accent);
}
.footer-col-ico svg { width: 17px; height: 17px; }
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#site-footer .footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.22rem 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ft-muted);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}
.footer-link-ico {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: #9aa8ba;
  transition: color 0.15s ease;
}
#site-footer .footer-link:hover {
  color: var(--fc-accent);
  transform: translateX(2px);
  text-decoration: none;
}
#site-footer .footer-link:hover .footer-link-ico { color: var(--fc-accent); }

/* Brand column */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
#site-footer .footer-logo { display: inline-flex; align-self: flex-start; padding: 0; }
.footer-logo img { display: block; width: auto; height: 44px; }
.footer-brand p {
  margin: 0;
  max-width: 28ch;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ft-muted);
}
.footer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
#site-footer .footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1461c9;
  background: rgba(24, 119, 242, 0.08);
  transition: background 0.15s ease, transform 0.15s ease;
}
.footer-pill svg { width: 14px; height: 14px; }
#site-footer .footer-pill:hover { background: rgba(24, 119, 242, 0.14); transform: translateY(-1px); }

/* Bottom bar */
#site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 1rem 0 1.4rem;
  border-top: 0;
  background: linear-gradient(90deg, transparent, rgba(24, 119, 242, 0.16) 20%, rgba(139, 108, 240, 0.16) 80%, transparent) top / 100% 1px no-repeat;
  font-size: 0.8rem;
  color: #7d8ca0;
}
.footer-love {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #6b7b90;
}
.footer-love svg {
  width: 18px;
  height: 18px;
  color: #e0566e;
  fill: #e0566e;
  animation: footer-heartbeat 2.4s ease-in-out infinite;
}
#site-footer .footer-credit {
  position: relative;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, #1877f2, #7c5cdb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}
#site-footer .footer-credit::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #1877f2, #7c5cdb);
  transform: scaleX(0.35);
  transform-origin: left;
  opacity: 0.6;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
#site-footer .footer-credit:hover::after,
#site-footer .footer-credit:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}
@keyframes footer-heartbeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.18); }
  24% { transform: scale(1); }
  36% { transform: scale(1.12); }
  48% { transform: scale(1); }
}

@media (max-width: 980px) {
  .footer-news { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-wave { height: 64px; }
  .footer-news-field button span { display: none; }
  .footer-news-field button { padding: 0.62rem 0.8rem; }
  #site-footer .footer-bottom { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  #site-footer .footer-link,
  #site-footer .footer-pill,
  .footer-news-field button { transition: none; }
  .footer-news-done,
  .footer-love svg { animation: none; }
}
