/* ── Footer ── */
footer {
    width: 100%;
    padding: clamp(2rem, 4vw, 5rem) clamp(2rem, 5vw, 6rem);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(var(--blur-radius));
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 2vw, 3rem);
    border-top: 1px solid white;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(2rem, 5vw, 6rem);
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-logo {
    width: clamp(100px, 8vw, 180px);
}

.footer-copy {
    font-size: clamp(0.85rem, 0.6vw, 1rem);
    opacity: 0.8;
}

.footer-columns {
    display: flex;
    gap: clamp(3rem, 6vw, 8rem);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-title {
    font-size: clamp(0.9rem, 0.7vw, 1.1rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: clamp(0.9rem, 0.7vw, 1.1rem);
    transition: opacity 0.25s ease;
}

/* Underline effect ONLY for Pages links */
.footer-pages a {
    position: relative;
    width: fit-content;
}

.footer-pages a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform-origin: right;
    opacity: 0;
}

.footer-pages a:hover::after {
    width: 100%;
    left: 0;
    right: auto;
    opacity: 1;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    transition: 0.25s ease;
}

.contact-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.contact-icon img,
.contact-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ── Socials ── */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 18px;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    padding-top: 1.5rem;
}

.social {
    position: relative;
    width: clamp(48px, 4vw, 60px);
    height: clamp(48px, 4vw, 60px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.3s ease;
    overflow: visible;
}

.social::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    backdrop-filter: blur(55px);
    background: color-mix(in srgb, currentColor 20%, transparent);
    border: 1px solid currentColor;
    color: currentColor;
    padding: 7px 12px;
    border-radius: 30px;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
    z-index: 100;
}

.social:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.social img,
.social svg {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
    transition: 0.3s ease;
}

.instagram:hover {
    color: #E1306C;
    border-color: #E1306C;
    transform: scale(1.1);
}

.instagram:hover img,
.instagram:hover svg {
    filter:
        brightness(0) saturate(100%) invert(33%) sepia(97%) saturate(2107%) hue-rotate(307deg) brightness(93%) contrast(91%) drop-shadow(0 0 4px #E1306C) drop-shadow(0 0 8px #E1306C);
}

.linkedin:hover {
    color: #0077B5;
    border-color: #0077B5;
    transform: scale(1.1);
}

.linkedin:hover img,
.linkedin:hover svg {
    filter:
        brightness(0) saturate(100%) invert(32%) sepia(98%) saturate(1624%) hue-rotate(181deg) brightness(91%) contrast(101%) drop-shadow(0 0 4px #0077B5) drop-shadow(0 0 8px #0077B5);
}

.facebook:hover {
    color: #1877F2;
    border-color: #1877F2;
    transform: scale(1.1);
}

.facebook:hover img,
.facebook:hover svg {
    filter:
        brightness(0) saturate(100%) invert(38%) sepia(99%) saturate(1548%) hue-rotate(204deg) brightness(97%) contrast(97%) drop-shadow(0 0 22px #1877F2) drop-shadow(0 0 22px #1877F2);
}

/* ── Large screens: reset footer margins (section centering handled in base.css) ── */
@media (min-width: calc(1800px + 2 * 28px)) {
    footer {
        margin-left: 0;
        margin-right: 0;
    }
}

/* ── Mobile footer layout ── */
@media (max-width: 760px) {
    footer {
        padding: 1.2rem;
        gap: 1.5rem;
    }

    /* Footer stays in row */
    .footer-main {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
    }

    .footer-brand {
        flex: 0.9;
        align-items: flex-start;
    }

    .footer-logo {
        width: 75px;
    }

    .footer-copy {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .footer-columns {
        flex: 1.1;
        display: flex;
        justify-content: space-between;
        gap: 1rem;
    }

    .footer-column {
        gap: 8px;
    }

    .footer-title {
        font-size: 0.72rem;
        letter-spacing: 0.12em;
    }

    .footer-links {
        gap: 7px;
    }

    .footer-links a {
        font-size: 0.68rem;
        line-height: 1.3;
    }

    .contact-link {
        gap: 6px;
    }

    .contact-icon {
        width: 13px;
        height: 13px;
    }

    .footer-socials {
        gap: 10px;
        padding-top: 0.9rem;
    }

    .social {
        width: 34px;
        height: 34px;
    }

    .social img,
    .social svg {
        width: 15px;
        height: 15px;
    }

    .social::after {
        font-size: 11px;
        padding: 5px 8px;
    }
}

/* ── Phone only ── */
@media (max-width: 480px) {
    footer {
        text-align: center;
    }

    .footer-main,
    .footer-columns {
        grid-template-columns: 1fr;
    }

    .footer-brand,
    .footer-column {
        align-items: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-socials {
        justify-content: center;
    }
}