/**
 * MoneyChoice home hub — premium page chrome around the service cards.
 * Scoped to body.mc-home-hub so other pages stay untouched.
 */

body.mc-home-hub {
  --hub-ink: #0c1410;
  --hub-ink-soft: #243028;
  --hub-muted: #5c6b62;
  --hub-line: rgba(12, 20, 16, 0.1);
  --hub-gold: #b8963e;
  --hub-green: #1f6b45;
  --hub-paper: #f4f6f3;
  --hub-font-display: "Fraunces", "Montserrat", Georgia, serif;
  --hub-font-body: "Manrope", "Poppins", system-ui, sans-serif;

  font-family: var(--hub-font-body);
  color: var(--hub-ink);
  background-color: var(--hub-paper);
  background-image:
    radial-gradient(900px 420px at 8% -8%, rgba(31, 107, 69, 0.14), transparent 58%),
    radial-gradient(780px 380px at 96% 4%, rgba(184, 150, 62, 0.12), transparent 52%),
    radial-gradient(640px 320px at 50% 100%, rgba(36, 48, 40, 0.04), transparent 60%),
    linear-gradient(180deg, #eef3ef 0%, #f4f6f3 28%, #f7f8f6 62%, #ffffff 100%);
  background-attachment: fixed;
}

/* Kill the old lavender solutions wash */
body.mc-home-hub #solutions.solutions-section {
  background: transparent !important;
  padding-top: clamp(6rem, 11vw, 7.75rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Sticky glass header */
body.mc-home-hub .header_for_main {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(244, 246, 243, 0.82) !important;
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--hub-line);
  box-shadow: none !important;
}

/* Inviting CTA: brand green (logo family), not cold black or generic blue */
body.mc-home-hub .mc-services-login-btn {
  background: linear-gradient(165deg, #2a8a58 0%, #1f6b45 55%, #1a5c3b 100%) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(31, 107, 69, 0.32) !important;
  border-radius: 14px !important;
  font-family: var(--hub-font-body);
  letter-spacing: -0.02em;
  transform: none;
}

body.mc-home-hub .mc-services-login-btn:hover,
body.mc-home-hub .mc-services-login-btn:focus-visible {
  background: linear-gradient(165deg, #319665 0%, #247a4f 55%, #1f6b45 100%) !important;
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(31, 107, 69, 0.4) !important;
  color: #fff !important;
}

body.mc-home-hub .mc-services-login-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(31, 107, 69, 0.28) !important;
}

/* Hero */
body.mc-home-hub .mc-hub-hero {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem) !important;
  padding: 0.35rem 0 0.15rem;
}

body.mc-home-hub .minimal-enhanced-tagline {
  font-family: var(--hub-font-display) !important;
  font-weight: 550 !important;
  font-size: clamp(2.15rem, 7.5vw, 3.55rem) !important;
  letter-spacing: -0.035em !important;
  line-height: 1.05 !important;
  color: var(--hub-ink) !important;
  max-width: 14ch;
  animation: mcHubHeroIn 0.7s ease both;
}

@keyframes mcHubHeroIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.mc-home-hub .minimal-enhanced-tagline {
    animation: none;
  }
}

/* Primary service grid — slight lift */
body.mc-home-hub #services-grid.sp-services-grid {
  gap: 1.1rem;
  margin-bottom: 0.25rem;
  animation: mcHubGridIn 0.75s ease 0.08s both;
}

@keyframes mcHubGridIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.mc-home-hub #services-grid.sp-services-grid {
    animation: none;
  }
}

body.mc-home-hub .sp-service-card {
  border-color: rgba(12, 20, 16, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset, 0 10px 28px rgba(12, 20, 16, 0.06);
}

body.mc-home-hub .sp-service-card:hover {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 16px 36px rgba(12, 20, 16, 0.1);
}

/* Partner band */
body.mc-home-hub .mc-hub-partner-band {
  margin-top: clamp(2.75rem, 6vw, 4rem);
  padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--hub-line);
}

body.mc-home-hub .mc-shop-section-title {
  font-family: var(--hub-font-display);
  font-weight: 550;
  font-size: clamp(1.35rem, 3vw, 1.75rem) !important;
  letter-spacing: -0.03em;
  color: var(--hub-ink) !important;
  margin-top: 0 !important;
}

body.mc-home-hub .mc-shop-section-sub {
  color: var(--hub-muted) !important;
  font-size: 0.95rem !important;
  max-width: 32rem;
  margin-bottom: 1.15rem !important;
}

body.mc-home-hub .mc-shop-card {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(12, 20, 16, 0.08) !important;
  box-shadow: 0 8px 24px rgba(12, 20, 16, 0.05) !important;
  backdrop-filter: blur(6px);
}

body.mc-home-hub .mc-shop-card:hover {
  box-shadow: 0 14px 32px rgba(12, 20, 16, 0.09) !important;
}

body.mc-home-hub .mc-shop-card h3 {
  font-family: var(--hub-font-body);
  font-weight: 750;
  letter-spacing: -0.02em;
}

/* Quiet partner submit — not another card */
body.mc-home-hub .mc-hub-partner-submit {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--hub-muted);
}

body.mc-home-hub .mc-hub-partner-submit a {
  color: var(--hub-green);
  font-weight: 700;
  text-decoration: none;
  margin-left: 0.35rem;
}

body.mc-home-hub .mc-hub-partner-submit a:hover {
  color: var(--hub-ink);
}

/* Proof & help — one band, three compact panels */
body.mc-home-hub .mc-hub-more {
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  padding: clamp(1.75rem, 4vw, 2.5rem) 0 clamp(2.5rem, 5vw, 3.5rem) !important;
  border-top: 1px solid var(--hub-line);
}

body.mc-home-hub .mc-hub-more-head {
  text-align: center;
  margin: 0 auto 1.15rem;
  max-width: 36rem;
}

body.mc-home-hub .mc-hub-more-title-main {
  margin: 0 0 0.35rem;
  font-family: var(--hub-font-display);
  font-weight: 550;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.03em;
  color: var(--hub-ink);
}

body.mc-home-hub .mc-hub-more-sub {
  margin: 0;
  color: var(--hub-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

body.mc-home-hub .mc-hub-more-rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  max-width: 72rem;
  margin: 0 auto;
  align-items: start;
}

body.mc-home-hub .mc-hub-more-rail > .testimonials-section {
  display: contents;
}

body.mc-home-hub .mc-hub-more-item {
  margin: 0;
  border: 1px solid var(--hub-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 6px 18px rgba(12, 20, 16, 0.04);
  overflow: hidden;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

/* AOS leaves opacity:0 + display:block — force closed panels compact */
body.mc-home-hub .mc-hub-more-item:not([open]) > *:not(summary) {
  display: none !important;
}

body.mc-home-hub .mc-hub-more-item:hover {
  border-color: rgba(31, 107, 69, 0.28);
  box-shadow: 0 10px 24px rgba(12, 20, 16, 0.07);
}

body.mc-home-hub .mc-hub-more-item[open] {
  border-color: rgba(31, 107, 69, 0.35);
  box-shadow: 0 12px 28px rgba(12, 20, 16, 0.08);
}

body.mc-home-hub .mc-hub-more-item .case-study-tag,
body.mc-home-hub .mc-hub-more-item .testimonials-toggle .case-study-tag {
  color: var(--hub-green) !important;
}

body.mc-home-hub .mc-hub-more-item .case-study-title {
  color: var(--hub-ink) !important;
  font-family: var(--hub-font-body);
  font-weight: 750;
}

body.mc-home-hub .mc-hub-more-item .case-study-meta,
body.mc-home-hub .mc-hub-more-item .testimonials-toggle-meta {
  color: var(--hub-muted) !important;
}

body.mc-home-hub .mc-hub-more-item .story-container,
body.mc-home-hub .mc-hub-more-item #contact-container,
body.mc-home-hub .mc-hub-more-item .testimonials-peek,
body.mc-home-hub .mc-hub-more-item .testimonials-slider {
  margin-left: 0.75rem;
  margin-right: 0.75rem;
  margin-bottom: 0.85rem;
}

body.mc-home-hub #mc-contact-more {
  padding: 0 !important;
}

body.mc-home-hub .story-container {
  background: linear-gradient(160deg, #f3f7f4 0%, #e8f0eb 55%, #f7f8f6 100%) !important;
  border: 1px solid var(--hub-line) !important;
  box-shadow: 0 12px 36px rgba(12, 20, 16, 0.06) !important;
  margin-top: 0.25rem !important;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.1rem, 3vw, 2rem) !important;
}

body.mc-home-hub .story-container::before {
  background: linear-gradient(90deg, var(--hub-green), var(--hub-gold)) !important;
  height: 3px !important;
}

@media (min-width: 900px) {
  body.mc-home-hub .mc-hub-more-rail {
    grid-template-columns: repeat(3, 1fr);
  }

  body.mc-home-hub .mc-hub-more-item[open] {
    grid-column: 1 / -1;
  }
}

body.mc-home-hub .back-to-top {
  background: var(--hub-ink) !important;
  box-shadow: 0 8px 22px rgba(12, 20, 16, 0.22) !important;
}

body.mc-home-hub .back-to-top:hover {
  background: var(--hub-ink-soft) !important;
  box-shadow: 0 12px 28px rgba(12, 20, 16, 0.28) !important;
  transform: translateY(-2px);
}

/* Footer contrast on paper bg */
body.mc-home-hub .mc-footer,
body.mc-home-hub footer {
  border-top: 1px solid var(--hub-line);
}
