/* ======================================================================  
   FOOTER PREMIUM 2026 - ESCUDO ANTI-ANÚNCIOS
   ====================================================================== */

/* 🛡️ NO-FLY ZONE: Impede o Google AdSense de injetar anúncios no Rodapé */
.site-footer ins,
.site-footer iframe,
.site-footer .google-auto-ads,
.site-footer [class*="google_ads"],
.site-footer [id^="google_ads_iframe"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

:root {
  --footer-bg:           #0f172a; 
  --footer-text:         #94a3b8; 
  --footer-heading:      #f8fafc; 
  --footer-link:         #cbd5e1; 
  --footer-border:       #1e293b; 
}

.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  font-family: var(--font-sans, sans-serif);
  border-top: 4px solid var(--color-link, #0066cc);
  margin-top: 4rem;
  padding: 4rem 0 0;
  /* 🛡️ Garante que nada 'vaze' para fora do rodapé */
  contain: content;
  position: relative;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   1. BLINDAGEM CONTRA O CSS GLOBAL
   ========================================================================== */
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4, 
.site-footer h5, .site-footer h6, .site-footer .widget-title, 
.site-footer .card-title {
  color: var(--footer-heading) !important;
}

.site-footer h1::after, .site-footer h2::after, .site-footer h3::after, 
.site-footer h4::after, .site-footer h5::after, .site-footer h6::after {
  display: none !important;
}

/* ==========================================================================
   2. BRANDING (Logo e Sobre)
   ========================================================================== */
.footer-branding {
  text-align: left; 
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--footer-border);
}

.footer-logo img {
  max-width: 180px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1); 
}

.footer-site-title {
  font-family: var(--font-sans, sans-serif);
  font-weight: 900;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.footer-description {
  max-width: 600px;
  margin: 1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   3. GRID DE WIDGETS (SMART COLUMNS)
   ========================================================================== */
.footer-widgets--flex {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.site-footer .footer-col, .site-footer .card, .site-footer .footer-widget-area,
.site-footer .footer-newsletter, .site-footer .widget {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.site-footer .widget-title, .site-footer .card-title {
  font-family: var(--font-sans, sans-serif);
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--footer-border);
}

.site-footer ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  column-width: 180px;
  column-gap: 3rem;
}

.site-footer ul li {
  margin-bottom: 0.8rem;
  border: none !important;
  padding: 0 !important;
  break-inside: avoid;
}

.site-footer ul li a {
  color: var(--footer-link);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.site-footer ul li a:hover {
  color: var(--color-link, #ffffff);
  transform: translateX(4px); 
}

/* ==========================================================================
   4. MENU DE RODAPÉ
   ========================================================================== */
.footer-nav-wrap {
  padding: 2rem 0;
  border-top: 1px solid var(--footer-border);
  border-bottom: 1px solid var(--footer-border);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; 
  gap: 1.5rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--footer-link);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover { color: var(--color-link, #ffffff); }

/* ==========================================================================
   5. FOOTER BOTTOM
   ========================================================================== */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  gap: 1.5rem;
}

.footer-legal { font-size: 0.85rem; margin: 0; }
.footer-legal strong { color: var(--footer-heading); }

.social-list { display: flex; gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
.social-list__item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--footer-border);
  color: var(--footer-heading);
  transition: all 0.3s ease;
}

.social-list__item a:hover { background: var(--color-link, #0066cc); color: #ffffff; transform: translateY(-3px); }

.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--footer-border);
  color: var(--footer-heading);
  border-radius: 8px; 
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-to-top:hover { background: var(--color-link, #0066cc); color: #ffffff; transform: translateY(-3px); }

/* ==========================================================================
   6. RESPONSIVIDADE MOBILE-FIRST
   ========================================================================== */
@media (max-width: 768px) {
  .site-footer { padding-top: 3rem; }
  .footer-container { padding: 0 1.25rem; }
  .footer-branding { text-align: left; }
  .footer-description { margin-left: 0; }
  .footer-widgets--flex { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer .widget-title { margin-bottom: 1rem; }
  .site-footer ul { column-count: 1 !important; }
  .footer-nav { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 2rem; padding-bottom: 3rem; }
  .social-list { margin: 0; }
  .back-to-top { width: 100%; border-radius: 4px; background: var(--footer-border); }
}