/* ──────────────────────────────────────────
   FOOTER
────────────────────────────────────────── */
.footer {
  margin-top: 4rem;
  background: var(--bg-dark);
  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-light);
  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);
  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;
  border: 1px solid var(--border);
  padding: 3px;
  background: var(--bg);            /* Dark mode default */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  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;
  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 TOGGLE SWITCH
────────────────────────────────────────── */
.switch {
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 3.5em;
  height: 2em;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgb(75, 73, 74);
  transition: 0.4s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.4em;
  width: 1.4em;
  border-radius: 20px;
  left: 0.3em;
  bottom: 0.3em;
  background-color: black;
  box-shadow: inset 8px -4px 0 0 white;
  transition: 0.4s;
}

.switch input:checked + .slider {
  background-color: var(--secondary);
}

.switch input:checked + .slider:before {
  transform: translateX(1.5em);
  background-color: white;
  box-shadow: none;
}

/* ──────────────────────────────────────────
   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.6rem 1.2rem;
  background: var(--primary);
  color: var(--bg);
  border: none;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  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 {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

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

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