/* footer.css — the mega footer ("sitefoot" in server/templates/partials.html)
   (the breadcrumb list styles live in site.css: they paint above the fold).

   Owner scope 2026-11-03, Q24/Q26/Q27 (Ace board item 99).
   · Every color is a site.css token (light-dark() pairs), so light, dark and
     the header's theme toggle work with no rules of their own here.
   · No inline styles anywhere (inline CSS is a build failure on this site).
   · PHONE (< 760px): each link group is a <details>, closed. The links stay in
     the DOM (crawlable). DESKTOP (>= 760px): ::details-content is forced
     visible, so every group reads as an always-open column; footer.js opens
     them on the few browsers without ::details-content (MDN: Baseline 2025 —
     Chrome 131, Firefox 143, Safari 18.4).
   · Room for the phone lane's sticky bottom nav: the footer pads its bottom
     by var(--bottom-nav-h, 0px). That lane sets the property; until it does,
     this adds nothing.
   · Motion is opt-in (prefers-reduced-motion: no-preference): the icons draw
     on hover/focus (stroke-dashoffset with pathLength=1) and a group fades in
     when it opens. With reduce, nothing moves.
   · 44px tap targets on coarse pointers. Nothing here may widen the page at
     360px. */

/* ── frame ─────────────────────────────────────────────────────────────── */
.megafoot {
  margin-top: 12px;
  padding: 44px 0 calc(28px + var(--bottom-nav-h, 0px));
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--fg-muted);
  font-size: .92rem;
  line-height: 1.55;
}
.megafoot a { color: var(--fg-muted); text-decoration: none; }
.megafoot a:hover { color: var(--gold-hi); }
.megafoot a:focus-visible, .megafoot summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.megafoot a.btn-primary, .megafoot a.btn-primary:hover { color: var(--on-gold); }
.megafoot ul { list-style: none; margin: 0; padding: 0; }
.megafoot b { color: var(--fg); font-weight: 600; }

/* ── top band: identity + NAP + hours | trust badges | CTAs ───────────── */
.mf-top { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.mf-id { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.mf-brand { display: inline-block; justify-self: start; }
.mf-brand img { display: block; width: 90px; height: auto; }
.mf-nap { font-style: normal; display: flex; flex-direction: column; gap: 2px; }
.mf-name { font-size: 1rem; }
.mf-tel, .mf-mail { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; width: fit-content; }
.mf-tel { color: var(--gold-hi); font-weight: 700; font-size: 1.05rem; }
.megafoot .mf-tel { color: var(--gold-hi); }
.mf-mail { min-height: 32px; overflow-wrap: anywhere; }
.mf-sub { display: block; margin: 0 0 6px; line-height: 1.3; font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--fg); }
.mf-sub a { color: inherit; }
.mf-hours dl { margin: 0; display: grid; gap: 2px; }
.mf-hours dl > div { display: flex; gap: 10px; flex-wrap: wrap; }
.mf-hours dt { color: var(--fg); min-width: 6.5em; }
.mf-hours dd { margin: 0; }

.mf-trust { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); align-content: start; }
.mf-badge {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  transition: border-color .2s ease, background .2s ease;
}
.mf-badge:hover { border-color: var(--gold-deep); background: var(--surface-hover); }
.mf-badge > span { display: flex; flex-direction: column; min-width: 0; }
.mf-badge b { font-size: .95rem; }
.mf-badge small { font-size: .8rem; color: var(--fg-subtle); }
.mf-ico { flex: none; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.mf-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; align-content: start; }
.megafoot .mf-cta a.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 18px; }
.megafoot .mf-cta .mf-call { color: var(--fg); }
.megafoot .mf-cta .mf-call:hover { color: var(--gold-hi); }

/* ── the link map ─────────────────────────────────────────────────────── */
.mf-map { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: 8px 4px; }
.mf-group { border-bottom: 1px solid var(--border); }
.mf-group > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; cursor: pointer; list-style: none; color: var(--fg);
}
.mf-group > summary::-webkit-details-marker { display: none; }
.mf-group > summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 6px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  rotate: 45deg; translate: 0 -2px;
}
.mf-group[open] > summary::after { rotate: 225deg; translate: 0 2px; }
.mf-h { margin: 0; line-height: 1.3; font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: inherit; }
.mf-group ul, .mf-cols { padding-bottom: 14px; }
.mf-cols { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.mf-cols ul { padding-bottom: 0; }
.mf-group li a { display: block; padding: 11px 0; } /* phone: 44px rows */
.mf-more { color: var(--gold-hi); font-weight: 600; }
.megafoot .mf-more { color: var(--gold-hi); }

/* ── legal strip ──────────────────────────────────────────────────────── */
.mf-legal { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between; font-size: .82rem; color: var(--fg-subtle); }
.mf-legal p { margin: 0; }
.mf-legal-links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.mf-legal-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg-subtle); }

/* ── tablet / desktop: groups become always-open columns ──────────────── */
@media (min-width: 760px) {
  /* tablet: identity (logo · NAP · hours) on one row, badges 2-up below */
  .mf-id { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; align-items: start; }
  .mf-trust { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

  .mf-map { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 28px; padding-block: 32px 8px; }
  .mf-products { grid-column: 1 / -1; }
  .mf-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .mf-group { border-bottom: 0; }
  .mf-group::details-content { content-visibility: visible; block-size: auto; }
  .mf-group > summary { min-height: 0; margin-bottom: 10px; cursor: default; pointer-events: none; }
  .mf-group > summary::after { display: none; }
  .mf-group ul, .mf-cols { padding-bottom: 0; }
  .mf-group li a { padding: 4px 0; }
}
@media (min-width: 960px) and (max-width: 1099.98px) {
  .mf-trust { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .mf-top { grid-template-columns: max-content minmax(0, 1fr) max-content; align-items: start; column-gap: 40px; }
  .mf-id { grid-template-columns: auto minmax(0, 1fr); }
  .mf-brand { grid-row: span 2; }
  .mf-cta { grid-column: auto; flex-direction: column; align-items: stretch; }
  /* Products keeps its own full-width row (four sub-columns); the five
     single-list groups share the row below it. */
  .mf-map { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mf-cols { grid-template-columns: 1fr 1.4fr 1fr 1fr; gap: 28px; }
  .mf-colors ul { columns: 2; column-gap: 28px; }
  .mf-colors li { break-inside: avoid; }
}
/* A mouse keeps the compact desktop rhythm; a finger gets 44px rows. */
@media (min-width: 760px) and (pointer: coarse) {
  .mf-group li a { padding: 11px 0; }
}
@media (pointer: coarse) {
  .mf-sub a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ── motion (opt-in) ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .mf-group > summary::after { transition: rotate .2s ease, translate .2s ease; }
  .mf-group::details-content { transition: opacity .25s ease, content-visibility .25s allow-discrete; }
  .mf-group:not([open])::details-content { opacity: 0; }
  .mf-group[open]::details-content { opacity: 1; }
  .mf-ico path { stroke-dasharray: 1; stroke-dashoffset: 0; }
  .mf-badge:hover .mf-ico path, .mf-badge:focus-visible .mf-ico path,
  .mf-tel:hover .mf-ico path, .mf-tel:focus-visible .mf-ico path { animation: mf-draw .7s ease-out both; }
  @keyframes mf-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 760px) {
  .mf-group::details-content, .mf-group:not([open])::details-content { opacity: 1; transition: none; }
}

/* Windows High Contrast: the badges keep a visible boundary. */
@media (forced-colors: active) {
  .mf-badge { border-color: CanvasText; }
  .mf-ico { stroke: CanvasText; }
}
