/**
 * RAVIDEX Footer
 */

.rv-footer {
    position: relative;
    padding: 80px 0 0;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #0b1324,
            var(--rv-color-primary)
        );
    color: #cbd5e1;
}

.rv-footer::before {
    position: absolute;
    top: -220px;
    left: -220px;
    width: 470px;
    height: 470px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    content: "";
}

.rv-footer-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.9fr;
    gap: 70px;
    padding-bottom: 60px;
}

.rv-footer-column h3 {
    position: relative;
    padding-bottom: 15px;
    margin: 0 0 22px;
    color: var(--rv-color-white);
    font-size: 1.15rem;
    line-height: 1.5;
}

.rv-footer-column h3::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 38px;
    height: 2px;
    background: var(--rv-color-secondary);
    border-radius: 2px;
    content: "";
}

.rv-footer-column:first-child h3 {
    color: var(--rv-color-secondary);
    font-size: 1.5rem;
    letter-spacing: 0.08em;
}

.rv-footer-column p {
    max-width: 400px;
    margin: 0;
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 2;
}

.rv-footer-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 25px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.rv-footer-menu li {
    padding: 0;
    margin: 0;
    list-style: none;
}

.rv-footer-menu a {
    position: relative;
    display: inline-block;
    padding-right: 14px;
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.7;
    white-space: nowrap;
}

.rv-footer-menu a::before {
    position: absolute;
    top: 0.75em;
    right: 0;
    width: 5px;
    height: 5px;
    background: var(--rv-color-secondary);
    border-radius: 50%;
    content: "";
    transform: translateY(-50%);
}

.rv-footer-menu a:hover,
.rv-footer-menu a:focus {
    color: var(--rv-color-secondary);
    transform: translateX(-3px);
}

.rv-footer-column:last-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rv-footer-column:last-child p {
    margin-bottom: 19px;
}

.rv-footer-column .rv-btn {
    min-height: 44px;
    padding: 9px 22px;
}

.rv-footer-bottom {
    position: relative;
    z-index: 1;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rv-footer-bottom p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.82rem;
    text-align: center;
}

/* Footer responsive */

@media (max-width: 991px) {
    .rv-footer {
        padding-top: 65px;
    }

    .rv-footer-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 45px;
    }

    .rv-footer-column:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .rv-footer {
        padding-top: 55px;
    }

    .rv-footer-wrapper {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
        padding-bottom: 45px;
    }

    .rv-footer-column:first-child {
        grid-column: auto;
    }

    .rv-footer-menu {
        gap: 12px 18px;
    }

    .rv-footer-column .rv-btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .rv-footer-menu {
        grid-template-columns: minmax(0, 1fr);
    }

    .rv-footer-menu a {
        white-space: normal;
    }
}