/* -------------------------------------------------------
   NovinPixel Professional RTL Footer (Ahura Child)
   - White text (as requested)
   - Background: transparent (use theme background)
   - Modern responsive: grid + clamp + logical props
   - Zarinpal TrustCode: based on official docs
------------------------------------------------------- */

:root{
  --np-footer-text: rgba(255,255,255,.92);
  --np-footer-muted: rgba(255,255,255,.70);
  --np-footer-border: rgba(255,255,255,.14);

  --np-footer-accent: #4c8dff;
  --np-footer-accent-2: #00d1ff;

  --np-radius-xl: 22px;
  --np-radius-lg: 18px;
  --np-radius-md: 14px;
  --np-radius-sm: 12px;

  --np-container: 1200px;

  --np-shadow-soft: 0 10px 30px rgba(0,0,0,.20);
  --np-shadow-hover: 0 18px 45px rgba(0,0,0,.26);

  --np-focus: 0 0 0 3px rgba(76,141,255,.28);

  --np-lh: 1.95;

  --np-font-size-title: 14px;
  --np-font-size-link: 14px;
  --np-font-size-desc: 14px;
}

.np-footer{
  direction: rtl;
  unicode-bidi: plaintext;
  background: transparent;
  color: var(--np-footer-text);
  border-top: 1px solid var(--np-footer-border);
}

.np-footer__container{
  max-width: var(--np-container);
  margin-inline: auto;
  padding-inline: clamp(16px, 2.2vw, 26px);
  padding-block: clamp(34px, 4.8vw, 64px) 22px;
}

.np-footer__grid{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
  gap: clamp(18px, 2.6vw, 36px);
  align-items: start;
}

/* Brand */
.np-footer__brandLink{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.np-footer__logoWrap{
  display: inline-flex;
  align-items: center;
}

.np-footer__logo{
  display: block;
  width: clamp(44px, 6.5vw, 140px);
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.np-footer__brandText{
  font-weight: 900;
  letter-spacing: .2px;
  font-size: clamp(15px, 1.2vw, 18px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 28ch;
}

.np-footer__desc{
  margin: 14px 0 18px 0;
  color: var(--np-footer-muted);
  line-height: var(--np-lh);
  font-size: var(--np-font-size-desc);
  max-width: 52ch;
}

/* Titles */
.np-footer__title{
  margin: 0 0 14px 0;
  font-size: var(--np-font-size-title);
  font-weight: 900;
  letter-spacing: .2px;
  color: rgba(255,255,255,.95);
}

.np-footer__utilityTitle{
  margin-top: 18px;
}

/* Menus */
.np-footer__menu{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.np-footer__menu li{
  margin: 0;
  padding: 0;
}

.np-footer__menu a{
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-size: var(--np-font-size-link);
  line-height: var(--np-lh);

  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding-block: 6px;
  padding-inline: 0;

  border-radius: 10px;

  opacity: .92;
  transition: transform .18s ease, opacity .18s ease, color .18s ease;
}

.np-footer__menu a:hover{
  opacity: 1;
  color: var(--np-footer-accent);
  transform: translateX(-2px);
}

.np-footer__menu a:focus-visible{
  outline: none;
  box-shadow: var(--np-focus);
  border-radius: 12px;
}

/* Social */
.np-footer__social{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.np-footer__socialBtn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--np-shadow-soft);

  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.np-footer__socialBtn:hover{
  transform: translateY(-2px);
  box-shadow: var(--np-shadow-hover);
  background: rgba(76,141,255,.12);
  border-color: rgba(76,141,255,.30);
}

.np-footer__socialBtn:focus-visible{
  outline: none;
  box-shadow: var(--np-focus);
}

.np-footer__socialIcon{
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .5px;
  color: rgba(255,255,255,.92);
}

/* Trust */
.np-footer__trust{
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.np-footer__trustItem{
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 12px;
  border-radius: var(--np-radius-lg);

  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  box-shadow: var(--np-shadow-soft);

  min-height: 120px;
  overflow: visible;
}

.np-footer__enamad img{
  display: block;
  width: 150px;
  height: 150px;
  max-width: 100%;
  object-fit: contain;
}

/* Zarinpal (based on official docs) */
#zarinpal{
  margin: auto;
  min-height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Official doc says you can size it via width */
#zarinpal img{
  width: 87px;     /* you can change this value */
  height: 95px;    /* keep explicit for layout stability */
  display: block;
  object-fit: contain;
}

/* Divider */
.np-footer__divider{
  margin-block: 34px 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
}

/* Bottom */
.np-footer__bottom{
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: center;

  color: var(--np-footer-muted);
  font-size: 13px;
  line-height: var(--np-lh);
}

.np-footer__credits{
  text-align: center;
}

.np-footer__creditLink{
  color: rgba(255,255,255,.92);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,.28);
}

.np-footer__creditLink:hover{
  color: var(--np-footer-accent);
  border-bottom-color: rgba(76,141,255,.55);
}

.np-footer__toTop{
  justify-self: end;

  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);

  border-radius: var(--np-radius-md);
  padding: 10px 12px;

  cursor: pointer;

  box-shadow: var(--np-shadow-soft);

  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.np-footer__toTop:hover{
  transform: translateY(-2px);
  box-shadow: var(--np-shadow-hover);
  border-color: rgba(76,141,255,.34);
}

.np-footer__toTop:focus-visible{
  outline: none;
  box-shadow: var(--np-focus);
}

/* Tablet */
@media (max-width: 1024px){
  .np-footer__grid{
    grid-template-columns: 1fr 1fr;
  }

  .np-footer__desc{
    max-width: 60ch;
  }

  .np-footer__trust{
    grid-template-columns: 1fr 1fr;
  }

  .np-footer__bottom{
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px;
  }

  .np-footer__toTop{
    justify-self: center;
  }
}

/* Mobile */
@media (max-width: 560px){
  .np-footer__grid{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .np-footer__container{
    padding-block: 42px 18px;
  }

  .np-footer__brandText{
    max-width: 22ch;
  }

  .np-footer__trust{
    grid-template-columns: 1fr;
  }

  .np-footer__trustItem{
    min-height: 118px;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .np-footer__menu a,
  .np-footer__socialBtn,
  .np-footer__toTop{
    transition: none !important;
  }
}

/* Forced colors */
@media (forced-colors: active){
  .np-footer,
  .np-footer__trustItem,
  .np-footer__socialBtn,
  .np-footer__toTop{
    forced-color-adjust: auto;
    border: 1px solid CanvasText;
  }
}

.np-footer__sep{
  margin-inline: 8px;
  color: rgba(255,255,255,.55);
}