/* ════════════════════════════════════════════════════════
   COMPLIABLE.AI · SHARED FOOTER STYLES
   Single source of truth — used by all pages.
   Edit here → changes cascade to every page on next load.
   ══════════════════════════════════════════════════════ */

/* Push footer to bottom when content is short.
   Pages use `.page { display: flex; flex-direction: column; min-height: 100vh }`
   so the mount needs `margin-top: auto` (or the page needs a flex-grow main).
   This is the simplest fix that works without per-page changes. */
#site-footer { margin-top: auto; }

.footer {
  background: #04101F;
  color: rgba(255,255,255,.72);
  padding: 80px 120px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner { max-width: 1320px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 56px;
}
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  text-decoration: none; color: inherit;
}
.footer-logo-mark { width: 28px; height: 28px; }
.footer-logo-wordmark {
  font-size: 14px; font-weight: 700;
  letter-spacing: 1.5px; color: #fff;
}
.footer-tagline {
  font-size: 13.5px; line-height: 1.55;
  color: rgba(255,255,255,.55);
  margin-bottom: 24px;
  max-width: 280px;
}
.footer-trust {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 24px;
}
.footer-trust-row {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.72);
}
.footer-trust-icon {
  width: 26px; height: 26px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.footer-trust-name { font-weight: 600; color: #fff; }
.footer-trust-status { color: rgba(255,255,255,.55); }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.62);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.footer-social a:hover {
  background: rgba(223,163,32,.10);
  color: #DFA320;
  border-color: rgba(223,163,32,.32);
}
.footer-col-title {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #DFA320;
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 11px;
}
.footer-col a {
  font-size: 14px; font-weight: 450;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }
.footer-contact-item {
  display: flex; flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}
.footer-contact-label {
  font-size: 11px;
  color: rgba(255,255,255,.45);
}
.footer-contact-value {
  font-size: 14px; font-weight: 500;
  color: #fff;
  text-decoration: none;
}
.footer-contact-value:hover { color: #DFA320; }
.footer-demo-strip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  gap: 24px;
}
.footer-demo-msg {
  font-size: 16px; font-weight: 500; color: #fff;
}
.footer-demo-msg em { font-style: normal; color: #DFA320; }
.footer-demo-btn {
  height: 42px; padding: 0 22px;
  background: #DFA320; color: #0C2855;
  border: none; border-radius: 6px;
  font-size: 13px; font-weight: 700;
  font-family: inherit; cursor: pointer;
  letter-spacing: 0.01em;
  display: flex; align-items: center; gap: 8px;
  transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
  text-decoration: none;
}
.footer-demo-btn:hover { background: #E8B33F; transform: translateY(-1px); }
.footer-bottom {
  display: flex; align-items: center; justify-content: center;
  padding: 28px 0;
  font-size: 12px;
  color: rgba(255,255,255,.45);
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal { display: flex; gap: 22px; }
.footer-legal a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
}
.footer-legal a:hover { color: #fff; }

/* Responsive */
@media (max-width: 1240px) {
  .footer { padding-left: 56px; padding-right: 56px; }
}
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  /* ── FOOTER → ACCORDION (mobile) ──────────────────────────
     Paired with footer.js, which wires the `.open` toggle on every page.
     Keeping the collapse CSS here in the shared footer.css (rather than only
     in responsive.css) makes the pulldowns work site-wide — including pages
     that don't load responsive.css, e.g. about.html and ai-agents.html. */
  .footer { padding: 48px 20px 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 0; }
  .footer-brand {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    margin-bottom: 8px;
  }
  .footer-brand .footer-logo { gap: 8px; }
  .footer-tagline { font-size: 13.5px; max-width: 400px; }
  .footer-trust { gap: 8px; }
  .footer-trust-row { font-size: 11.5px; }

  /* desktop columns become tappable accordion rows */
  .footer-col {
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 0;
  }
  .footer-col-title {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    padding: 16px 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
  }
  .footer-col-title::after {
    content: '';
    width: 10px; height: 10px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .2s ease;
    opacity: 0.65;
  }
  .footer-col.open .footer-col-title::after {
    transform: rotate(-135deg) translate(-2px, -2px);
  }
  .footer-col ul,
  .footer-col .footer-contact-item {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .25s ease, margin .25s ease;
    padding: 0;
  }
  .footer-col.open ul {
    max-height: 800px;
    padding: 0 0 14px 0;
  }
  .footer-col.open .footer-contact-item {
    max-height: 200px;
    padding: 4px 0 12px;
    margin: 0 !important;
  }
  .footer-col ul li { padding: 6px 0; }
  .footer-col ul li a { font-size: 14px; }

  /* demo strip + bottom bar */
  .footer-demo-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    text-align: center;
    padding: 22px 18px;
  }
  .footer-demo-msg { font-size: 14.5px; }
  .footer-demo-btn { width: 100%; height: 46px; justify-content: center; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 11.5px;
  }
}
