/* پناه — فوتر */

.panaah-footer-wrap {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: 2.5rem;
    padding: 0 0.75rem 1.25rem;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(187, 143, 242, 0.28), transparent 55%),
        radial-gradient(ellipse 70% 50% at 95% 20%, rgba(119, 173, 253, 0.22), transparent 50%),
        linear-gradient(180deg, #f6f0ff 0%, #ebe4ff 100%);
    color: #463b54;
}

.panaah-footer-glow {
    position: absolute;
    inset: auto -20% -40% -20%;
    height: 60%;
    background: radial-gradient(circle, rgba(187, 143, 242, 0.25), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.panaah-footer {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 1.25rem 0 1.5rem;
}

.panaah-footer-cta-band {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    align-items: stretch;
    text-align: center;
    padding: 1.35rem 1.25rem;
    border-radius: 28px;
    background: linear-gradient(135deg, #918bd8 0%, #829be0 48%, #77adfd 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(81, 77, 175, 0.22);
    margin-bottom: 1.5rem;
}

.panaah-footer-cta-title {
    margin: 0 0 0.35rem;
    font-family: "Mahboubeh Mehravar", "IRAN Rounded", Tahoma, sans-serif;
    font-size: clamp(1.25rem, 4.5vw, 1.6rem);
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

.panaah-footer-cta-text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.panaah-footer-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.panaah-footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.panaah-footer-btn:hover {
    transform: translateY(-2px);
}

a.panaah-footer-btn--primary,
a.panaah-footer-btn--primary:visited,
a.panaah-footer-btn--primary:hover,
a.panaah-footer-btn--primary:focus {
    background: #ffffff;
    color: #514daf !important;
}

a.panaah-footer-btn--ghost,
a.panaah-footer-btn--ghost:visited,
a.panaah-footer-btn--ghost:hover,
a.panaah-footer-btn--ghost:focus {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.panaah-footer-main {
    display: grid;
    gap: 1.75rem;
    padding: 1.5rem 1.15rem 1.25rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(231, 224, 238, 0.95);
    border-radius: 28px;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 36px rgba(81, 77, 175, 0.08);
}

.panaah-footer-brand {
    text-align: center;
}

.panaah-footer-logo {
    display: inline-flex;
    text-decoration: none;
}

.panaah-footer-brand .panaah-brand-logo {
    width: 78px;
    height: auto;
    object-fit: contain;
}

.panaah-footer-tagline {
    margin: 0.85rem auto 0;
    max-width: 28ch;
    font-size: 0.92rem;
    line-height: 1.85;
    color: #68607a;
}

.panaah-footer-social {
    margin-top: 1.15rem;
}

.panaah-footer-social-label {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #7a718a;
}

.panaah-footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
}

.panaah-footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    text-decoration: none !important;
    font-size: 0.82rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panaah-footer-social-link:hover {
    transform: translateY(-2px);
}

.panaah-footer-social-link img {
    display: block;
    width: 1.2rem;
    height: 1.2rem;
    object-fit: contain;
}

a.panaah-footer-social-link--bale,
a.panaah-footer-social-link--bale:visited {
    background: #dff5ed;
    color: #2f6b58 !important;
}

a.panaah-footer-social-link--ig,
a.panaah-footer-social-link--ig:visited {
    background: #ffe1eb;
    color: #9b526b !important;
}

.panaah-footer-col {
    display: grid;
    gap: 0.45rem;
    text-align: center;
}

.panaah-footer-col-title {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #514daf;
}

.panaah-footer-col a {
    display: inline-flex;
    justify-content: center;
    padding: 0.55rem 0.75rem;
    border-radius: 14px;
    color: #564d66 !important;
    background: #f6f2fc;
    font-size: 0.88rem;
    text-decoration: none !important;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.panaah-footer-col a:hover {
    transform: translateY(-1px);
    background: #ebe3ff;
    color: #514daf !important;
}

.panaah-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 1rem 0.5rem 0.25rem;
    text-align: center;
    color: #7d738c;
    font-size: 0.75rem;
    line-height: 1.7;
}

.panaah-footer-enamad {
    display: inline-flex;
    padding: 0.45rem 0.6rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eadcf4;
    box-shadow: 0 4px 14px rgba(187, 143, 242, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.panaah-footer-enamad:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(187, 143, 242, 0.2);
}

.panaah-footer-enamad img {
    display: block;
    width: 78px;
    height: auto;
    cursor: pointer;
}

@media (min-width: 640px) {
    .panaah-footer-wrap {
        padding-inline: 1rem;
    }

    .panaah-footer-cta-actions {
        flex-direction: row;
        justify-content: center;
    }

    .panaah-footer-btn {
        min-width: 11rem;
    }

    .panaah-footer-main {
        grid-template-columns: 1fr 1fr;
        padding: 1.75rem 1.5rem;
        gap: 1.5rem 1.25rem;
    }

    .panaah-footer-brand {
        grid-column: 1 / -1;
    }

    .panaah-footer-col {
        text-align: right;
    }

    .panaah-footer-col a {
        justify-content: flex-start;
    }
}

@media (min-width: 900px) {
    .panaah-footer {
        padding: 1.75rem 0 1.75rem;
    }

    .panaah-footer-cta-band {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: right;
        padding: 1.6rem 1.85rem;
        gap: 1.5rem;
    }

    .panaah-footer-cta-copy {
        flex: 1;
    }

    .panaah-footer-cta-actions {
        flex-shrink: 0;
        justify-content: flex-end;
    }

    .panaah-footer-main {
        grid-template-columns: 1.35fr 1fr 1fr;
        align-items: start;
        gap: 2rem;
        padding: 2rem 1.85rem 1.6rem;
        border-radius: 32px;
    }

    .panaah-footer-brand {
        grid-column: auto;
        text-align: right;
    }

    .panaah-footer-tagline {
        margin-inline: 0;
    }

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

    .panaah-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: right;
        padding-inline: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .panaah-footer-btn,
    .panaah-footer-social-link,
    .panaah-footer-col a,
    .panaah-footer-enamad {
        transition: none;
    }
}

/* Compact footer for test flows */
.panaah-footer-wrap--compact {
    margin-top: 1.25rem;
    padding: 0 0.75rem;
}

.panaah-footer-wrap--compact .panaah-footer {
    padding: 0.85rem 0 1rem;
}

.panaah-footer-main--compact {
    display: flex;
    justify-content: center;
    text-align: center;
}

.panaah-footer-main--compact .panaah-footer-brand {
    align-items: center;
    max-width: 420px;
}

.panaah-footer-main--compact .panaah-footer-logo {
    margin-inline: auto;
}

.panaah-footer-main--compact .panaah-brand-logo {
    width: 72px;
    height: auto;
}

.panaah-footer-compact-line {
    margin: 0.35rem 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #514daf;
    line-height: 1.6;
}

.panaah-footer-main--compact .panaah-footer-social {
    align-items: center;
}

.panaah-footer-main--compact .panaah-footer-social-links {
    justify-content: center;
}

.panaah-footer-bottom--compact {
    justify-content: center;
    text-align: center;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    font-size: 0.75rem;
}
