/* =========================================================
 * AOO Footer — components/footer.css
 * Clean, mobile-friendly, token-based, minimal overrides
 * ---------------------------------------------------------
 * HTML expects:
 * .aoo-footer
 *   .aoo-footer__top
 *     .aoo-footer__inner
 *       .aoo-footer__grid (4 cols)
 *   .aoo-footer__bottom
 *     .aoo-footer__inner
 *       .aoo-footer__legal (5 cols)
 * ========================================================= */


/* =========================================
   1) Base + GP wrapper sanity (minimal)
   ========================================= */

/* Only touch GP wrappers where they add unwanted padding around our custom footer */
.site-footer .inside-site-info,
.site-footer .inside-footer,
.site-footer .inside-footer-widgets {
    padding: 0;
}

.aoo-footer {
    color: var(--contrast-3);
}


/* =========================================
   2) Top section (card-like AOO style)
   ========================================= */

.aoo-footer__top {
    /* Use your global light base instead of hardcoded rgba */
    background: var(--base-3);
    padding: 20px 0;
}

.aoo-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 20px;

    /* AOO “card” feel */
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
}

/* 4 → 2 → 1 responsive grid */
.aoo-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.aoo-footer__col {
    min-width: 0;
    /* prevents overflow */
}

.aoo-footer__title {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--contrast);
}

.aoo-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aoo-footer__list li {
    margin: 0;
}


/* Links (tap-friendly + accessible focus) */
.aoo-footer a {
    color: var(--contrast-2);
    text-decoration: none;
}

.aoo-footer a:hover {
    color: #e45412;
    text-decoration: underline;
}

.aoo-footer a:focus-visible {
    outline: 2px solid #e45412;
    outline-offset: 3px;
    border-radius: 8px;
}

.aoo-footer__list a {
    display: inline-block;
    padding: 6px 0;
    font-size: 17px;
    line-height: 1.35;
    opacity: .92;
}

.aoo-footer__list a:hover {
    opacity: 1;
}


/* =========================================
   3) Bottom legal bar (high contrast)
   ========================================= */

.aoo-footer__bottom {
    background: linear-gradient(180deg, #c50606 0%, #b00505 100%);
    padding: 12px 0;
}

/* Bottom bar uses its own inner container, but we don’t want a white card here */
.aoo-footer__bottom .aoo-footer__inner {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0 20px;
    /* align with site gutters */
}

.aoo-footer__legal {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    align-items: center;
}

.aoo-footer__legal a {
    display: block;
    text-align: center;
    padding: 10px 8px;
    font-size: 14px;
    line-height: 1.2;

    /* Contrast */
    color: #fff;
    background: rgba(0, 0, 0, .15);
    border-radius: 12px;
}

.aoo-footer__legal a:hover {
    background: rgba(0, 0, 0, .25);
    text-decoration: underline;
}

.aoo-footer__legal a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
    border-radius: 12px;
}


/* =========================================
   4) Responsive
   ========================================= */

@media (max-width: 1024px) {
    .aoo-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aoo-footer__legal {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .aoo-footer__inner {
        border-radius: 16px;
        padding: 20px 16px;
    }

    .aoo-footer__title {
        font-size: 18px;
    }

    .aoo-footer__list a {
        font-size: 16px;
        padding: 8px 0;
    }

    .aoo-footer__grid {
        grid-template-columns: 1fr;
    }

    .aoo-footer__legal {
        grid-template-columns: 1fr;
    }

    .aoo-footer__legal a {
        padding: 12px 10px;
    }
}