/* فوتر سراسری (فقط صفحات نیوی) */
.tf-footer-chrome,
.tf-footer-chrome *{box-sizing:border-box}
.tf-footer-chrome{
    --tf-bg:#050a12;
    --tf-bg2:#0a1220;
    --tf-gold:var(--tf-c-orange);
    --tf-gold-light:var(--tf-c-orange-light);
    --tf-text:#dde2ea;
    --tf-muted:#9ea8b7;
    --tf-line:rgba(255,255,255,.12);
    background:var(--tf-bg);
    color:var(--tf-text);
    font-family:"Vazirmatn",sans-serif;
}
.tf-footer-edge{
    height:14px;
    background:#111a26;
    border-top:1px solid rgba(255,255,255,.08);
    border-bottom:2px solid var(--tf-gold);
    position:relative;
    overflow:hidden;
}
.tf-footer-edge:before{
    content:"";
    position:absolute;
    inset:2px 0;
    background:repeating-linear-gradient(
        90deg,
        transparent 0 18px,
        #7d8794 18px 22px,
        transparent 22px 42px
    );
    opacity:.9;
}
.tf-footer-wrap{
    width:min(1220px,calc(100% - 44px));
    margin:auto;
}
.tf-footer-main{
    padding:78px 0 45px;
    background:
        radial-gradient(circle at 82% 0,rgba(217,149,61,.07),transparent 28%),
        var(--tf-bg);
}

/* سه ستون واقعی: برند / دسترسی سریع / تماس — قبلاً گرید ۴ ستونه تعریف شده بود
   ولی فقط ۳ بلوک تو مارک‌آپ بود، نسبت‌ها رو با محتوای واقعی هماهنگ کردم */
.tf-footer-grid{
    display:grid;
    grid-template-columns:1.6fr 1fr 1.1fr;
    gap:45px;
    padding-bottom:48px;
    border-bottom:1px solid var(--tf-line);
}

/* ---------- ستون برند: لوگو + اسم سایت + توضیح ---------- */
.tf-footer-brand{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:18px;
}
.tf-footer-logo img{
    display:block;
    height:64px;
    width:auto;
}
.tf-footer-name{
   color:var(--tf-muted);
    font-size:16px;
    font-weight:900;
}
.tf-footer-about{
    max-width:410px;
    color:var(--tf-muted);
    font-size:14px;
    line-height:2.2;
    margin:0 0 16px;
}

/* ---------- تیتر ستون‌ها: نقطه‌ی طلایی کنارش + خط زیرش ---------- */
.tf-footer-title{
    display:flex;
    align-items:center;
    gap:9px;
    color:#fff;
    font-size:15px;
    margin:0 0 17px;
    position:relative;
    padding-bottom:9px;
}
.tf-footer-title:before{
    content:"";
    width:6px;
    height:6px;
    flex-shrink:0;
    border-radius:50%;
    background:var(--tf-gold);
}
.tf-footer-title:after{
    content:"";
    position:absolute;
    inset-inline-start:0;
    bottom:0;
    width:28px;
    height:2px;
    background:var(--tf-gold);
}

.tf-footer-links{
    display:flex;
    flex-direction:column;
    gap:7px;
    margin:0;
    padding:0;
    list-style:none;
}
.tf-footer-links li{margin:0}
.tf-footer-links a{
    color:var(--tf-muted);
    text-decoration:none!important;
    font-size:14px;
    transition:.2s ease;
}
.tf-footer-links a:hover{color:var(--tf-gold-light);padding-inline-start:4px}

/* ---------- سوییچ زبان «فارسی | English» زیر دسترسی سریع (inc/options/branding.php) ---------- */
.tf-lang-switch{
    display:inline-flex;align-items:stretch;margin-top:20px;
    border:1px solid var(--tf-line);border-radius:2px;font-size:13px;line-height:1;
}
.tf-lang-switch svg{width:16px;height:16px;flex:0 0 auto;align-self:center;margin:0 10px;color:var(--tf-muted)}
.tf-lang-switch a,
.tf-lang-switch span{display:flex;align-items:center;padding:9px 14px;border-inline-start:1px solid var(--tf-line)}
.tf-lang-switch span[aria-current]{background:rgba(217,138,61,.12);color:var(--tf-gold-light);font-weight:700}
.tf-lang-switch a{color:var(--tf-muted);text-decoration:none!important;transition:.2s ease}
.tf-lang-switch a:hover{color:#fff;background:rgba(255,255,255,.05)}
.tf-lang-switch [lang="en"]{font-family:inherit;letter-spacing:.02em}

/* ---------- ستون تماس: ایمیل + آدرس + شبکه‌های اجتماعی، همه تو یه ستون ---------- */
.tf-footer-contact{
    display:flex;
    flex-direction:column;
    gap:16px;
}
.tf-footer-contact-group{
    display:flex;
    flex-direction:column;
    gap:4px;
}
.tf-footer-contact-label{
    color:var(--tf-gold-light);
    font-size:14px;
    letter-spacing:.3px;
}
.tf-footer-contact a,
.tf-footer-contact span{
    color:var(--tf-muted);
    text-decoration:none!important;
    font-size:14px;
    line-height:1.8;
}
.tf-footer-contact a:hover{color:var(--tf-gold-light)}

.tf-footer-social{
    display:flex;
    gap:9px;
    margin-top:4px;
}
.tf-footer-social a{
    width:37px;
    height:37px;
    border:1px solid #5e6875;
    border-radius:50%;
    display:grid;
    place-items:center;
    color:#fff;
    text-decoration:none!important;
    transition:.2s ease;
}
.tf-footer-social a:hover{
    border-color:var(--tf-gold);
    color:var(--tf-gold-light);
    transform:translateY(-2px);
}

.tf-footer-credits{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:25px;
    padding-top:24px;
}
.tf-footer-copy{
    color:#7f8997;
    font-size:11px;
}
.tf-footer-code{
    color:var(--tf-gold);
    font-size:11px;
    letter-spacing:2px;
    direction:ltr;
    text-align:center;
}
.tf-footer-back{
    text-align:end;
}
.tf-footer-back a{
    color:#9ea8b7;
    font-size:12px;
    text-decoration:none!important;
}
.tf-footer-back a:hover{color:var(--tf-gold-light)}

@media(max-width:950px){
    .tf-footer-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:600px){
    .tf-footer-wrap{width:calc(100% - 28px)}
    .tf-footer-main{padding:55px 0 30px}
    .tf-footer-grid{grid-template-columns:1fr;gap:32px;padding-bottom:35px}
    .tf-footer-credits{grid-template-columns:1fr;text-align:center;gap:12px}
    .tf-footer-back{text-align:center}
}

/* هاله‌ی سفید لوگوی فوتر (تنظیم در «لوگو و زبان») */
.tf-footer-logo.has-logo-glow img{filter:drop-shadow(0 0 var(--tf-glow-r,12px) rgba(var(--tf-glow-rgb,255,255,255),var(--tf-glow-a,.55))) drop-shadow(0 0 calc(var(--tf-glow-r,12px) / 3) rgba(var(--tf-glow-rgb,255,255,255),var(--tf-glow-a,.55)));}
