/* FOOT-001 - modernised footer prototype. Scoped to .mcm-footer so nothing else is affected.
   Tokens match mcm-ui.css / mcm-category.css / mcm-home.css. Mobile-first. */
.mcm-footer {
    --navy: #152b4a; --navy-d: #0f2038; --green: #147c35; --green-d: #0e642a; --focus: #8fb4ff;
    --ft-text: #d6deea; --ft-muted: #a9b6c8; --ft-line: rgba(255,255,255,.16); --danger: #ffb4ab;
    display: block; clear: both; position: relative; width: 100%; margin: 24px 0 0; padding: 0;
    background: var(--navy); color: var(--ft-text);
    font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.5; text-align: left;
    overflow-x: clip;
}
.mcm-footer *, .mcm-footer *::before, .mcm-footer *::after { box-sizing: border-box; }
.mcm-footer h2, .mcm-footer h3, .mcm-footer p, .mcm-footer ul { margin: 0; padding: 0; font-family: inherit; }
.mcm-footer ul { list-style: none; }
.mcm-footer a { color: #fff; text-decoration: none; }
.mcm-footer a:hover { text-decoration: underline; }
.mcm-footer a:focus-visible, .mcm-footer button:focus-visible, .mcm-footer input:focus-visible,
.mcm-footer summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.mcm-ft-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mcm-ft-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* Newsletter band */
.mcm-ft-news { background: #eaf0f8; color: var(--navy); border-top: 4px solid var(--green); padding: 24px 0; }
.mcm-ft-news .mcm-ft-wrap { display: grid; gap: 14px; }
.mcm-ft-news h2 { color: var(--navy); font-size: 22px; line-height: 1.25; }
.mcm-ft-news__intro { color: #2c3e57; font-size: 15px; margin-top: 4px; }
.mcm-ft-label { display: block; font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.mcm-ft-form { display: grid; gap: 10px; }
.mcm-footer .mcm-ft-input {
    display: block; width: 100%; min-height: 52px; margin: 0; padding: 0 14px; border: 2px solid #5b6f8a; border-radius: 12px;
    background: #fff; color: #1b2a3d; font: 16px/1.2 Arial, Helvetica, sans-serif; box-shadow: none; height: 52px;
}
.mcm-footer .mcm-ft-input::placeholder { color: #5b6879; }
.mcm-footer .mcm-ft-input[aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179,38,30,.25); }
.mcm-footer .mcm-ft-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin: 0; padding: 0 22px;
    background: var(--green); color: #fff; border: 2px solid var(--green); border-radius: 12px; cursor: pointer;
    font: 700 17px/1 Arial, Helvetica, sans-serif; text-transform: none; box-shadow: none;
}
.mcm-footer .mcm-ft-btn:hover { background: var(--green-d); border-color: var(--green-d); }
.mcm-ft-error { color: #a31f17; font-weight: 700; font-size: 14px; margin-top: 8px; }
.mcm-ft-error:empty { display: none; }
.mcm-ft-fine { font-size: 13px; color: var(--ft-muted); margin-top: 8px; }

/* Link groups: collapsible on mobile via <details> */
.mcm-ft-groups { padding: 8px 0 4px; }
.mcm-ft-group { border-bottom: 1px solid var(--ft-line); }
.mcm-ft-group > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 0;
    cursor: pointer; list-style: none; color: #fff;
}
.mcm-ft-group > summary::-webkit-details-marker { display: none; }
.mcm-ft-group > summary::marker { content: ""; }
.mcm-ft-group > summary h2 { font-size: 17px; line-height: 1.3; color: #fff; }
.mcm-ft-group > summary::after {
    content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid #fff; border-bottom: 2px solid #fff;
    transform: rotate(45deg); transition: transform .15s;
}
.mcm-ft-group[open] > summary::after { transform: rotate(-135deg); margin-top: 6px; }
.mcm-ft-group ul { padding: 0 0 12px; }
.mcm-ft-group li a { display: flex; align-items: center; min-height: 44px; font-size: 16px; }
.mcm-ft-more a { color: #cfe9d6; font-weight: 700; }

/* Grey base strip: design credit left, card logos right */
.mcm-ft-strip { background: #e9edf2; color: #3a4658; padding: 12px 0; }
.mcm-ft-strip .mcm-ft-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.mcm-ft-design { font-size: 13px; color: #3a4658; }
.mcm-ft-pay { display: block; max-width: 100%; }
.mcm-ft-pay img { display: block; width: 260px; max-width: 100%; height: auto; }

/* Bottom bar */
.mcm-ft-bottom { padding: 22px 0 22px; display: grid; gap: 14px; border-top: 1px solid var(--ft-line); }
.mcm-ft-credit { font-size: 13px; color: var(--ft-muted); }
.mcm-ft-social { display: flex; gap: 8px; }
.mcm-ft-social a {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--ft-line);
    border-radius: 50%; color: #fff;
}
.mcm-ft-social a:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.mcm-ft-social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 768px) {
    .mcm-ft-news .mcm-ft-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 32px; }
    .mcm-ft-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
    .mcm-footer .mcm-ft-btn { width: auto; }
    .mcm-ft-form__field { min-width: 0; }
    .mcm-ft-form__err { grid-column: 1 / -1; }
    .mcm-ft-groups { padding: 32px 0 20px; }
    .mcm-ft-groups .mcm-ft-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; }
    .mcm-ft-group { border-bottom: 0; }
    .mcm-ft-group > summary { pointer-events: none; cursor: default; min-height: 0; padding: 0 0 8px; }
    .mcm-ft-group > summary::after { display: none; }
    .mcm-ft-group > summary h2 { font-size: 16px; text-transform: uppercase; letter-spacing: .05em; color: #fff; }
    .mcm-ft-group li a { min-height: 36px; color: var(--ft-text); }
    .mcm-ft-group li a:hover { color: #fff; }
    .mcm-ft-bottom { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    .mcm-ft-strip .mcm-ft-wrap { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
}
@media (min-width: 768px) { .mcm-ft-makes ul { columns: 2; column-gap: 16px; } .mcm-ft-makes li { break-inside: avoid; } }
@media (min-width: 1024px) {
    .mcm-ft-groups .mcm-ft-wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .mcm-ft-group > summary::after { transition: none; } }

.mcm-footer .mcm-ft-credit p { color: #c9d3e0 !important; font-size: 13px; line-height: 1.4; }
