﻿/* =============================
   PREMIUM AGENCY FOOTER
   prefix: ag-footer-
   ============================= */

.ag-footer {
    padding: 28px 0 46px;
    background: transparent;
    direction: rtl;
    font-family: "Peyda","Vazirmatn", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.ag-footer__container {
    width: min(1200px, 92vw);
    margin-inline: auto;
}

/* ---------- CTA Strip ---------- */
.ag-footer__cta {
    background: radial-gradient(900px 420px at 10% 85%, rgba(22,119,255,.08), transparent 60%), radial-gradient(700px 380px at 90% 15%, rgba(245,164,0,.10), transparent 60%), linear-gradient(135deg, #ffffff, #fbfdff);
    border: 1px solid #e6eaf0;
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(2,6,23,.08);
    padding: 22px 22px 18px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.ag-footer__cta-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 900;
    color: #0b3b8b;
    background: rgba(22,119,255,.08);
    border: 1px solid rgba(22,119,255,.18);
    margin-bottom: 8px;
}

.ag-footer__cta-title {
    margin: 0 0 6px;
    font-size: clamp(18px, 1.7vw, 22px);
    font-weight: 900;
    color: #0f172a;
}

.ag-footer__cta-sub {
    margin: 0;
    font-size: 12.2px;
    color: #64748b;
    line-height: 1.8;
    max-width: 52ch;
}

/* Phone box */
.ag-footer__phone-box {
    background: #0b1324;
    color: #fff;
    border-radius: 16px;
    padding: 14px 14px 12px;
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 10px 24px rgba(2,6,23,.10);
}

.ag-footer__phone-label {
    display: block;
    font-size: 10.5px;
    opacity: .85;
    margin-bottom: 4px;
}

.ag-footer__phone {
    display: block;
    text-decoration: none;
    color: #fff;
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 900;
    letter-spacing: .2px;
}

.ag-footer__phone-hint {
    display: block;
    font-size: 10px;
    opacity: .75;
    margin-top: 4px;
}

.ag-footer__cta-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.ag-footer__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 900;
    text-decoration: none;
    transition: 180ms ease;
}

.ag-footer__cta-btn--primary {
    background: #f5a400;
    color: #111827;
    box-shadow: 0 10px 22px rgba(245,164,0,.22);
}

    .ag-footer__cta-btn--primary:hover {
        filter: brightness(.97);
        transform: translateY(-1px);
    }

.ag-footer__cta-btn--ghost {
    background: rgba(2,6,23,.04);
    border: 1px solid #e6eaf0;
    color: #0f172a;
}

    .ag-footer__cta-btn--ghost:hover {
        background: rgba(2,6,23,.07);
    }

/* ---------- Main Grid ---------- */
.ag-footer__grid {
    display: grid;
    grid-template-columns: 1.25fr 0.9fr 0.9fr 1.05fr;
    gap: 14px;
}

/* Column base */
.ag-footer__col {
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 18px;
    padding: 16px 16px 14px;
    box-shadow: 0 8px 22px rgba(2,6,23,.05);
}

/* Brand/About */
.ag-footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ag-footer__brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(22,119,255,.08);
    border: 1px solid rgba(22,119,255,.18);
    font-size: 16px;
}

.ag-footer__brand-name {
    font-size: 15px;
    font-weight: 900;
    color: #0f172a;
}

.ag-footer__about-text {
    margin: 0 0 12px;
    font-size: 11.6px;
    line-height: 1.85;
    color: #475569;
}

.ag-footer__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ag-footer__trust-item {
    font-size: 9.8px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e6eaf0;
    color: #0f172a;
}

/* Titles + lists */
.ag-footer__title {
    margin: 0 0 10px;
    font-size: 13.2px;
    font-weight: 900;
    color: #0f172a;
    position: relative;
    padding-right: 10px;
}

    .ag-footer__title::before {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 16px;
        border-radius: 999px;
        background: #1677ff;
    }

.ag-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 7px;
}

    .ag-footer__list a {
        text-decoration: none;
        font-size: 11.5px;
        font-weight: 600;
        color: #334155;
        padding: 6px 8px;
        border-radius: 10px;
        display: inline-flex;
        transition: 160ms ease;
    }

        .ag-footer__list a:hover {
            background: rgba(22,119,255,.07);
            color: #0b3b8b;
            transform: translateX(-1px);
        }

/* Contact */
.ag-footer__contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: grid;
    gap: 10px;
}

    .ag-footer__contact-list li {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        padding: 8px 8px;
        border-radius: 12px;
        background: #fbfdff;
        border: 1px solid #eef1f6;
    }

.ag-footer__contact-ico {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(2,6,23,.05);
    font-size: 14px;
    flex: 0 0 auto;
}

.ag-footer__contact-label {
    font-size: 9.8px;
    color: #6b7280;
    margin-bottom: 2px;
}

.ag-footer__contact-list a,
.ag-footer__contact-list span {
    font-size: 11.2px;
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
}

/* Social buttons */
.ag-footer__social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ag-footer__social-btn {
    text-decoration: none;
    font-size: 10.5px;
    font-weight: 900;
    color: #0f172a;
    padding: 7px 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(22,119,255,.08), rgba(245,164,0,.08));
    border: 1px solid #e6eaf0;
    transition: 180ms ease;
}

    .ag-footer__social-btn:hover {
        transform: translateY(-1px);
        border-color: rgba(22,119,255,.25);
    }

/* ---------- Bottom Bar ---------- */
.ag-footer__bottom {
    margin-top: 14px;
    padding: 12px 2px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #6b7280;
    font-size: 11px;
}

.ag-footer__bottom-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .ag-footer__bottom-left a {
        text-decoration: none;
        color: #6b7280;
        font-weight: 600;
    }

        .ag-footer__bottom-left a:hover {
            color: #0f172a;
        }

.ag-footer__dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: #cbd5e1;
    display: inline-block;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .ag-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 980px) {
    .ag-footer__cta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .ag-footer__grid {
        grid-template-columns: 1fr;
    }

    .ag-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
