/* ──────────────────────────────────────────
   FOOTER
────────────────────────────────────────── */
.footer {
  margin-top: 4rem;
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  border-top: 1px solid var(--border-muted);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  padding: 2.5rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Brand ── */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1 1 360px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.02em;
}

.logo-icon {
  color: var(--primary);
  font-size: 1rem;
}

.footer-section-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.02em;
}

.footer-section-title i {
  color: var(--primary);
  font-size: 1rem;
}

.footer-address {
  max-width: 280px;
  line-height: 1.7;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-right: 1.35rem;
  margin-top: -0.55rem;
}

/* ── Vertical Divider ── */
.footer-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  opacity: 0.5;
  flex-shrink: 0;
}

/* ── Right Column ── */
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  flex: 1 1 auto;
}

/* ── Nav Links ── */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
}

.footer-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.22s ease;
}

.footer-nav-link i {
  font-size: 1rem;
}

.footer-nav-link:hover {
  color: var(--primary);
  border-color: var(--border);
  background: var(--bg);
  transform: translateY(-1px);
}

/* ── Socials + Enamad Row ── */
.footer-social-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ── Social Buttons ── */
.footer-socials {
  display: flex;
  gap: 0.7rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-size: 1.25rem;
  border: 1px solid var(--border-muted);
  transition: all 0.25s ease;
  text-decoration: none;
}

.social-btn:hover {
  transform: translateY(-3px);
  border-color: transparent;
}

.social-btn.telegram:hover {
  background: #229ED9;
  color: #fff;
  box-shadow: 0 4px 14px rgba(34, 158, 217, 0.4);
}

.social-btn.instagram:hover {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  box-shadow: 0 4px 14px rgba(220, 39, 67, 0.4);
}

/* ── Enamad Badge ── */
.footer-enamad {
  display: flex;
  align-items: center;
}

.enamad-img {
  height: 105px;
  width: auto;
  border-radius: 8px;
  padding: 3px;
  background:var(--bg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border:1px solid var(--border-muted);
  cursor: pointer;
}

/* Light mode — switch to --secondary */
html[data-theme="light"] .enamad-img {
  background: var(--secondary);
}

/* Auto mode following system light preference */
@media (prefers-color-scheme: light) {
  html[data-theme="auto"] .enamad-img {
    background: var(--secondary);
  }
}

.enamad-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* ── Bottom Bar ── */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  background: var(--bg);

  align-items: center;
  padding: 0.9rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border-muted);
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: 0.95;
}



@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.25); }
}

/* ──────────────────────────────────────────
   THEME RADIO
────────────────────────────────────────── */
.theme-radio {
  position: relative;
  display: flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--border-muted);
  border-radius: 999px;
  background: var(--bg-light);
}

.theme-radio::before {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 38px;
  height: 38px;
  content: "";
  border-radius: 50%;
  background: var(--bg);
  pointer-events: none;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="light"] .theme-radio::before {
  transform: translateX(38px);
}

.theme-radio label {
  position: relative;
  z-index: 1;
  display: block;
  cursor: pointer;
}

.theme-radio input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.theme-radio span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: color 0.18s ease;
}

.theme-radio i { font-size: 20px; }
.theme-radio input:checked + span { color: var(--text); }
.theme-radio input:focus-visible + span { outline: 2px solid var(--info); outline-offset: 2px; }

.footer-theme-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* ──────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────── */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.8rem;
  }

  .footer-divider {
    width: 60%;
    height: 1px;
    align-self: center;
  }

  .footer-brand {
    flex: 0 0 auto; /* ← reset the 260px flex-basis */
    align-items: center;
    gap: 0.4rem;
    width: 100%;
  }

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

  .footer-right {
    align-items: center;
    width: 100%;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-social-trust {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.9rem 1.5rem;
    text-align: center;
  }


}




/* در بخش Footer Bottom، بعد از استایل‌های موجود */

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);

}

.footer-chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: var(--primary);
  color: var(--bg);
  border: none;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.footer-chat-btn i {
  font-size: 1.1rem;
}

.footer-chat-btn:hover {
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.footer-chat-btn:active {
  transform: translateY(0);
}

.footer-notif-btn {
  display: none;
  position: relative;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border-muted);
  border-radius: 24px;
  color: var(--text);
  background: transparent;
  font-family: inherit;
  background: var(--bg);

  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.footer-notif-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 9px;
  color: var(--bg);
  background: var(--primary);
  font-size: 13px;
  font-weight: 740;
}

.footer-notif-btn.has-notifications > i {
  transform-origin: 50% 20%;
  animation: mobile-notif-ring 3s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .footer-notif-btn.has-notifications > i {
    animation: none;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .footer {
    background: var(--bg-light);
  }
  .footer-bottom {
    flex-direction: row;
    gap: 0.5rem;
    padding:0.75rem 1rem;
    background:var(--bg-light);
    text-align: center;
  }
  
  .footer-copy {
    font-size: 0.75rem;
  }
  
  .footer-chat-btn {
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  
  .footer-chat-btn i {
    font-size: 1rem;
  }

  .footer-notif-btn {
    display: inline-flex;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.1rem;
  }

  .footer-notif-btn > i {
    font-size: 1.45rem;
    font-weight: 400;
  }

  .footer-notif-label {
    display: none;
  }
}
