/* استایل کلی فوتر - دارک مود */
.site-footer {
    background-color: var(--bg-surface);
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

/* 1. استایل پری‌فوتر */
.pre-footer {
    background-color: var(--bg-surface-light);
    padding: 20px 0;
}

.pre-footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pre-footer-text {
    color: var(--text-main);
    font-weight: bold;
    font-size: 16px;
}

.lead-form {
    display: flex;
    gap: 10px;
}

.lead-form input {
    padding: 10px 15px;
    background-color: var(--bg-dark);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    outline: none;
    font-family: inherit;
    direction: ltr; /* برای تایپ درست شماره */
    transition: border-color 0.3s;
}

.lead-form input:focus {
    border-color: var(--cta-bg);
}

.lead-form button {
    background-color: var(--cta-bg);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.lead-form button:hover {
    background-color: var(--cta-hover);
}

/* 2. استایل بدنه اصلی فوتر */
.main-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 50px 20px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-main);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--cta-bg);
}

.footer-col p {
    line-height: 1.8;
    font-size: 14px;
    color: var(--text-muted);
    text-align: justify;
}

/* لینک‌ها و لیست‌ها */
.col-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.col-links li {
    margin-bottom: 12px;
}

.col-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.2s;
}

.col-links a:hover {
    color: var(--cta-bg);
}

/* سئوی محلی (NAP) */
.col-nap address {
    font-style: normal;
    line-height: 2;
    font-size: 14px;
    color: var(--text-muted);
}

.col-nap a {
    color: var(--text-main);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s;
}

.col-nap a:hover {
    color: var(--cta-bg);
}

/* 3. استایل ساب‌فوتر */
.sub-footer {
    border-top: 1px solid var(--border-color);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.trust-signals {
    display: flex;
    gap: 15px;
}

.trust-badge-placeholder {
    width: 80px;
    height: 80px;
    background: var(--bg-dark);
    border: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
    border-radius: 8px;
}

.footer-bottom-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--cta-bg);
}

.copyright {
    font-size: 13px;
    color: var(--text-muted);
}

/* ریسپانسیو فرم و المان‌ها برای موبایل */
@media (max-width: 768px) {
    .pre-footer-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .lead-form {
        width: 100%;
        flex-direction: column;
    }
    
    .lead-form input, .lead-form button {
        width: 100%;
        box-sizing: border-box;
    }

    .footer-bottom-row {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}