/* ═══════════════════════════════════════════════════
   FOOTER — Liquid + Single Panel
   ═══════════════════════════════════════════════════ */

.site-footer {
  position: relative;
  margin-top: 4rem;
  padding: 3rem 0 0;
  overflow: hidden;
  background: linear-gradient(175deg, #071e1b 0%, #0a2a26 35%, #0d332e 100%);
  border-top: 1px solid rgba(94, 234, 212, 0.08);
}

/* ── Liquid Blobs ── */
.footer-liquid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.liquid-blob {
  position: absolute;
  border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
  filter: blur(70px);
  opacity: 0.25;
  will-change: transform, border-radius;
}
.blob-1 {
  width: 500px;
  height: 400px;
  top: -25%;
  left: -5%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.5), transparent 70%);
  animation: liquidMorph1 16s ease-in-out infinite;
}
.blob-2 {
  width: 400px;
  height: 350px;
  bottom: -20%;
  right: -3%;
  background: radial-gradient(
    circle,
    rgba(156, 201, 196, 0.45),
    transparent 70%
  );
  animation: liquidMorph2 20s ease-in-out infinite;
}
.blob-3 {
  width: 300px;
  height: 280px;
  top: 20%;
  left: 40%;
  background: radial-gradient(
    circle,
    rgba(94, 234, 212, 0.35),
    transparent 70%
  );
  animation: liquidMorph3 14s ease-in-out infinite;
}
.blob-4 {
  width: 350px;
  height: 300px;
  top: 50%;
  right: 25%;
  background: radial-gradient(circle, rgba(20, 79, 72, 0.5), transparent 70%);
  animation: liquidMorph4 18s ease-in-out infinite;
}

@keyframes liquidMorph1 {
  0% {
    transform: translate(0, 0) scale(1);
    border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
  }
  33% {
    transform: translate(30px, 20px) scale(1.1);
    border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%;
  }
  66% {
    transform: translate(-15px, 35px) scale(1.05);
    border-radius: 45% 55% 60% 40% / 60% 45% 55% 40%;
  }
  100% {
    transform: translate(0, 0) scale(1);
    border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
  }
}
@keyframes liquidMorph2 {
  0% {
    transform: translate(0, 0) scale(1);
    border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%;
  }
  33% {
    transform: translate(-25px, -15px) scale(1.12);
    border-radius: 45% 55% 60% 40% / 55% 40% 60% 45%;
  }
  66% {
    transform: translate(20px, -30px) scale(0.95);
    border-radius: 60% 40% 45% 55% / 40% 60% 50% 50%;
  }
  100% {
    transform: translate(0, 0) scale(1);
    border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%;
  }
}
@keyframes liquidMorph3 {
  0% {
    transform: translate(-50%, -50%) scale(1);
    border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    border-radius: 45% 55% 55% 45% / 50% 50% 50% 50%;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%;
  }
}
@keyframes liquidMorph4 {
  0% {
    transform: translate(0, 0) scale(1);
    border-radius: 60% 40% 50% 50% / 45% 55% 40% 60%;
  }
  50% {
    transform: translate(-20px, 25px) scale(1.1);
    border-radius: 40% 60% 55% 45% / 55% 45% 55% 45%;
  }
  100% {
    transform: translate(0, 0) scale(1);
    border-radius: 60% 40% 50% 50% / 45% 55% 40% 60%;
  }
}

/* ── Inner container ── */
.footer-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

/* ── Brand row ── */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.footer-logo {
  height: 90px;
  width: auto;
  filter: drop-shadow(0 4px 20px rgba(94, 234, 212, 0.2));
  animation: logoPulse 5s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,
  100% {
    filter: drop-shadow(0 4px 20px rgba(94, 234, 212, 0.2));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 4px 30px rgba(94, 234, 212, 0.4));
    transform: scale(1.03);
  }
}
.footer-brand-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.footer-brand-name {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #5eead4, #9cc9c4 50%, #fff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: brandShift 6s ease-in-out infinite;
  text-shadow:
    0 0 14px rgba(94, 234, 212, 0.3),
    0 0 30px rgba(94, 234, 212, 0.18);
}
@keyframes brandShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.footer-brand-tagline {
  font-size: 0.8rem;
  color: #9cc9c4;
  opacity: 0.65;
  font-weight: 400;
}

/* ── Separator lines ── */
.footer-sep {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(94, 234, 212, 0.18) 25%,
    rgba(94, 234, 212, 0.18) 75%,
    transparent
  );
}

/* ── Links row — 3 centered columns ── */
.footer-links-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 980px;
}
.footer-links-row.has-badges {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #5eead4;
  margin: 0;
  text-align: center;
}
.footer-col-line {
  width: 40px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #5eead4, transparent);
  margin-bottom: 0.25rem;
  opacity: 0.5;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #cde4e1;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.28rem 0.7rem;
  border-radius: 0.45rem;
  position: relative;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.footer-link i {
  font-size: 0.95rem;
  color: rgba(94, 234, 212, 0.65);
  transition: all 0.3s ease;
}
.footer-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.45rem;
  background: rgba(94, 234, 212, 0.08);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.footer-link:hover {
  color: #5eead4;
  text-shadow: 0 0 12px rgba(94, 234, 212, 0.4);
}
.footer-link:hover::before {
  opacity: 1;
}
.footer-link:hover i {
  color: #fff;
  filter: drop-shadow(0 0 6px rgba(94, 234, 212, 0.5));
  transform: scale(1.15);
}

.footer-col-badges {
  justify-content: flex-start;
}
.footer-badge-slot {
  width: 92px;
  height: 92px;
  border-radius: 0.8rem;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9cc9c4;
  font-size: 0.75rem;
  text-align: center;
  padding: 0;
  position: relative;
  overflow: visible;
}
.footer-badge-slot img,
.footer-badge-slot a,
.footer-badge-slot iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0.75rem;
  display: block;
}
.footer-badge-slot a {
  position: relative;
  z-index: 2;
}

/* ── Bottom copyright ── */
.footer-bottom-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-bottom: 0.5rem;
}
.footer-copy {
  font-size: 0.78rem;
  color: #9cc9c4;
  opacity: 0.6;
  font-weight: 500;
}
.footer-dot {
  font-size: 0.82rem;
  color: #5eead4;
  opacity: 0.35;
}

/* ── Farsi overrides ── */
.footer-link .farsi,
.footer-brand-tagline.farsi,
.footer-col-title.farsi,
.footer-copy.farsi,
.footer-badge-slot .farsi {
  font-family: "Vazir", "Tahoma", sans-serif;
  direction: rtl;
}

/* ═══════════ Responsive ═══════════ */
@media (max-width: 768px) {
  .site-footer {
    margin-top: 2.5rem;
    padding: 2rem 0 0;
  }
  .footer-inner {
    padding: 0 1.25rem 1rem;
    gap: 1.25rem;
  }
  .footer-logo {
    height: 65px;
  }
  .footer-brand-name {
    font-size: 1.65rem;
    letter-spacing: 2px;
  }
  .footer-links-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: 100%;
  }
  .footer-links-row.has-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-badge-slot {
    width: 84px;
    height: 84px;
  }
  .footer-link {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
  }
  .footer-link i {
    font-size: 0.85rem;
  }
  .footer-col-title {
    font-size: 0.7rem;
  }
  .footer-copy {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    padding: 0 1rem 0.75rem;
  }
  .footer-links-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-links-row.has-badges {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    flex-direction: column;
    text-align: center;
  }
  .footer-brand-info {
    align-items: center;
  }
  .footer-logo {
    height: 55px;
  }
  .footer-brand-name {
    font-size: 1.35rem;
  }
  .footer-badge-slot {
    width: 78px;
    height: 78px;
  }
}
