﻿/* ========================================
   Modern Pro Footer - Cream & Soft Brown
   ======================================== */

/* ============ Footer Base ============ */
.footer-modern {
    background: linear-gradient(180deg, #faf5ec 0%, #f0e6d6 100%);
    color: #5e462c;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #ede0c8;
}

    .footer-modern::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 3px;
        background: linear-gradient(90deg, transparent 0%, #c9a97a 50%, transparent 100%);
        opacity: 0.6;
    }

/* ========================================
   Newsletter Strip
   ======================================== */
.footer-newsletter {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid #ede0c8;
    padding: 1.75rem 0;
}

.newsletter-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.newsletter-strip-text {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.newsletter-strip-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #c9a97a 0%, #9c7b55 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(201, 169, 122, 0.3);
}

    .newsletter-strip-icon i {
        font-size: 1.35rem;
        color: #fff;
    }

.newsletter-strip-text h4 {
    font-size: 1rem;
    font-weight: 800;
    color: #3a2e20;
    margin-bottom: 0.15rem;
}

.newsletter-strip-text p {
    font-size: 0.82rem;
    color: #5e462c;
    margin: 0;
    font-weight: 500;
}

.newsletter-strip-form {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    max-width: 420px;
    min-width: 280px;
}

    .newsletter-strip-form input {
        flex: 1;
        padding: 0.7rem 1rem;
        background: #fff;
        border: 1.5px solid #ede0c8;
        border-radius: 12px;
        color: #3a2e20;
        font-size: 0.88rem;
        transition: all 0.25s ease;
        text-align: right;
        font-family: inherit;
    }

        .newsletter-strip-form input::placeholder {
            color: #a89a86;
        }

        .newsletter-strip-form input:focus {
            border-color: #c9a97a;
            box-shadow: 0 0 0 4px rgba(201, 169, 122, 0.15);
            outline: none;
        }

    .newsletter-strip-form button {
        padding: 0.7rem 1.4rem;
        background: linear-gradient(135deg, #c9a97a 0%, #9c7b55 100%);
        color: #fff;
        border: none;
        border-radius: 12px;
        font-size: 0.88rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        white-space: nowrap;
        font-family: inherit;
    }

        .newsletter-strip-form button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(201, 169, 122, 0.4);
        }

/* ========================================
   Main Footer Content
   ======================================== */
.footer-main {
    position: relative;
    z-index: 1;
    padding: 3rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 2.5rem;
}

/* ============ Footer Column Title ============ */
.footer-col-title {
    font-size: 1rem;
    font-weight: 800;
    color: #3a2e20;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .footer-col-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 35px;
        height: 3px;
        background: linear-gradient(90deg, #c9a97a 0%, #9c7b55 100%);
        border-radius: 2px;
    }

    .footer-col-title i {
        color: #9c7b55;
        font-size: 1.05rem;
    }

/* ============ Brand Column ============ */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: #3a2e20;
    margin-bottom: 1rem;
}

    .footer-brand i {
        color: #c9a97a;
        font-size: 1.6rem;
    }

.footer-about {
    font-size: 0.87rem;
    line-height: 2;
    color: #5e462c;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #3a2e20;
    transition: all 0.25s ease;
    text-decoration: none;
    font-weight: 600;
}

    .footer-contact-item:hover {
        color: #9c7b55;
        transform: translateX(-3px);
    }

    .footer-contact-item i {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        background: linear-gradient(135deg, #c9a97a 0%, #9c7b55 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 0.95rem;
        flex-shrink: 0;
        box-shadow: 0 2px 6px rgba(201, 169, 122, 0.3);
    }

/* ============ Social Media ============ */
.footer-social {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff;
    border: 1.5px solid #ede0c8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5e462c;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(94, 70, 44, 0.05);
}

    .social-btn:hover {
        background: linear-gradient(135deg, #c9a97a 0%, #9c7b55 100%);
        color: #fff;
        border-color: #9c7b55;
        transform: translateY(-3px);
        box-shadow: 0 8px 16px rgba(201, 169, 122, 0.3);
    }

/* ============ Footer Links ============ */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

    .footer-links a {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.87rem;
        color: #5e462c;
        text-decoration: none;
        transition: all 0.25s ease;
        padding: 0.25rem 0;
        font-weight: 500;
    }

        .footer-links a i {
            font-size: 0.7rem;
            color: #c9a97a;
            transition: all 0.25s ease;
        }

        .footer-links a:hover {
            color: #3a2e20;
            transform: translateX(-5px);
            font-weight: 700;
        }

            .footer-links a:hover i {
                color: #9c7b55;
            }

/* ========================================
   Trust Column
   ======================================== */
.footer-trust-column {
    display: flex;
    flex-direction: column;
}

.footer-trust-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

    .footer-trust-list li {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.5rem 0.7rem;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.5);
        border: 1px solid rgba(237, 224, 200, 0.8);
        transition: all 0.25s ease;
        font-size: 0.82rem;
        color: #3a2e20;
        font-weight: 600;
    }

        .footer-trust-list li:hover {
            background: #fff;
            border-color: #c9a97a;
            transform: translateX(-3px);
            box-shadow: 0 4px 12px rgba(94, 70, 44, 0.08);
        }

        .footer-trust-list li i {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            background: linear-gradient(135deg, #c9a97a 0%, #9c7b55 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 0.85rem;
            flex-shrink: 0;
            box-shadow: 0 2px 6px rgba(201, 169, 122, 0.3);
        }

/* ============ Payment Methods ============ */
.footer-payment {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(94, 70, 44, 0.15);
}

    .footer-payment > span {
        font-size: 0.78rem;
        color: #5e462c;
        font-weight: 700;
    }

.payment-icons {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.payment-icon {
    width: 48px;
    height: 34px;
    background: #fff;
    border: 1.5px solid #ede0c8;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #5e462c;
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(94, 70, 44, 0.05);
}

    .payment-icon:hover {
        background: linear-gradient(135deg, #c9a97a 0%, #9c7b55 100%);
        border-color: #9c7b55;
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(201, 169, 122, 0.4);
    }

/* ========================================
   Footer Bottom
   ======================================== */
.footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid #ede0c8;
    padding: 1.25rem 0;
    background: rgba(255, 255, 255, 0.5);
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copyright {
    font-size: 0.82rem;
    color: #5e462c;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

    .footer-copyright i {
        color: #9c7b55;
        font-size: 0.9rem;
    }

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

    .footer-bottom-links a {
        font-size: 0.82rem;
        color: #5e462c;
        text-decoration: none;
        transition: all 0.25s ease;
        display: flex;
        align-items: center;
        gap: 0.35rem;
        font-weight: 600;
    }

        .footer-bottom-links a:hover {
            color: #9c7b55;
        }

        .footer-bottom-links a i {
            font-size: 0.8rem;
        }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .newsletter-strip {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-strip-text {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-strip-form {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .footer-main {
        padding: 2.25rem 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .newsletter-strip-form {
        flex-direction: column;
    }

        .newsletter-strip-form button {
            justify-content: center;
        }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
        gap: 1rem;
    }

    .footer-social {
        justify-content: center;
    }

    .payment-icons {
        justify-content: center;
    }

    .footer-payment {
        align-items: center;
        text-align: center;
    }
}
/* ========================================
   Scroll to Top Button - Modern Design
   ======================================== */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9c7b55 0%, #5e462c 100%);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(125, 95, 62, 0.35), 0 2px 6px rgba(125, 95, 62, 0.2);
    overflow: hidden;
}

    /* دایره‌ی نورانی پشت دکمه */
    .scroll-to-top::before {
        content: '';
        position: absolute;
        inset: -4px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(201, 169, 122, 0.4) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
    }

    /* خط طلایی بالای دکمه */
    .scroll-to-top::after {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 3px;
        background: linear-gradient(90deg, transparent 0%, #c9a97a 50%, transparent 100%);
        transition: width 0.4s ease;
    }

    .scroll-to-top i {
        transition: transform 0.3s ease;
        position: relative;
        z-index: 1;
    }

    /* ============ Visible State ============ */
    .scroll-to-top.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    /* ============ Hover ============ */
    .scroll-to-top:hover {
        background: linear-gradient(135deg, #c9a97a 0%, #9c7b55 100%);
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 16px 40px rgba(201, 169, 122, 0.5), 0 4px 10px rgba(125, 95, 62, 0.3);
    }

        .scroll-to-top:hover::before {
            opacity: 1;
        }

        .scroll-to-top:hover::after {
            width: 100%;
        }

        .scroll-to-top:hover i {
            transform: translateY(-2px);
            animation: bounceArrow 0.6s ease infinite;
        }

@keyframes bounceArrow {
    0%, 100% {
        transform: translateY(-2px);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* ============ Active (Click) ============ */
.scroll-to-top:active {
    transform: translateY(-2px) scale(0.95);
}

/* ============ Focus (Accessibility) ============ */
.scroll-to-top:focus-visible {
    outline: 3px solid #c9a97a;
    outline-offset: 4px;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.25rem;
        left: 1.25rem;
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .scroll-to-top {
        bottom: 1rem;
        left: 1rem;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}
/* ========================================
   Footer Grid - 3 Columns
   ======================================== */

.footer-grid.footer-grid-3 {
    grid-template-columns: 1.5fr 1fr 1.3fr;
    gap: 3rem;
}

@media (max-width: 991px) {
    .footer-grid.footer-grid-3 {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

        .footer-grid.footer-grid-3 .footer-col-brand {
            grid-column: 1 / -1;
        }
}

@media (max-width: 576px) {
    .footer-grid.footer-grid-3 {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}