:root {
    --f-primary:  #0C127A;
    --f-accent:   #ED1C24;
    --f-bg:       #0C127A;
    --f-bg2:      #091060;
    --f-surface:  rgba(255,255,255,0.06);
    --f-border:   rgba(255,255,255,0.10);
    --f-text:     rgba(255,255,255,0.75);
    --f-muted:    rgba(255,255,255,0.42);
    --f-white:    #ffffff;
    --f-font:     "Dana", Tahoma, Arial, sans-serif;
    --f-tr:       0.25s ease;
}

.site-footer *, .site-footer *::before, .site-footer *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.site-footer {
    direction: rtl;
    font-family: var(--f-font);
    background: var(--f-bg);
    color: var(--f-text);
    position: relative;
}


/* ظرف */
.f-wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* بدنه */
.f-body { padding: 3rem 0 2rem; }

/* گرید سه‌ستونه */
.f-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 900px) {
    .f-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .f-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 580px) {
    .f-grid { grid-template-columns: 1fr; }
    .f-col--brand { grid-column: auto; }
}

/* لوگو */
.f-logo-wrap { display: inline-block; margin-bottom: 1rem; }
.f-logo { height: 3.25rem; width: auto; display: block; }

/* توضیح برند */
.f-tagline {
    font-size: 0.875rem;
    line-height: 1.9;
    color: var(--f-text);
    max-width: 22rem;
    font-weight: 400;
    border-right: 2px solid var(--f-accent);
    padding-right: 0.875rem;
    margin-bottom: 1.5rem;
}

/* اطلاعات تماس فشرده */
.f-contact-mini { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }
.f-contact-mini li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8125rem;
    color: var(--f-text);
}
.f-contact-mini li .ico {
    width: 1.75rem;
    height: 1.75rem;
    background: rgba(237,28,36,0.12);
    border: 1px solid rgba(237,28,36,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.f-contact-mini li .ico svg {
    width: 0.875rem;
    height: 0.875rem;
    stroke: var(--f-accent);
    stroke-width: 2;
    fill: none;
}
.f-contact-mini li a { color: var(--f-text); text-decoration: none; direction: ltr; }
.f-contact-mini li a:hover { color: var(--f-white); }

/* شبکه‌های اجتماعی */
.f-social { list-style: none; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.f-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--f-surface);
    border: 1px solid var(--f-border);
    text-decoration: none;
    transition: transform var(--f-tr), box-shadow var(--f-tr), background var(--f-tr);
}
.f-social a svg { width: 1rem; height: 1rem; color: rgba(255,255,255,0.7); transition: color var(--f-tr); }
.f-social a:hover { transform: translateY(-3px); border-color: transparent; }
.f-social a:hover svg { color: var(--f-white); }
.f-social a.wa:hover { background: #25D366; box-shadow: 0 5px 16px rgba(37,211,102,.35); }
.f-social a.ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); box-shadow: 0 5px 16px rgba(214,36,159,.35); }
.f-social a.tg:hover { background: #229ED9; box-shadow: 0 5px 16px rgba(34,158,217,.35); }

/* عنوان ستون */
.f-col-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--f-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--f-border);
    position: relative;
    font-family: var(--f-font);
}
.f-col-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 2.5rem;
    height: 2px;
    background: var(--f-accent);
    border-radius: 2px;
}
.f-col-title .bar {
    display: inline-block;
    width: 4px;
    height: 1.125rem;
    background: var(--f-accent);
    border-radius: 2px;
    flex-shrink: 0;
}

/* لینک‌های مفید */
.f-links { list-style: none; }
.f-links li { border-bottom: 1px solid var(--f-border); }
.f-links li:last-child { border-bottom: none; }
.f-links li a {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 0.25rem;
    color: var(--f-text);
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: color var(--f-tr), padding-right var(--f-tr), background var(--f-tr);
    font-family: var(--f-font);
}
.f-links li a:hover { color: var(--f-white); padding-right: 0.5rem; background: rgba(255,255,255,0.05); }
.f-links li a .arr { font-size: 1.125rem; color: var(--f-accent); opacity: 0.6; transition: opacity var(--f-tr); }
.f-links li a:hover .arr { opacity: 1; }

/* کارت‌های تماس */
.f-cards { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.f-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
    background: var(--f-surface);
    border: 1px solid var(--f-border);
    border-radius: 0.375rem;
    transition: border-color var(--f-tr), background var(--f-tr);
}
.f-card:hover { border-color: rgba(237,28,36,0.35); background: rgba(237,28,36,0.06); }
.f-card__ico {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(237,28,36,0.12);
    border: 1px solid rgba(237,28,36,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--f-tr);
}
.f-card:hover .f-card__ico { background: var(--f-accent); }
.f-card__ico svg { width: 0.875rem; height: 0.875rem; stroke: var(--f-accent); stroke-width: 1.8; fill: none; transition: stroke var(--f-tr); }
.f-card:hover .f-card__ico svg { stroke: var(--f-white); }
.f-card__lbl { display: block; font-size: 0.6875rem; color: var(--f-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.2rem; font-family: var(--f-font); }
.f-card__val { display: block; font-size: 0.8125rem; color: var(--f-text); font-weight: 500; text-decoration: none; font-family: var(--f-font); }
a.f-card__val:hover { color: var(--f-white); }

/* خط جداکننده */
.f-hr { padding: 0; }
.f-hr-line {
    height: 1px;
    background: linear-gradient(to left, transparent, var(--f-border) 25%, rgba(237,28,36,0.4) 50%, var(--f-border) 75%, transparent);
}

/* نوار پایین */
.f-bottom { padding: 1rem 0; background: var(--f-bg2); }
.f-bottom__in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.f-copy { font-size: 0.8125rem; color: var(--f-muted); font-weight: 400; font-family: var(--f-font); }
.f-copy strong { color: #f5c518; font-weight: 700; letter-spacing: 0.05em; }
.f-bottom-links { display: flex; gap: 1.25rem; }
.f-bottom-links a { font-size: 0.8125rem; color: var(--f-muted); text-decoration: none; transition: color var(--f-tr); font-family: var(--f-font); }
.f-bottom-links a:hover { color: var(--f-white); }

/* دکمه بازگشت به بالا */
#back-to-top {
    position: fixed;
    left: 1.5rem;
    bottom: 2rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--f-accent);
    box-shadow: 0 4px 18px rgba(237,28,36,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform var(--f-tr), box-shadow var(--f-tr);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(237,28,36,0.5); }
#back-to-top svg { width: 1.125rem; height: 1.125rem; stroke: var(--f-white); stroke-width: 2.5; fill: none; }

/* ریسپانسیو */
@media (max-width: 580px) {
    .f-body { padding: 2rem 0 1.5rem; }
    .f-bottom__in { flex-direction: column; align-items: flex-start; }
    #back-to-top { left: 1rem; bottom: 1.25rem; }
    .f-tagline { max-width: 100%; }
}
