/* ============================================================
   THE MARKETPLACE — UNIVERSAL FOOTER + CONTACT MODAL
   Version 1.0
   Centrally controls the site footer and Contact Us modal.
   ============================================================ */

/* Footer */
.footer {
  background: #0D0D0D;
  padding: 64px 0 32px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.footer .container { min-width: 0; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
  min-width: 0;
}
.footer__grid > * { min-width: 0; }
.footer__brand-tag {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}
.footer__about {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}
.footer__social {
  display: flex;
  gap: 10px;
}
.footer__social a {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}
.footer__col-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  transition: color 0.2s;
  overflow-wrap: anywhere;
}
.footer__links a:hover { color: #C8A96E; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  overflow-wrap: anywhere;
}
.footer__legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__legal a {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  transition: color 0.2s;
}
.footer__legal a:hover { color: rgba(255,255,255,0.55); }

/* Contact modal */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,13,13,0.75);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.contact-modal-overlay.active { display: flex; }
.contact-modal {
  background: #FAFAF8;
  color: #0D0D0D;
  width: 100%;
  max-width: 440px;
  padding: 40px;
  position: relative;
  border-top: 3px solid #C8A96E;
  box-sizing: border-box;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}
.contact-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #6B6B6B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.contact-modal__close:hover { color: #C0392B; }
.contact-modal h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: #0D0D0D;
  margin: 0 0 12px;
  padding-right: 38px;
  letter-spacing: -0.01em;
}
.contact-modal p.contact-modal__intro {
  font-size: 14px;
  color: #3D3D3D;
  line-height: 1.7;
  margin: 0 0 22px;
}
.contact-modal__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
}
.contact-modal__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #3D3D3D;
  padding: 12px 14px;
  background: #F5F0E8;
  min-width: 0;
  flex-wrap: wrap;
}
.contact-modal__list li svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #C8A96E;
  margin-top: 3px;
}
.contact-modal__list a {
  color: #0D0D0D;
  font-weight: 500;
  border-bottom: 1px solid rgba(200,169,110,0.4);
  transition: border-color 0.2s;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.contact-modal__list a:hover { border-color: #C8A96E; }
body.mp-modal-open { overflow: hidden !important; }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .footer { padding: 52px 0 28px; }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 34px;
    text-align: center;
    padding-bottom: 38px;
  }
  .footer__social,
  .footer__legal { justify-content: center; }
  .footer__links { align-items: center; }
  .footer__bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 16px;
  }

  .contact-modal-overlay {
    align-items: flex-start;
    justify-content: center;
    padding: 12px;
  }
  .contact-modal {
    margin: 0 auto;
    padding: 34px 18px 22px;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }
  .contact-modal__close { top: 6px; right: 6px; }
  .contact-modal h2 { font-size: 22px; }
}

@media (max-width: 420px) {
  .footer { padding-top: 46px; }
  .footer__legal { gap: 10px 16px; }
  .contact-modal-overlay { padding: 8px; }
  .contact-modal {
    padding: 32px 16px 18px;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }
  .contact-modal p.contact-modal__intro,
  .contact-modal__list li { font-size: 13px; }
}
