/* Masterful Management. Matches the live Elementor build: Open Sans, navy bands,
   blue buttons, light blue flip cards. */
:root {
  --mm-navy: #0E387A;
  --mm-blue: #085393;
  --mm-blue-hover: #0a63ad;
  --mm-sky: #9FAFCA;
  --mm-card: #e9edf4;
  --mm-text: #000;
  --mm-muted: #333;
  --mm-font: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --mm-header: 90px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--mm-header); }
body { margin: 0; font-family: var(--mm-font); color: var(--mm-text); background: #fff; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mm-navy); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, .mm-flip:focus-visible { outline: 2px solid var(--mm-blue); outline-offset: 3px; }
.mm-skip { position: absolute; left: -9999px; }
.mm-skip:focus { left: 16px; top: 16px; z-index: 1000; background: #fff; padding: 8px 12px; }
.mm-wrap { max-width: 1140px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* Buttons */
.mm-btn { display: inline-block; font: 500 16px/1 var(--mm-font); color: #fff; background: var(--mm-blue); border: 0; border-radius: 3px; padding: 15px 30px; text-decoration: none; cursor: pointer; transition: background 0.2s, transform 0.3s; }
.mm-btn:hover { background: var(--mm-blue-hover); color: #fff; }
.mm-btn--sm { font-size: 14px; padding: 10px 22px; }
.mm-btn--float:hover { transform: translateY(-8px); }

/* Header */
.mm-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,0.25); }
.mm-header__bar { height: var(--mm-header); max-width: 1440px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 20px; }
.mm-header__left { display: flex; align-items: center; gap: 24px; }
.mm-header__logo img { width: 150px; height: auto; }
.mm-header__social { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 3px; background: var(--mm-blue); color: #fff; }
.mm-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 26px; list-style: none; margin: 0; padding: 0; }
.mm-nav a { font: 600 14px/20px var(--mm-font); color: var(--mm-navy); text-decoration: none; padding: 6px 0; display: inline-block; position: relative; }
.mm-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--mm-navy); transform: scaleX(0); transition: transform 0.25s; }
.mm-nav a:hover::after, .mm-nav a.is-active::after { transform: scaleX(1); }
.mm-header__toggle { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 10px 8px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.mm-header__toggle span { display: block; height: 2px; background: var(--mm-navy); transition: transform 0.3s, opacity 0.3s; }
main { padding-top: var(--mm-header); }

/* Heading band */
.mm-band { background: var(--mm-navy); padding: 26px 20px; text-align: center; position: relative; }
.mm-band h2 { margin: 0; color: #fff; font: 800 40px/1.3 var(--mm-font); text-wrap: balance; position: relative; }
.mm-band--image { background-size: cover; background-position: center; }
.mm-band--image::before { content: ""; position: absolute; inset: 0; background: var(--mm-navy); opacity: 0.85; }

/* Hero */
.mm-hero { background-color: #333; background-size: cover; background-position: center; min-height: 498px; display: flex; align-items: center; }
.mm-hero__inner { width: 100%; padding-top: 60px; padding-bottom: 60px; }
.mm-hero h1 { color: #fff; font: 800 48px/1.3 var(--mm-font); max-width: 620px; margin: 0 0 30px; text-wrap: balance; }

/* Sections */
.mm-section { padding: 30px 0 40px; }
.mm-prose p { margin: 0 0 14px; line-height: 1.5; }
.mm-list { margin: 0 0 14px; padding-left: 22px; }
.mm-list li { margin-bottom: 2px; }
.mm-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; margin-bottom: 14px; }
.mm-split > * { min-width: 0; }
.mm-split__img { width: 100%; aspect-ratio: 461 / 294; object-fit: cover; }
.mm-split__img--sm { max-width: 380px; justify-self: end; aspect-ratio: 381 / 244; }
.mm-about__photo { max-width: 300px; justify-self: center; aspect-ratio: 1; }
.mm-price__title { font-weight: 700; margin-bottom: 6px !important; }

/* How it works + flip cards */
.mm-how { position: relative; background-size: cover; background-position: center; padding: 30px 0 50px; }
.mm-how::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--mm-navy) 1%, var(--mm-sky) 100%); opacity: 0.85; }
.mm-how .mm-wrap { position: relative; }
.mm-how__intro { color: #fff; margin: 0 0 30px; }
.mm-flips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.mm-flip { perspective: 1200px; height: 300px; border: 12px solid #fff; background: #fff; outline-offset: 4px; }
.mm-flip__inner { position: relative; width: 100%; height: 100%; transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1); transform-style: preserve-3d; }
.mm-flip:hover .mm-flip__inner, .mm-flip:focus-within .mm-flip__inner, .mm-flip.is-flipped .mm-flip__inner { transform: rotateY(180deg); }
.mm-flip__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.mm-flip__front { background: var(--mm-sky); }
.mm-flip__front h3 { color: var(--mm-navy); font: 600 22.4px/1.25 var(--mm-font); margin: 18px 0 0; }
.mm-flip__num { width: 64px; height: 64px; border-radius: 50%; background: var(--mm-navy); color: #fff; font: 700 30px/64px var(--mm-font); }
.mm-flip__back { background: var(--mm-navy); transform: rotateY(180deg); color: #fff; font-size: 16px; text-align: left; align-items: stretch; }
.mm-flip__back ul { margin: 0; padding-left: 20px; }
.mm-flip__back li { margin-bottom: 6px; }
.mm-flip__back a { color: #fff; }

/* Topics */
.mm-topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 20px; }
.mm-topic { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 16px; background: var(--mm-card); border: 0; border-radius: 12px; box-shadow: 0 4px 12px rgba(14,56,122,0.12); cursor: pointer; font: 600 16px/1.3 var(--mm-font); color: var(--mm-navy); text-decoration: underline; transition: transform 0.25s, box-shadow 0.25s; }
.mm-topic:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(14,56,122,0.2); color: var(--mm-blue-hover); }
.mm-topic img { width: 64px; height: 64px; }

/* Toggles (FAQ and popups) */
.mm-faq-group { margin-bottom: 18px; }
.mm-faq-group__title { color: var(--mm-navy); font: 700 18px/1.3 var(--mm-font); margin: 10px 0 12px; }
.mm-toggle { margin-bottom: 6px; }
.mm-toggle summary { list-style: none; display: flex; align-items: center; gap: 12px; flex-direction: row-reverse; justify-content: space-between; background: var(--mm-navy); color: #fff; font: 600 14px/1.3 var(--mm-font); padding: 12px 16px; cursor: pointer; }
.mm-toggle summary::-webkit-details-marker { display: none; }
.mm-toggle__icon { display: inline-flex; transition: transform 0.25s; }
.mm-toggle[open] .mm-toggle__icon { transform: rotate(90deg); }
.mm-toggle__body { padding: 14px 16px 6px; border: 1px solid #d5dbe6; border-top: 0; }
.mm-toggle__body p { margin: 0 0 10px; }
.mm-readings { margin: 0 0 10px; padding-left: 20px; }
.mm-readings li { margin-bottom: 8px; }

/* Get started */
.mm-start { position: relative; background-size: cover; background-position: center; padding: 40px 0 60px; }
.mm-start::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--mm-navy) 0%, var(--mm-sky) 100%); opacity: 0.85; }
.mm-start .mm-wrap { position: relative; }
.mm-start__card { background: #fff; padding: 30px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: start; max-width: 900px; margin: 0 auto; }
.mm-start__logo img { width: 100%; }
.mm-form { display: grid; gap: 12px; }
.mm-form__intro { margin: 0 0 4px; }
.mm-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mm-form label { display: grid; gap: 4px; min-width: 0; }
.mm-form label span { font-weight: 700; color: var(--mm-navy); font-size: 13px; }
.mm-form label b { color: #d0021b; font-weight: 700; }
.mm-form input, .mm-form textarea { font: 14px var(--mm-font); color: #000; width: 100%; padding: 8px 10px; border: 1px solid #b9c2d1; border-radius: 3px; background: #f4f6fa; }
.mm-form input:focus, .mm-form textarea:focus { border-color: var(--mm-blue); background: #fff; outline: none; }
.mm-form__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.mm-form__actions .mm-btn:disabled { opacity: 0.6; cursor: wait; }
.mm-form__status { margin: 0; font-size: 14px; }
.mm-form__status[data-state="ok"] { color: #1f7a3a; }
.mm-form__status[data-state="error"] { color: #b3261e; }
.mm-hp { position: absolute !important; left: -9999px; }

/* Modals */
.mm-modal { width: min(820px, calc(100vw - 32px)); max-height: calc(100vh - 60px); border: 0; padding: 30px; box-shadow: 0 20px 60px rgba(0,0,0,0.35); overflow: auto; }
.mm-modal::backdrop { background: rgba(0,0,0,0.6); }
.mm-modal__close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 30px; line-height: 1; color: #6EC1E4; cursor: pointer; }
.mm-modal__head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.mm-modal h2 { color: var(--mm-navy); font: 800 30px/1.3 var(--mm-font); margin: 0 0 10px; text-align: center; }
.mm-modal__intro { margin: 0 0 16px; }
.mm-modal--ebook { width: min(520px, calc(100vw - 32px)); }
.mm-modal__sub { text-align: center; font-size: 16px; color: #000; margin: -8px 0 22px; }

/* Footer */
.mm-footer { background: var(--mm-navy); color: #fff; text-align: center; padding: 24px 16px; }
.mm-footer p { margin: 0; font-size: 13px; }

/* Responsive */
@media (max-width: 1100px) {
  .mm-header__toggle { display: flex; }
  .mm-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.15); max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
  .mm-nav ul { flex-direction: column; gap: 0; padding: 8px 20px; }
  .mm-nav li a { display: block; padding: 12px 0; border-bottom: 1px solid #eef0f3; }
  .mm-nav a::after { display: none; }
  .mm-header.is-open .mm-nav { max-height: 480px; }
  .mm-header.is-open .mm-header__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .mm-header.is-open .mm-header__toggle span:nth-child(2) { opacity: 0; }
  .mm-header.is-open .mm-header__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .mm-topics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  :root { --mm-header: 76px; }
  .mm-header__logo img { width: 120px; }
  .mm-header__left { gap: 12px; }
  .mm-hero h1 { font-size: 32px; }
  .mm-hero { min-height: 420px; }
  .mm-band h2 { font-size: 28px; }
  .mm-split, .mm-start__card { grid-template-columns: 1fr; }
  .mm-split__img--sm { justify-self: start; }
  .mm-flips { grid-template-columns: 1fr; }
  .mm-form__row { grid-template-columns: 1fr; }
  .mm-start__logo { display: none; }
}
@media (max-width: 480px) {
  .mm-header__left .mm-btn--sm { padding: 8px 12px; font-size: 13px; }
  .mm-header__social { display: none; }
  .mm-topics { grid-template-columns: 1fr; }
  .mm-modal { padding: 24px 18px; }
  .mm-btn { padding: 13px 20px; }
}
