/* =====================================================================
   Shared Site Footer  —  self-contained stylesheet
   ---------------------------------------------------------------------
   Loaded by imb-footer.php so the footer looks identical on EVERY page,
   no matter which theme stylesheet the page uses.  All rules are scoped
   under `.site-footer` and are intentionally explicit so they override
   the legacy theme classes (.footer-top / .footer-bottom / .footer-contact)
   that the old footer reused.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root{
  --sf-dark:#0F172A;
  --sf-border:#1E293B;
  --sf-muted:#94A3B8;
  --sf-muted-2:#CBD5E1;
  --sf-white:#ffffff;
  --sf-green:#10B981;
  --sf-font-head:'Poppins',system-ui,-apple-system,sans-serif;
  --sf-font-body:'Inter',system-ui,-apple-system,sans-serif;
  --sf-radius:16px;
  --sf-radius-pill:999px;
  --sf-ease:cubic-bezier(.4,.14,.3,1);
  --sf-gutter:20px;   /* horizontal page gutter used by the footer */
}

/* ---- scoped reset ---- */
.site-footer,
.site-footer *{ box-sizing:border-box; }
.site-footer ul{ list-style:none; margin:0; padding:0; }
.site-footer li{ list-style:none; }
.site-footer a{ text-decoration:none; }
.site-footer p{ margin:0; }
.site-footer img{ max-width:100%; height:auto; display:block; }
.site-footer svg{ display:inline-block; vertical-align:middle; }

/* ---- shell ---- */
.site-footer{
  background:var(--sf-dark);
  color:var(--sf-muted);
  padding:72px 0 32px;
  font-family:var(--sf-font-body);
  font-size:15px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  position:relative;
}
.site-footer .container{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 var(--sf-gutter);
}

/* ---- top grid ----
   NOTE: .footer-top also carries the .container class, so its padding
   must keep the horizontal gutter (otherwise the content sits flush
   against the screen edge on mobile). */
.site-footer .footer-top{
  display:grid;
  grid-template-columns:1.4fr 2.6fr;
  gap:56px;
  padding:0 var(--sf-gutter) 52px;
  border-bottom:1px solid var(--sf-border);
  background:transparent;
}

/* ---- brand block ---- */
.site-footer .footer-brand{ display:block; }
.site-footer .footer-brand .brand{ display:inline-block; }
.site-footer .footer-brand .brand-logo{
  width:auto;
  max-width:190px;
  height:auto;
  background:#fff;                 /* keeps the admin logo visible on the dark footer */
  border-radius:12px;
  padding:10px 16px;
}
.site-footer .footer-tagline{
  margin:20px 0 0;
  font-size:15px;
  line-height:1.7;
  max-width:340px;
  color:var(--sf-muted);
}
.site-footer .footer-contact{
  margin:22px 0 0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.site-footer .footer-contact li{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14.5px;
  color:var(--sf-muted);
}
.site-footer .footer-contact li span{
  display:inline;
  color:var(--sf-muted);
  margin:0;
}
.site-footer .footer-contact li svg{ flex:0 0 auto; opacity:.85; }
.site-footer .footer-contact a{ color:var(--sf-muted); transition:color .2s var(--sf-ease); }
.site-footer .footer-contact a:hover{ color:#fff; }

/* ---- link columns ---- */
.site-footer .footer-cols{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:32px;
}
.site-footer .footer-col h4{
  font-family:var(--sf-font-head);
  font-size:15px;
  font-weight:600;
  color:#fff;
  margin:0 0 18px;
  line-height:1.4;
}
.site-footer .footer-col ul{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.site-footer .footer-col a{
  font-size:14.5px;
  color:var(--sf-muted);
  transition:color .2s var(--sf-ease);
}
.site-footer .footer-col a:hover{ color:#fff; }

/* ---- bottom bar ----
   Also carries .container, so keep the horizontal gutter here too. */
.site-footer .footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  padding:28px var(--sf-gutter) 0;
  background:transparent;
  border:none;
}
.site-footer .footer-bottom p{ color:inherit; margin:0; text-align:left; }
.site-footer .status-pill{
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-size:14px;
  color:var(--sf-muted-2);
  background:rgba(16,185,129,.1);
  border:1px solid rgba(16,185,129,.28);
  padding:8px 15px;
  border-radius:var(--sf-radius-pill);
}
.site-footer .status-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--sf-green);
  box-shadow:0 0 0 4px rgba(16,185,129,.18);
  animation:sf-pulse 2s infinite;
}
@keyframes sf-pulse{
  0%,100%{ box-shadow:0 0 0 4px rgba(16,185,129,.18); }
  50%{ box-shadow:0 0 0 7px rgba(16,185,129,.06); }
}
.site-footer .copyright{
  font-size:14px;
  color:var(--sf-muted);
}

/* =====================================================================
   Responsive
   ===================================================================== */

/* ---- tablet ---- */
@media (max-width:991px){
  .site-footer .footer-top{ grid-template-columns:1fr; gap:40px; }
  .site-footer .footer-cols{ grid-template-columns:repeat(2,1fr); gap:32px; }
}

/* ---- phone ---- */
@media (max-width:575px){
  .site-footer{ padding:52px 0 26px; }
  .site-footer .footer-top{ gap:34px; padding:0 var(--sf-gutter) 40px; }

  /* brand block centred for a balanced mobile look */
  .site-footer .footer-brand{ text-align:center; }
  .site-footer .footer-tagline{ margin:18px auto 0; }
  .site-footer .footer-contact{ align-items:center; }

  .site-footer .footer-cols{ grid-template-columns:1fr 1fr; gap:30px 16px; }
  .site-footer .footer-col h4{ margin-bottom:14px; }

  .site-footer .footer-bottom{
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:14px;
    padding:24px var(--sf-gutter) 0;
  }
  .site-footer .footer-bottom p{ text-align:center; }
  .site-footer .footer-brand .brand-logo{ max-width:150px; }
}

/* ---- very small phones ---- */
@media (max-width:360px){
  .site-footer .footer-cols{ gap:26px 12px; }
  .site-footer .footer-col a{ font-size:14px; }
}
