/* ===== Scoped Footer Styles ===== */
.site-footer {
  --ink: #0f172a;
  --bg: #fefefe;
  --primary: #ff2d55; /* قرمز روح‌دار */
  --accent: #ff6b35; /* نارنجی روشن */
  --success: #00e676; /* سبز نئونی */
  --muted: #64748b;
  --line: #e2e8f0;
}
.site-footer {
  background: radial-gradient(
      900px 300px at 100% 0,
      rgba(249, 115, 22, 0.06),
      transparent 60%
    ),
    radial-gradient(
      800px 260px at 0 100%,
      rgba(251, 146, 60, 0.04),
      transparent 60%
    ),
    linear-gradient(180deg, #fefefe 0%, #f8fafc 100%);
  color: #0f172a;
  margin-top: 32px;
  direction: rtl;
  text-align: right;
}
.site-footer a {
  color: #0f172a;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--primary);
  text-decoration: none;
}
.site-footer .container {
  max-width: 1200px;
  margin-inline: auto;
  padding: 28px 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 18px;
}
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.brand .logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.4px;
}
.brand .logo img {
  height: 56px;
  width: auto;
}
@media (min-width: 768px) {
  .brand .logo img {
    height: 64px;
  }
}
@media (max-width: 360px) {
  .brand .logo img {
    height: 48px;
  }
}
.brand .tag {
  color: #5a6572;
  line-height: 1.9;
}

.ft-title {
  font-weight: 800;
  margin: 0 0 10px;
  font-size: 16px;
  color: #0c0f14;
}
.ft-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  text-align: right;
}
.ft-list a {
  opacity: 0.92;
}

.cta-mini {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(135deg, #ff2d55, #ff6b35, #ffa726);
  color: #fff;
  border-radius: 16px;
  padding: 14px 20px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.cta-mini::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.cta-mini:hover::before {
  left: 100%;
}
.cta-mini:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.25);
  background: linear-gradient(135deg, #e63946, #ff2d55, #ff6b35);
  color: #fff !important;
  text-decoration: none;
}
.cta-mini.secondary {
  background: linear-gradient(135deg, #60a5fa, #3b82f6, #6366f1);
  color: #fff;
}

.cta-mini.secondary:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb, #4f46e5);
  color: #fff !important;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 15, 20, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.modal-dialog {
  width: min(640px, 100%);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(12, 15, 20, 0.2);
  padding: 18px 18px 14px;
  color: #0c0f14;
}
.modal-dialog h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 900;
}
.modal-body {
  line-height: 1.9;
  color: #445063;
  margin-bottom: 12px;
}
.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.btn-primary {
  background: var(--success);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 800;
  cursor: pointer;
}
.btn-primary:hover {
  filter: brightness(0.95);
}

.line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  opacity: 0.6;
  margin: 18px 0;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge {
  border: 1px solid #e5eaef;
  border-radius: 10px;
  padding: 6px 10px;
  color: #5a6572;
  font-size: 12px;
}

.bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  order: 1;
  flex: 1;
}

.footer-center {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-right {
  order: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.footer-cta {
  position: relative;
  z-index: 10;
}
.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.legal a {
  color: #5a6572;
}
.bottom .social-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.bottom .social-label {
  color: #5a6572;
  font-size: 14px;
  font-weight: 600;
}
/* Social links */
.social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 0;
  list-style: none;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.2s ease, background 0.2s ease;
}
.social a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(12, 15, 20, 0.12);
  border-color: var(--primary);
  background: #f7fdff;
  text-decoration: none;
}
.social a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.social img {
  height: 20px;
  width: auto;
  display: block;
  filter: saturate(0.9);
  transition: filter 0.2s ease;
}
.social a:hover img {
  filter: saturate(1.1);
}

/* Trust seals layout */
.trust-seals {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-seals img {
  display: inline-block;
  height: auto;
  max-height: 120px;
  width: auto;
}

/* Compact intro text on small screens */
@media (max-width: 560px) {
  .brand .tag {
    font-size: 12px;
    line-height: 1.8;
  }
}

/* Inline style classes extracted from HTML */
.logo-flex {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cta-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-text-intro {
  margin: 0 0 8px;
}

.modal-list {
  margin: 0 1rem 0 0;
  padding: 0 1rem 0 0;
}
