/* ============================================================
   PROPHACITE — SHARED FOOTER COMPONENT
   BEM: .footer / .footer__inner / .footer__col / etc.
   ============================================================ */

/* ── Outer wrapper ── */
.footer {
  background: #0B1D36;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6rem 2rem 2.5rem;
  color: #FFFFFF;
}

/* ── Inner container / grid wrapper ── */

/* ── Four-column grid ── */
.footer__top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
}

/* ── Column ── */

.footer__column {
  display: flex;
  flex-direction: column;
}

/* ── Column heading ── */

.footer__column h5 {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #D4AF37;
  margin-bottom: 1.5rem;
}

/* ── Link list ── */

.footer__column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ── List item ── */

.footer__column li {
  line-height: 0;
  margin-bottom: 0.625rem;
}

.footer__column li:last-child {
  margin-bottom: 0;
}

/* ── Link ── */

.footer__column a {
  display: inline-block;
  max-width: 100%;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.5;
  margin-bottom: 0;
  overflow-wrap: anywhere;
  vertical-align: top;
}


.footer__column a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Active-page link (dynamic highlight) */
.footer a.active-page,
.footer--simple a.active-page {
  color: #D4AF37 !important;
  font-weight: 600;
  pointer-events: none;
}

/* ── Email area ── */
.footer__email {
  padding-top: 1rem;
}

.footer__email a {
  color: #D4AF37;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.footer__email a:hover {
  text-decoration: underline;
}

/* Obfuscated email span */

#footerEmail {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
}

/* ── Bottom bar ── */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Copyright ── */
.footer__copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
}

/* ── Legal links ── */
.footer__legal {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer__legal a:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ── Simple / compact footer variant (how-it-works, comparison, etc.) ── */
.footer--simple {
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer--simple p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

.footer--simple a {
  color: #00C2B2;
  text-decoration: none;
  display: inline;
  font-size: 0.8125rem;
  margin-bottom: 0;
}

.footer--simple a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .footer__top {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer__legal {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 3.5rem 1.25rem 2rem;
  }

  .footer__top {
    grid-template-columns: 1fr;
  }
}
