/* ── FOOTER — Zinox source design ── */
.site-footer {
    --ft-bg: #0a1118;
    --ft-accent: #00d1d1;
    --ft-accent-soft: #33c1f5;
    --ft-text: rgba(255, 255, 255, 0.92);
    --ft-muted: rgba(255, 255, 255, 0.62);
    --ft-line: rgba(255, 255, 255, 0.08);
    --ft-input-bg: rgba(255, 255, 255, 0.06);
    --ft-social-bg: rgba(255, 255, 255, 0.07);

    background: var(--ft-bg);
    color: var(--ft-text);
    padding: 52px 0 0;
    margin-top: 0;
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    direction: rtl;
}

.site-footer .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 36px 28px;
    margin-bottom: 36px;
    width: 100%;
    min-width: 0;
}

.footer-column {
    min-width: 0;
    max-width: 100%;
}

.footer-column h3 {
    color: #fff;
    font-weight: 800;
    margin: 0 0 22px;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.4;
    padding-bottom: 14px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 42px;
    height: 3px;
    background: var(--ft-accent);
    border-radius: 2px;
}

.footer-column > p {
    color: var(--ft-muted);
    line-height: 1.85;
    margin: 0 0 18px;
    font-size: 0.88rem;
}

/* ── About + social ── */
.footer-logo {
    display: inline-block;
    margin: 0 0 18px;
    line-height: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-logo:hover {
    transform: scale(1.04);
    opacity: 0.92;
}

.footer-logo img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: block;
    object-fit: contain;
}

.footer-about-text {
    color: var(--ft-muted);
    line-height: 1.85;
    margin: 0 0 20px;
    font-size: 0.88rem;
}

.social-links {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--ft-social-bg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    color: var(--ft-accent-soft);
    font-size: 16px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: rgba(0, 209, 209, 0.16);
    color: var(--ft-accent);
    transform: translateY(-2px);
}

/* ── Useful links ── */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li:last-child {
    margin-bottom: 0;
}

.footer-links a {
    color: var(--ft-accent-soft);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
    display: inline-block;
    font-size: 0.88rem;
    line-height: 1.6;
    padding: 2px 0;
}

.footer-links a:hover {
    color: var(--ft-accent);
    opacity: 0.92;
}

/* ── Contact ── */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--ft-muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer-contact li:last-child {
    margin-bottom: 0;
}

.footer-contact i {
    color: var(--ft-accent);
    width: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.footer-contact span {
    flex: 1;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ── Newsletter ── */
.footer-newsletter-text {
    color: var(--ft-muted);
    line-height: 1.85;
    margin: 0 0 16px;
    font-size: 0.88rem;
}

.footer-form {
    margin: 0 0 12px;
}

.footer-form-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    direction: ltr;
    background: var(--ft-input-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 5px 5px 5px 8px;
    max-width: 100%;
}

.footer-form input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 0.86rem;
    padding: 10px 12px;
    direction: rtl;
    text-align: right;
    outline: none;
}

.footer-form input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.footer-form button {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: var(--ft-accent);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.footer-form button:hover {
    background: #00b8b8;
    transform: scale(1.04);
}

.footer-form-note {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.78rem;
    line-height: 1.6;
    margin: 0;
}

/* ── Trust / enamad ── */
.enamad-container {
    margin-top: 4px;
}

.enamad-link {
    display: inline-block;
    transition: opacity 0.2s ease;
}

.enamad-link img {
    width: 120px;
    height: auto;
    display: block;
    cursor: pointer;
}

.enamad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 120px;
    text-align: center;
}

.enamad-placeholder-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    display: block;
}

.enamad-text {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.6;
}

/* ── Bottom bar ── */
.footer-bottom {
    border-top: 1px solid var(--ft-line);
    margin-top: 0;
    padding: 18px 0 22px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.84rem;
    line-height: 1.7;
}

.footer-bottom a {
    color: var(--ft-accent);
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.footer-bottom a:hover {
    opacity: 0.85;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .footer-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding-top: 40px;
    }

    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
        margin-bottom: 28px;
    }

    .footer-column h3 {
        font-size: 1rem;
        margin-bottom: 18px;
        padding-bottom: 12px;
    }
}

@media (max-width: 560px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .social-links {
        justify-content: flex-start;
    }

    .enamad-placeholder {
        min-height: 100px;
    }

    .footer-bottom {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Dark theme — same palette */
[data-theme="dark"] .site-footer {
    background: var(--ft-bg);
    border-top: 1px solid var(--ft-line);
}
