/* =========================================
   FOOTER - MODERN 3D
   ========================================= */

/* Main Footer */
.site-footer {
  position: relative;
  background: linear-gradient(135deg, #152936 0%, #1e3a4c 100%);
  color: #fff;
  padding: 80px 0 0; /* افزایش فاصله بالا برای تنفس بیشتر */
  overflow: hidden;
  
  /* ایجاد افکت سه‌بعدی و جدا شدن از محتوا (بدون موج) */
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* خط ظریف بالایی */
  box-shadow: 0 -20px 60px rgba(21, 41, 54, 0.15); /* سایه به سمت بالا */
  z-index: 10;
}

/* Background Shapes */
.footer-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.footer-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}
.footer-bg-shapes .shape-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(109, 191, 58, 0.4) 0%, transparent 70%);
}
.footer-bg-shapes .shape-2 {
  width: 350px;
  height: 350px;
  bottom: -100px;
  left: -80px;
  background: radial-gradient(circle, rgba(118, 42, 120, 0.5) 0%, transparent 70%);
}
.footer-bg-shapes .shape-3 {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 40%;
  background: radial-gradient(circle, rgba(109, 191, 58, 0.15) 0%, transparent 70%);
}

.footer-container {
  position: relative;
  z-index: 2;
}

/* Footer Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 2.4fr 1fr 1fr 1.4fr;
  gap: 30px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-col {
  position: relative;
}

/* =========================================
   LOGO & SHINE ANIMATION
   ========================================= */
.footer-about {
  padding-left: 20px;
}

/* کانتینر لوگو برای محدود کردن افکت درخشش */
.footer-logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 22px;
  overflow: hidden; /* مخفی کردن درخشش در خارج از کادر */
  border-radius: 12px; /* گوشه‌های گرد */
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.footer-brand:hover {
  transform: translateX(-5px);
}

/* اصلاح سایز لوگو */
.footer-brand img,
.footer-brand .custom-logo {
  max-height: 65px !important; /* سایز استاندارد و شیک */
  width: auto !important;
  display: block;
  object-fit: contain;
}

/* استایل لوگوی متنی (اگر عکس نبود) */
.footer-brand-mark {
  background: linear-gradient(135deg, #6DBF3A, #5aa82f);
  color: #fff;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 900;
  font-size: 1.4rem;
  box-shadow: 0 8px 20px rgba(109, 191, 58, 0.4);
}
.footer-brand-name {
  font-size: 1.2rem;
  color: #fff;
  font-weight: 800;
}

/* انیمیشن درخشش (Shine) */
.footer-logo-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.4) 50%, 
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-25deg);
  animation: logoShine 5s infinite; /* هر 5 ثانیه یکبار */
  pointer-events: none;
}

@keyframes logoShine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; } /* توقف بعد از رد شدن */
}

/* =========================================
   TEXT & LINKS
   ========================================= */
.footer-desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
  line-height: 1.9;
  text-align: justify;
  margin-bottom: 22px;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 8px;
}
.social-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}
.social-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6DBF3A, #762A78);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}
.social-btn svg {
  position: relative;
  z-index: 2;
}
.social-btn:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(109, 191, 58, 0.4);
}
.social-btn:hover::before {
  opacity: 1;
}

/* Titles */
.footer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}
.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35px;
  height: 3px;
  background: linear-gradient(135deg, #6DBF3A, #762A78);
  border-radius: 3px;
  transition: width 0.3s ease;
}
.footer-col:hover .footer-title::after {
  width: 65px;
}
.title-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(109, 191, 58, 0.2), rgba(118, 42, 120, 0.15));
  border-radius: 8px;
  color: #6DBF3A;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 10px;
  position: relative;
  transition: padding-right 0.3s ease;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding-right: 0;
}
.footer-links a::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -12px;
  width: 5px;
  height: 5px;
  background: #6DBF3A;
  border-radius: 50%;
  transform: translateY(-50%) scale(0);
  transition: transform 0.3s ease;
}
.footer-links a:hover {
  color: #6DBF3A;
  padding-right: 10px;
}
.footer-links a:hover::before {
  transform: translateY(-50%) scale(1);
}

/* Contact Links */
.footer-contact-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px;
  margin-right: -8px;
  margin-left: -8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid transparent;
  cursor: pointer;
}
.footer-contact-link:hover {
  color: #6DBF3A;
  background: rgba(109, 191, 58, 0.06);
  border-color: rgba(109, 191, 58, 0.2);
}
.footer-contact-link:hover .footer-contact-icon {
  background: linear-gradient(135deg, #6DBF3A, #5aa82f);
  color: #fff;
  transform: rotate(-8deg) scale(1.05);
}
.footer-contact-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(109, 191, 58, 0.15), rgba(118, 42, 120, 0.1));
  border: 1px solid rgba(109, 191, 58, 0.2);
  border-radius: 9px;
  color: #6DBF3A;
  transition: all 0.3s ease;
}
.footer-contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.82rem;
  line-height: 1.5;
  padding-top: 2px;
  flex: 1;
}
.footer-contact-text small {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Address Link */
.footer-address-link {
  position: relative;
}
.footer-address-link .external-icon {
  position: absolute;
  top: 10px;
  left: 10px;
  color: rgba(109, 191, 58, 0.5);
  opacity: 0;
  transform: translate(-5px, 5px);
  transition: all 0.3s ease;
}
.footer-address-link:hover .external-icon {
  opacity: 1;
  transform: translate(0, 0);
}

/* Neshan Route Button */
.btn-neshan-route {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  margin-top: 8px;
  background: linear-gradient(135deg, rgba(109, 191, 58, 0.15), rgba(118, 42, 120, 0.1));
  border: 1.5px solid rgba(109, 191, 58, 0.3);
  color: #6DBF3A;
  text-decoration: none;
  border-radius: 11px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  font-family: 'Vazirmatn', sans-serif;
}
.btn-neshan-route::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6DBF3A, #5aa82f);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}
.btn-neshan-route svg,
.btn-neshan-route span {
  position: relative;
  z-index: 2;
}
.btn-neshan-route:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(109, 191, 58, 0.4);
}
.btn-neshan-route:hover::before {
  opacity: 1;
}
.btn-neshan-route:hover svg {
  animation: nudge 0.6s ease infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(3px) rotate(-10deg); }
  75% { transform: translateX(-3px) rotate(10deg); }
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 25px 0 30px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
}
.footer-bottom p {
  margin: 0;
}
.footer-credit p {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-credit svg {
  color: #6DBF3A;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #6DBF3A, #5aa82f);
  color: #fff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(109, 191, 58, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 999;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(109, 191, 58, 0.6);
}

/* ====== Responsive ====== */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 25px;
  }
  .footer-desc {
    font-size: 0.78rem;
  }
}
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }
  .footer-about {
    grid-column: 1 / -1;
    padding-left: 0;
  }
  .footer-desc {
    text-align: right;
    font-size: 0.85rem;
  }
}
@media (max-width: 600px) {
  .site-footer {
    padding-top: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 30px;
  }
  .footer-col {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .footer-col:last-child { border-bottom: none; }
  .footer-title { margin-bottom: 18px; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
  }
  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 42px;
    height: 42px;
  }
}