/* Centred footer (includes/footer.php with $footer_style = 'centred' — index.php, index_v2.php).
   Menu titles open their links on hover; on touch screens a tap does it (see the script in footer.php). */
/* ── shared hover menu ── */
.fm { position: relative; }
.fm-btn { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; padding: 10px 0; color: inherit; }
.fm-chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .6; transition: transform .35s var(--ease-out); }
.fm ul { list-style: none; margin: 0; padding: 0; }
.fm li { opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); transition-delay: calc(var(--n) * 35ms); }
.fm-panel { visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility 0s .3s; }

.fm.is-open .fm-panel, .fm:focus-within .fm-panel { visibility: visible; opacity: 1; transition: opacity .3s var(--ease); }
.fm.is-open li, .fm:focus-within li { opacity: 1; transform: none; }
.fm.is-open .fm-chev, .fm:focus-within .fm-chev { transform: translateY(1px) rotate(-135deg); }
@media (hover: hover) {
  .fm:hover .fm-panel { visibility: visible; opacity: 1; transition: opacity .3s var(--ease); }
  .fm:hover li { opacity: 1; transform: none; }
  .fm:hover .fm-chev { transform: translateY(1px) rotate(-135deg); }
}

/* ════ A · Centred (dark) ════ */
.fa { background: var(--footer-bg); color: #fff; padding: clamp(56px, 7vw, 88px) 0 28px; text-align: center; }
.fa-logo { display: flex; justify-content: center; }
.fa .logo { align-items: center; }
.fa-tag { margin: 18px auto 0; max-width: 480px; text-wrap: balance; color: var(--footer-dim); font-family: var(--font-display); font-size: clamp(18px, 2vw, 22px); }
.fa-menus { display: flex; justify-content: center; gap: clamp(28px, 6vw, 72px); margin: 36px 0 28px; }
.fa .fm-btn { color: #fff; }
.fa .fm-btn:hover { color: var(--silver); }
/* little card that rises above the title */
.fa .fm-panel { position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 5; min-width: 200px; padding: 14px 8px; translate: -50% 6px; background: #232323; border: 1px solid #3a3a3a; border-radius: 16px; box-shadow: 0 24px 48px -20px rgba(0,0,0,.7); transition: opacity .3s var(--ease), translate .3s var(--ease-out), visibility 0s .3s; }
.fa .fm-panel::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; background: #232323; border-right: 1px solid #3a3a3a; border-bottom: 1px solid #3a3a3a; translate: -50% 0; rotate: 45deg; }
.fa .fm-panel::before { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px; } /* hover bridge */
.fa .fm.is-open .fm-panel, .fa .fm:focus-within .fm-panel { translate: -50% 0; }
@media (hover: hover) { .fa .fm:hover .fm-panel { translate: -50% 0; } }
.fa .fm-panel a { display: block; padding: 8px 16px; border-radius: 10px; font-size: 14px; color: #d6d6d6; white-space: nowrap; }
.fa .fm-panel a:hover { background: #2e2e2e; color: #fff; }
.fa-contact { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--footer-dim); }
.fa-contact a { display: inline-flex; align-items: center; gap: 8px; }
.fa-contact a:hover { color: #fff; }
.fa-contact .ico { width: 15px; height: 15px; }
.fa-socials { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.fa-socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #3a3a3a; transition: background var(--dur), color var(--dur), border-color var(--dur); }
.fa-socials a:hover { background: var(--silver); border-color: var(--silver); color: #111; }
.fa-socials .ico { width: 17px; height: 17px; }
.fa-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid #2c2c2c; font-size: 12.5px; color: #8f8f8f; text-align: left; }
.fa-pay { display: inline-flex; align-items: center; gap: 8px; }
.fa-pay .ico { width: 14px; height: 14px; }

/* ════ A · Centred (dark) ════ */
.fa { background: var(--footer-bg); color: #fff; padding: clamp(56px, 7vw, 88px) 0 28px; text-align: center; }
.fa-logo { display: flex; justify-content: center; }
.fa .logo { align-items: center; }
.fa-tag { margin: 18px auto 0; max-width: 480px; text-wrap: balance; color: var(--footer-dim); font-family: var(--font-display); font-size: clamp(18px, 2vw, 22px); }
.fa-menus { display: flex; justify-content: center; gap: clamp(28px, 6vw, 72px); margin: 36px 0 28px; }
.fa .fm-btn { color: #fff; }
.fa .fm-btn:hover { color: var(--silver); }
/* little card that rises above the title */
.fa .fm-panel { position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 5; min-width: 200px; padding: 14px 8px; translate: -50% 6px; background: #232323; border: 1px solid #3a3a3a; border-radius: 16px; box-shadow: 0 24px 48px -20px rgba(0,0,0,.7); transition: opacity .3s var(--ease), translate .3s var(--ease-out), visibility 0s .3s; }
.fa .fm-panel::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; background: #232323; border-right: 1px solid #3a3a3a; border-bottom: 1px solid #3a3a3a; translate: -50% 0; rotate: 45deg; }
.fa .fm-panel::before { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px; } /* hover bridge */
.fa .fm.is-open .fm-panel, .fa .fm:focus-within .fm-panel { translate: -50% 0; }
@media (hover: hover) { .fa .fm:hover .fm-panel { translate: -50% 0; } }
.fa .fm-panel a { display: block; padding: 8px 16px; border-radius: 10px; font-size: 14px; color: #d6d6d6; white-space: nowrap; }
.fa .fm-panel a:hover { background: #2e2e2e; color: #fff; }
.fa-contact { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--footer-dim); }
.fa-contact a { display: inline-flex; align-items: center; gap: 8px; }
.fa-contact a:hover { color: #fff; }
.fa-contact .ico { width: 15px; height: 15px; }
.fa-socials { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.fa-socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #3a3a3a; transition: background var(--dur), color var(--dur), border-color var(--dur); }
.fa-socials a:hover { background: var(--silver); border-color: var(--silver); color: #111; }
.fa-socials .ico { width: 17px; height: 17px; }
.fa-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid #2c2c2c; font-size: 12.5px; color: #8f8f8f; text-align: left; }
.fa-pay { display: inline-flex; align-items: center; gap: 8px; }
.fa-pay .ico { width: 14px; height: 14px; }

/* ── phone: every menu becomes a tap-to-open accordion row ── */
@media (max-width: 767px) {
  .fa-menus { flex-direction: column; gap: 0; text-align: left; }
  .fa .fm { position: relative; border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
  .fa .fm:last-child { border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
  .fm-btn { width: 100%; justify-content: space-between; padding: 18px 0; }
  .fa .fm-panel { position: static; translate: none; min-width: 0; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0;
    display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out), opacity .3s, visibility 0s .4s; }
  .fa .fm-panel::after, .fa .fm-panel::before { display: none; }
  .fa .fm.is-open .fm-panel, .fa .fm:focus-within .fm-panel, .fa .fm:hover .fm-panel { translate: none; }
  .fm-panel > ul { min-height: 0; overflow: hidden; }
  .fm.is-open .fm-panel { grid-template-rows: 1fr; transition: grid-template-rows .4s var(--ease-out), opacity .3s; }
  .fm.is-open .fm-panel > ul { padding-bottom: 16px; }
  .fa .fm-panel a { padding: 8px 0; color: #cfcfcf; }
  .fa .fm-panel a:hover { background: none; }
  .fa-menus { margin: 32px 0; }
  .fa-contact { flex-direction: column; }
  .fa-contact > span { display: none; }
  .fa-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .fm li, .fm-panel, .fm-chev { transition: none !important; }
}
