/**
 * File: assets/css/frontend/footer/menus.css
 * Purpose: Styles four Appearance-assigned Footer menu columns with compact, balanced link spacing.
 * Scope: Footer menus only.
 * Related PHP: src/Frontend/Footer/Components/MenuColumns.php
 * Related CSS: assets/css/frontend/footer/main.css, assets/css/frontend/footer/responsive.css
 * Related JS: assets/js/frontend/footer/accordion.js
 * Package: HyperDAF Pro
 */

.hdf-footer-menus {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--hdf-component-footer-menu-column-gap);
    min-width: 0;
}

.hdf-footer-menu-column {
    min-width: 0;
}

.hdf-footer-menu-column__title,
.hdf-footer-menu-column__toggle {
    margin: 0 0 var(--hdf-component-footer-menu-heading-gap);
    color: var(--hdf-color-text-primary);
    font-size: var(--hdf-typography-size-sm);
    font-weight: var(--hdf-typography-weight-semibold);
    line-height: var(--hdf-typography-line-height-tight);
}

.hdf-footer-menu-column__toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.hdf-footer-menu-column__toggle .hdf-icon {
    width: 1rem;
    height: 1rem;
    transition: transform var(--hdf-motion-duration-normal) var(--hdf-motion-easing-standard);
}

.hdf-footer-menu-column__toggle[aria-expanded="true"] .hdf-icon {
    transform: rotate(180deg);
}

.hdf-footer-menu {
    display: grid;
    gap: var(--hdf-component-footer-menu-item-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.hdf-footer-menu li {
    margin: 0;
    padding: 0;
}

.hdf-footer-menu a {
    display: inline-flex;
    color: var(--hdf-color-text-secondary);
    font-size: var(--hdf-typography-size-sm);
    font-weight: var(--hdf-typography-weight-regular);
    line-height: var(--hdf-component-footer-menu-link-line-height);
    text-decoration: none;
    text-underline-offset: 0.25em;
}

.hdf-footer-menu a:hover,
.hdf-footer-menu .current-menu-item > a,
.hdf-footer-menu .current-menu-ancestor > a {
    color: var(--hdf-color-primary-strong);
    text-decoration: underline;
    text-decoration-color: var(--hdf-color-primary);
}
