/* ===== frontend-footer.css — OKAMI CMS public footer chrome (V.104 CSS split) =====
   Split out of the former app.css. Public-site footer chrome only. Load
   last on frontend pages (after tokens/header/body/elements — see
   resources/views/frontend/shell.php). */

/* .frontend-body__footer — merged from its 2 separate app.css passes:
   an earlier light `background: var(--surface)` rule and a later
   `background: var(--dark); color: #b9c2cc` override. The later dark-
   footer rule is the real intended design (see DECISIONS.md #096/#111) —
   kept as the single final rule instead of carrying the lighter one
   forward as dead weight. */
.frontend-body__footer { border-top: 1px solid var(--line); background: var(--dark); color: #b9c2cc; margin-top: 48px; }
.frontend-body__footer a { color: #d7dde3; }
.frontend-body__footer .builder-menu__link { color: #d7dde3; }
.frontend-body__footer .builder-heading, .frontend-body__footer h2, .frontend-body__footer h3, .frontend-body__footer h4 { color: #fff; }

.site-footer { background: var(--dark); color: #b9c2cc; margin-top: 48px; }
/* FooterSectionsConfig round — was a positional 5-column CSS grid
   (`grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr`), which only looked
   right in one fixed brand/col/col/col/contact order. Flexbox with each
   section owning its own `flex` basis (below) means Certifications/Brand/
   Columns/Contact stay visually correct in ANY admin-chosen order or
   subset — nothing here depends on DOM position. */
.site-footer__top { max-width: var(--container); margin: 0 auto; padding: 40px 24px 32px; display: flex; flex-wrap: wrap; gap: 32px; }
.site-footer__brand { flex: 1.4 1 220px; display: flex; flex-direction: column; gap: 14px; }
.site-footer__logo { color: #fff; font-size: var(--fs-20); font-weight: 900; text-decoration: none; letter-spacing: -.02em; }
.site-footer__brand p { margin: 0; font-size: var(--fs-13); line-height: 1.7; color: #9aa5b1; }
.site-footer__social { display: flex; gap: 10px; margin-top: 4px; }
.site-footer__social a { width: 32px; height: 32px; border-radius: 999px; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; color: #d7dde3; text-decoration: none; }
.site-footer__social a:hover { background: var(--accent); color: #fff; }
.site-footer__social .builder-icon svg { width: 15px; height: 15px; }
/* `display:contents` — footerColumns()'s wrapper div itself isn't a flex
   item; its 3 real `.site-footer__col` children are, each sized below. */
.site-footer__col-group { display: contents; }
.site-footer__col { flex: 1 1 140px; }
.site-footer__col h4 { margin: 0 0 14px; color: #fff; font-size: var(--fs-14); font-weight: 800; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.site-footer__col a { color: #b9c2cc; text-decoration: none; font-size: var(--fs-13); }
.site-footer__col a:hover { color: #fff; }
.site-footer__col--contact { flex: 1.1 1 180px; }
.site-footer__col--contact ul { gap: 12px; }
.site-footer__col--contact li { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-13); color: #b9c2cc; }
.site-footer__col--contact a { display: inline-flex; align-items: flex-start; gap: 8px; }
.site-footer__col--contact .builder-icon { width: 15px; height: 15px; margin-top: 1px; flex-shrink: 0; }
.site-footer__col--contact .builder-icon svg { width: 100%; height: 100%; }

/* .site-footer__bottom — merged from its 2 adjacent app.css rules. */
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); max-width: var(--container); margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; justify-content: space-between; }
.site-footer__bottom p { margin: 0; font-size: var(--fs-12_5); color: #8b95a1; }

/* V.065 — Kit V12 §24 Footer Element Stack additions (DECISIONS.md #086):
   Certifications/Trust row — now a real flex-basis:100% row WITHIN
   `.site-footer__top` (FooterSectionsConfig round) so it can be
   reordered among the other 3 sections and still always span full width,
   with its own separating border regardless of which side it lands on.
   Legal Bar (privacy/terms/cookies) stays in the fixed bottom bar. */
.site-footer__certifications { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-footer__certifications img { height: 32px; width: auto; opacity: .75; filter: grayscale(1) brightness(1.6); }
.site-footer__legal-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer__legal-links a { color: #8b95a1; text-decoration: none; font-size: var(--fs-12_5); }
.site-footer__legal-links a:hover { color: #fff; }
