/* L2 shared footer — normal document flow on every page. */
/* Do not turn body or page wrappers into flex containers: several page shells
   use independent layout/scroll contexts and must retain their natural height. */
html{min-height:100%;}
body{min-height:100%;box-sizing:border-box;}

.l2-site-footer{
  position:relative;
  clear:both;
  isolation:isolate;
  display:block;
  width:100%;
  max-width:100%;
  margin:clamp(28px,4vw,44px) 0 0;
  padding:0;
  overflow:hidden;
  box-sizing:border-box;
  text-align:start;
  color:#172033;
  background:#fff;
  border:1px solid #e6ebf2;
  border-radius:24px 24px 0 0;
  box-shadow:0 -8px 30px rgba(23,32,51,.05);
  font-family:"Vazirmatn",sans-serif;
}
.l2-site-footer::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:4px;
  background:linear-gradient(90deg,#2457a6 0%,#5d87c9 48%,#d92d3a 100%);
}
.l2-site-footer *,
.l2-site-footer *::before,
.l2-site-footer *::after{box-sizing:border-box}
.l2-site-footer-inner{
  width:min(1240px,calc(100% - 40px));
  margin-inline:auto;
  padding:38px 0 18px;
}
.l2-site-footer-grid{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) repeat(3,minmax(0,1fr));
  gap:16px;
  align-items:stretch;
}
.l2-site-footer-brand,
.l2-site-footer-col{
  min-width:0;
  padding:18px;
  border:1px solid #e8edf3;
  border-radius:18px;
  background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%);
  box-shadow:0 7px 22px rgba(23,32,51,.035);
}
.l2-site-footer-brand{
  position:relative;
  overflow:hidden;
  background:linear-gradient(145deg,#f7faff 0%,#fff 62%,#fff8f9 100%);
}
.l2-site-footer-brand::after{
  content:"";
  position:absolute;
  inset-inline-start:-28px;
  bottom:-40px;
  width:110px;
  height:110px;
  border-radius:50%;
  background:rgba(36,87,166,.055);
  pointer-events:none;
}
.l2-site-footer-logo{
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  min-height:50px;
  text-decoration:none;
}
.l2-site-footer-logo img{
  display:block;
  width:auto;
  max-width:150px;
  height:auto;
  max-height:54px;
  object-fit:contain;
}
.l2-site-footer-brand p{
  position:relative;
  z-index:1;
  max-width:360px;
  margin:14px 0 0;
  color:#667085;
  font-size:12px;
  line-height:2;
}
.l2-site-footer-hours{
  position:relative;
  z-index:1;
  display:grid;
  gap:3px;
  margin-top:14px;
  padding-top:12px;
  border-top:1px dashed #dfe6ee;
  color:#667085;
  font-size:11px;
}
.l2-site-footer-hours strong{color:#2457a6;font-size:12px}
.l2-site-footer-col h2{
  display:flex;
  align-items:center;
  gap:8px;
  margin:1px 0 14px;
  color:#172033;
  font-size:14px;
  font-weight:950;
}
.l2-site-footer-col h2::before{
  content:"";
  display:inline-block;
  flex:0 0 5px;
  width:5px;
  height:20px;
  border-radius:6px;
  background:linear-gradient(180deg,#2457a6,#d92d3a);
}
.l2-site-footer-col address{font-style:normal}
.l2-site-footer-contact-item{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  margin:0 0 9px;
  padding:9px 10px;
  border:1px solid #edf1f5;
  border-radius:11px;
  background:#fafbfd;
}
.l2-site-footer-contact-item>span{
  display:inline-flex;
  flex:0 0 27px;
  align-items:center;
  justify-content:center;
  width:27px;
  height:27px;
  border-radius:8px;
  background:#eef4fc;
  color:#2457a6;
  font-size:12px;
}
.l2-site-footer-contact-item a,
.l2-site-footer-contact-item p{
  min-width:0;
  margin:0;
  color:#667085;
  font-size:11px;
  line-height:1.9;
  text-decoration:none;
  overflow-wrap:anywhere;
}
.l2-site-footer-contact-item a:hover{color:#2457a6}
.l2-site-footer-socials{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  align-items:stretch;
}
.l2-site-footer-socials a{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:9px;
  min-width:0;
  min-height:42px;
  padding:5px 11px;
  border:1px solid #edf1f5;
  border-radius:11px;
  background:#fafbfd;
  color:#667085;
  font-size:11px;
  font-weight:800;
  text-decoration:none;
  transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease;
}
.l2-site-footer-socials a:hover{
  background:#f2f6fc;
  color:#2457a6;
  border-color:#dce6f2;
  transform:translateY(-1px);
}
.l2-site-footer-socials .l2-social-icon{
  display:inline-flex;
  flex:0 0 30px;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border-radius:9px;
  background:#eef4fc;
  color:#2457a6;
}
.l2-site-footer-socials .l2-social-icon svg{display:block;width:18px;height:18px}
.l2-site-footer-socials .l2-social-label{display:block;min-width:0;overflow-wrap:anywhere}
.l2-site-footer-social-instagram .l2-social-icon{color:#e4405f;background:#fff0f4}
.l2-site-footer-social-telegram .l2-social-icon{color:#229ed9;background:#edf8ff}
.l2-site-footer-social-whatsapp .l2-social-icon{color:#25d366;background:#effbf4}
.l2-site-footer-social-bale .l2-social-icon{color:#00a884;background:#ecfbf7}
.l2-site-footer-enamad{display:flex;flex-direction:column;min-height:100%;}
.l2-enamad-seal{
  display:flex;
  flex:1 1 auto;
  align-items:center;
  justify-content:center;
  min-height:144px;
  padding:4px 0 0;
}
.l2-enamad-seal a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  max-width:100%;
  text-decoration:none;
}
.l2-enamad-seal img{
  display:block;
  width:125px;
  max-width:100%;
  height:136px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  object-fit:contain;
}
.l2-site-footer-bottom{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-top:18px;
  padding:16px 6px 0;
  border-top:1px solid #e8edf3;
  color:#98a2b3;
  font-size:10px;
  text-align:center;
}
.l2-site-footer-bottom-nav{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  margin:0;
  padding:0;
}
.l2-site-footer-bottom-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  min-height:34px;
  padding:4px 10px;
  border:1px solid #e0e7ef;
  border-radius:10px;
  background:#f8fafc;
  color:#475467;
  font-size:10px;
  line-height:1.6;
  text-align:center;
  text-decoration:none;
  overflow-wrap:anywhere;
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.l2-site-footer-bottom-nav a:hover{
  background:#eef4fc;
  color:#2457a6;
  border-color:#d8e5f7;
}
.l2-site-footer-bottom-copyright{
  display:block;
  width:100%;
  margin:0;
  color:#98a2b3;
  text-align:center;
}
.l2-site-footer a:focus-visible{
  outline:2px solid #8fb1df;
  outline-offset:3px;
  border-radius:6px;
}
@media(max-width:900px){
  .l2-site-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .l2-site-footer-brand{grid-column:1/-1}
  .l2-site-footer-brand p{max-width:620px}
  .l2-site-footer-bottom-nav{gap:7px}
}
@media(max-width:620px){
  .l2-site-footer{margin-top:28px;border-radius:20px 20px 0 0}
  .l2-site-footer-inner{width:calc(100% - 24px);padding:30px 0 14px}
  .l2-site-footer-grid{grid-template-columns:minmax(0,1fr);gap:11px}
  .l2-site-footer-brand{grid-column:auto}
  .l2-site-footer-brand,
  .l2-site-footer-col{padding:15px;border-radius:15px}
  .l2-site-footer-brand p{max-width:none;font-size:11px}
  .l2-site-footer-socials{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .l2-site-footer-socials a{
    flex-direction:column;
    justify-content:center;
    gap:5px;
    min-height:66px;
    padding:7px 3px;
    text-align:center;
  }
  .l2-site-footer-socials .l2-social-icon{width:30px;height:30px}
  .l2-site-footer-socials .l2-social-label{
    max-width:100%;
    font-size:9px;
    text-align:center;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .l2-site-footer-col nav{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
  }
  .l2-site-footer-col nav a{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    min-width:0;
    min-height:40px;
    padding:6px 8px;
    border:1px solid #e8edf3;
    border-radius:10px;
    background:#fafbfd;
    color:#667085;
    font-size:10px;
    line-height:1.6;
    text-decoration:none;
    overflow-wrap:anywhere;
  }
  .l2-site-footer-col nav a:hover{background:#f2f6fc;color:#2457a6}
  .l2-site-footer-bottom{gap:10px;margin-top:14px;padding-top:13px}
  .l2-site-footer-bottom-nav{gap:6px}
  .l2-site-footer-bottom-nav a{min-height:32px;padding:4px 8px;font-size:9px}
}
@media(max-width:360px){
  .l2-site-footer-inner{width:calc(100% - 18px)}
  .l2-site-footer-brand,
  .l2-site-footer-col{padding:12px}
  .l2-site-footer-col nav{grid-template-columns:minmax(0,1fr)}
}
/* Keep the eNAMAD seal visible on compact screens; load its local verified asset. */
@media(max-width:620px){
  .l2-site-footer .l2-site-footer-enamad{display:flex!important;visibility:visible!important;opacity:1!important;min-height:0!important;}
  .l2-site-footer .l2-enamad-seal{display:flex!important;visibility:visible!important;opacity:1!important;min-height:144px!important;align-items:center!important;justify-content:center!important;}
  .l2-site-footer .l2-enamad-seal a,.l2-site-footer .l2-enamad-seal img{display:inline-flex!important;visibility:visible!important;opacity:1!important;}
  .l2-site-footer .l2-enamad-seal img{width:125px!important;height:136px!important;max-width:100%!important;object-fit:contain!important;}
}
