/* ==========================================================================
   CODAR TECH AFRICA - FOOTER STYLES
   ========================================================================== */

/* ===== Pre-Footer CTA ===== */
.pre-footer-cta {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: 60px;
  position: relative;
  overflow: hidden;
  margin-top: -120px;
  z-index: 5;
  color: #fff;
}
.pre-footer-cta::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: var(--codar-accent);
  border-radius: 50%;
  opacity: 0.15;
}
.pre-footer-cta::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -100px;
  width: 280px; height: 280px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.08;
}
.pre-footer-cta > * { position: relative; z-index: 1; }
.pre-footer-cta h2 { color: #fff; }
.pre-footer-cta p { color: rgba(255,255,255,0.9); font-size: 1.05rem; }

@media (max-width: 767.98px) {
  .pre-footer-cta { padding: 40px 24px; margin-top: -80px; }
}

/* ===== Footer ===== */
.codar-footer {
  background: var(--bg-footer);
  color: rgba(255,255,255,0.75);
  padding: 180px 0 0;
  position: relative;
  margin-top: -120px;
}
.codar-footer.no-cta { padding-top: 80px; margin-top: 0; }
.codar-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.codar-footer h6 {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}
.codar-footer h6::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 36px; height: 3px;
  background: var(--codar-accent);
  border-radius: 3px;
}

.codar-footer p { color: rgba(255,255,255,0.7); }

.codar-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  text-decoration: none;
}
.codar-footer .footer-brand .brand-logo {
  width: 46px; height: 46px;
  background: var(--gradient-accent);
  color: #0A1733;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
}
.codar-footer .footer-brand small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  font-weight: 500;
  margin-top: -2px;
}

.codar-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.codar-footer .footer-links li { margin-bottom: 10px; }
.codar-footer .footer-links a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.codar-footer .footer-links a:hover {
  color: var(--codar-accent);
  transform: translateX(4px);
}
.codar-footer .footer-links a i { font-size: 0.7rem; opacity: 0; transition: opacity var(--transition-fast); }
.codar-footer .footer-links a:hover i { opacity: 1; }

/* ===== Footer Contact ===== */
.codar-footer .contact-list { list-style: none; padding: 0; margin: 0; }
.codar-footer .contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
}
.codar-footer .contact-list li i {
  width: 36px; height: 36px;
  background: rgba(245, 180, 0, 0.15);
  color: var(--codar-accent);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* ===== Newsletter ===== */
.footer-newsletter {
  display: flex;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 20px;
}
.footer-newsletter input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 18px;
  color: #fff;
  font-size: 0.9rem;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.footer-newsletter input:focus { outline: none; }
.footer-newsletter button {
  background: var(--codar-accent);
  color: #0A1733;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}
.footer-newsletter button:hover { background: #fff; }

/* ===== Footer Social ===== */
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-base);
  font-size: 1rem;
}
.footer-social a:hover {
  background: var(--codar-accent);
  color: #0A1733;
  transform: translateY(-3px);
}

/* ===== App badges ===== */
.app-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  color: #fff;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255,255,255,0.1);
}
.app-badge:hover {
  background: rgba(255,255,255,0.15);
  color: var(--codar-accent);
  transform: translateY(-2px);
}
.app-badge i { font-size: 1.5rem; }
.app-badge .app-text { line-height: 1.2; }
.app-badge .app-text small { font-size: 0.65rem; opacity: 0.8; display: block; }
.app-badge .app-text strong { font-size: 0.9rem; font-weight: 700; }

/* ===== Footer Bottom ===== */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 60px;
  padding: 24px 0;
  font-size: 0.88rem;
}
.footer-bottom .copyright { color: rgba(255,255,255,0.6); margin: 0; }
.footer-bottom .copyright span { color: var(--codar-accent); font-weight: 600; }
.footer-bottom .legal-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; margin: 0; padding: 0; list-style: none; }
.footer-bottom .legal-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}
.footer-bottom .legal-links a:hover { color: var(--codar-accent); }

@media (max-width: 767.98px) {
  .codar-footer { padding-top: 140px; }
  .footer-bottom .legal-links { justify-content: flex-start; margin-top: 12px; }
}

/* ===== Floating Buttons ===== */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  text-decoration: none;
}
.floating-btn.whatsapp {
  background: #25D366;
  color: #fff;
  animation: pulse-glow 2.4s infinite;
}
.floating-btn.whatsapp:hover { background: #1DA851; color: #fff; transform: scale(1.1); }

.floating-btn.back-to-top {
  background: var(--codar-primary-light);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}
.floating-btn.back-to-top.visible {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.floating-btn.back-to-top:hover {
  background: var(--codar-primary);
  color: #fff;
  transform: translateY(-4px);
}

@media (max-width: 575.98px) {
  .floating-actions { bottom: 16px; right: 16px; }
  .floating-btn { width: 48px; height: 48px; font-size: 1.2rem; }
}

/* ===== Cookie consent ===== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  z-index: 998;
  display: none;
}
.cookie-banner.active { display: block; animation: fadeUp 0.4s ease; }
.cookie-banner h6 { color: var(--text-primary); font-size: 1.05rem; margin-bottom: 8px; }
.cookie-banner p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 14px; }
.cookie-banner .cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-banner .cookie-actions .btn { font-size: 0.85rem; padding: 8px 18px; }

@media (max-width: 575.98px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 80px; max-width: none; padding: 18px; }
}

/* ===== Preloader ===== */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-body);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.5s ease;
}
.preloader.hidden { opacity: 0; pointer-events: none; }
.preloader-logo {
  width: 80px; height: 80px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  box-shadow: var(--shadow-blue);
  animation: float 2s infinite ease-in-out;
}
.preloader-bar {
  width: 200px;
  height: 3px;
  background: var(--bg-soft);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.preloader-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--gradient-primary);
  border-radius: 3px;
  animation: loading-bar 1.2s infinite;
}
@keyframes loading-bar {
  0% { left: -40%; }
  100% { left: 100%; }
}
