/**
 * Nevilix Frontend Footer
 * ------------------------------------------------------------
 * Full-width gradient footer
 * Top: brand + CTA in two columns
 * Bottom: navigation + copyright
 */

.site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: 1rem;
    padding: 3rem 0 0;
    color: #17345f;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 201, 88, 0.34), transparent 27%),
        radial-gradient(circle at 88% 4%, rgba(73, 145, 255, 0.34), transparent 30%),
        linear-gradient(145deg, #edf7ff 0%, #dcecff 48%, #cfe3ff 100%);
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(110deg, rgba(255, 255, 255, 0.32), transparent 44%),
        linear-gradient(0deg, rgba(43, 105, 205, 0.05), transparent 50%);
    pointer-events: none;
}

.site-footer > .container {
    position: relative;
    z-index: 2;
}

.site-footer__orb,
.site-footer__grid-pattern {
    position: absolute;
    pointer-events: none;
}

.site-footer__orb {
    z-index: -2;
    border-radius: 999px;
    filter: blur(2px);
}

.site-footer__orb--one {
    top: -150px;
    right: -110px;
    width: 390px;
    height: 390px;
    background: rgba(42, 118, 255, 0.14);
}

.site-footer__orb--two {
    bottom: -180px;
    left: -120px;
    width: 420px;
    height: 420px;
    background: rgba(255, 190, 55, 0.16);
}

.site-footer__grid-pattern {
    inset: 0;
    z-index: -1;
    opacity: 0.24;
    background-image:
        linear-gradient(rgba(35, 93, 176, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(35, 93, 176, 0.07) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 72%);
}

.site-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 3.5rem;
    align-items: center;
    padding: 0.5rem 0 3rem;
}

.site-footer__brand-panel,
.site-footer__cta {
    min-width: 0;
}

.site-footer__brand-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: #0d47b9;
    text-decoration: none;
}

.site-footer__logo-wrap {
    display: inline-flex;
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(23, 76, 177, 0.12);
    border-radius: 21px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        0 16px 36px rgba(34, 86, 166, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
}

.site-footer__logo {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.site-footer__brand-name {
    color: #0c43aa;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.045em;
}

.site-footer__brand-description {
    max-width: 520px;
    margin: 1.25rem 0 0;
    color: #4e6689;
    font-size: 1rem;
    line-height: 1.8;
}

.site-footer__social {
    margin-top: 1.5rem;
}

.site-footer__social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__social-link {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(19, 72, 170, 0.13);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.78);
    color: #154fc0;
    text-decoration: none;
    box-shadow: 0 9px 20px rgba(25, 72, 145, 0.1);
    backdrop-filter: blur(10px);
    transition:
        transform 0.2s ease,
        color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.site-footer__social-link:hover {
    transform: translateY(-3px);
    background: #154fc0;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(21, 79, 192, 0.25);
}

.site-footer__cta {
    padding-left: 3.5rem;
    border-left: 1px solid rgba(24, 78, 171, 0.16);
}

.site-footer__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    color: #1653c7;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer__cta-title {
    max-width: 620px;
    margin: 0;
    color: #123e83;
    font-size: clamp(1.9rem, 3.1vw, 2.65rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.site-footer__cta-text {
    max-width: 600px;
    margin: 0.9rem 0 0;
    color: #59708f;
    font-size: 1rem;
    line-height: 1.75;
}

.site-footer__cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.site-footer__button {
    display: inline-flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 0.93rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.site-footer__button:hover {
    transform: translateY(-2px);
}

.site-footer__button--primary {
    background: #1652c8;
    color: #ffffff;
    box-shadow: 0 13px 28px rgba(22, 82, 200, 0.25);
}

.site-footer__button--primary:hover {
    background: #0c43aa;
    color: #ffffff;
    box-shadow: 0 17px 34px rgba(22, 82, 200, 0.31);
}

.site-footer__button--secondary {
    border-color: rgba(21, 79, 192, 0.18);
    background: rgba(255, 255, 255, 0.76);
    color: #154fc0;
    backdrop-filter: blur(10px);
}

.site-footer__button--secondary:hover {
    border-color: rgba(21, 79, 192, 0.3);
    background: #ffffff;
    color: #0c43aa;
}

.site-footer__divider {
    height: 1px;
    background: rgba(23, 76, 164, 0.14);
}

.site-footer__navigation {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2rem;
    padding: 2.6rem 0;
}

.site-footer__section {
    min-width: 0;
}

.site-footer__heading {
    position: relative;
    margin: 0 0 1rem;
    padding-bottom: 0.72rem;
    color: #163f7f;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.4;
}

.site-footer__heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #1652c8, #42a8ff);
}

.site-footer__description {
    margin: -0.1rem 0 1rem;
    color: #667b99;
    font-size: 0.88rem;
    line-height: 1.65;
}

.site-footer__links {
    display: grid;
    gap: 0.72rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__link {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: #4d6586;
    font-size: 0.92rem;
    line-height: 1.5;
    text-decoration: none;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
    color: #154fc0;
    transform: translateX(4px);
}

.site-footer__link--static:hover {
    transform: none;
}

.site-footer__link i {
    width: 1rem;
    flex: 0 0 1rem;
    margin-top: 0.15rem;
    color: #2d78e9;
    text-align: center;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 0 1.5rem;
}

.site-footer__copyright {
    margin: 0;
    color: #5c7392;
    font-size: 0.875rem;
    line-height: 1.5;
}

.site-footer__back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #154fc0;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.site-footer__back-to-top:hover {
    color: #0c43aa;
    transform: translateY(-2px);
}

.site-footer__link:focus-visible,
.site-footer__social-link:focus-visible,
.site-footer__button:focus-visible,
.site-footer__back-to-top:focus-visible {
    outline: 3px solid rgba(21, 79, 192, 0.28);
    outline-offset: 3px;
}

@media (max-width: 1199.98px) {
    .site-footer__navigation {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .site-footer {
        padding-top: 2.5rem;
    }

    .site-footer__top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .site-footer__cta {
        padding-top: 2rem;
        padding-left: 0;
        border-top: 1px solid rgba(24, 78, 171, 0.16);
        border-left: 0;
    }

    .site-footer__navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .site-footer {
        margin-top: 0.75rem;
        padding-top: 2rem;
    }

    .site-footer__top {
        padding-bottom: 2rem;
    }

    .site-footer__brand-link {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer__logo-wrap {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
    }

    .site-footer__logo {
        width: 43px;
        height: 43px;
    }

    .site-footer__navigation {
        grid-template-columns: 1fr;
        gap: 1.8rem;
        padding: 2rem 0;
    }

    .site-footer__cta-actions,
    .site-footer__button {
        width: 100%;
    }

    .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        padding-bottom: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer__social-link,
    .site-footer__button,
    .site-footer__link,
    .site-footer__back-to-top {
        transition: none;
    }
}