/* css/footer.css — modern dark footer + CTA banner */

/* ---------- Base tokens (uses your variables if defined) ---------- */
:root {
  --footer-bg: #1d2228;
  --footer-text: #c9d1d9;
  --footer-dim: #9aa3ad;
  --footer-divider: #2a3139;
  --cta-bg: #808489;            /* grey banner in screenshot */
  --cta-text: #ffffff;
  --primary-color: var(--primary-color, #3498db);
  --secondary-color: var(--secondary-color, #2c3e50);
  --accent-color: var(--accent-color, #e74c3c);
}

/* =========================================================
   STYLE A: Compatibility with your original ".footer-custom"
   ========================================================= */
.footer-custom {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0 1.25rem;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  overflow: hidden;
}

.footer-custom h5 {
  color: #fff;
  margin-bottom: 1.25rem;
  font-weight: 700;
  position: relative;
  letter-spacing: 0.2px;
}

.footer-custom h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 42px;
  height: 2px;
  background-color: var(--primary-color);
  opacity: 0.9;
}

.footer-custom p,
.footer-custom a {
  color: var(--footer-text);
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: block;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-custom a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

/* Badge/Counter (kept from your CSS, refined) */
.user-count {
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 700;
  margin-bottom: 14px;
  display: inline-block;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Shop button */
.footer-custom .btn-shop {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s;
  margin-top: 10px;
  border-radius: 10px;
  padding: 10px 18px;
}
.footer-custom .btn-shop:hover {
  background-color: #c0392b;
  border-color: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

/* Social links */
.social-links {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}
.social-links a {
  color: var(--footer-text);
  font-size: 1.15rem;
  transition: color 0.25s ease, transform 0.25s ease;
}
.social-links a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* Bottom line */
.footer-bottom {
  border-top: 1px solid var(--footer-divider);
  padding-top: 18px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--footer-dim);
}

/* =========================================================
   STYLE B: Classes used by the new footer.php (screenshot)
   ========================================================= */
.footer-section {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  overflow: hidden;
}

.footer-cta .cta-content {
  background: var(--cta-bg);
  color: var(--cta-text);
  border-radius: 14px;
  padding: 40px 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.footer-cta .cta-content h2 {
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.2;
}
.footer-cta .cta-content .btn {
  border-radius: 12px;
  padding: 10px 20px;
  font-weight: 700;
}

.footer-main {
  background-color: var(--footer-bg);
  padding: 48px 0;
}

.footer-link {
  color: var(--footer-text);
  text-decoration: none;
  display: inline-block;
  margin: 6px 0;
  transition: color 0.25s ease, transform 0.25s ease;
}
.footer-link:hover {
  color: #ffffff;
  transform: translateX(4px);
}

/* App store badges (keep crisp sizes) */
.footer-main .store-badges img {
  height: 40px;
  margin-right: 8px;
}

/* Logo area */
.footer-logo {
  display: inline-block;
  background: #232a31;
  border-radius: 10px;
  padding: 10px 12px;
}

/* Small separators, subtle */
.footer-sep {
  height: 1px;
  background: var(--footer-divider);
  opacity: 0.7;
}

/* =========================================================
   Responsive tweaks
   ========================================================= */
@media (max-width: 992px) {
  .footer-cta .cta-content { padding: 32px 22px; }
  .footer-cta .cta-content h2 { font-size: 1.6rem; }
}

@media (max-width: 768px) {
  /* Center column headings + underlines on mobile */
  .footer-custom .col-md-3,
  .footer-main .col-md-3 {
    margin-bottom: 1.75rem;
    text-align: center;
  }
  .footer-custom h5::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .footer-cta .cta-content { padding: 26px 18px; }
  .footer-cta .cta-content h2 { font-size: 1.35rem; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .footer-link, .social-links a, .btn-shop { transition: none; }
}
