/* =========================================================
   The Era Post — Footer
   Relies on the color variables defined in header-nav.css
   (--navy, --navy-dark, --gold, --content-max, etc.) —
   load this file together with header-nav.css.
   ========================================================= */

:root{
  --navy-darker:#0c0937; /* extra-dark shade, footer-only */
}

/* ---------------------------------------------------------
   1. Main footer block — full-bleed
   --------------------------------------------------------- */
.site-footer{
  width:100%;
  background:var(--navy-dark);
  color:rgba(255,255,255,.82);
  margin-top:24px;
  font-family:'Mukta',sans-serif;
}
.footer__wrap{
  max-width:var(--content-max);
  margin:0 auto;
  padding:48px 20px 30px;
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr 1fr;
  gap:32px;
}
.footer__col h3{
  font:700 15.5px 'Poppins',sans-serif;
  color:#fff;
  margin:0 0 18px;
  position:relative;
  padding-bottom:12px;
}
.footer__col h3:after{
  content:'';
  position:absolute; left:0; bottom:0;
  width:34px; height:3px; border-radius:2px;
  background:var(--gold);
}

/* Brand column */
.footer-brand{ margin-bottom:16px; }
.footer-brand__link{ display:inline-block; }
.footer-brand__link img{
  max-height:44px;
  width:auto;
  filter:brightness(0) invert(1); /* renders the logo in white on the dark footer */
}
.footer-about{
  font-size:14.5px;
  line-height:1.8;
  color:rgba(255,255,255,.65);
  margin:0 0 20px;
  max-width:320px;
}
.footer-social{ display:flex; gap:10px; }
.footer-social a{
  width:34px; height:34px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.08); color:#fff;
  transition:background .15s ease, color .15s ease, transform .15s ease;
}
.footer-social a:hover{ background:var(--gold); color:var(--navy-darker); transform:translateY(-2px); }
.footer-social svg{ width:15px; height:15px; }

/* Contact / Team columns */
.footer__col ul{ margin:0; padding:0; list-style:none; }
.footer__col ul li{
  display:flex; align-items:flex-start; gap:10px;
  font-size:14.5px; line-height:1.7; color:rgba(255,255,255,.72);
  margin-bottom:12px;
}
.footer__col ul li svg{ width:15px; height:15px; flex-shrink:0; margin-top:3px; color:var(--gold); }
.footer__col ul li.primary{ color:#fff; font-weight:600; }
.footer__col ul li .role{
  color:rgba(255,255,255,.5); font-family:'Poppins',sans-serif; font-size:12px;
  display:block; margin-bottom:1px;
}
.footer__col ul li .name{ display:block; font-weight:600; color:#fff; }

/* Quick links */
.footer-links li{ margin-bottom:10px; }
.footer-links a{
  font-size:14.5px; color:rgba(255,255,255,.72);
  display:flex; align-items:center; gap:8px;
  transition:color .15s ease, padding-left .15s ease;
}
.footer-links a:before{
  content:''; width:5px; height:5px; border-radius:50%;
  background:var(--gold); flex-shrink:0;
}
.footer-links a:hover{ color:#fff; padding-left:3px; }

/* ---------------------------------------------------------
   2. Copyright bar — full-bleed, darker strip
   --------------------------------------------------------- */
.copyright-bar{
  background:var(--navy-darker);
  border-top:1px solid rgba(255,255,255,.08);
}
.copyright-bar__wrap{
  max-width:var(--content-max);
  margin:0 auto;
  padding:16px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
}
.copyright-bar p{
  margin:0; font-family:'Poppins',sans-serif; font-size:12.5px; color:rgba(255,255,255,.55);
}
.copyright-bar p a{ color:rgba(255,255,255,.8); }
.copyright-nav{ display:flex; gap:22px; flex-wrap:wrap; }
.copyright-nav a{
  font-family:'Poppins',sans-serif; font-size:12.5px; color:rgba(255,255,255,.6);
  transition:color .15s ease;
}
.copyright-nav a:hover{ color:var(--gold); }

/* ---------------------------------------------------------
   3. Back-to-top button (existing #return-to-top element in
      main.php — restyled only, markup/JS untouched)
   --------------------------------------------------------- */
#return-to-top{
  position:fixed !important;
  right:22px; bottom:22px; left:auto; top:auto;
  z-index:999;
  width:46px; height:46px;
  border-radius:50%;
  background:var(--navy);
  color:#fff !important;
  display:flex !important;
  align-items:center; justify-content:center;
  box-shadow:0 8px 20px rgba(19,15,82,.35);
  transition:background .15s ease, transform .15s ease;
}
#return-to-top:hover{ background:var(--red); transform:translateY(-3px); }
#return-to-top i{
  color:#fff !important;
  font-size:17px !important;
  margin:0 !important;
}

/* ---------------------------------------------------------
   4. Breakpoints
   --------------------------------------------------------- */
@media (max-width:900px){
  .footer__wrap{ grid-template-columns:1fr 1fr; gap:28px 22px; }
  .copyright-bar__wrap{ flex-direction:column; align-items:flex-start; text-align:left; }
  .site-footer{ margin-bottom:64px; } /* clears the fixed mobile bottom nav */
  #return-to-top{ bottom:76px; } /* sits above the mobile bottom nav */
}
@media (max-width:520px){
  .footer__wrap{ grid-template-columns:1fr; }
}
