/* ═══════════════════════════════════════════════
   SERIALDATA — Footer Design System
   ═══════════════════════════════════════════════ */

#site-footer {
    background: var(--card);
    border-top: 1px solid var(--brdr);
    margin-top: 40px;
    padding: 48px 0 0;
    position: relative;
}

#site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cont), transparent);
    opacity: 0.3;
}

.footer-inner {
    max-width: 1368px; /* same width as the header (owner, 2026-11-24) */
    margin: 0 auto;
    padding: 0 20px;
}
@media (min-width: 1100px) {
    .footer-inner { width: calc(100% - 72px); padding: 0; }
}

/* ══════════════════════════════════════
   FOOTER MAIN GRID
══════════════════════════════════════ */
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--brdr);
}

/* About Column */
.footer-about {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-about a {
    display: inline-block;
    transition: opacity 0.15s;
}

.footer-about a:hover {
    opacity: 0.8;
}

.footer-logo-img {
    width: auto;
    height: 48px;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.footer-about p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--sub);
    margin: 0;
    max-width: 280px;
}

/* Nav Columns */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-h {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
    margin: 0;
}

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

.footer-nav-list li {
    margin: 0;
}

.footer-nav-list a {
    font-size: 13px;
    color: var(--sub);
    text-decoration: none;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-nav-list a:hover {
    color: var(--cont);
    transform: translateX(4px);
}

/* Follow Column */
.footer-follow-text {
    font-size: 13px;
    line-height: 1.7;
    color: var(--sub);
    margin: 0;
}

/* ══════════════════════════════════════
   FOOTER BOTTOM
══════════════════════════════════════ */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    flex-wrap: wrap;
}

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

.footer-copy div {
    font-size: 12px;
    color: var(--sub);
}

.footer-copy strong {
    color: var(--text);
    font-weight: 700;
}

.footer-note {
    font-size: 11px;
    color: var(--muted);
}

.footer-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.f-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--surf);
    border: 1px solid var(--brdr);
    color: var(--sub);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
}

.f-btn:hover {
    background: var(--hover);
    border-color: var(--brdr2);
    color: var(--text);
    transform: translateY(-2px);
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .footer-about {
        grid-column: 1 / -1;
    }
    
    .footer-about p {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    #site-footer {
        padding-top: 32px;
        margin-top: 24px;
    }
    
    .footer-inner {
        padding: 0 16px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 28px;
    }
    
    .footer-logo-img {
        height: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px 0;
    }
    
    .footer-btns {
        width: 100%;
    }
    
    .f-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-btns {
        flex-direction: column;
    }
    
    .f-btn {
        width: 100%;
    }
}