/* استایل‌های فوتر مدرن سایت ردیف */

.modern-footer {
    background: linear-gradient(135deg, #7b2ff7 0%, #ff5ea8 100%);
    color: var(--neutral-100);
    font-family: var(--font-family-primary);
    padding-top: 4rem;
    position: relative;
    overflow: hidden;
    direction: rtl;
}

/* افکت‌های پس‌زمینه */
.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    z-index: 1;
}

.modern-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(135deg, #7b2ff7 0%, #ff5ea8 100%);
    z-index: 2;
}

.container-custom {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* محتوای اصلی فوتر */
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* بخش برند */
.brand-section {
    display: flex;
    flex-direction: column;
}

.brand-logo {
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-logo:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.brand-description .main-desc {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: white;
}

.brand-description .sub-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--neutral-300);
    margin-bottom: 1.5rem;
}

/* آیکون‌های شبکه‌های اجتماعی */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    background: linear-gradient(135deg, #7b2ff7 0%, #ff5ea8 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* بخش لینک‌ها */
.links-section {
    display: flex;
    flex-direction: column;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #7b2ff7 0%, #ff5ea8 100%);
    border-radius: 3px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links li a {
    color: var(--neutral-300);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links li a::before {
    content: '•';
    margin-left: 0.5rem;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: white;
    transform: translateX(-5px);
}

.footer-links li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* بخش گواهینامه‌ها */
.certificates-section {
    display: flex;
    flex-direction: column;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.certificate-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.certificate-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.certificate-item img {
    max-width: 100%;
    max-height: 40px;
    filter: grayscale(100%) brightness(1.2);
    transition: all 0.3s ease;
}

.certificate-item:hover img {
    filter: grayscale(0) brightness(1);
}

/* بخش خبرنامه */
.newsletter-section {
    display: flex;
    flex-direction: column;
}

.newsletter-form {
    position: relative;
    margin-top: 1rem;
}

.newsletter-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
}

.newsletter-input::placeholder {
    color: var(--neutral-400);
}

.newsletter-btn {
    position: absolute;
    left: 5px;
    top: 5px;
    bottom: 5px;
    background: linear-gradient(135deg, #7b2ff7 0%, #ff5ea8 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    padding: 0 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, #6a1cf0 0%, #ff72b3 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* بخش پایین فوتر */
.footer-bottom {
    position: relative;
    z-index: 3;
    padding: 1.5rem 0;
}

.footer-bottom .container-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-text {
    color: var(--neutral-400);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--neutral-400);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 2rem;
    }
    
    .certificates-section {
        grid-column: span 3;
        margin-top: 2rem;
    }
    
    .certificates-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .modern-footer {
        padding-top: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .brand-section {
        grid-column: span 2;
    }
    
    .certificates-section {
        grid-column: span 2;
    }
    
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom .container-custom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .brand-section,
    .certificates-section {
        grid-column: span 1;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
}

/* دسترس‌پذیری: فوکوس با کیبورد */
.modern-footer a:focus-visible,
.modern-footer button:focus-visible,
.modern-footer input:focus-visible {
    outline: 3px solid rgba(255, 94, 168, 0.6);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(123, 47, 247, 0.25);
    border-radius: var(--radius-md);
}

.modern-footer .social-icon:focus-visible {
    transform: translateY(-3px) scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
    .modern-footer * {
        transition: none !important;
    }
}

/* ساختار جدید: نوار بالا (برند + CTA) */
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-top__brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-top__brand .brand-logo {
    display: inline-flex;
    align-items: center;
}

.footer-top__brand .footer-logo {
    height: 48px;
}

.footer-top__cta {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.25rem 1.25rem 1rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.footer-top__cta .cta-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0 0 .4rem 0;
}

.footer-top__cta .cta-sub {
    color: var(--neutral-200);
    margin: 0 0 1rem 0;
    font-size: .95rem;
}

.modern-footer .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7b2ff7 0%, #ff5ea8 100%);
    color: #fff;
    text-decoration: none;
    padding: .6rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,.15);
    font-weight: 600;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

.modern-footer .cta-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.07);
    box-shadow: 0 10px 28px rgba(0,0,0,.22);
}

/* ساختار جدید: شبکه لینک‌ها */
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col .section-title {
    margin-bottom: 1rem;
}

.footer-col .sub-desc {
    color: var(--neutral-300);
}

/* نوار اعتماد: شبکه‌های اجتماعی + گواهی‌ها */
.trust-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.75rem 0 0 0;
}

.social-group {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.social-heading {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

/* Utility: فقط برای دسترس‌پذیری وضعیت اعلان‌ها */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.social-group {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.social-heading {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

/* ریسپانسیو */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1.5fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .footer-top__brand {
        align-items: flex-start;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .trust-strip {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .social-group {
        align-items: center;
        text-align: center;
    }
    .trust-strip .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}