/* Michelle Francisco Foundation — site stylesheet.
   Same shape as franciscomotors/assets/css/site.css: one file, prefixed
   classes, no framework, no external font/CDN requests. */

:root {
  --mff-ink: #10202f;
  --mff-ink-soft: #40566a;
  --mff-navy: #0d2b45;
  --mff-navy-deep: #071a2c;
  --mff-gold: #c9922c;
  --mff-gold-soft: #f0d9a8;
  --mff-green: #1f7a52;
  --mff-line: #dfe6ec;
  --mff-bg: #ffffff;
  --mff-bg-alt: #f4f7f9;
  --mff-shell: 1160px;
  --mff-radius: 12px;
  --mff-shadow: 0 2px 10px rgba(13, 43, 69, .07);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mff-bg);
  color: var(--mff-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

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

a { color: var(--mff-navy); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--mff-gold); }

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  color: var(--mff-navy);
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

sub { font-size: .7em; }

.mff-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--mff-navy); color: #fff; padding: 10px 16px; z-index: 100;
}
.mff-skip:focus { left: 8px; top: 8px; }

.mff-shell {
  width: 100%;
  max-width: var(--mff-shell);
  margin: 0 auto;
  padding: 0 22px;
}
.mff-narrow { max-width: 820px; }

/* ---------- header ---------- */

.mff-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--mff-line);
}
.mff-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 70px;
}
.mff-logo {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--mff-navy);
}
.mff-logo img { width: 44px; height: 44px; border-radius: 50%; }
.mff-logo strong { display: block; font-family: Georgia, serif; font-size: 1.02rem; line-height: 1.2; }
.mff-logo small { display: block; font-size: .72rem; color: var(--mff-ink-soft); letter-spacing: .04em; text-transform: uppercase; }

.mff-nav { display: flex; align-items: center; gap: 20px; }
.mff-nav a {
  text-decoration: none; font-size: .93rem; color: var(--mff-ink-soft);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.mff-nav a:hover, .mff-nav a.is-active { color: var(--mff-navy); border-bottom-color: var(--mff-gold); }
.mff-nav .mff-nav-cta {
  background: var(--mff-gold); color: #fff; border-radius: 999px;
  padding: 9px 20px; font-weight: 600; border-bottom: 0;
}
.mff-nav .mff-nav-cta:hover { background: var(--mff-navy); color: #fff; }

.mff-nav-toggle {
  display: none; background: none; border: 0; font-size: 1.5rem;
  color: var(--mff-navy); cursor: pointer; padding: 4px 8px;
}

/* ---------- hero ---------- */

.mff-hero {
  background: linear-gradient(160deg, var(--mff-navy-deep) 0%, var(--mff-navy) 62%, #14476b 100%);
  color: #fff;
  padding: clamp(44px, 7vw, 84px) 0;
}
.mff-hero-inner { max-width: 860px; }
.mff-hero h1 { color: #fff; }
.mff-hero-sub {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--mff-gold-soft);
  font-family: Georgia, serif;
  margin-bottom: 1.4em;
}
.mff-eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .76rem;
  font-weight: 700; color: var(--mff-gold); margin-bottom: .7em;
}
.mff-hero .mff-eyebrow { color: var(--mff-gold-soft); }

.mff-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.mff-hero-stats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 22px;
}
.mff-hero-stats strong {
  display: block; font-family: Georgia, serif; font-size: 1.5rem; color: #fff;
}
.mff-hero-stats span { font-size: .8rem; color: rgba(255, 255, 255, .76); line-height: 1.4; display: block; }

/* Hero fact strip — label above value, for verifiable registry facts. */
.mff-hero-facts {
  list-style: none; margin: 0; padding: 22px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.mff-hero-facts span {
  display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .62); margin-bottom: 3px;
}
.mff-hero-facts strong { display: block; color: #fff; font-size: 1.02rem; }

/* ---------- buttons ---------- */

.mff-btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  overflow-wrap: anywhere;
}
.mff-btn-primary { background: var(--mff-gold); color: #fff; border-color: var(--mff-gold); }
.mff-btn-primary:hover { background: #fff; color: var(--mff-navy); border-color: #fff; }
.mff-btn-secondary { background: transparent; color: inherit; border-color: currentColor; }
.mff-btn-secondary:hover { background: var(--mff-navy); color: #fff; border-color: var(--mff-navy); }
.mff-hero .mff-btn-secondary { color: #fff; }
.mff-hero .mff-btn-secondary:hover { background: #fff; color: var(--mff-navy); border-color: #fff; }
.mff-btn-lg { padding: 15px 34px; font-size: 1.05rem; }

/* ---------- sections ---------- */

.mff-section { padding: clamp(44px, 6vw, 78px) 0; }
.mff-section-alt { background: var(--mff-bg-alt); }
.mff-section-head { max-width: 760px; margin-bottom: clamp(26px, 3.4vw, 42px); }
.mff-section-head h2 { margin-bottom: 0; }
.mff-lede { font-size: 1.12rem; color: var(--mff-ink); }

/* ---------- cards ---------- */

.mff-cards { display: grid; gap: 22px; }
.mff-cards-3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.mff-cards-4 { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }

.mff-card {
  background: #fff; border: 1px solid var(--mff-line);
  border-radius: var(--mff-radius); padding: 26px 24px;
  box-shadow: var(--mff-shadow);
}
.mff-card h3 { color: var(--mff-navy); }
.mff-card ul { margin: 0; padding-left: 20px; }
.mff-card li { margin-bottom: .7em; }
.mff-card li:last-child { margin-bottom: 0; }
.mff-card ul ul { margin-top: .5em; }
.mff-card p:last-child { margin-bottom: 0; }

.mff-card-step i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--mff-navy); color: var(--mff-gold-soft);
  font-family: Georgia, serif; font-style: normal; font-weight: 700;
  margin-bottom: 14px;
}

/* ---------- table ---------- */

.mff-table-wrap { overflow-x: auto; border-radius: var(--mff-radius); border: 1px solid var(--mff-line); }
.mff-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 520px; }
.mff-table th, .mff-table td { padding: 15px 18px; text-align: left; vertical-align: top; }
.mff-table thead th {
  background: var(--mff-navy); color: #fff;
  font-family: Georgia, serif; font-size: .95rem; letter-spacing: .02em;
}
.mff-table tbody tr + tr th, .mff-table tbody tr + tr td { border-top: 1px solid var(--mff-line); }
.mff-table tbody th { width: 30%; color: var(--mff-navy); font-weight: 700; }
.mff-table tbody tr:nth-child(even) th, .mff-table tbody tr:nth-child(even) td { background: var(--mff-bg-alt); }

/* ---------- gallery ---------- */

.mff-gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 18px;
}
.mff-gallery figure { margin: 0; }
.mff-gallery img, .mff-figure-wide img {
  border-radius: var(--mff-radius); box-shadow: var(--mff-shadow); width: 100%;
}
.mff-figure-wide { margin: clamp(20px, 3vw, 32px) 0 0; }
.mff-figure-wide figcaption,
.mff-gallery figcaption {
  font-size: .84rem; color: var(--mff-ink-soft); margin-top: 9px; text-align: center;
}

/* ---------- giving tiers ---------- */

/* 196px min keeps all five tiers on one row at full desktop width instead of
   leaving a single orphan card on a second row; it reflows to 3-then-2, 2, 1
   as the viewport narrows. */
.mff-tiers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 18px; margin-bottom: clamp(30px, 4vw, 48px);
}
.mff-tier { padding: 24px 19px; }
.mff-tier-amount { font-size: 1.55rem; }
.mff-tier {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--mff-line); border-radius: var(--mff-radius);
  padding: 26px 22px; box-shadow: var(--mff-shadow);
}
.mff-tier.is-featured {
  border-color: var(--mff-gold); border-width: 2px;
  box-shadow: 0 8px 26px rgba(201, 146, 44, .18);
}
.mff-tier h3 { margin-bottom: .2em; }
.mff-tier-amount {
  font-family: Georgia, serif; font-size: 1.75rem; font-weight: 700;
  color: var(--mff-gold); margin: 0 0 .6em;
}
.mff-tier-benefit { font-size: .93rem; color: var(--mff-ink-soft); flex: 1 1 auto; }
.mff-tier .mff-btn { align-self: flex-start; }

/* ---------- donate panel ---------- */

.mff-donate-panel {
  display: grid; grid-template-columns: minmax(200px, 300px) 1fr;
  gap: clamp(24px, 4vw, 44px); align-items: center;
  background: var(--mff-bg-alt); border: 1px solid var(--mff-line);
  border-radius: var(--mff-radius); padding: clamp(24px, 4vw, 40px);
}
.mff-donate-qr img { background: #fff; padding: 12px; border-radius: 10px; box-shadow: var(--mff-shadow); }
/* Grid children default to min-width:auto, so one unbreakable string (a long
   e-mail address in a pill button) can stretch a 1fr track wider than the
   panel and push content outside it. Pin both children to min-width:0. */
.mff-donate-qr, .mff-donate-copy { min-width: 0; }
.mff-donate-contact { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.2em; }
.mff-fineprint { font-size: .82rem; color: var(--mff-ink-soft); margin-bottom: 0; }

/* ---------- pending-content notice ----------
   Deliberately loud. These blocks mark wording that must come from the
   Foundation's governing documents; they must be impossible to mistake for
   finished copy if the staging site is reviewed or accidentally published. */

.mff-pending {
  border: 1px solid #d9a441;
  border-left: 4px solid #d9a441;
  background: #fdf6e7;
  color: #6b4c12;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 0 1.2em;
  font-size: .92rem;
  line-height: 1.55;
}
.mff-pending strong { color: #85600f; }

/* ---------- misc content bits ---------- */

.mff-note { color: var(--mff-ink-soft); }

.mff-source { font-size: .85rem; color: var(--mff-ink-soft); }

.mff-people { list-style: none; margin: 0 0 1em; padding: 0; }
.mff-people li { margin-bottom: .7em; }
.mff-people strong { display: block; color: var(--mff-navy); }
.mff-people span { display: block; font-size: .86rem; color: var(--mff-ink-soft); }

.mff-list { margin: 0; padding-left: 20px; }
.mff-list li { margin-bottom: .7em; }

.mff-flag {
  display: inline-block; margin-left: 8px; padding: 2px 9px;
  border-radius: 999px; background: #fdf6e7; border: 1px solid #e2c489;
  color: #6b4c12; font-size: .74rem; white-space: nowrap;
}

.mff-verify-links { margin-top: 18px; }
.mff-verify-links .mff-fineprint { display: block; margin-top: 5px; }

/* ---------- giving + donor disclosure ---------- */

.mff-give-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(24px, 4vw, 44px); align-items: start;
}
.mff-give-main { min-width: 0; }
.mff-give-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.mff-disclosure {
  min-width: 0;
  background: var(--mff-bg-alt);
  border: 1px solid var(--mff-line);
  border-radius: var(--mff-radius);
  padding: 24px 22px;
}
.mff-disclosure h3 { margin-bottom: .6em; }
.mff-disclosure ul { margin: 0; padding-left: 19px; font-size: .9rem; color: var(--mff-ink-soft); }
.mff-disclosure li { margin-bottom: .8em; }
.mff-disclosure li:last-child { margin-bottom: 0; }
.mff-disclosure strong { color: var(--mff-ink); }

/* ---------- closing CTA ---------- */

.mff-cta {
  background: linear-gradient(160deg, var(--mff-navy) 0%, var(--mff-navy-deep) 100%);
  color: #fff; text-align: center; padding: clamp(46px, 6vw, 82px) 0;
}
.mff-cta .mff-eyebrow { color: var(--mff-gold-soft); }
.mff-cta blockquote {
  margin: 0 0 1.1em; font-family: Georgia, serif;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem); line-height: 1.45; color: #fff;
}
.mff-cta p { color: rgba(255, 255, 255, .87); }
.mff-cta strong { color: #fff; }

/* ---------- contact ---------- */

.mff-contact { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 26px; }
.mff-contact dt { font-weight: 700; color: var(--mff-navy); }
.mff-contact dd { margin: 0; color: var(--mff-ink-soft); }

/* ---------- footer ---------- */

.mff-footer {
  background: var(--mff-navy-deep); color: rgba(255, 255, 255, .74);
  padding: clamp(34px, 5vw, 56px) 0 26px; font-size: .9rem;
}
.mff-footer a { color: var(--mff-gold-soft); }
.mff-footer a:hover { color: #fff; }
.mff-footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px; padding-bottom: 26px;
}
.mff-footer p { margin: 0 0 .4em; }
.mff-footer-name { font-family: Georgia, serif; font-size: 1.05rem; color: #fff; }
.mff-footer-motto {
  font-family: Georgia, serif; font-style: italic; color: var(--mff-gold-soft);
  text-align: center; padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, .14);
}
.mff-footer-legal {
  text-align: center; font-size: .78rem; color: rgba(255, 255, 255, .5);
  margin: 0; line-height: 1.6;
}

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

@media (max-width: 900px) {
  .mff-give-grid { grid-template-columns: 1fr; }
  .mff-donate-panel { grid-template-columns: 1fr; }
  .mff-donate-qr { max-width: 280px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .mff-nav-toggle { display: block; }
  .mff-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--mff-line);
    padding: 8px 22px 18px; box-shadow: 0 10px 20px rgba(13, 43, 69, .1);
  }
  .mff-nav.is-open { display: flex; }
  .mff-header-inner { position: relative; }
  .mff-nav a { padding: 11px 0; border-bottom: 1px solid var(--mff-line); }
  .mff-nav a:hover, .mff-nav a.is-active { border-bottom-color: var(--mff-line); }
  .mff-nav .mff-nav-cta { text-align: center; margin-top: 12px; }
  .mff-contact { grid-template-columns: 1fr; gap: 2px 0; }
  .mff-contact dd { margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
