/* Mana site footer — isolated reveal footer inspired by the supplied reference. */
.mana-footer-reveal {
  position: relative;
  z-index: 0;
  width: 100%;
  min-height: clamp(440px, 52svh, 580px);
}

.mana-site-footer {
  position: relative;
  z-index: 0;
  width: 100%;
  min-height: clamp(440px, 52svh, 580px);
  overflow: hidden;
  direction: rtl;
  color: #43464d;
  background:
    radial-gradient(
      circle at 50% 108%,
      rgba(221, 26, 37, 0.08),
      transparent 34%
    ),
    linear-gradient(180deg, #f2eee6 0%, #e7e1d6 100%);
  border-top: 0;
  font-family: "IRANSansX", sans-serif;
  isolation: isolate;
}

html.mana-footer-reveal-ready
  .mana-footer-reveal
  > .mana-site-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  clip-path: inset(var(--mana-footer-reveal-clip, 100%) 0 0 0);
  pointer-events: none;
  will-change: clip-path;
}

html.mana-footer-reveal-ready
  .mana-footer-reveal
  > .mana-site-footer[data-footer-interactive="true"] {
  pointer-events: auto;
}

.mana-site-footer,
.mana-site-footer *,
.mana-site-footer *::before,
.mana-site-footer *::after {
  box-sizing: border-box;
}

.mana-site-footer a {
  color: inherit;
  text-decoration: none;
}

.mana-footer-inner {
  width: 100%;
  min-height: clamp(440px, 52svh, 580px);
  padding: clamp(56px, 5vw, 76px) clamp(28px, 4.8vw, 92px) 20px;
  display: flex;
  flex-direction: column;
}

.mana-footer-main {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.mana-footer-message {
  margin: 0;
  max-width: 560px;
  color: #43464d;
  font-family: "Anjoman", sans-serif;
  font-size: clamp(21px, 1.75vw, 30px);
  font-weight: 700;
  line-height: 1.6;
}

.mana-footer-menu {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px clamp(18px, 2.5vw, 25px);
}

.mana-footer-menu a {
  color: #43464d;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

.mana-footer-menu a:hover,
.mana-footer-menu a:focus-visible {
  color: #dd1a25;
}

.mana-footer-socials {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  direction: ltr;
}

.mana-footer-social-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(67, 70, 77, 0.1);
  border-radius: 50%;
  background: rgba(67, 70, 77, 0.07);
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    transform 0.25s ease;
}

.mana-footer-social-link:hover,
.mana-footer-social-link:focus-visible {
  color: #dd1a25;
  background: rgba(221, 26, 37, 0.09);
  transform: translateY(-2px);
}

.mana-footer-social-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mana-footer-social-link .mana-footer-aparat-icon {
  width: 20px;
  height: 20px;
}

.mana-footer-brand {
  flex: 1 1 auto;
  min-height: 80px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px 0 18px;
}

.mana-footer-brand img {
  display: block;
  width: clamp(135px, 10vw, 185px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.mana-footer-brand img[src="images/common/enamad-svgrepo-com.svg"] {
  width: 72px;
  height: 72px;
  margin-inline-start: 16px;
}

.mana-footer-legal {
  padding-top: 20px;
  border-top: 1px solid rgba(67, 70, 77, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(67, 70, 77, 0.62);
  font-size: 12px;
  line-height: 1.8;
}

.mana-footer-legal-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.mana-footer-legal a {
  transition: color 0.25s ease;
}

.mana-footer-legal a:hover,
.mana-footer-legal a:focus-visible {
  color: #dd1a25;
}

@media (max-width: 767px) {
  .mana-footer-reveal {
    min-height: auto;
  }

  .mana-site-footer {
    position: relative;
    min-height: auto;
  }

  .mana-footer-inner {
    min-height: auto;
    padding: 52px 20px 18px;
  }

  .mana-footer-message {
    font-size: 22px;
  }

  .mana-footer-menu {
    margin-top: 18px;
  }

  .mana-footer-brand {
    min-height: 74px;
    padding: 28px 0 18px;
  }

  .mana-footer-legal {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mana-footer-menu a,
  .mana-footer-social-link,
  .mana-footer-legal a {
    transition: none;
  }
}
