/**
 * Footer styles
 *
 * @package MBM_Theme
 * @since 1.0.0
 */

.site-footer {
    --footer-gold: var(--la-gold, #c3a66a);
    --footer-gap-color: #f1f1f4;
    --footer-curve-width: 130%;
    --footer-curve-height: 3rem;
    --footer-curve-radius: 0 0 55% 55% / 0 0 100% 100%;
    --footer-curve-line: 2px;
    --footer-curve-gap-offset: 0.7rem;
    position: relative;
    overflow: hidden;
    padding: clamp(6rem, 9vw, 7.5rem) 0 1.3rem;
    color: #ffffff;
    isolation: isolate;
    background-color: var(--la-blue, #080851);
    background-image: var(--site-footer-bg-image);
    background-size: 400px;
    background-position: center;
    background-repeat: repeat;
}

.site-footer__curve-border,
.site-footer__curve-gap {
    position: absolute;
    left: 50%;
    width: var(--footer-curve-width);
    height: var(--footer-curve-height);
    transform: translateX(-50%);
    border-radius: var(--footer-curve-radius);
    pointer-events: none;
}

.site-footer__curve-border {
    top: -5px;
    background: var(--footer-gold);
    z-index: 3;
}

.site-footer__curve-gap {
    top: 0px;
    height: calc(var(--footer-curve-height) - var(--footer-curve-gap-offset));
    background: #f8f8ff;
    z-index: 3;
}

.site-footer .container {
    position: relative;
    z-index: 4;
}

.site-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.25fr);
    gap: clamp(1.2rem, 3vw, 2.5rem);
    margin-bottom: clamp(4rem, 8vw, 4rem);
}

.site-footer__logo {
    width: clamp(145px, 15vw, 230px);
    filter: brightness(0) invert(1);
}

.site-footer__description {
    margin: 1rem 0 1.1rem;
    max-width: 280px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--la-gold-40);
}

.site-footer__social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.9rem;
}

.site-footer__social a {
    color: #ffffff;
    font-size: 1.1rem;
}

.site-footer__column-title {
    margin: 0 0 0.9rem;
    color: var(--la-gold-40);
    font-size: 1.25rem;
}

.site-footer__column-title--newsletter img {
    display: block;
    width: 90%;
    height: auto;
    margin: 0 auto;
}

.site-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
}

.site-footer__menu li + li {
    margin-top: 0.55rem;
}

.site-footer__menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: inline-block;
    position: relative;
}

.site-footer__menu a::after {
    content: " ";
    display: block;
    height: 2px;
    width: 100%;
    margin-top: 8px;
    background: var(--la-gold);
    position: absolute;
    left: 0;
    top: 12px;
    opacity: 0;
    transform: translateX(-10px) scaleX(0.7);
    transform-origin: left center;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.site-footer__menu a::before {
    content: " ";
    display: block;
    width: 58px;
    height: 12px;
    background-image: url(/wp-content/themes/luxeavius/images/icons/active-nav-menu.svg);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 58px auto;
    position: absolute;
    left: -15px;
    top: 12px;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.site-footer__menu li > a:hover::after,
.site-footer__menu li > a:active::after,
.site-footer__menu li.current-menu-item > a::after,
.site-footer__menu li.current_page_item > a::after,
.site-footer__menu li.current-menu-ancestor > a::after,
.site-footer__menu li.current_page_ancestor > a::after {
    opacity: 1;
    transform: translateX(0) scaleX(1);
    filter: brightness(5.5) grayscale(1);
}

.site-footer__menu li > a:hover::before,
.site-footer__menu li > a:active::before,
.site-footer__menu li.current-menu-item > a::before,
.site-footer__menu li.current_page_item > a::before,
.site-footer__menu li.current-menu-ancestor > a::before,
.site-footer__menu li.current_page_ancestor > a::before {
    opacity: 1;
    transform: translateX(0);
    filter: brightness(5.5) grayscale(1);
}

.site-footer__menu li.current_page_item > a::before,
.site-footer__menu li.current_page_item > a::after {
    filter: brightness(1) grayscale(0);
}


.site-footer__newsletter-field-wrap {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.site-footer__newsletter-field-wrap input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #0b124f;
    height: 38px;
    padding: 0 0.95rem;
    font-size: 0.9rem;
}

.site-footer__newsletter-field-wrap button {
    border: 0;
    background: transparent;
    color: #0b124f;
    width: 44px;
    height: 38px;
    padding: 0 8px 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-footer__newsletter-field-wrap button img {
    width: 20px;
    height: auto;
    display: block;
}

.site-footer__newsletter-help {
    margin: 0.55rem 0 0;
    font-size: 0.75rem;
    color: var(--la-white);
    text-align: center;
}

.site-footer__newsletter-message {
    margin: 0.45rem 0 0;
    font-size: 0.8rem;
}

.site-footer__newsletter-message.is-hidden {
    display: none;
}

.site-footer__newsletter-message.is-success { color: #97ffb5; }
.site-footer__newsletter-message.is-error { color: #ffb9b9; }
.site-footer__newsletter-message.is-info { color: #ffe8b4; }

.site-footer__disclaimer {
    margin: 2rem 0 0;
    padding-bottom: 2rem;
    font-size: 0.72rem;
    line-height: 1.55;
    font-style: italic;
    color: rgba(255, 255, 255, 0.65);
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-footer__copyright,
.site-footer__developer {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
}

.site-footer__developer {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
}

.site-footer__developer a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
}

.site-footer__developer img {
    height: 14px;
    width: auto;
    position: relative;
    top: -3px;
    margin-left: 2px;
}

.site-footer__column--brand {
    gap: 1rem;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .site-footer__top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .site-footer {
        padding-top: 5rem;
    }

    .site-footer__column--brand {
        align-items: center;
    }

    .site-footer__description {
        text-align: center;
    }

    .site-footer__column {
        text-align: center;
    }

    .site-footer__column-title {
        text-align: center;
    }

    .site-footer__menu {
        align-items: center;
    }

    .site-footer__top {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-footer__bottom {
        flex-direction: column;
    }

    .site-footer .container {
        padding: 0 3rem;
    }
}
