/* Parsisho — THE footer stylesheet (single source, 2026-10-15) — self-contained, no Tailwind needed.
   Scoped to .phsf (the rebuilt footer) so it never touches the SPA / CMS footers. */
.phsf{
  background:#f1f5f9;border-top:1px solid #e2e8f0;color:#64748b;
  direction:rtl;text-align:right;margin-top:0;
  font-family:Vazirmatn,'Vazirmatn',system-ui,Tahoma,sans-serif;line-height:1.7;
}
.phsf *{box-sizing:border-box}
.phsf a{text-decoration:none}
.phsf ul{list-style:none;margin:0;padding:0}
.phsf h3,.phsf h4,.phsf p{margin:0}
.phsf svg{display:block}

.phsf-in{max-width:80rem;margin:0 auto;padding:2.25rem 1rem}

/* top band: brand + newsletter + credentials */
.phsf-top{display:grid;grid-template-columns:1fr;gap:1.5rem;padding-bottom:2rem;margin-bottom:2rem;border-bottom:1px solid #e2e8f0}
.phsf-brand{display:flex;flex-direction:column}
.phsf-logo{display:flex;align-items:center;gap:.625rem;margin-bottom:.625rem}
.phsf-logo img{height:48px;width:auto;max-width:140px;object-fit:contain;border-radius:8px}
.phsf-logo span{font-size:1.125rem;font-weight:800;color:#1e293b}
.phsf-desc{font-size:.875rem;line-height:2;color:#64748b;margin-bottom:.875rem}
.phsf-social{display:flex;gap:.625rem;flex-wrap:wrap}
.phsf-soc{width:44px;height:44px;flex:0 0 44px;border-radius:9999px;background:#fff;border:1px solid rgba(15,23,42,.10);
  display:flex;align-items:center;justify-content:center;color:var(--cc,#64748b);
  box-shadow:0 2px 6px -4px rgba(15,23,42,.35);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease,color .18s ease}
.phsf-soc svg,#ph-ftr .phsf-soc svg{width:19px!important;height:19px!important;display:block}
.phsf-soc:hover,#ph-ftr .phsf-soc:hover{background:var(--cc,#0f63d7)!important;border-color:var(--cc,#0f63d7)!important;color:#fff!important;transform:translateY(-2px);box-shadow:0 6px 14px -6px rgba(15,23,42,.45)}
.phsf-soc:hover svg,#ph-ftr .phsf-soc:hover svg{color:#fff!important;fill:#fff!important}
#ph-ftr .phsf-soc{color:var(--cc,#64748b)!important}
#ph-ftr .phsf-soc[href*="eitaa.com"]{--cc:#FC4F57!important;color:#FC4F57!important}
.phsf-soc:focus-visible{outline:2px solid #0f172a;outline-offset:3px}

.phsf-news{border-radius:.75rem;background:linear-gradient(to bottom right,#eff6ff,rgba(236,254,255,.35));
  border:1px solid rgba(191,219,254,.6);padding:1.25rem;display:flex;flex-direction:column;justify-content:center}
.phsf-news h3{font-size:1rem;font-weight:800;color:#1e3a8a;margin-bottom:.25rem}
.phsf-news p{font-size:.875rem;color:#64748b;line-height:2;margin-bottom:.75rem}
.phsf-nf{display:flex;gap:.5rem;align-items:stretch}
.phsf-fld{position:relative;flex:1;min-width:0}
.phsf-fic{position:absolute;right:.75rem;top:50%;transform:translateY(-50%);color:#94a3b8;pointer-events:none}
.phsf-fic svg{width:16px;height:16px}
.phsf-nf input{width:100%;height:40px;border-radius:.5rem;background:#fff;border:1px solid #e2e8f0;
  font:inherit;font-size:.875rem;color:#1e293b;padding:.0 .75rem;padding-right:2.5rem;text-align:left;outline:none}
.phsf-nf input::placeholder{color:#94a3b8}
.phsf-nf input:focus{border-color:#93c5fd;box-shadow:0 0 0 3px rgba(191,219,254,.55)}
.phsf-nf button{height:40px;padding:0 1rem;border-radius:.5rem;background:#2563eb;color:#fff;border:0;cursor:pointer;
  font:inherit;font-size:.875rem;font-weight:700;display:inline-flex;align-items:center;gap:.375rem;flex-shrink:0;transition:background .2s}
.phsf-nf button svg{width:14px;height:14px}
.phsf-nf button:hover{background:#1d4ed8}
.phsf-nf button:disabled,.phsf-nf input:disabled{opacity:.6;cursor:default}
.phsf-nstat{font-size:.75rem;font-weight:600;margin-top:.5rem;min-height:16px}
.phsf-nstat.ok{color:#059669}.phsf-nstat.err{color:#dc2626}

.phsf-cred h4,.phsf-grp h4,.phsf-app h4{font-size:.875rem;font-weight:700;color:#334155;margin-bottom:.625rem}
.phsf-badges{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem}
.phsf-badge{aspect-ratio:1/1;border-radius:.5rem;border:1px solid #e2e8f0;background:#fff;display:flex;
  align-items:center;justify-content:center;overflow:hidden;transition:box-shadow .2s,border-color .2s}
.phsf-badge img{width:100%;height:100%;object-fit:contain;padding:.25rem}
.phsf-badge:hover{box-shadow:0 6px 14px rgba(15,23,42,.1);border-color:#bfdbfe}

/* link groups + app download */
.phsf-groups{display:grid;grid-template-columns:repeat(2,1fr);gap:1.25rem 1rem;margin-bottom:1.5rem}
.phsf-grp ul{display:flex;flex-direction:column;gap:.4rem}
.phsf-grp a{font-size:.875rem;color:#64748b;transition:color .15s}
.phsf-grp a:hover{color:#2563eb}
.phsf-app{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;text-align:center}
.phsf-app p{font-size:.875rem;color:#64748b;line-height:2;margin-bottom:.625rem}
.phsf-stores{display:flex;flex-direction:column;gap:.375rem;width:100%;max-width:180px}
.phsf-store{display:flex;align-items:center;justify-content:space-between;gap:.5rem;height:36px;padding:0 .75rem;
  border-radius:.375rem;color:#fff;font-size:.75rem;font-weight:700;box-shadow:0 1px 2px rgba(15,23,42,.12);
  transition:transform .2s,box-shadow .2s}
.phsf-store svg{width:16px;height:16px;flex-shrink:0;color:#fff}
.phsf-store:hover{transform:translateY(-2px);box-shadow:0 6px 14px rgba(15,23,42,.16)}
.phsf-store.bazaar{background:#1B7A43}.phsf-store.myket{background:#1E88E5}.phsf-store.appstore{background:#0F172A}

/* bottom band: copyright + contact */
.phsf-bot{border-top:1px solid #e2e8f0;padding-top:1rem;display:flex;flex-direction:column;gap:1rem}
.phsf-copy{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.25rem .75rem;font-size:.875rem;color:#94a3b8}
.phsf-sep{color:#cbd5e1}
.phsf-team{display:inline-flex;align-items:center;gap:.25rem}
.phsf-team svg{width:12px;height:12px;color:#60a5fa}
.phsf-contact{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.375rem 1rem;font-size:.875rem;color:#64748b}
.phsf-contact a{display:inline-flex;align-items:center;gap:.375rem;color:inherit;transition:color .15s}
.phsf-contact a:hover{color:#2563eb}
.phsf-contact svg{width:14px;height:14px;color:#94a3b8;flex-shrink:0}
.phsf-addr{display:inline-flex;align-items:flex-start;gap:.375rem;max-width:440px}

@media (min-width:640px){
  .phsf-in{padding:2.5rem 1.5rem}
  .phsf-groups{grid-template-columns:repeat(3,1fr)}
  .phsf-app{grid-column:auto;align-items:flex-start;text-align:right}
  .phsf-stores{max-width:none}
  .phsf-bot{flex-direction:row;align-items:flex-end;justify-content:space-between}
  .phsf-copy{justify-content:flex-start}
  .phsf-contact{justify-content:flex-end}
}
@media (min-width:1024px){
  .phsf-in{padding-inline:2rem}
  .phsf-top{grid-template-columns:minmax(240px,1fr) 1.6fr 1fr;gap:2rem}
  .phsf-groups{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1.5rem}
}
.phsf-store.phsf-store--img{background:transparent!important;padding:0!important;height:36px;border-radius:6px;overflow:hidden;display:block}
.phsf-store.phsf-store--img img{width:100%;height:100%;object-fit:contain;display:block}
#ph-ftr .phsf,#ph-ftr .phsf-in{display:block!important}

/* 2026-10-28: hover on touch screens leaves the last touched icon lifted/faded and makes the row hop */
@media (hover:none),(pointer:coarse){
  .phsf-soc:hover,#ph-ftr .phsf-soc:hover{background:#fff!important;border-color:rgba(15,23,42,.10)!important;color:var(--cc,#64748b)!important;transform:none;box-shadow:0 2px 6px -4px rgba(15,23,42,.35)}
  .phsf-soc:hover svg,#ph-ftr .phsf-soc:hover svg{color:var(--cc,#64748b)!important;fill:var(--cc,#64748b)!important}
}
/* 2026-10-28: keep the rebuilt footer on the homepage footer's height rhythm */
.phsf-in{max-width:80rem!important;padding:1.125rem 1rem!important}
@media (min-width:640px){.phsf-in{padding:1.125rem 1.5rem!important}}
@media (min-width:1024px){.phsf-in{padding-inline:2rem!important}}
.phsf-top{padding-bottom:4.4375rem!important;margin-bottom:2.5rem!important}
.phsf-groups{margin-bottom:.5rem!important;gap:.75rem 1rem!important}
.phsf-app{align-self:start!important;justify-content:flex-start!important;margin-block:0!important;transform:translateY(-6px)}
.phsf-grp ul{gap:.125rem!important}
.phsf-grp a{line-height:1.6!important;display:inline-block;padding-block:1px}
@media (min-width:640px){.phsf-grp ul{gap:.25rem!important}.phsf-grp a{padding-block:2px}}
@media (min-width:1024px){.phsf-grp ul{gap:.375rem!important}.phsf-grp a{padding-block:3px}.phsf-groups{grid-auto-flow:column;grid-template-columns:none!important}}
.phsf-badges{gap:.375rem!important}
