/* =========================================================
   Mind of Finance — global stylesheet
   One file, imported by every page. Built on top of Bootstrap 5.
   ========================================================= */

:root {
  /* Brand palette */
  --mf-navy-900: #0a1f3d;
  --mf-navy-800: #0f2a4d;
  --mf-navy-700: #17365f;
  --mf-green-600: #1f8f4b;
  --mf-green-700: #157a3d;
  --mf-green-800: #10622f;
  --mf-green-100: #e6f6ec;
  --mf-blue-100: #e7f0ff;
  --mf-amber-100: #fdf1de;
  --mf-purple-100: #efeafd;
  --mf-page-bg: #f5f8fc;
  --mf-surface: #ffffff;
  --mf-ink-900: #10182a;
  --mf-ink-600: #57626f;
  --mf-ink-400: #8994a3;
  --mf-line-200: #e7ebf2;

  --mf-radius-lg: 20px;
  --mf-radius-md: 14px;
  --mf-radius-sm: 10px;
  --mf-shadow-sm: 0 2px 10px rgba(16, 24, 42, 0.06);
  --mf-shadow-md: 0 12px 30px rgba(16, 24, 42, 0.08);

  --mf-font-display: "Poppins", "Segoe UI", sans-serif;
  --mf-font-body: "Inter", "Segoe UI", sans-serif;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--mf-font-body);
  color: var(--mf-ink-900);
  background-color: var(--mf-page-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, .display-font {
  font-family: var(--mf-font-display);
  color: var(--mf-ink-900);
  font-weight: 600;
}

p { color: var(--mf-ink-600); }

a { text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--mf-green-600);
  outline-offset: 2px;
}

img { max-width: 100%; display: block; }

.text-brand-green { color: var(--mf-green-600) !important; }
.bg-brand-navy { background-color: var(--mf-navy-900) !important; }
.bg-page { background-color: var(--mf-page-bg); }

.brand-blue {
    color: #164B9B;
}

.brand-green {
    color: #1FA64A;
}
/* ---------- Product page image ---------- */

.mf-product-image {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mf-product-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 20px;
}
@media (max-width: 767.98px) {
    .mf-product-image {
        max-width: 100%;
        padding: 0 1rem;
    }

    .mf-product-image img {
        border-radius: 16px;
    }
}

/* ---------- eyebrow / pill labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
}

.eyebrow-soft {
  background: var(--mf-blue-100);
  color: var(--mf-navy-800);
}

.eyebrow-text {
  color: var(--mf-navy-800);
  background: none;
  padding: 0;
}

/* ---------- buttons ---------- */
.btn-mf-green {
  background-color: var(--mf-green-600);
  border: 1px solid var(--mf-green-600);
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: var(--mf-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-mf-green:hover, .btn-mf-green:focus {
  background-color: var(--mf-green-700);
  border-color: var(--mf-green-700);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--mf-shadow-sm);
}

.btn-mf-outline {
  background-color: transparent;
  border: 1px solid var(--mf-line-200);
  color: var(--mf-ink-900);
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: var(--mf-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.btn-mf-outline:hover, .btn-mf-outline:focus {
  border-color: var(--mf-green-600);
  background-color: var(--mf-green-100);
  color: var(--mf-ink-900);
}

.btn-mf-outline-light {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: var(--mf-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-mf-outline-light:hover, .btn-mf-outline-light:focus {
  background-color: #fff;
  color: var(--mf-navy-900);
}

/* ---------- navbar ---------- */
.mf-navbar {
  background-color: #fff;
  border-bottom: 1px solid var(--mf-line-200);
  padding: 0.85rem;
}

.mf-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mf-logo-word {
  line-height: 1.05;
}

.mf-logo-word .mf-name {
  font-family: var(--mf-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--mf-navy-900);
}

.mf-logo-word .mf-tagline {
  font-size: 0.65rem;
  color: var(--mf-ink-400);
  letter-spacing: 0.04em;
}

.mf-nav .nav-link {
  color: var(--mf-ink-900);
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
}

.mf-nav .nav-link.active {
  color: var(--mf-green-700);
  font-weight: 600;
}

/* .mf-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: -2px;
  height: 2px;
  background-color: var(--mf-green-600);
  border-radius: 2px;
} */

/* ---------- hero / page header ---------- */
.mf-hero {
  padding: 2.5rem 0 3rem;
}

.mf-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
}

.mf-hero-art {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* generic small-page hero used on about/product/contact */
.mf-page-hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
}

/* ---------- feature strip (home) ---------- */
.mf-feature-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem 0.5rem;
}

.mf-icon-badge {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: var(--mf-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.mf-icon-blue { background: var(--mf-blue-100); color: #2563a8; }
.mf-icon-green { background: var(--mf-green-100); color: var(--mf-green-700); }
.mf-icon-amber { background: var(--mf-amber-100); color: #c07d1f; }
.mf-icon-purple { background: var(--mf-purple-100); color: #6c4fd6; }

.mf-feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.mf-feature-card p {
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* ---------- pillars section ---------- */
.mf-pillars-section {
  padding: 3rem 0 4.5rem;
}

.mf-pillar-card {
  background: var(--mf-surface);
  border: 1px solid var(--mf-line-200);
  border-radius: var(--mf-radius-md);
  padding: 1.75rem;
  height: 100%;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.mf-pillar-card:hover {
  box-shadow: var(--mf-shadow-md);
  transform: translateY(-3px);
}

.mf-pillar-card .mf-icon-badge {
  margin-bottom: 1rem;
}

.mf-pillar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: #164B9B;
}

.mf-pillar-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.mf-pillar-card img[alt="Mind of Finance"] {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}
.mf-pillar-card img[alt="signature"] {
  width: auto;
  height: 90px;
  max-width: 100%;
  object-fit: contain;
  object-position: left;
  display: block;
  margin: 0.5rem auto 0;
}

@media (max-width: 767.98px) {
  .mf-pillar-card img[alt="Mind of Finance"] {
    max-width: 280px;
  }

  .mf-pillar-card img[alt="signature"] {
    height: 75px;
    max-width: 100%;
  }
}

/* ---------- generic section heading ---------- */
.mf-section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.mf-section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-top: 0.6rem;
}

/* ---------- about page ---------- */
.mf-about-hero { padding: 4rem 0; }

.mf-founder-photo-wrap {
  position: relative;
  border-radius: var(--mf-radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--mf-blue-100), #eef2fb);
  aspect-ratio: 4 / 5;
  max-width: 380px;
  max-height: 460px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mf-line-200);
}

.mf-founder-photo-wrap .mf-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--mf-navy-700);
}

.mf-founder-photo-wrap .mf-avatar-fallback .mf-initials {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--mf-navy-900);
  color: #fff;
  font-family: var(--mf-font-display);
  font-weight: 700;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mf-founder-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--mf-radius-lg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
  pointer-events: none;
}

.mf-founder-photo-wrap .mf-corner-accent {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #d5684c;
  opacity: 0.15;
}

.mf-checklist {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.mf-checklist li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0;
  color: var(--mf-ink-900);
  font-weight: 500;
  font-size: 0.95rem;
}

.mf-checklist li i {
  color: var(--mf-green-600);
  font-size: 1.05rem;
}

.mf-signature {
  font-family: "Caveat", cursive;
  font-size: 2rem;
  color: var(--mf-navy-800);
  margin-bottom: 0;
  line-height: 1;
}

.mf-tagline-strong {
  color: var(--mf-green-600);
  font-weight: 700;
  margin-top: 0.35rem;
}

.mf-mvp-section {
  padding: 1rem 0 4.5rem;
}

.mf-mvp-card {
  padding: 1.5rem 1rem;
  text-align: left;
  height: 100%;
}

.mf-mvp-card .mf-icon-badge {
  margin-bottom: 1rem;
}

.mf-mvp-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.mf-mvp-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ---------- product page ---------- */
.mf-chip-scroller {
  position: relative;
  margin: 0 -0.25rem;
}

.mf-chip-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.35rem 0.25rem 1rem;
  scroll-padding-inline: 0.25rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

/* soft fade on the right edge hints there's more to scroll, instead of
   chips looking abruptly clipped */
.mf-chip-scroller::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 1rem;
  width: 28px;
  background: linear-gradient(to right, transparent, var(--mf-page-bg));
  pointer-events: none;
}

.mf-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--mf-line-200);
  background: #fff;
  color: var(--mf-ink-900);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color .15s ease;
}

.mf-chip:hover { border-color: var(--mf-green-600); }

.mf-chip.active {
  background: var(--mf-green-600);
  border-color: var(--mf-green-600);
  color: #fff;
}

.mf-chapter-card {
  background: var(--mf-surface);
  border: 1px solid var(--mf-line-200);
  border-radius: var(--mf-radius-md);
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.mf-chapter-card:hover {
  box-shadow: var(--mf-shadow-md);
  transform: translateY(-2px);
}

.mf-chapter-card .mf-icon-badge {
  margin-bottom: 1rem;
}

.mf-chapter-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.mf-chapter-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.mf-chapter-card p {
  font-size: 0.88rem;
  flex-grow: 1;
}

.mf-chapter-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--mf-ink-400);
  border-top: 1px solid var(--mf-line-200);
  padding-top: 0.85rem;
  margin-top: 0.75rem;
}

.mf-chapter-meta .mf-meta-left {
  display: flex;
  gap: 0.85rem;
}

.mf-chapter-meta a {
  color: var(--mf-green-700);
  font-weight: 600;
}

.mf-search-box {
  position: relative;
}

.mf-search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mf-ink-400);
}

.mf-search-box input {
  padding-left: 2.4rem;
  border-radius: var(--mf-radius-sm);
  border: 1px solid var(--mf-line-200);
}

.mf-cta-banner {
  background-color: var(--mf-navy-900);
  border-radius: var(--mf-radius-lg);
  padding: 2rem;
  color: #fff;
}

.mf-cta-banner .mf-cta-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex: 0 0 auto;
}

.mf-cta-banner p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 0;
}

.mf-cta-banner h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

/* ---------- contact page ---------- */
.mf-contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.6rem;
}

.mf-contact-info-item .mf-icon-badge {
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
}

.mf-contact-info-item h3 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.mf-contact-info-item p, .mf-contact-info-item a {
  font-size: 0.9rem;
  color: var(--mf-ink-600);
  margin-bottom: 0;
}

.mf-social-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.mf-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 90%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.mf-social-btn:hover {
  transform: translateY(-2px);
}

.mf-contact-form-card {
  background: var(--mf-surface);
  border: 1px solid var(--mf-line-200);
  border-radius: var(--mf-radius-lg);
  padding: 2rem;
}

.mf-contact-form-card .form-label {
  font-weight: 600;
  font-size: 0.88rem;
}

.mf-contact-form-card .form-control {
  border-radius: var(--mf-radius-sm);
  border: 1px solid var(--mf-line-200);
  padding: 0.65rem 0.9rem;
}

.mf-contact-form-card .form-control:focus {
  border-color: var(--mf-green-600);
  box-shadow: 0 0 0 0.2rem rgba(31, 143, 75, 0.15);
}

.mf-newsletter-bar {
  border: 1px solid var(--mf-line-200);
  border-radius: var(--mf-radius-lg);
  padding: 1.75rem;
  background: var(--mf-surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.mf-newsletter-bar .mf-newsletter-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mf-navy-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex: 0 0 auto;
}

.mf-newsletter-bar form {
  display: flex;
  gap: 0.75rem;
  flex: 1 1 320px;
}

.mf-newsletter-bar input {
  border-radius: var(--mf-radius-sm);
  border: 1px solid var(--mf-line-200);
  padding: 0.65rem 0.9rem;
  flex: 1;
  min-width: 0;
}

.mf-form-feedback {
  font-size: 0.88rem;
  margin-top: 0.75rem;
  display: none;
}

.mf-form-feedback.is-visible { display: block; }

.mf-form-feedback.text-success { color: var(--mf-green-700); }
.mf-form-feedback.text-danger { color: #c0392b; }

/* honeypot field — hidden from real users, trips up simple bots */
.mf-hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- footer ---------- */
.mf-footer {
  background-color: var(--mf-navy-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 1.5rem;
  margin-top: 3rem;
}

.mf-footer .mf-logo-word .mf-name { color: #fff; }
.mf-footer .mf-logo-word .mf-tagline { color: rgba(255,255,255,0.55); }

/* Footer brand logo — sized by CSS (not just the img's width/height
   attributes) so it scales down cleanly instead of staying oversized
   or getting cramped against the wordmark on narrow screens. */
.mf-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.mf-footer-logo .mf-logo-icon {
  flex-shrink: 0;
  display: inline-flex;
}
.mf-footer-logo .mf-logo-icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.mf-footer p { color: rgba(255, 255, 255, 0.65); font-size: 0.9rem; }

.mf-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.mf-footer-links { list-style: none; padding: 0; margin: 0; }

.mf-footer-links li { margin-bottom: 0.6rem; }

.mf-footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.mf-footer-links a:hover { color: #fff; }

.mf-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.mf-footer .mf-social-btn {
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- responsive ---------- */

/* Below this, the two-column sections (hero, founder bio, contact) drop
   to a single stacked column — see the col-md-* classes in the markup.
   Everything from 768px up therefore gets the full two-column layout. */
@media (max-width: 767.98px) {
  .mf-hero { padding: 2.5rem 0 1.75rem; }
  .mf-hero .mf-hero-art { margin-top: 2rem; max-width: 300px; }
  .mf-about-hero { padding: 2.5rem 0; }
  .mf-founder-photo-wrap { margin-top: 2.25rem; }
  .mf-newsletter-bar { text-align: center; justify-content: center; }
  .mf-newsletter-bar form { flex: 1 1 100%; }
  .mf-feature-card { padding: 1rem 0; }
  .mf-cta-banner { text-align: center; }
  .mf-cta-banner .d-flex { flex-direction: column; }
  .mf-contact-form-card { padding: 1.5rem; }

  /* ---- product page: level dropdown + subject chips ----
     Wrap onto multiple lines instead of scrolling horizontally. */
  .mf-chip-scroller::after {
    display: none;
  }
  .mf-chip-row {
    flex-wrap: wrap;
    overflow-x: visible;
    overflow-y: visible;
    scroll-snap-type: none;
    gap: 0.5rem;
    padding: 0.35rem 0.25rem 0.5rem;
  }
  .mf-chip {
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem;
  }
  .mf-subject-menu {
    min-width: 220px;
  }

  /* ---- product page: chapter/subject cards ---- */
  .mf-chapter-card {
    padding: 1.25rem;
  }
  #mfChaptersHeading {
    font-size: 1.35rem;
  }
  /* ---- footer: recenter the brand block and give the stacked
     columns a bit more breathing room once they drop to full width ---- */
  .mf-footer-logo {
    gap: 10px;
  }
  .mf-footer-logo .mf-logo-icon img {
    width: 60px;
    height: 60px;
  }
  .mf-footer h4 {
    margin-top: 0.25rem;
  }
}

/* Very narrow phones: keep the wordmark from crowding the menu button */
@media (max-width: 379.98px) {
  .mf-logo-word .mf-name { font-size: 0.92rem; }
  .mf-logo-word .mf-tagline { display: none; }
  .mf-logo-icon svg { width: 32px; height: 32px; }

  .mf-chip {
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
  }
  .mf-chip i { font-size: 0.9rem; }

  .mf-footer-logo .mf-logo-icon img {
    width: 52px;
    height: 52px;
  }
}

/* Tablets (768–991): two columns are active, but give them a little
   breathing room since they're narrower than desktop */
@media (min-width: 768px) and (max-width: 991.98px) {
  .mf-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.5rem); }
  .mf-contact-form-card { padding: 1.75rem; }

  /* ---- product page: iPad view ----
     Wrap onto multiple lines instead of scrolling horizontally. */
  .mf-chip-scroller::after {
    display: none;
  }
  .mf-chip-row {
    flex-wrap: wrap;
    overflow-x: visible;
    overflow-y: visible;
    scroll-snap-type: none;
    padding: 0.35rem 0.25rem 0.5rem;
  }
  .mf-chip {
    font-size: 0.86rem;
    padding: 0.6rem 1rem;
  }
  .mf-chapter-card {
    padding: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}