
/* ==========================================
   DR. NORMAN JOHNSON — FOOTER
   Adapted from Footer.tsx
   ========================================== */

.dnj-footer {
  position: relative;
  overflow: hidden;
  margin-block: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #060a18;
  color: #ffffff;
  isolation: isolate;
}

/* Original subtle purple background glow */

.dnj-footer::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 288px;
  height: 288px;
  border-radius: 50%;
  background: rgba(147, 51, 234, 0.1);
  filter: blur(64px);
  pointer-events: none;
  z-index: -1;
}

/* Main footer container */

.dnj-footer .dnj-footer-inner {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding: 64px 24px 40px;
}

/* Three-column layout */

.dnj-footer .dnj-footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin: 0;
}

.dnj-footer .dnj-footer-columns > .wp-block-column {
  min-width: 0;
  flex: initial;
  margin: 0;
}

/* Branding */

.dnj-footer .dnj-footer-brand {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.dnj-footer .dnj-footer-brand a {
  color: #ffffff;
  text-decoration: none;
}

.dnj-footer .dnj-footer-brand span {
  color: #22d3ee;
}

.dnj-footer .dnj-footer-description {
  max-width: 384px;
  margin: 20px 0 0;
  color: #94a3b8;
  line-height: 1.7;
}

/* Column headings */

.dnj-footer .dnj-footer-heading {
  margin: 0 0 24px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

/* Editable WordPress navigation */

.dnj-footer .dnj-footer-navigation {
  margin: 0;
}

.dnj-footer .dnj-footer-navigation
.wp-block-navigation__container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.dnj-footer .dnj-footer-navigation a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.dnj-footer .dnj-footer-navigation a:hover,
.dnj-footer .dnj-footer-navigation a:focus-visible {
  color: #67e8f9;
}

/* Featured book */

.dnj-footer .dnj-footer-book-title {
  margin: 0;
  color: #ffffff;
  font-weight: 600;
}

.dnj-footer .dnj-footer-book-link {
  margin: 20px 0 0;
  font-weight: 600;
}

.dnj-footer .dnj-footer-book-link a {
  color: #67e8f9;
  text-decoration: none;
  transition: color 0.2s ease;
}

.dnj-footer .dnj-footer-book-link a:hover,
.dnj-footer .dnj-footer-book-link a:focus-visible {
  color: #a5f3fc;
}

/* Copyright and tagline */

.dnj-footer .dnj-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.dnj-footer .dnj-footer-bottom p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

/* Responsive mobile layout */

@media (max-width: 781px) {
  .dnj-footer .dnj-footer-columns {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .dnj-footer .dnj-footer-inner {
    padding: 56px 24px 36px;
  }

  .dnj-footer .dnj-footer-bottom {
    margin-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dnj-footer a {
    transition: none;
  }
}
