/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    position: relative;
    background: var(--color-night);
    color: rgba(255, 255, 255, 0.65);
    padding-block: clamp(var(--space-16), 8vw, var(--space-24));
    overflow: hidden;
}

/* Top accent line */
.footer-accent {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 480px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary-light), transparent);
    opacity: 0.35;
    pointer-events: none;
}

/* ── Grid layout ────────────────────────────────────────────── */
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: clamp(var(--space-8), 4vw, var(--space-12));
    padding-bottom: clamp(var(--space-12), 6vw, var(--space-16));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Brand column ───────────────────────────────────────────── */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.footer-brand__logo {
    display: inline-block;
    line-height: 0;
}

.footer-brand__logo img,
.footer-brand__logo .custom-logo {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-brand__tagline {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.45);
    max-width: 30ch;
    margin: 0;
}

/* ── Social links ───────────────────────────────────────────── */
.social-links {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-link:hover {
    color: var(--color-primary-light);
    border-color: var(--color-primary-light);
    background: rgba(0, 179, 107, 0.1);
}

.social-link svg {
    width: 16px;
    height: 16px;
}

/* ── Nav columns ────────────────────────────────────────────── */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer-col__title {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-nav a,
.footer-nav li a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
    list-style: none;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-nav a:hover,
.footer-nav li a:hover {
    color: #ffffff;
}

/* ── Contact items ──────────────────────────────────────────── */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-3);
}

.footer-contact-item:last-child {
    margin-bottom: 0;
}

.footer-contact-item svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-primary-light);
}

.footer-contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-item a:hover {
    color: #ffffff;
}

/* ── Bottom bar ─────────────────────────────────────────────── */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding-top: clamp(var(--space-6), 3vw, var(--space-8));
    flex-wrap: wrap;
}

.footer-legal {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-built {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.2);
    margin: 0;
    font-style: italic;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: var(--space-6);
    }

    .footer-brand__tagline {
        max-width: 48ch;
    }
}

@media (max-width: 640px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
}
