/* فوتر سایت (برگرفته از طرح Karun2026) */
.footer{background:var(--brand-deep);color:#bfd4d6;padding:60px 0 0}
.footer-grid{display:grid;grid-template-columns:1.15fr .85fr 1fr 1fr;gap:45px}
.footer h3{font-size:14px;color:#fff;margin-bottom:21px}
.footer p{font-size:11px;line-height:2.2;color:#b0c8cb}
.footer-grid a{display:block;font-size:11px;margin-top:9px;text-align:start}
.footer a:hover{color:white}
/* لوگوی سفید با زمینه شفاف: بدون پس‌زمینه، مستقیم روی رنگ فوتر */
.footer-brand img{display:block;width:270px;height:auto;max-height:96px;object-fit:contain;object-position:right center;margin-bottom:20px}
[dir=ltr] .footer-brand img{object-position:left center}
.copyright{border-top:1px solid #ffffff20;margin-top:42px;padding-block:20px;font-size:10px;display:flex;justify-content:space-between}
.footer-brand p{font-size:12px}
@media(max-width:1100px){
  .footer-grid{gap:25px}
}
@media(max-width:700px){
  .footer{padding-top:40px}
  .footer-grid{grid-template-columns:1fr 1fr;gap:32px 24px}
  .footer-grid h3{font-size:13px}
  .footer-brand img{width:230px;max-height:82px}
  .copyright{font-size:9px;align-items:center;gap:20px}
  /* جای دکمه «بازگشت به بالا» تا روی متن کپی‌رایت نیفتد */
  .footer{padding-bottom:76px}
  .copyright>a{white-space:nowrap}
}
.footer-grid a:hover,.footer-grid a:focus-visible{text-decoration:underline;text-underline-offset:5px}

/* ---------------------------------------------------------------- MahaCMS: جلوه‌های فوتر (آیکن تماس، شبکه‌های اجتماعی، مسیریابی) */
.footer{position:relative;overflow:hidden;background:radial-gradient(circle at 12% 0%,#0a5c69 0,transparent 42%),linear-gradient(160deg,#064651,var(--brand-deep) 60%)}
.footer:before{content:'';position:absolute;inset-inline:0;top:0;height:3px;background:linear-gradient(90deg,transparent,var(--gold),transparent)}
.footer:after{content:'⌬';position:absolute;bottom:-60px;inset-inline-end:-20px;font-size:260px;line-height:1;color:#ffffff06;pointer-events:none}
.footer-grid,.copyright{position:relative;z-index:1}
.footer h3{position:relative;padding-bottom:12px}
.footer h3:after{content:'';position:absolute;bottom:0;inset-inline-start:0;width:28px;height:2px;border-radius:2px;background:var(--gold)}
.footer-links a{position:relative;padding-inline-start:14px;transition:color .2s,padding .2s}
.footer-links a:before{content:'';position:absolute;inset-inline-start:0;top:50%;width:5px;height:5px;margin-top:-2.5px;border-radius:50%;background:#5f9aa1;transition:background .2s}
.footer-links a:hover{padding-inline-start:18px}
.footer-links a:hover:before{background:var(--gold)}
.footer-line{display:flex !important;align-items:flex-start;gap:9px;font-size:11px;line-height:2;color:#bfd4d6;margin:8px 0 0}
.footer-line svg{flex:0 0 15px;width:15px;height:15px;margin-top:5px;fill:none;stroke:var(--gold);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.footer p.footer-line{font-size:11px}
.footer-map{display:inline-flex !important;align-items:center;gap:6px;margin-top:14px !important;padding:5px 12px;border:1px solid #ffffff30;border-radius:20px;font-size:10px !important;color:#fff;transition:background .2s,border-color .2s}
.footer-map:after{content:'↗'}
.footer-map:hover,.footer-map:focus-visible{background:#ffffff14;border-color:var(--gold);text-decoration:none !important}
.footer-emails{list-style:none;margin:14px 0 0;padding:0}
.footer-emails li{display:flex;flex-wrap:wrap;gap:6px;align-items:baseline;font-size:11px;margin-top:6px}
.footer-emails span{color:#8fb1b5}
.footer-emails a{display:inline !important;margin:0 !important}
.footer-socials{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.footer-socials a{display:grid !important;place-items:center;width:36px;height:36px;margin:0 !important;border:1px solid #ffffff2e;border-radius:11px;color:#fff;transition:background .2s,border-color .2s,transform .2s}
.footer-socials a:hover,.footer-socials a:focus-visible{background:var(--gold);border-color:var(--gold);transform:translateY(-2px);text-decoration:none !important}
.footer-socials svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.footer-socials span{font-size:13px;font-weight:700}
@media(max-width:700px){
  .footer-brand{grid-column:1/-1}
  .footer:after{font-size:180px}
}
