:root {
    --dark-color: #343a40;
}

/* Shared Footer Styles for DocuGen Pro */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Footer navigation tabs: visible on all screen sizes */
.footer-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin: 1.5rem 0 0.5rem;
}

.footer-tab {
    background: none;
    border: none;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    white-space: nowrap;
}

.footer-tab.active {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* By default, hide all switchable footer sections; JS adds .active */
.footer-section[data-footer-section] {
    display: none;
}

.footer-section[data-footer-section].active {
    display: block;
}

/* Avoid repeating headings; tabs already show the labels */
.footer-section[data-footer-section] h4 {
    display: none;
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

/* Layout helpers for tabbed footer with centered reveal panel */
.footer-links-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.footer-panels {
    /* small top offset from the tabs */
    margin-top: 0.25rem;
    display: flex;
    justify-content: center;
}

.footer-panels .footer-section[data-footer-section] {
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

.attribution {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Mobile footer: stack layout; tabs remain clickable */
@media (max-width: 768px) {
    .footer-content {
        display: block;
    }
}

.social-links a {
    display: inline-block !important;
    color: #ccc;
    transition: transform 0.3s, color 0.3s;
}

.social-links a:hover {
    color: white;
    transform: translateY(-3px);
}