/* =================================================================
   FOOTER - استایل‌های Footer
   ================================================================= */

/* Main Footer */
.features-section,
.footer {
    padding: var(--spacing-2xl) 0 0 0;
}
.footer {
    background: #060F27;
    color: white;
}
.contact-us-section {
    background: #3A3A3A14;
    color: var(--gray-800);
    padding: var(--spacing-2xl) 0;
    margin: var(--spacing-2xl) 0 0 0;
}
.contact-us-items {
    width: 100%;
    max-width: 82.063rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin: 0 auto;

}

.contact-us-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-us-item h4 {
    margin: 0;
    font-weight: var(--font-weight-medium);
    color: var(--gray-800);
    font-size: clamp(1rem, 2vw + 0.5rem, 1.275rem);
}
.contact-us-item:first-child h4{
    color: var(--base-color);
}
.footer-about-us {
    margin: var(--spacing-2xl) 0;
}

.footer-about-us-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.footer-about-us-info {
    flex: 0 0 65%;
    width: 100%;
    text-align: justify;
    line-height: 2.5;
}

.footer-about-us-text-wrapper {
    position: relative;
}

.footer-about-us-text {
    display: block;
}

.footer-read-more-btn {
    background: none;
    border: none;
    color: var(--base-color);
    cursor: pointer;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    text-align: right;
    width: 100%;
    display: none;
}

.footer-read-more-btn:hover {
    text-decoration: underline;
}

.d-none-mobile {
    display: none;
}

.footer-about-us-images {
    flex: 0 0 30%;
    width: 30%;
    display: flex;
    justify-content: flex-end;
}
.footer-contact-us {
    background-color: #3A3A3A14;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.footer-contact-us::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(10deg);
    width: 15rem;
    height: 15rem;
    background-image: url('../../images/ico/figma/footer-background.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

.footer-contact-us .container {
    position: relative;
    z-index: 1;
}
.footer-contact-us-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-contact-us-socials {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-shrink: 0;
}

.footer-contact-us-socials > span:first-child {
    font-family: 'Vazirmatn', var(--font-primary);
    font-weight: 500;
    font-style: normal;
    font-size: 28px;
    line-height: 42px;
}

.footer-contact-us-social-medias {
    display: flex;
    gap: 2rem;
}

.footer-contact-us-social-medias img {
    width: clamp(24px, 4vw, 36px);
    height: clamp(24px, 4vw, 36px);
}

.footer-contact-us-newsletter {
    align-items: center;
    display: flex;
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
}
.footer-faq {
    padding: 2rem 0 0 0;
}
.footer-contact-us-newsletter-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
    max-width: 33.33rem;
}
.footer-contact-us-newsletter-form input {
    border-radius: 0.5rem;
    padding: 1rem 0.5rem;
    border: 1px solid #3A3A3A33;
    flex: 1;
    max-width: 26rem;
    min-width: 0;
    font-size: clamp(14px, 1.5vw, 16px);
}

.footer-contact-us-newsletter-form input::placeholder {
    color: #3A3A3A;
    font-size: clamp(12px, 1.4vw, 16px);
}
.footer-contact-us-newsletter-form button {
    padding: 1rem 1.5rem;
    background-color: var(--base-color);
    border: 0;
    border-radius: 0.5rem;
    color: white;
    min-width: 8rem;
    text-align: center;
}
.features-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}
.feature-card {
    background: #F3F3F3;
    backdrop-filter: blur(1.25rem);
    border: 0.0625rem solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    text-align: center;
    transition: all var(--transition-base);
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.feature-icon {
    width: 5rem;
    height: 5rem;
    background: var(--gradient-secondary);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    color: white;
}


.feature-card h4 {
    margin-top: 1rem;
    font-size: clamp(0.9rem, 2.5vw, 1.25rem);
    font-weight: var(--font-weight-medium);
    color: var(--gray-800);
    margin-bottom: var(--spacing-sm);
}
.feature-card img {
    width: clamp(3rem, 15vw, 5rem);
    height: auto;
    max-width: 100%;
}
.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
}
/* Footer Logo */
.footerLogo {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
}

/* Footer Text Section */
.footer-text-section {
    width: 100%;
}

.justified-text {
    text-align: justify;
    line-height: 1.6;
    text-justify: inter-word;
    word-break: break-word;
}

/* Footer Content */
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
    align-items: start;
}

.footer-brand p {
    color: #B8B8B8;
    font-size: 0.875rem;
    font-weight: var(--font-weight-normal);
    margin-top: var(--spacing-sm);
    line-height: 1.625rem;
}

/* Footer Sections */
.footer-section {
    margin-bottom: 20px;
}

.footer-section h4 {
    color: var(--base-color);
    font-size: 18px;
    margin-bottom: 15px;
    margin-top: 2.5rem;
    padding: 0;
    background: transparent;
    border: none;
    cursor: default;
}

/* Footer Links */
.footer-links {
    list-style: none;
    display: block;
    padding: 0;
}

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

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

/* Contact Info */
.contact-info p {
    color: var(--gray-400);
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.footer-section-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.footer-section-image {
    flex: 0 0 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    padding: 0.25rem;
    border: 1px solid #3A3A3A33;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-section-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    color: white;
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-sm);
}
.footer-bottom p {
    font-weight: var(--font-weight-normal);
    font-size: 0.875rem;
    line-height: 1.625rem;
    text-align: right;
}
.footerHr {
    border-top: 1px solid #B8B8B8;
    position: relative;
    width: 100%;
    bottom: 5rem;
    padding: 0 !important;
    margin: 0 !important;
}
.input-with-button {
    position: relative;
    width: 100%;
    max-width: 715px;
}

.input-with-button input {
    width: 100%;
    padding: 1.86rem 4.5rem 1.86rem 1rem;
    border: 1px solid #ccc;
    border-radius: 9999px;
    outline: none;
    font-size: 1rem;
}

.input-with-button button {
    position: absolute;
    top: 50%;
    left: 0.7rem;
    transform: translateY(-50%);
    background-color: var(--base-color);
    color: white;
    border: none;
    padding: 0.9rem 2.26rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1.5rem;
}

.inputWithButtonInput::placeholder {
    color: transparent;
}
.footer-social-images-mobile-mode {
    display: none;
}
.footer-social-images {
    display: flex;
    gap: 1rem;
}
.footer-faq-content {
    color: #3A3A3A;
}
/* Mobile Accordion Styles */

@media (max-width: 82.063rem) {
    .footer,
    .features-section {
        padding: var(--spacing-2xl) var(--spacing-md) 0 var(--spacing-md);
    }
    .contact-us-items{
        padding: 0 var(--spacing-md);
    }
    .feature-card {
        flex: 1 1 calc(25% - 1rem) !important;
        box-sizing: border-box !important;
        text-align: center !important;
        aspect-ratio: 1 / 1 !important;
    }
}
@media (max-width: 62rem) {
    .contact-us-items {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-us-item {
        justify-content: center;
    }
    .input-with-button input {
        padding: 0.86rem 1.5rem 0.86rem 1rem;
    }
    .input-with-button button {
        padding: 0.2rem 1.26rem;
        font-size: 1.1rem;
    }
    .feature-card {
        flex: 1 1 calc(50% - 1rem) !important;
    }
}
@media (max-width: 48rem) {
    .footer-contact-us-newsletter-form {
        width: 100%;
    }
    .footer-about-us {
        padding: var(--spacing-lg) var(--spacing-md) 0 var(--spacing-md);
        margin: 0;
    }
    .contact-us-items {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-us-item {
        justify-content: center;
    }

    .features-section {
        padding: var(--spacing-lg) var(--spacing-md) 0 var(--spacing-md);
    }
    .feature-card {
        padding: var(--spacing-xs);
        text-align: center;
        transition: all var(--transition-base);
        align-items: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        aspect-ratio: 1 / 1 !important;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-about-us-content {
        flex-direction: column;
    }

    .footer-about-us-info {
        flex: 1 1 100%;
        width: 100%;
    }

    .footer-about-us-images {
        flex: 1 1 100%;
        width: 100%;
        justify-content: center;
        margin-top: var(--spacing-md);
    }

    .footer-contact-us {
        margin-top: var(--spacing-lg);
    }

    .footer-contact-us .container {
        padding: 0;
    }

    .footer-contact-us-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .footer-contact-us-socials , .footer-contact-us-newsletter{
        width: 100%;
        padding: 0 var(--spacing-md);
        justify-content: space-between;
    }

    .footer-contact-us-socials > span:first-child {
        font-size: clamp(18px, 4vw, 28px);
        line-height: clamp(27px, 6vw, 42px);
    }

    .footer-contact-us-social-medias img {
        width: clamp(20px, 3.5vw, 36px);
        height: clamp(20px, 3.5vw, 36px);
    }

    .footer-contact-us-newsletter-form input {
        flex: 1;
        min-width: 0;
    }

    .footer-contact-us-newsletter-form button {
        padding: 1rem;
        min-width: 5rem;
        font-size: clamp(12px, 1.3vw, 14px);
    }


    .footer-about-us-text-wrapper {
        overflow: hidden;
    }

    .footer-about-us-text {
        display: -webkit-box;
        -webkit-line-clamp: 10;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        transition: all 0.3s ease;
    }

    .footer-about-us-text.expanded {
        display: block;
        -webkit-line-clamp: unset;
    }

    .footer-read-more-btn {
        display: block;
    }

    .d-none-mobile {
        display: block;
    }

    .footer-section {
        background: transparent;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 0;
        width: 100%;
    }

    .footer-section h4 {
        background: linear-gradient(135deg, #6558fa 0%, #6c5ff3 100%);
        padding: 0.6rem 1.5rem;
        margin-bottom: 0;
        cursor: pointer;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 12px;
        transition: all 0.3s ease;
        margin-top: 0.5rem !important;
        font-size: 1rem;
    }

    .footer-section h4::after {
        content: '›';
        font-size: 24px;
        transform: rotate(90deg);
        transition: transform 0.3s ease;
    }
    .btnForMobileMode {
        margin-bottom: -0.7rem;
    }
    .footer-section.active h4::after {
        transform: rotate(-90deg);
    }

    .footer-links {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 0 0 12px 12px;
        margin-top: -12px;
        padding-top: 12px;
    }

    .footer-section.active .footer-links {
        max-height: 500px;
        padding-bottom: 15px;
    }

    .footer-links li {
        padding: 10px 20px;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .footer-section.active .footer-links li {
        opacity: 1;
        transform: translateY(0);
    }

    .footer-section.active .footer-links li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .footer-section.active .footer-links li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .footer-section.active .footer-links li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .footer-section.active .footer-links li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .footer-section-images {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 1rem;
        width: 100%;
        padding: 0;
        margin-top: 0.7rem;
    }

    .footer-section-image {
        flex: 0 0 calc(50% - 0.5rem) !important;
        max-width: calc(50% - 0.5rem);
    }

    .footer {
        padding: var(--spacing-sm);
    }

    .footerLogo {
        display: flex;
        justify-content: start;
        align-items: center;
        gap: var(--spacing-xs);
        text-decoration: none;
    }
    .newsletter-text {
        display: none;
    }
    .inputWithButtonInput::placeholder {
        color: var(--base-color);
        font-size: 1rem;
        font-weight: var(--font-weight-medium);
        opacity: 1;
    }
    .footer-social-images {
        display: none;
    }
    .footer-social-images-mobile-mode {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    .contact-us-item h4 {
        font-size: clamp(1rem, 2vw + 1.5rem, 1.275rem);
    }
    .footer-section h4 {
        color: white;
    }
    .footer-faq-content {
        font-size: 0.8rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .footer-faq-content a > img {
        width: 66px!important;
        height: 19px !important;
        margin: 0 0.3rem;
    }
    .footer-contact-us::before {
        background: none;
    }

}
@media (max-width: 36rem) {
    .contact-us-items {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-us-item {
        justify-content: center;
    }
}
@media (max-width: 30rem) {

    .contact-us-items {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        width: 100%;
    }

    .contact-us-item {
        justify-content: center;
    }
}

