/* Tiptap-inspired Footer Styles */
:root {
    --footer-bg: #000000;
    /* Black background */
    --footer-text-main: #E5E7EB;
    /* Light gray text */
    --footer-text-sub: #9CA3AF;
    /* Gray text */
    --footer-text-header: #FFFFFF;
    /* White headers */
    --footer-link-hover: #3B82F6;
    /* blue-500 */
    --footer-border: #333333;
    /* Dark border */
}

.footer {
    background-color: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    padding: 80px 0 40px;
    margin-top: auto;
    /* Push to bottom if using flex-col body */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top Section (CTA) */
.footer-top {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-headline {
    font-size: 32px;
    font-weight: 700;
    color: var(--footer-text-header);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.footer-subhead {
    font-size: 18px;
    color: var(--footer-text-sub);
    margin-bottom: 32px;
}

.btn-footer {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-footer:hover {
    background-color: #1F2937;
    transform: translateY(-2px);
}

/* Middle Section (Links) */
.footer-middle {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 48px;
    margin-bottom: 80px;
}

.footer-brand {
    grid-column: span 2;
}

.footer-column h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--footer-text-header);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    text-decoration: none;
    color: var(--footer-text-sub);
    font-size: 14px;
    transition: color 0.15s ease;
}

.footer-column a:hover {
    color: var(--footer-link-hover);
}

/* Bottom Section */
.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.copyright {
    font-size: 14px;
    color: #9CA3AF;
    /* gray-400 */
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

.footer-legal-links a {
    text-decoration: none;
    color: var(--footer-text-sub);
    font-size: 14px;
}

.footer-legal-links a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 20px;
    height: 20px;
    color: var(--footer-text-sub);
    transition: color 0.2s, transform 0.2s;
}

.social-icon:hover {
    color: var(--footer-text-header);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-middle {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-brand {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 0 30px;
    }

    .footer-middle {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .footer-headline {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .footer-middle {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}