/* =========================================================
   BEYONDWAFER — PREMIUM FOOTER
   File: footer.css
========================================================= */

.site-footer,
.site-footer * {
    box-sizing: border-box;
}

.site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #f7fbff;
    background:
        radial-gradient(
            circle at 12% 5%,
            rgba(10, 132, 255, 0.13),
            transparent 26%
        ),
        linear-gradient(
            180deg,
            #07111f 0%,
            #030914 100%
        );
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 72%);
    pointer-events: none;
}

.site-footer__glow {
    position: absolute;
    z-index: -2;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}

.site-footer__glow--one {
    top: -150px;
    left: -120px;
    width: 340px;
    height: 340px;
    background: rgba(10, 132, 255, 0.12);
}

.site-footer__glow--two {
    right: -120px;
    bottom: -180px;
    width: 360px;
    height: 360px;
    background: rgba(0, 112, 232, 0.08);
}

.site-footer__container {
    position: relative;
    z-index: 1;
    padding-top: 72px;
    padding-bottom: 26px;
}

.site-footer__top {
    display: grid;
    grid-template-columns:
        minmax(250px, 1.25fr)
        minmax(150px, 0.72fr)
        minmax(220px, 0.95fr)
        minmax(260px, 1fr);
    gap: clamp(36px, 5vw, 76px);
    align-items: start;
}

.site-footer__brand {
    max-width: 330px;
}

.site-footer__logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 22px;
}

.site-footer__logo img {
    display: block;
    width: min(100%, 190px);
    height: auto;
}

.site-footer__description {
    margin: 0;
    color: #aebed0;
    font-size: 0.94rem;
    line-height: 1.75;
}

.site-footer__linkedin {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    margin-top: 24px;
    padding: 0 15px;
    border: 1px solid rgba(10, 132, 255, 0.25);
    border-radius: 999px;
    color: #dcecff;
    background: rgba(10, 132, 255, 0.07);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}

.site-footer__linkedin:hover {
    transform: translateY(-2px);
    border-color: rgba(10, 132, 255, 0.5);
    background: rgba(10, 132, 255, 0.13);
}

.site-footer__linkedin i {
    color: #67b5ff;
    font-size: 1rem;
}

.site-footer__column h3 {
    margin: 3px 0 21px;
    color: #ffffff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.015em;
}

.site-footer__column ul {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__column li {
    margin: 0;
}

.site-footer__column a {
    color: #9fafc1;
    font-size: 0.89rem;
    line-height: 1.5;
    text-decoration: none;
    transition:
        color 180ms ease,
        transform 180ms ease;
}

.site-footer__column ul a {
    display: inline-flex;
}

.site-footer__column ul a:hover {
    color: #73b8ff;
    transform: translateX(4px);
}

.site-footer__contact address {
    display: grid;
    gap: 17px;
    margin: 0;
    font-style: normal;
}

.site-footer__contact-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    color: #aebed0;
}

.site-footer__contact-item:hover {
    color: #dcecff;
}

.site-footer__contact-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(10, 132, 255, 0.2);
    border-radius: 11px;
    color: #67b5ff;
    background: rgba(10, 132, 255, 0.07);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}

.site-footer__contact-item:hover .site-footer__contact-icon {
    transform: translateY(-2px);
    border-color: rgba(10, 132, 255, 0.4);
    background: rgba(10, 132, 255, 0.12);
}

.site-footer__contact-item > span:last-child {
    display: grid;
    gap: 3px;
    min-width: 0;
    word-break: break-word;
}

.site-footer__contact-item strong {
    color: #d9e7f6;
    font-size: 0.77rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-footer__divider {
    height: 1px;
    margin: 56px 0 24px;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.12) 12%,
            rgba(10, 132, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.12) 88%,
            transparent
        );
}

.site-footer__bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
}

.site-footer__bottom p {
    margin: 0;
    color: #7f91a6;
    font-size: 0.78rem;
    line-height: 1.5;
}

.site-footer__tagline {
    text-align: center;
}

.site-footer__back-to-top {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 9px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #b9c8d8;
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
    font-size: 0.78rem;
    transition:
        transform 180ms ease,
        color 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}

.site-footer__back-to-top:hover {
    transform: translateY(-3px);
    color: #ffffff;
    border-color: rgba(10, 132, 255, 0.34);
    background: rgba(10, 132, 255, 0.09);
}

.site-footer__back-to-top:focus-visible,
.site-footer__linkedin:focus-visible,
.site-footer__column a:focus-visible,
.site-footer__contact-item:focus-visible {
    outline: 3px solid rgba(117, 186, 255, 0.38);
    outline-offset: 4px;
}

.site-footer__back-to-top i {
    color: #67b5ff;
    transition: transform 180ms ease;
}

.site-footer__back-to-top:hover i {
    transform: translateY(-3px);
}

@media (max-width: 1050px) {
    .site-footer__top {
        grid-template-columns: 1.2fr 0.8fr 1fr;
    }

    .site-footer__contact {
        grid-column: 1 / -1;
    }

    .site-footer__contact address {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .site-footer__container {
        padding-top: 56px;
    }

    .site-footer__top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 28px;
    }

    .site-footer__brand,
    .site-footer__contact {
        grid-column: 1 / -1;
    }

    .site-footer__brand {
        max-width: 460px;
    }

    .site-footer__contact address {
        grid-template-columns: 1fr;
    }

    .site-footer__bottom {
        grid-template-columns: 1fr auto;
    }

    .site-footer__tagline {
        display: none;
    }
}

@media (max-width: 520px) {
    .site-footer__top {
        grid-template-columns: 1fr;
    }

    .site-footer__brand,
    .site-footer__contact {
        grid-column: auto;
    }

    .site-footer__divider {
        margin-top: 44px;
    }

    .site-footer__bottom {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .site-footer__back-to-top {
        justify-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer *,
    .site-footer *::before,
    .site-footer *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
