/*
 * DanIT Footer Override
 * Clean, branded footer (Poppins, accent #4C3CFF, soft gradient).
 * Markup is rebuilt by footer-override.js from its CONFIG block.
 */

:root {
  --dpp-ft-accent: #4C3CFF;
  --dpp-ft-grad-start: #000000;
  --dpp-ft-grad-mid: #4C3CFF;
  --dpp-ft-grad-end: #87A1FF;
  --dpp-ft-ink: #1a1a1a;
  --dpp-ft-muted: #6b7280;
  --dpp-ft-line: #e9e9f1;
  --dpp-ft-bg: #ffffff;
}

/* Reset the theme footer chrome once we take it over */
#footer.dpp-footer-root {
  background: var(--dpp-ft-bg);
  border-top: 1px solid var(--dpp-ft-line);
  padding: 0;
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--dpp-ft-ink);
}

.dpp-footer {
  margin: 0 auto;
  padding: 56px 24px 32px;
}

/* ── Top grid: logo + link columns ─────────────────────────── */
.dpp-footer__top {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(140px, 1fr));
  gap: 32px 28px;
  align-items: start;
}

.dpp-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dpp-footer__logo img {
  display: block;
  max-width: 230px;
  width: 100%;
  height: auto;
}

.dpp-footer__tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--dpp-ft-muted);
  max-width: 280px;
  margin: 0;
}

/* ── Link columns ──────────────────────────────────────────── */
.dpp-footer__col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dpp-ft-ink);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.dpp-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.dpp-footer__links li.dpp-footer__spacer {
  height: 8px;
}

.dpp-footer__links a {
  font-size: 0.9rem;
  color: var(--dpp-ft-muted);
  text-decoration: none;
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.dpp-footer__links a:hover {
  color: var(--dpp-ft-accent);
  padding-left: 3px;
}

/* ── Contact block ─────────────────────────────────────────── */
.dpp-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dpp-footer__contact-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--dpp-ft-ink);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.18s ease;
}

.dpp-footer__contact-row:hover {
  color: var(--dpp-ft-accent);
}

.dpp-footer__contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f5f4ff;
  color: var(--dpp-ft-accent);
  flex: 0 0 auto;
  font-size: 0.95rem;
}

/* ── Bottom bar: copyright + social ───────────────────────── */
.dpp-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--dpp-ft-line);
}

.dpp-footer__copy {
  font-size: 0.85rem;
  color: var(--dpp-ft-muted);
  margin: 0;
}

.dpp-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dpp-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #fff;
  font-size: 1.15rem;
  text-decoration: none;
  background: linear-gradient(135deg, var(--dpp-ft-grad-start) 0%, var(--dpp-ft-grad-mid) 55%, var(--dpp-ft-grad-end) 100%);
  box-shadow: 0 8px 20px rgba(76, 60, 255, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.dpp-footer__social a:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 12px 26px rgba(76, 60, 255, 0.32);
}

/* ── Hide the old theme copyright strip below ─────────────── */
#footer.dpp-footer-root + #footer-copyrights,
.dpp-footer-root ~ #footer-copyrights {
  display: none;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 991px) {
  .dpp-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .dpp-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575px) {
  .dpp-footer {
    padding: 40px 20px 28px;
  }
  .dpp-footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .dpp-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
