/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.memo-footer {
    direction: rtl;
    background: linear-gradient(to bottom right, #faf5ff, #fce7f3, #ffffff);
    border-top: 1px solid #f3e8ff;
    font-family: 'IRANSansX', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Naskh Arabic', 'Noto Sans Arabic', Arial, sans-serif;
}

/* Fix footer paragraphs and small text to use IRANSansX - Maximum Specificity */
footer p,
[role="contentinfo"] p,
footer [role="contentinfo"] p,
footer .ct-footer p,
footer h5 + p,
footer h4 + p,
footer h3 + p,
footer span:not([class*="icon"]):not([class*="fa-"]):not([class*="dashicons"]),
footer div:not([class*="icon"]):not([class*="fa-"]),
footer li,
footer a:not([class*="icon"]),
.memo-footer p,
.memo-footer span:not([class*="icon"]):not([class*="fa-"]),
.memo-footer div:not([class*="icon"]):not([class*="fa-"]),
.memo-footer li,
.memo-footer a,
.memo-cta-description,
.memo-about-text,
.memo-feature-description,
.memo-contact-hours,
.memo-contact-item,
.memo-footer-links a,
.memo-payment-label,
.memo-copyright p,
.ct-footer p,
.ct-footer span:not([class*="icon"]),
.ct-footer div:not([class*="icon"]),
.ct-footer li,
.ct-footer a {
    font-family: 'IRANSansX', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Naskh Arabic', 'Noto Sans Arabic', Arial, sans-serif !important;
}

/* CTA Section */
.memo-cta-section {
    background: linear-gradient(to left, #9333ea, #db2777);
    padding: 3rem 1rem;
}

.memo-cta-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.memo-cta-content {
    color: white;
    text-align: center;
}

.memo-cta-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.memo-sparkles-icon {
    width: 24px;
    height: 24px;
    color: white;
}

.memo-cta-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.memo-cta-description {
    color: #e9d5ff;
    line-height: 1.6;
}

.memo-cta-button {
    background: white;
    color: #9333ea;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.memo-cta-button:hover {
    background: #faf5ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

/* Features Section */
.memo-features-section {
    position: relative;
    background: white;
    padding: 4rem 0;
}

.memo-top-curve {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.memo-bottom-curve {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.memo-curve-svg {
    position: relative;
    display: block;
    width: 100%;
    height: 50px;
}

.memo-features-container {
    position: relative;
    max-width: 1152px;
    margin: 0 auto;
    padding: 3rem 1rem 2rem;
}

.memo-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.memo-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.625rem;
}

.memo-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(to bottom right, #a855f7, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: white;
}

.memo-feature-title {
    color: #581c87;
    font-size: 1rem;
    font-weight: 600;
}

.memo-feature-description {
    font-size: 0.875rem;
    color: #4b5563;
}

/* Main Footer */
.memo-main-footer {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.memo-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.memo-footer-column {
    text-align: center;
}

.memo-footer-heading {
    margin-bottom: 1rem;
    color: #581c87;
    font-size: 1.125rem;
    font-weight: 600;
}

.memo-about-text {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Social Links */
.memo-social-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.memo-social-icon {
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    display: grid;
    place-items: center;
    background: #f5ecff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: #9333ea;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    padding: 0;
}

.memo-social-icon:hover {
    background: #9333ea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.memo-social-icon:focus-visible {
    outline: 2px solid #a855f7;
    outline-offset: 3px;
}

.memo-social-icon svg {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Minimal badge below icon */
.memo-badge-minimal {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 600;
    color: #9333ea;
    background: white;
    padding: 2px 6px;
    border-radius: 8px;
    border: 1px solid #e9d5ff;
    white-space: nowrap;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.memo-social-icon:hover .memo-badge-minimal {
    color: #9333ea;
    background: white;
    border-color: #c084fc;
}

/* Footer Links */
.memo-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.memo-footer-links a {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.memo-footer-links a:hover {
    color: #9333ea;
}

/* Contact Info */
.memo-contact-hours {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.memo-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.memo-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.memo-contact-item svg {
    color: #9333ea;
    flex-shrink: 0;
}

.memo-contact-item a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.3s ease;
}

.memo-contact-item a:hover {
    color: #10b981;
}

.memo-contact-phone div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Trust Badges */
.memo-trust-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.memo-trust-badges {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.memo-badge {
    width: 96px;
    height: 96px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: box-shadow 0.3s ease;
    text-decoration: none;
}

.memo-badge:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.memo-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Payment Gateways */
.memo-payment-section {
    text-align: center;
}

.memo-payment-label {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.memo-payment-gateways {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.memo-gateway {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
}

/* Separator */
.memo-separator {
    max-width: 1280px;
    margin: 0 auto;
    height: 1px;
    background: #e5e7eb;
}

/* Copyright */
.memo-copyright {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    text-align: center;
}

.memo-copyright p {
    font-size: 0.875rem;
    color: #4b5563;
}

/* Responsive Design */
@media (min-width: 640px) {
    .memo-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .memo-cta-container {
        flex-direction: row;
    }

    .memo-cta-content {
        text-align: right;
    }

    .memo-cta-header {
        justify-content: flex-start;
    }

    .memo-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .memo-features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .memo-footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Reduce social icons size by 30% on desktop */
    .memo-social-icon {
        width: 45px;
        height: 45px;
    }

    .memo-social-icon svg {
        width: 20px;
        height: 20px;
    }

    /* Adjust badge position for smaller icon */
    .memo-badge-minimal {
        bottom: -6px;
        font-size: 8px;
        padding: 1px 5px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.memo-feature-item {
    animation: fadeIn 0.6s ease-out;
}

.memo-feature-item:nth-child(1) {
    animation-delay: 0.1s;
}

.memo-feature-item:nth-child(2) {
    animation-delay: 0.2s;
}

.memo-feature-item:nth-child(3) {
    animation-delay: 0.3s;
}

.memo-feature-item:nth-child(4) {
    animation-delay: 0.4s;
}

/* ============================================
   IRANSansX Font Fix for Footer - HIGHEST PRIORITY
   This must be at the end to override all other CSS
   ============================================ */
footer p,
[role="contentinfo"] p,
footer [role="contentinfo"] p,
footer .ct-footer p,
footer h5 + p,
footer h4 + p,
footer h3 + p,
footer span:not([class*="icon"]):not([class*="fa-"]):not([class*="dashicons"]),
footer div:not([class*="icon"]):not([class*="fa-"]),
footer li,
footer a:not([class*="icon"]),
.memo-footer p,
.memo-footer span:not([class*="icon"]):not([class*="fa-"]),
.memo-footer div:not([class*="icon"]):not([class*="fa-"]),
.memo-footer li,
.memo-footer a,
.memo-cta-description,
.memo-about-text,
.memo-feature-description,
.memo-contact-hours,
.memo-contact-item,
.memo-footer-links a,
.memo-payment-label,
.memo-copyright p,
.ct-footer p,
.ct-footer span:not([class*="icon"]),
.ct-footer div:not([class*="icon"]),
.ct-footer li,
.ct-footer a,
body footer p,
body [role="contentinfo"] p,
html body footer p,
html body [role="contentinfo"] p {
    font-family: 'IRANSansX', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Naskh Arabic', 'Noto Sans Arabic', Arial, sans-serif !important;
}
