/* =====================================================
   FI-FY CLONE — FOOTER
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600;700;800;900&display=swap');

.fify-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  background: linear-gradient(-45deg, #0f172a, #1e1b4b, #312e81, #2e1065, #4a044e, #022c22, #0f172a);
  background-size: 600% 600%;
  animation: rgbGradient 15s ease infinite;
  padding: 100px 32px 48px;
  font-family: 'DM Sans', 'Inter', sans-serif;
  color: #e5e7eb;
  box-sizing: border-box;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 60' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 0 30 Q 360 0 720 30 T 1440 30 L 1440 60 L 0 60 Z' fill='black'/%3E%3C/svg%3E"), linear-gradient(black, black);
  -webkit-mask-size: 1440px 60px, 100% calc(100% - 59px);
  -webkit-mask-position: 0px top, bottom left;
  -webkit-mask-repeat: repeat-x, no-repeat;
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 60' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 0 30 Q 360 0 720 30 T 1440 30 L 1440 60 L 0 60 Z' fill='black'/%3E%3C/svg%3E"), linear-gradient(black, black);
  mask-size: 1440px 60px, 100% calc(100% - 59px);
  mask-position: 0px top, bottom left;
  mask-repeat: repeat-x, no-repeat;
  will-change: mask-position;
}

.fify-footer:hover {
  animation: rgbGradient 15s ease infinite, waveAnimation 3s linear infinite;
}

@keyframes waveAnimation {
  0% {
    -webkit-mask-position: 0px top, bottom left;
    mask-position: 0px top, bottom left;
  }
  100% {
    -webkit-mask-position: 1440px top, bottom left;
    mask-position: 1440px top, bottom left;
  }
}

/* Subtle gradient overlay */
.fify-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 0%, rgba(41,171,224,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.fify-footer-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px 32px;
  position: relative;
  z-index: 1;
}

/* ── Logo column ── */
.fify-col-logo {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fify-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* ── Social icons ── */
.fify-socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.fify-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.fify-socials a:hover {
  background: rgba(255,255,255,0.16);
  color: #fff !important;
}

/* ── Link columns ── */
.fify-col {
  flex: 1 1 160px;
  min-width: 140px;
}

.fify-heading {
  font-size: 1.1rem !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff !important;
  margin-bottom: 16px;
  line-height: 1.2;
}

.fify-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.fify-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.15s;
  letter-spacing: -0.01em;
  display: inline-block;
}
.fify-link:hover {
  color: #fff !important;
}

/* ── Copyright bar ── */
.fify-copyright {
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  letter-spacing: 0.02em;
}

/* =====================================================
   SITE-FOOTER — used by solutions/, compare/, causes/ pages
   ===================================================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  font-family: 'DM Sans', 'Inter', sans-serif;
  padding: 64px 0 0;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% -20%, rgba(93,95,239,.12) 0%, transparent 55%);
  pointer-events: none;
}

/* ── Ensure .container inside site-footer is padded ── */
.site-footer .container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}
@media (max-width: 640px) {
  .site-footer .container { padding: 0 20px; }
}

/* ── Top section: brand + link columns ── */
.footer-top {
  display: grid;
  grid-template-columns: 220px repeat(4, 1fr);
  gap: 40px 32px;
  padding-bottom: 48px;
  position: relative;
  z-index: 1;
}
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
}
@media (max-width: 420px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ── Brand column ── */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (max-width: 1024px) {
  .footer-brand { grid-column: 1 / -1; }
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.footer-logo-text {
  font-size: 2.2rem;
  font-weight: 900;
  color: #f1f5f9;
  letter-spacing: -0.04em;
  line-height: 1;
  font-family: 'DM Sans', sans-serif;
}

.footer-tagline {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.55;
  max-width: 200px;
}

/* ── Social icons ── */
.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.footer-social-link:hover {
  background: rgba(255,255,255,0.14);
  color: #f1f5f9;
  border-color: rgba(255,255,255,0.2);
}

/* ── Link columns ── */
.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-col-heading {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #475569;
  margin-bottom: 14px;
}

.footer-col-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
  letter-spacing: -0.01em;
  display: inline-block;
  line-height: 1.4;
}
.footer-col-link:hover { color: #f1f5f9; }

/* ── Bottom bar ── */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.footer-copyright {
  font-size: 0.8rem;
  color: #475569;
  font-weight: 500;
}



@keyframes rgbGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


.fify-footer-wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}
.fify-footer-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}
.fify-footer-wave .shape-fill {
  fill: #FFFFFF;
}
