/* Footer concept, scoped independently from the legacy .footer breakpoints.
   Navigation → RFQ → brand/language + social destinations + legal utility.
   4px spacing scale. Link content remains WordPress-managed in both languages. */
.avm-footer {
    --footer-surface: #080a1d;
    --footer-text: #f5f5ff;
    --footer-muted: #b8bbd1;
    --footer-rule: #2c3048;
    background: var(--footer-surface);
    color: var(--footer-text);
    padding: 32px 0 max(20px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--footer-rule);
    font-size: 16px;
    line-height: 1.5;
    scroll-margin-top: 100px;
}
.avm-footer *, .avm-footer *::before, .avm-footer *::after { box-sizing: border-box; }
.avm-footer ::selection { background: #f9a539; color: #080a1d; }
.avm-footer__inner { width: min(100% - 40px, 1240px); margin-inline: auto; }
.avm-footer__main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.avm-footer :is(h2, p, ul, li) { margin: 0; padding: 0; }
.avm-footer h2 {
    font-family: 'Akzidenz-Grotesk Pro Bold Ext', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
    color: var(--footer-text);
    text-wrap: balance;
}
.avm-footer__nav { min-width: 0; }
.avm-footer__nav h2 { margin-bottom: 12px; }
.avm-footer__nav ul { list-style: none; }
.avm-footer__nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-block: 8px;
    color: var(--footer-muted);
    font-size: 16px;
    line-height: 1.4;
    text-decoration: none;
    text-underline-offset: 5px;
    overflow-wrap: break-word;
    hyphens: none;
    transition: color .16s ease;
}
.avm-footer__nav a[aria-current="page"] { color: var(--footer-text); text-decoration: underline; }
.avm-footer__request { grid-column: 1 / -1; min-width: 0; border-top: 1px solid var(--footer-rule); padding-top: 24px; }
.avm-footer__request p { color: var(--footer-muted); font-size: 14px; line-height: 1.6; margin-top: 8px; max-width: 36ch; }
.avm-footer__quote {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    min-height: 48px;
    margin-top: 20px;
    padding: 12px 20px;
    border: 1px solid #012fea;
    border-radius: 0;
    background: #012fea;
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}
.avm-footer__quote svg { flex: 0 0 20px; }
.avm-footer__utilities {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--footer-rule);
}
.avm-footer__identity { display: flex; align-items: center; gap: 24px; }
.avm-footer__brand { display: flex; flex: 0 0 44px; width: 44px; height: 44px; }
.avm-footer__brand img { display: block; width: 44px; height: 44px; }
.avm-footer__languages { display: flex; gap: 4px; }
.avm-footer__languages a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    color: var(--footer-muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.avm-footer__languages a[aria-current="page"] { color: var(--footer-text); text-decoration: underline; text-underline-offset: 8px; text-decoration-color: #f9a539; text-decoration-thickness: 2px; }
.avm-footer__socials { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.avm-footer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #cbd0e8;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0;
    transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}
.avm-footer__socials svg { display: block; width: 24px; height: 24px; }
.avm-footer__copyright { width: 100%; color: var(--footer-muted); font-size: 12px; line-height: 1.6; }
.avm-footer__copyright span { margin-left: 12px; }
.avm-footer :is(a, button):focus-visible { outline: 2px solid #f9a539; outline-offset: 4px; }
.avm-footer__quote:active { background: #0026c4; }
.avm-footer__socials a:active { background: #24283f; color: #fff; }
@media (hover: hover) {
    .avm-footer__nav a:hover { color: #fff; text-decoration: underline; }
    .avm-footer__languages a:hover { color: #fff; }
    .avm-footer__quote:hover { background: #244ffc; }
    .avm-footer__socials a:hover { background: #1b1f36; border-color: #424968; color: #fff; }
}
@media (min-width: 380px) {
    .avm-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .avm-footer__request { grid-column: 1 / -1; }
}
@media (min-width: 640px) {
    .avm-footer__inner { width: min(100% - 64px, 1240px); }
    .avm-footer__main { column-gap: 48px; row-gap: 24px; }
    .avm-footer__request { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 20px; }
    .avm-footer__quote { flex: 0 0 auto; width: auto; min-width: 232px; margin-top: 0; }
    .avm-footer__request p { max-width: 38ch; }
    .avm-footer__copyright { display: flex; gap: 16px; }
    .avm-footer__copyright span { margin-left: 0; }
}
@media (max-width: 639px) {
    /* Give long policy names room without hyphenating or hiding their words. */
    .avm-footer__main { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 16px; }
    .avm-footer__nav a { font-size: 14px; }
}
@media (min-width: 760px) {
    .avm-footer__utilities { flex-wrap: nowrap; }
    .avm-footer__copyright { display: block; width: auto; margin-left: auto; text-align: right; }
    .avm-footer__copyright span { display: block; }
}
@media (min-width: 1100px) {
    .avm-footer { padding-top: 40px; }
    .avm-footer__inner { width: min(100% - 160px, 1240px); }
    .avm-footer__main { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1.25fr); gap: 64px; }
    .avm-footer h2 { font-size: 18px; }
    .avm-footer__nav a { min-height: 36px; padding-block: 6px; font-size: 15px; }
    .avm-footer__request { display: block; grid-column: auto; border-top: 0; padding-top: 0; }
    .avm-footer__quote { min-width: 248px; margin-top: 20px; }
    .avm-footer__utilities { flex-wrap: nowrap; margin-top: 28px; }
    .avm-footer__copyright { display: block; width: auto; margin-left: auto; text-align: right; }
    .avm-footer__copyright span { display: block; }
}
@media (pointer: coarse) { .avm-footer__nav a { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .avm-footer :is(a, button) { transition: none; } }
