/* ============================================================
   FOOTER — Design system tokens, brand orange accents
   ============================================================ */

/* ── Sticky footer layout ─────────────────────────────────── */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body > section,
body > main {
    flex: 1 0 auto;
}

#footer-container {
    flex-shrink: 0;
}

/* ── Main footer container ────────────────────────────────── */
.modern-footer {
    background: var(--surface-1, oklch(12% 0.045 245));
    border-top: 1px solid var(--border, oklch(28% 0.03 245));
    color: var(--text-1, #f0f0f0);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

/* ── Footer content grid ──────────────────────────────────── */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
}

/* ── Footer section headings ──────────────────────────────── */
.footer-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--brand, #00C8C8);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-1, #f0f0f0);
}

.footer-section p {
    color: var(--text-2, #9ca3af);
    margin: 0;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* ── Footer links ─────────────────────────────────────────── */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-2, #9ca3af);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--brand, #00C8C8);
    padding-left: 0.25rem;
}

/* ── Generic links inside footer sections ─────────────────── */
.footer-section a {
    color: var(--text-2, #9ca3af);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--brand, #00C8C8);
}

/* ── Social icons ─────────────────────────────────────────── */
.social-icons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--surface-2, oklch(16% 0.04 245));
    border: 1px solid var(--border, oklch(28% 0.03 245));
    border-radius: 50%;
    color: var(--text-2, #9ca3af);
    text-decoration: none;
    font-size: 1rem;
    transition:
        color      0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform  0.25s var(--spring-bounce, cubic-bezier(0.34, 1.56, 0.64, 1));
}

.social-icon:hover {
    color: var(--brand, #00C8C8);
    background: var(--surface-3, oklch(22% 0.035 245));
    border-color: var(--brand, #00C8C8);
    transform: translateY(-3px);
}

/* ── Footer divider ───────────────────────────────────────── */
.footer-divider {
    height: 1px;
    background: var(--border, oklch(28% 0.03 245));
    margin: 0 1.5rem 1.5rem;
}

/* ── Footer bottom bar ────────────────────────────────────── */
.footer-bottom {
    text-align: center;
    padding: 0 1.5rem;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-3, oklch(48% 0.012 230));
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--brand, #00C8C8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--brand-light, oklch(88% 0.12 190));
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .modern-footer {
        padding: 2rem 0 1rem;
        margin-top: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .social-icons {
        gap: 0.6rem;
    }

    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
}

/* ── Legacy footer compatibility ──────────────────────────── */
.footer {
    background: var(--surface-1, oklch(12% 0.045 245));
    color: var(--text-1, #f0f0f0);
    padding: 2.5rem 0;
}

.footercontent ul {
    list-style: none;
    padding: 0;
}

.footercontent ul li {
    margin-bottom: 0.6rem;
}

.footercontent ul li a {
    color: var(--text-2, #9ca3af);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footercontent ul li a:hover {
    color: var(--brand, #00C8C8);
}

#copyright {
    text-align: center;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border, oklch(28% 0.03 245));
    color: var(--text-3, oklch(48% 0.012 230));
}
