/* ==========================================================================
   FaithfulBiz — Footer CSS
   Covers: site footer, back-to-top, cookie banner, GDPR
   ========================================================================== */

#colophon {
  background: var(--color-footer-bg);
  color: rgba(255,255,255,0.75);
  margin-top: 60px;
  forced-color-adjust: none;
}

.footer-top {
  padding: 50px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 540px) { .footer-top { grid-template-columns: 1fr; gap: 28px; } }

.footer-col-title {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ffffff;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-logo { margin-bottom: 16px; }
.footer-logo img { height: 38px; width: auto; }

.footer-about {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 18px;
}

/* Footer Social */
.footer-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-social a {
  width: 38px; height: 38px; min-width: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.footer-social svg { width: 16px; height: 16px; display: block; }

/* Footer Links */
.footer-links li { margin-bottom: 10px; }
.footer-links li a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links li a:hover { color: var(--color-primary); }

/* Footer Contact */
.footer-contact { display: grid; gap: 10px; }
.footer-contact p { margin: 0; font-family: var(--font-ui); font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.5; }
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition);
  overflow-wrap: anywhere;
}
.footer-contact a:hover { color: var(--color-primary); }

/* Footer Bottom */
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copyright {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom-links a {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.8); }

@media (max-width: 768px) { .footer-bottom { flex-direction: column; text-align: center; } }

/* ── Back to Top ────────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 80px; right: 20px;
  width: 42px; height: 42px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 800;
  border: none;
  box-shadow: var(--shadow-md);
}
#back-to-top.visible { opacity: 1; pointer-events: all; }
#back-to-top:hover { background: var(--color-primary-dark); color: #fff; }

/* ── Cookie Banner ──────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--color-dark);
  color: rgba(255,255,255,0.85);
  padding: 16px 20px;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  forced-color-adjust: none;
}
#cookie-banner.show { transform: translateY(0); }
#cookie-banner p { font-family: var(--font-ui); font-size: 0.82rem; line-height: 1.5; flex: 1; min-width: 200px; }
#cookie-banner a { color: var(--color-primary); }

.cookie-btn {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  border: none;
  transition: all var(--transition);
}
.cookie-accept { background: var(--color-primary); color: #fff; }
.cookie-accept:hover { background: var(--color-primary-dark); }
.cookie-decline { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.2) !important; }
.cookie-decline:hover { background: rgba(255,255,255,0.2); }
