/* ============================================================
   10. Footer — light glass slab
   ============================================================ */

.footer {
    position: relative;
    margin-top: calc(-1 * clamp(1.5rem, 3vw, 2.5rem));
    border-radius: var(--r-panel) var(--r-panel) 0 0;
    background: linear-gradient(180deg,
        rgba(244, 248, 253, 0.78) 0%,
        rgba(232, 240, 250, 0.92) 55%,
        rgba(222, 232, 245, 0.98) 100%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
            backdrop-filter: blur(22px) saturate(150%);
    box-shadow:
        inset 0 1.5px 1px        rgba(255, 255, 255, 0.85),
        inset 0 -30px 42px -30px rgba(8, 12, 28, 0.14);
    padding: clamp(2.6rem, 5vw, 4rem) clamp(1.1rem, 5vw, 3rem) 0;
    overflow: hidden;
}
.footer::before {
    /* glass rim */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(170deg,
        rgba(255, 255, 255, 0.95)  0%,
        rgba(255, 255, 255, 0.55) 30%,
        rgba(255, 255, 255, 0.14) 58%,
        rgba(255, 255, 255, 0.32) 78%,
        rgba(10, 14, 32, 0.2)    100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.footer__edge-line {
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
}

.footer__container {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 2fr;
    gap: clamp(2rem, 5vw, 4rem);
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer__col--brand > * {
    align-self: stretch;
    text-align: start;
}

.footer__logo {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: 0.01em;
}
.footer__tag {
    margin: 0;
    color: var(--muted-2);
    font-size: 0.94rem;
    line-height: 1.6;
}
.footer__contact {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}
.footer__contact a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 500;
    width: fit-content;
}
.footer__contact a:hover { text-decoration: underline; }
.footer__copy {
    margin: 0.6rem 0 0;
    color: var(--muted-1);
    font-size: 0.86rem;
}

.footer__groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.6rem;
}
.footer__groups h3 {
    margin: 0 0 0.7rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--ink);
}
.footer__groups ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.footer__groups a {
    color: var(--muted-2);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.3s ease;
}
.footer__groups a:hover { color: var(--accent); }

.footer__legal {
    max-width: 1180px;
    margin: clamp(1.8rem, 3.5vw, 2.6rem) auto 0;
    padding: 1.1rem 0 1.4rem;
    border-top: 1px solid rgba(11, 18, 32, 0.09);
}
.footer__legal p {
    margin: 0;
    color: var(--muted-1);
    font-size: 0.84rem;
    line-height: 1.6;
}

/* reveal stagger */
.footer-reveal {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(4px);
    transition: opacity 0.8s var(--ease-reveal),
                transform 0.8s var(--ease-reveal),
                filter 0.8s var(--ease-reveal);
}
.footer.is-revealed .footer-reveal { opacity: 1; transform: none; filter: none; }
.footer.is-revealed .footer__col--brand { transition-delay: 0.1s; }
.footer.is-revealed .footer__groups .footer__col:nth-child(1) { transition-delay: 0.2s; }
.footer.is-revealed .footer__groups .footer__col:nth-child(2) { transition-delay: 0.3s; }
.footer.is-revealed .footer__groups .footer__col:nth-child(3) { transition-delay: 0.4s; }
.footer.is-revealed .footer__groups .footer__col:nth-child(4) { transition-delay: 0.5s; }
.footer.is-revealed .footer__legal { transition-delay: 0.6s; }

@media (max-width: 760px) {
    .footer__container { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .footer-reveal { opacity: 1; transform: none; filter: none; transition: none; }
}
