/**
 * Footer Styles
 *
 * @package Zooptimal
 */

/* ==========================================================================
   FOOTER
   ========================================================================== */

.zo-footer {
    margin-top: auto;
}

/* Newsletter Section */
.zo-footer__newsletter {
    background: linear-gradient(135deg, var(--zo-primary) 0%, var(--zo-primary-dark) 100%);
    padding: var(--zo-spacing-2xl) 0;
}

.zo-newsletter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--zo-spacing-xl);
    flex-wrap: wrap;
}

.zo-newsletter__content {
    flex: 1;
    min-width: 280px;
}

.zo-newsletter__title {
    font-size: var(--zo-text-2xl);
    font-weight: 700;
    color: var(--zo-white);
    margin-bottom: var(--zo-spacing-xs);
}

.zo-newsletter__text {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--zo-text-base);
}

.zo-newsletter__form {
    display: flex;
    gap: var(--zo-spacing-sm);
    flex: 1;
    max-width: 450px;
}

.zo-newsletter__input {
    flex: 1;
    padding: var(--zo-spacing-md) var(--zo-spacing-lg);
    border: none;
    border-radius: var(--zo-radius-md);
    font-size: var(--zo-text-base);
    outline: none;
}

.zo-newsletter__input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.zo-newsletter__btn {
    padding: var(--zo-spacing-md) var(--zo-spacing-xl);
    background-color: var(--zo-accent);
    color: var(--zo-dark);
    border: none;
    border-radius: var(--zo-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--zo-transition-fast);
    white-space: nowrap;
}

.zo-newsletter__btn:hover {
    background-color: var(--zo-accent-hover);
}

/* Reassurance Section */
.zo-footer__reassurance {
    background-color: var(--zo-gray-100);
    padding: var(--zo-spacing-xl) 0;
}

.zo-reassurance {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--zo-spacing-lg);
}

.zo-reassurance__item {
    display: flex;
    align-items: center;
    gap: var(--zo-spacing-md);
    padding: var(--zo-spacing-md);
    background-color: var(--zo-white);
    border-radius: var(--zo-radius-lg);
    box-shadow: var(--zo-shadow-sm);
}

.zo-reassurance__icon {
    font-size: 2rem;
}

.zo-reassurance__content {
    display: flex;
    flex-direction: column;
}

.zo-reassurance__content strong {
    font-size: var(--zo-text-sm);
    color: var(--zo-gray-900);
}

.zo-reassurance__content span {
    font-size: var(--zo-text-xs);
    color: var(--zo-gray-500);
}

/* Main Footer */
.zo-footer__main {
    background-color: var(--zo-gray-900);
    padding: var(--zo-spacing-3xl) 0 var(--zo-spacing-2xl);
}

.zo-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: var(--zo-spacing-xl);
}

.zo-footer__col {
    min-width: 0;
}

.zo-footer__logo {
    margin-bottom: var(--zo-spacing-md);
}

.zo-footer__logo .zo-logo__text {
    font-size: var(--zo-text-xl);
    color: var(--zo-white);
}

.zo-footer__about {
    color: var(--zo-gray-400);
    font-size: var(--zo-text-sm);
    line-height: 1.7;
    margin-bottom: var(--zo-spacing-lg);
}

.zo-footer__social {
    display: flex;
    gap: var(--zo-spacing-sm);
}

.zo-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--zo-gray-800);
    border-radius: var(--zo-radius-md);
    color: var(--zo-gray-400);
    transition: all var(--zo-transition-fast);
}

.zo-footer__social-link:hover {
    background-color: var(--zo-primary);
    color: var(--zo-white);
}

.zo-footer__social-link svg {
    width: 18px;
    height: 18px;
}

.zo-footer__title {
    font-size: var(--zo-text-base);
    font-weight: 600;
    color: var(--zo-white);
    margin-bottom: var(--zo-spacing-lg);
    position: relative;
    padding-bottom: var(--zo-spacing-sm);
}

.zo-footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--zo-accent);
}

.zo-footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--zo-spacing-sm);
}

.zo-footer__links a {
    color: var(--zo-gray-400);
    font-size: var(--zo-text-sm);
    transition: color var(--zo-transition-fast);
}

.zo-footer__links a:hover {
    color: var(--zo-white);
}

.zo-footer__contact {
    display: flex;
    flex-direction: column;
    gap: var(--zo-spacing-md);
}

.zo-footer__contact li {
    display: flex;
    align-items: center;
    gap: var(--zo-spacing-sm);
    color: var(--zo-gray-400);
    font-size: var(--zo-text-sm);
}

.zo-footer__contact li svg {
    width: 16px;
    height: 16px;
    color: var(--zo-accent);
}

.zo-footer__contact a {
    color: var(--zo-gray-400);
    transition: color var(--zo-transition-fast);
}

.zo-footer__contact a:hover {
    color: var(--zo-white);
}

.zo-footer__payment {
    margin-top: var(--zo-spacing-xl);
}

.zo-footer__payment-title {
    display: block;
    font-size: var(--zo-text-xs);
    color: var(--zo-gray-500);
    margin-bottom: var(--zo-spacing-sm);
}

.zo-footer__payment-icons {
    display: flex;
    gap: var(--zo-spacing-sm);
    align-items: center;
}

.zo-footer__payment-icons img {
    height: 25px;
    width: auto;
    filter: grayscale(1) brightness(0.8);
    transition: filter var(--zo-transition-fast);
}

.zo-footer__payment-icons img:hover {
    filter: none;
}

/* Bottom Footer */
.zo-footer__bottom {
    background-color: var(--zo-dark);
    padding: var(--zo-spacing-md) 0;
}

.zo-footer__copyright {
    text-align: center;
    font-size: var(--zo-text-sm);
    color: var(--zo-gray-500);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .zo-footer__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .zo-footer__col:first-child {
        grid-column: span 3;
        text-align: center;
    }

    .zo-footer__social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .zo-newsletter {
        flex-direction: column;
        text-align: center;
    }

    .zo-newsletter__form {
        max-width: 100%;
        width: 100%;
    }

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

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

    .zo-footer__col:first-child {
        grid-column: span 2;
    }

    .zo-footer__col:last-child {
        grid-column: span 2;
    }

    .zo-footer__title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .zo-footer__col {
        text-align: center;
    }

    .zo-footer__links,
    .zo-footer__contact {
        align-items: center;
    }

    .zo-footer__payment {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .zo-newsletter__form {
        flex-direction: column;
    }

    .zo-reassurance {
        grid-template-columns: 1fr;
    }

    .zo-footer__grid {
        grid-template-columns: 1fr;
    }

    .zo-footer__col,
    .zo-footer__col:first-child,
    .zo-footer__col:last-child {
        grid-column: span 1;
    }
}
