/* =================================================
   FOOTER — New Layout: Centered brand, rows of links
================================================= */

.site-footer {
    margin-top: 0;
    padding: 64px 0 32px;
    background: var(--bg-elevated);
    color: var(--muted-light);
    border-top: 2px solid var(--border);
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.site-footer a {
    color: var(--muted-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Top: Brand centered */
.footer-top {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.footer-brand-center {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    user-select: none;
}

.footer-mark-center {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--ink);
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.footer-brand-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-name-center {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 24px;
    letter-spacing: -0.02em;
    color: var(--ink-light);
}

.footer-desc-center {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 40ch;
}

/* Middle: Links in rows */
.footer-links-section {
    margin-bottom: 40px;
}

.footer-links-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

@media (max-width: 991px) {
    .footer-links-row {
        gap: 40px;
    }
}

@media (max-width: 767px) {
    .footer-links-row {
        flex-direction: column;
        gap: 32px;
        align-items: center;
        text-align: center;
    }
}

.footer-link-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 160px;
}

.footer-link-group-title {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.footer-link-group-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.footer-link-group-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link-item {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    color: var(--muted-light);
    transition: all 0.2s ease;
    position: relative;
    padding-left: 16px;
}

.footer-link-item::before {
    content: "→";
    position: absolute;
    left: 0;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(-4px);
    color: var(--accent);
}

.footer-link-item:hover {
    color: var(--accent);
    padding-left: 20px;
}

.footer-link-item:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Bottom: Publisher + Copyright */
.footer-bottom-section {
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.footer-publisher-info {
    text-align: center;
    margin-bottom: 28px;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.footer-publisher-label {
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
    font-weight: 700;
}

.footer-publisher-details {
    font-size: 13px;
    color: var(--muted-light);
    line-height: 1.8;
}

.footer-publisher-details strong {
    color: var(--ink-light);
    font-weight: 700;
}

.footer-publisher-details a {
    color: var(--accent);
}

.footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.footer-copyright {
    font-size: 13px;
    color: var(--muted);
}

.footer-utils {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.footer-util-link {
    font-size: 13px;
    color: var(--muted-light);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.footer-util-link:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.footer-util-sep {
    color: var(--muted);
    opacity: 0.4;
}

@media (max-width: 575px) {
    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}
