/*
 * site-footer.css: the look of the one site footer (SEO/GEO loop, row EA-3, 2026-11-30).
 *
 * The block comes from lib/ssr/site-footer.js (scripts/build-site-footer.mjs writes it into every
 * page in public/, lib/ssr/klanten-page.js renders it for /klanten), and every one of those pages
 * links this file. Every rule is scoped to footer.page-footer, so no other footer picks it up, and
 * no page keeps footer rules of its own. Home's approved footer is the spec: these are its rules,
 * with a fifth column.
 *
 * Two looks, one set of rules: white by default (the fallbacks below), dark on the four pages that
 * set these variables in their own <style> (functies, offertes-voor-groepen,
 * reserveringssysteem-restaurant, reservatiesysteem-horeca):
 *   --footer-bg, --footer-border (top edge), --footer-rule (lines inside), --footer-text,
 *   --footer-heading, --footer-link, --footer-link-hover, --footer-cities-text, --footer-strong,
 *   --footer-muted
 *
 * Phones (600px and below, the breakpoint of marketing-mobile.css): one column, every footer link
 * at least 40px tall, no text under 13px (tests/unit/marketing-mobile-layout.test.js). These rules
 * moved here from marketing-mobile.css, which only 39 of the 48 pages load.
 *
 * Column titles are <h2> since EA-21a (2026-12-01): as <h4> they skipped a level after the page's last <h2>. The
 * h2 rule pins every property a page's own h2 rule or marketing-mobile.css sets (font, line height, margins,
 * hyphens), and font and line height inherit, so every page shows home's titles. Six pages (automatische-
 * tafeltoewijzing, bevestigingsmail-restaurant, horeca-evenementen, pers, piekdrukte-pacing, wat-is-nieuw) used to
 * leak their own h1-h4 rule into the footer (Fraunces, a 2.4rem top margin); they now match home.
 *
 * Fences: tests/unit/site-footer-one-source-fence.test.js, tests/unit/main-landmark-heading-order-fence.test.js.
 */
footer.page-footer{background:var(--footer-bg,#fff);border-top:1px solid var(--footer-border,#eadfcc);margin-top:3rem;padding:2.5rem 1.5rem 1.5rem;color:var(--footer-text,inherit)}
footer.page-footer .footer-inner{max-width:960px;margin:0 auto}
footer.page-footer .footer-grid{display:grid;gap:2rem;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:2rem}
@media(min-width:720px){footer.page-footer .footer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1024px){footer.page-footer .footer-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
footer.page-footer h2{font-family:inherit;font-size:0.7rem;font-weight:700;font-style:normal;line-height:inherit;text-transform:uppercase;letter-spacing:0.16em;color:var(--footer-heading,#8f6f17);margin:0 0 0.8rem;padding:0;border:0;max-width:none;text-align:inherit;-webkit-hyphens:manual;hyphens:manual}
footer.page-footer ul{list-style:none;padding:0;margin:0}
footer.page-footer ul li{margin-bottom:0.6rem}
footer.page-footer ul li a{font-size:0.9rem;color:var(--footer-link,#5f554c);text-decoration:none;transition:color 0.15s;overflow-wrap:break-word}
footer.page-footer ul li a:hover{color:var(--footer-link-hover,#1d1814)}
footer.page-footer .footer-cities{border-top:1px solid var(--footer-rule,#f0e8d8);padding:1.2rem 0;margin-bottom:1rem;font-size:0.85rem;color:var(--footer-cities-text,#6f6258);text-align:center}
footer.page-footer .footer-cities span{font-weight:600;color:var(--footer-strong,#1d1814);margin-right:0.4rem}
footer.page-footer .footer-cities a{color:var(--footer-link,#5f554c);text-decoration:none;margin:0 0.3rem}
footer.page-footer .footer-cities a:hover{color:var(--footer-link-hover,#1d1814)}
footer.page-footer .footer-bottom{border-top:1px solid var(--footer-rule,#f0e8d8);padding-top:1.2rem;display:flex;flex-wrap:wrap;justify-content:center;gap:0.4rem 1rem;font-size:0.8rem;color:var(--footer-muted,#6b6457);text-align:center}
footer.page-footer .footer-bottom a{color:var(--footer-strong,#1d1814);text-decoration:none}
footer.page-footer .footer-bottom a:hover{text-decoration:underline}

@media (max-width:600px){
  footer.page-footer{padding:3rem var(--mobile-page-padding,clamp(1rem,4vw,1.35rem)) 1.5rem}
  footer.page-footer .footer-grid{grid-template-columns:minmax(0,1fr);gap:2rem}
  footer.page-footer h2{font-size:0.92rem;letter-spacing:0.05em;margin-bottom:0.9rem}
  footer.page-footer ul li{margin-bottom:0.65rem}
  footer.page-footer a{min-height:var(--mobile-tap-footer,40px);display:inline-flex;align-items:center;padding:0.4rem 0.7rem}
  footer.page-footer ul li a{font-size:0.98rem}
  footer.page-footer .footer-cities{font-size:0.92rem}
  footer.page-footer .footer-cities a{margin:0.15rem}
  footer.page-footer .footer-bottom{flex-direction:column;gap:0.5rem 0;padding-top:1.2rem;font-size:0.92rem}
  footer.page-footer .footer-bottom a{font-size:0.92rem;margin:0.2rem}
  footer.page-footer .footer-bottom span{font-size:0.82rem}
}
