/* Import premium fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Source+Sans+3:wght@300;400;600&display=swap');

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    border-top: 1px solid #D4AF37;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

/* Brand */
.footer-brand {
    flex: 0 0 280px;
    max-width: 280px;
}

.footer-brand-name {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 32px !important;
    font-weight: 300 !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
    border-bottom: 1px solid #D4AF37;
    padding-bottom: 12px;
}

.footer-tagline {
    font-family: 'Source Sans 3', sans-serif !important;
    font-size: 13px !important;
    color: #888 !important;
    -webkit-text-fill-color: #888 !important;
    line-height: 1.7;
    font-weight: 300 !important;
    margin: 0 !important;
    letter-spacing: 0.3px;
}

/* Nav columns */
.footer-nav {
    display: flex;
    gap: 60px;
    flex: 1;
    justify-content: center;
}

.footer-nav-column {
    display: flex;
    flex-direction: column;
}

.footer-nav-header {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    display: block;
}

.footer-nav-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-column ul li a {
    font-family: 'Source Sans 3', sans-serif !important;
    font-size: 13px !important;
    color: #888 !important;
    -webkit-text-fill-color: #888 !important;
    text-decoration: none;
    font-weight: 300 !important;
    letter-spacing: 0.3px;
    transition: color 0.3s, letter-spacing 0.3s;
}

.footer-nav-column ul li a:hover {
    color: white !important;
    -webkit-text-fill-color: white !important;
    letter-spacing: 0.8px;
}

/* Attribution */
.footer-attribution {
    flex: 0 0 220px;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.footer-tmdb-logo {
    width: 50px;
    height: 50px;
    opacity: 1;
    transition: opacity 0.3s;
}

.footer-tmdb-logo:hover { opacity: 0.8; }

.footer-attribution-text {
    font-family: 'Source Sans 3', sans-serif !important;
    font-size: 11px !important;
    color: #888 !important;
    -webkit-text-fill-color: #888 !important;
    line-height: 1.6;
    margin: 0 !important;
    text-align: right;
    font-weight: 300 !important;
    letter-spacing: 0.3px;
}

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid #2a2a2a;
    padding: 20px 40px;
    text-align: center;
}

.footer-bottom p {
    font-family: 'Source Sans 3', sans-serif !important;
    font-size: 11px !important;
    color: #555 !important;
    -webkit-text-fill-color: #555 !important;
    margin: 0 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 300 !important;
}

/* Sticky footer */
html, body { height: 100%; margin: 0; padding: 0; }
body { display: flex; flex-direction: column; }
main { flex: 1; }

/* ── Tablet ──────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        padding: 40px 25px;
        gap: 35px;
    }

    .footer-brand {
        flex: none;
        max-width: 100%;
    }

    .footer-nav {
        gap: 40px;
        justify-content: flex-start;
        width: 100%;
    }

    .footer-attribution {
        flex: none;
        max-width: 100%;
        align-items: flex-start;
    }

    .footer-attribution-text { text-align: left; }
    .footer-bottom { padding: 15px 25px; }
}

/* ── Mobile ──────────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .footer-top {
        padding: 30px 20px;
        gap: 25px;
    }

    .footer-nav {
        flex-direction: row;
        gap: 24px;
        width: 100%;
        justify-content: flex-start;
    }

    .footer-nav-column {
        flex: 1;
        min-width: 0;
    }

    .footer-nav-column ul li a {
        font-size: 12px !important;
        letter-spacing: 0 !important;
        white-space: normal;
    }

    .footer-bottom { padding: 15px 20px; }
    .footer-bottom p { font-size: 10px !important; }
}

/* ── Footer nav row ──────────────────────────────────────────────────────────── */
.footer-nav-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0 16px;
}

.footer-nav-link {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav-link:hover { color: #f0ece4; }
.footer-nav-link--gold { color: #D4AF37; }
.footer-nav-link--gold:hover { color: #e8c84a; }

.footer-nav-sep { color: #333; font-size: 12px; }

/* ── Footer legal row ────────────────────────────────────────────────────────── */
.footer-legal-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.footer-legal-link {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal-link:hover { color: #666; }