/* =========================================================
   MoneyMines — Global site chrome (ALL pages)
   Loaded from header.php — logo + spacing stay identical
   ========================================================= */
:root {
  --mm-green: #1C8938;
  --mm-green-dark: #10662A;
  --mm-green-soft: #e8ffea;
  --mm-purple: #390A5D;
  --mm-text: #1a221c;
  --mm-muted: #5f6d64;
  --mm-border: #cfe0d4;
  --mm-ease: cubic-bezier(.22, 1, .36, 1);
  --mm-logo-h: 35px;
  --mm-header-pad-y: 12px;
}

/* ---- ONE logo size everywhere (home / careers / blog / sales) ---- */
#header.header {
  padding: var(--mm-header-pad-y) 0 !important;
}
#header.header.header-scrolled {
  padding: 10px 0 !important;
}
#header .logo {
  line-height: 0 !important;
  max-height: var(--mm-logo-h) !important;
  height: var(--mm-logo-h) !important;
  overflow: hidden !important;
  flex-shrink: 0;
}
#header .logo img,
.header .logo img,
body.mm-careers #header .logo img,
body.mm-blog #header .logo img,
body.mm-sales #header .logo img,
body.mm-partner #header .logo img {
  height: var(--mm-logo-h) !important;
  max-height: var(--mm-logo-h) !important;
  width: auto !important;
  max-width: 170px !important;
  object-fit: contain !important;
  display: block !important;
}

/* Shared page shell */
.mm-page {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(900px 420px at 6% 0%, rgba(108, 216, 121, 0.14), transparent 55%),
    radial-gradient(700px 380px at 100% 8%, rgba(57, 10, 93, 0.06), transparent 50%),
    #f5faf6;
}
.mm-page * { box-sizing: border-box; }

/* Full-bleed brand hero (blog / sales / similar) */
.mm-hero-bleed {
  position: relative;
  isolation: isolate;
  min-height: min(68vh, 560px);
  padding: 100px 20px 48px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.mm-hero-bleed__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: mmPageRise .5s var(--mm-ease) both;
}
.mm-hero-bleed__brand {
  margin: 0 0 8px;
  font-family: Poppins, Nunito, sans-serif;
  font-weight: 800;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
}
.mm-hero-bleed__title {
  margin: 0 0 10px;
  font-family: Poppins, Nunito, sans-serif;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-weight: 600;
  color: #e8ffea;
  letter-spacing: -0.01em;
}
.mm-hero-bleed__text {
  margin: 0 0 18px;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  font-size: 1rem;
}
.mm-hero-bleed__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #fff;
  color: var(--mm-green-dark);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}
.mm-hero-bleed__cta:hover {
  background: var(--mm-green-soft);
  color: var(--mm-green-dark);
  text-decoration: none;
}

/* Split hero (career / partner): image + panel */
.mm-split-hero {
  padding: 100px 20px 48px;
}
.mm-split-hero__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
}
.mm-split-visual__frame {
  border-radius: 28px;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: linear-gradient(145deg, #e6ffe9 0%, #fff 55%, #f3eef8 100%);
  border: 1px solid var(--mm-border);
  box-shadow: 0 22px 50px rgba(16, 102, 42, 0.12);
}
.mm-split-visual__frame img {
  width: 92%;
  max-width: 480px;
  max-height: 360px;
  height: auto;
  object-fit: contain;
  display: block;
}
.mm-split-visual__caption {
  margin: 12px 4px 0;
  color: var(--mm-muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.mm-split-panel {
  background: #fff;
  border: 1px solid var(--mm-border);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 18px 44px rgba(16, 102, 42, 0.1);
  min-width: 0;
}
.mm-split-panel__brand {
  margin: 0 0 6px;
  font-family: Poppins, Nunito, sans-serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  color: var(--mm-green-dark);
  letter-spacing: -0.03em;
}
.mm-split-panel h1 {
  margin: 0 0 8px;
  font-family: Poppins, Nunito, sans-serif;
  font-size: clamp(1.1rem, 2.3vw, 1.35rem);
  font-weight: 700;
  color: var(--mm-purple);
}
.mm-split-panel__lead {
  margin: 0 0 16px;
  color: var(--mm-muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

/* Content + cards */
.mm-section { padding: 36px 20px 64px; }
.mm-section__inner { width: min(1120px, 100%); margin: 0 auto; }
.mm-section__title {
  margin: 0 0 6px;
  font-family: Poppins, Nunito, sans-serif;
  font-size: 1.25rem;
  color: var(--mm-purple);
  letter-spacing: -0.02em;
}
.mm-section__note { margin: 0 0 18px; color: var(--mm-muted); font-size: 0.92rem; }
.mm-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.mm-card {
  background: #fff;
  border: 1px solid var(--mm-border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(16, 102, 42, 0.07);
  transition: transform .18s var(--mm-ease), box-shadow .18s ease;
}
.mm-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(16, 102, 42, 0.12);
}
.mm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .15s var(--mm-ease), background .15s ease;
}
.mm-btn:hover { transform: translateY(-1px); text-decoration: none; }
.mm-btn-primary {
  background: linear-gradient(180deg, #22a045 0%, var(--mm-green) 100%);
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(28, 137, 56, 0.22);
}
.mm-btn-primary:hover { background: var(--mm-green-dark); color: #fff !important; }
.mm-btn-ghost {
  background: #fff;
  color: var(--mm-purple) !important;
  border: 1px solid #d5c2e6;
}

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

@media (max-width: 980px) {
  .mm-split-hero__inner { grid-template-columns: 1fr; }
  .mm-split-panel { order: -1; }
  .mm-hero-bleed { min-height: auto; padding: 96px 16px 36px; }
  .mm-split-hero { padding: 96px 16px 36px; }
}
@media (max-width: 560px) {
  .mm-section { padding: 28px 14px 48px; }
}
