:root {
  --mm-primary: #2b70e4;
  --mm-primary-dark: #1e4fa0;
  --mm-secondary: #209d5c;
  --mm-secondary-dark: #187545;
  --mm-secondary-faded: #aadac1;
  --mm-primary-faded: #a4bce4;
  --mm-highlight: #ffd034;
  --mm-tertiary: #06327d;
  --mm-danger: #e43b2c;
  --mm-bg: #f7f8fc;
  --mm-card: #ffffff;
  --mm-text: #2d3748;
  --mm-text-muted: #718096;
  --mm-radius: 12px;
  --mm-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --mm-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --mm-max-width: 1100px;
  --mm-transition: 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body is a full-height flex column so the footer pins to the bottom. */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background-color: var(--mm-bg);
  color: var(--mm-text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.7;
  font-size: 1rem;
}

/* Gradient background (used on About + Podcast), mirrors the orig contact page. */
body.bg-gradient {
  background: linear-gradient(to left top, var(--mm-primary-faded), var(--mm-secondary-faded));
  background-attachment: fixed;
}

/* main grows to fill space between nav and footer, keeping the footer pinned. */
main {
  flex: 1 0 auto;
}

a {
  color: var(--mm-primary);
  text-decoration: none;
  transition: color var(--mm-transition);
}
a:hover {
  color: var(--mm-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---- NAV ---- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: var(--mm-card);
  border-bottom: 2px solid var(--mm-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 3.5rem;
}
nav .brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--mm-text);
  text-decoration: none;
}
nav .brand img {
  height: 28px;
  width: 28px;
  border-radius: 50%;
}
nav .nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
nav .nav-links a {
  color: var(--mm-text);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--mm-transition), color var(--mm-transition);
}
nav .nav-links a:hover {
  color: var(--mm-primary);
  border-bottom-color: var(--mm-primary);
}

/* Mobile nav */
.nav-toggle {
  display: none;
}
.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle-label span {
  display: block;
  height: 3px;
  background: var(--mm-tertiary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
  nav {
    padding: 0 1rem;
  }
  .nav-toggle-label {
    display: flex;
  }
  nav .nav-links {
    display: none;
    position: absolute;
    top: 3.5rem;
    left: 0;
    right: 0;
    background: var(--mm-card);
    flex-direction: column;
    padding: 1rem 0;
    border-bottom: 2px solid var(--mm-primary);
    box-shadow: var(--mm-shadow-lg);
  }
  nav .nav-links a {
    padding: 0.75rem 2rem;
    width: 100%;
  }
  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}

/* ---- HERO ---- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
  /* Transparent so the page's gradient background shows through from the top. */
  background: transparent;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--mm-text);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.hero .stat {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--mm-danger);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.hero .tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--mm-text-muted);
  max-width: 640px;
  margin-bottom: 2rem;
}
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--mm-transition), transform var(--mm-transition);
  cursor: pointer;
  border: none;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--mm-secondary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--mm-secondary-dark);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--mm-primary);
  border: 2px solid var(--mm-primary);
}
.btn-outline:hover {
  background: var(--mm-primary);
  color: #fff;
}
.btn-white {
  background: #fff;
  color: var(--mm-primary);
}
.btn-white:hover {
  background: #f0f0f0;
  color: var(--mm-primary);
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* A horizontal row of CTA buttons. Wraps; centers when stacked on mobile. */
.btn-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* ---- SECTIONS ---- */
.section {
  max-width: var(--mm-max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
}
.section-full {
  padding: 4rem 2rem;
}
.section h2 {
  font-size: 1.8rem;
  color: var(--mm-text);
  margin-bottom: 0.5rem;
  text-align: center;
}
.section .subtitle {
  text-align: center;
  color: var(--mm-text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.section-alt {
  background: var(--mm-card);
}
.section-green {
  background: var(--mm-secondary);
  color: #fff;
  text-align: center;
}
.section-green h2 {
  color: #fff;
}
.section-green p {
  color: rgba(255, 255, 255, 0.9);
}
.section-green .btn-primary {
  background: #fff;
  color: var(--mm-secondary);
}
.section-green .btn-primary:hover {
  background: #f0f0f0;
  color: var(--mm-secondary-dark);
}

/* ---- CARDS GRID ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.card {
  background: var(--mm-card);
  border-radius: var(--mm-radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--mm-shadow);
  text-align: center;
  transition: transform var(--mm-transition), box-shadow var(--mm-transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mm-shadow-lg);
}
.card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--mm-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card p {
  color: var(--mm-text-muted);
  font-size: 0.95rem;
}

/* ---- ACCORDION (kept for reuse; not on homepage) ---- */
.accordion {
  max-width: 750px;
  margin: 0 auto;
}
.accordion-item {
  background: var(--mm-card);
  border-radius: var(--mm-radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--mm-shadow);
  overflow: hidden;
}
.accordion-item input[type='checkbox'] {
  display: none;
}
.accordion-item label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--mm-text);
  transition: background var(--mm-transition);
}
.accordion-item label:hover {
  background: #f7f8fc;
}
.accordion-item label::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--mm-primary);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.accordion-item input:checked + label::after {
  transform: rotate(45deg);
}
.accordion-item .accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
}
.accordion-item input:checked ~ .accordion-body {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem;
}
.accordion-item .accordion-body p {
  color: var(--mm-text-muted);
  line-height: 1.7;
}

/* ---- ABOUT / TRUST ---- */
.about-block {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.about-block p {
  color: var(--mm-text-muted);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.about-block img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 1.5rem;
  box-shadow: var(--mm-shadow-lg);
}

/* On the gradient background, wrap About sections in a white panel so they read
   as distinct, separated blocks. */
body.bg-gradient .about-block,
body.bg-gradient .four-p {
  background: var(--mm-card);
  border-radius: var(--mm-radius);
  box-shadow: var(--mm-shadow-lg);
  padding: 2.5rem;
}

/* ---- 4P SECTION ---- */
.four-p {
  display: flex;
  gap: 3rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.four-p img {
  width: 220px;
  height: 220px;
  border-radius: var(--mm-radius);
  flex-shrink: 0;
}
.four-p-text {
  flex: 1;
  min-width: 280px;
}
.four-p-text h2 {
  text-align: left;
  margin-bottom: 1rem;
}
.four-p-text p {
  color: var(--mm-text-muted);
  margin-bottom: 0.75rem;
}

@media (max-width: 600px) {
  .four-p {
    flex-direction: column;
    text-align: center;
  }
  .four-p img {
    margin: 0 auto;
  }
  .four-p-text h2 {
    text-align: center;
  }
  /* Center CTA button rows when sections stack on mobile. */
  .btn-row {
    justify-content: center;
  }
}

/* ---- PODCAST ---- */
.img-header {
  width: 100%;
  height: 25vh;
  background-color: #111;
  display: flex;
  justify-content: center;
  align-items: center;
}
.img-header img {
  height: 100%;
  width: auto;
}

#content-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 1.5rem;
}

.podcast-container {
  width: 90%;
  max-width: 800px;
}

.podcast-entry {
  background: var(--mm-card);
  padding: 1.5rem;
  border-radius: var(--mm-radius);
  margin-bottom: 1.25rem;
  box-shadow: var(--mm-shadow);
}
.podcast-entry h2 {
  margin: 0 0 0.5rem;
  color: var(--mm-text);
  font-size: 1.25rem;
  text-align: left;
}
.podcast-entry h2 a {
  color: var(--mm-text);
  text-decoration: none;
}
.podcast-entry h2 a:hover {
  color: var(--mm-primary);
}
.podcast-entry p {
  margin: 5px 0;
  color: var(--mm-text-muted);
  font-size: 0.95rem;
}

.podcast-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
  margin: 20px 0;
}
.podcast-icons a {
  display: inline-block;
}
.podcast-icons img {
  height: 40px;
  width: auto;
}

.podcast-entry .podcast-icons {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eee;
  gap: 15px;
}
.podcast-entry .podcast-icons img {
  height: 30px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.podcast-entry .podcast-icons img:hover {
  opacity: 1;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  text-decoration: none;
  color: var(--mm-primary);
  border-radius: 6px;
  padding: 0 6px;
  transition: background var(--mm-transition);
}
.pagination a:hover {
  background: #e8f0fe;
}
.pagination select {
  border: 1px solid #ccc;
  padding: 6px 10px;
  border-radius: 6px;
  background-color: #f8f8f8;
  font-size: 0.9rem;
}

.back-link {
  display: block;
  padding: 10px 0;
  text-align: center;
  font-weight: 500;
}

/* ---- CONTACT / FORMS ---- */
.page-block {
  max-width: 700px;
  margin: 3rem auto;
  padding: 2.5rem;
  background: var(--mm-card);
  border-radius: var(--mm-radius);
  box-shadow: var(--mm-shadow);
  text-align: center;
}
.page-block h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--mm-text);
}
.page-block h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-align: center;
}
.page-block p {
  color: var(--mm-text-muted);
  margin-bottom: 0.75rem;
}

.form-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1rem 0;
}
.form-row input {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color var(--mm-transition);
}
.form-row input:focus {
  outline: none;
  border-color: var(--mm-primary);
}

/* ---- ICON LIST ---- */
.icon-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}
.icon-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.05rem;
}
.icon-list .ic {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.ic-green {
  background: var(--mm-secondary);
}
.ic-blue {
  background: var(--mm-primary);
}
.ic-purple {
  background: #7c3aed;
}
.ic-indigo {
  background: #4338ca;
}

/* ---- FOOTER ---- */
/* Pinned to the bottom (body is a min-height:100vh flex column + main flex-grows).
   Orig-style split: copyright left, Privacy Policy right. */
footer {
  flex-shrink: 0;
  padding: 1.25rem 2rem;
  color: var(--mm-text-muted);
  font-size: 0.85rem;
  background: var(--mm-card);
  border-top: 1px solid #eee;
}
footer .footer-inner {
  max-width: var(--mm-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
footer a {
  color: var(--mm-primary);
  text-decoration: none;
}

@media (max-width: 500px) {
  .podcast-icons {
    gap: 10px;
  }
  .podcast-icons img {
    height: 30px;
  }
  .podcast-container {
    width: 95%;
  }
  .podcast-entry .podcast-icons img {
    height: 25px;
  }
  .section {
    padding: 2.5rem 1rem;
  }
  .hero {
    padding: 3rem 1.5rem;
  }
}
