/* ====================================================================
   home.css — MusicianMatch homepage
   Now mostly minimal: the homepage styling lives inline in
   template-home.php (cream-paper skin). This file keeps only the
   essential Astra container width fix so the homepage spans the
   full viewport instead of being constrained by the parent theme.
   ==================================================================== */

.page-template-template-home #page,
.page-template-template-home .site-content,
.page-template-template-home .ast-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: block;
}
.page-template-template-home .site-content > .ast-container {
  max-width: 100%;
  padding: 0;
}

/* Hide the legacy dark-hero homepage shell if any element in the old
   markup re-appears (defensive). */
body.page-template-template-home .mm-home {
  background: transparent !important;
  color: inherit !important;
  font-family: inherit !important;
}


/* ====================================================================
   Cascade overrides for the new homepage button system.
   The legacy .mm-btn rules from prior styles were leaking cream text
   onto white-card buttons. These high-specificity rules win cleanly
   without needing !important on the inline template styles.
   ==================================================================== */

body.page-template-template-home .mm-btn {
  color: #1f1810 !important;
}
body.page-template-template-home .mm-btn-primary,
body.page-template-template-home .mm-btn-primary:hover {
  color: #1f1810 !important;
  background: linear-gradient(135deg, #d4a574 0%, #c8924d 100%);
  border: 1px solid transparent;
}
body.page-template-template-home .mm-btn-primary:hover {
  background: linear-gradient(135deg, #c8924d 0%, #b8823d 100%);
}
body.page-template-template-home .mm-btn-secondary {
  color: #1f1810 !important;
  background: #ffffff;
  border: 1px solid rgba(31, 24, 16, 0.12);
}
body.page-template-template-home .mm-btn-secondary:hover {
  color: #1f1810 !important;
  background: #fdfbf7;
}
body.page-template-template-home .mm-btn-ghost {
  color: #1f1810 !important;
  background: transparent;
}
body.page-template-template-home .mm-btn-ghost:hover {
  color: #1f1810 !important;
  background: rgba(31, 24, 16, 0.04);
}

/* Final CTA strip uses dark background — light text version */
body.page-template-template-home .mm-final-cta .mm-btn-secondary {
  color: #faf6ef;
  background: rgba(250, 246, 239, 0.1);
  border-color: rgba(250, 246, 239, 0.2);
}
body.page-template-template-home .mm-final-cta .mm-btn-secondary:hover {
  color: #faf6ef;
  background: rgba(250, 246, 239, 0.16);
}

/* Listing card View button polish — make sure it always reads */
body.page-template-template-home .mm-card .mm-btn {
  color: #1f1810 !important;
}
