/* Maha Foundation — site styles
   Brand colours: change them here and the whole site follows. */
:root {
  --teal: #352E7B;      /* brand indigo (from logo) */
  --teal-2: #463E96;
  --ink: #1C1842;
  --body: #45405F;
  --muted: #5A5573;
  --soft: #F3F1FA;
  --line: #E2DEF0;
  --accent: #CB2B85;    /* brand magenta (from logo) */
  --on-dark: #E4E1F7;
  --on-dark-2: #C9C5E6;
  --radius: 20px;
  --display: 'Bricolage Grotesque', Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--teal); }
a:hover { color: #231E5A; }
:focus-visible { outline: 3px solid #F39AC8; outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.soft-bg { background: var(--soft); }
.dark { background: var(--ink); color: #fff; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 48px; }
.head { max-width: 720px; gap: 12px; }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.muted { color: var(--muted); font-size: 15px; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 24px; }

.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.eyebrow.light { color: #F6B5D7; }
.eyebrow.accent { color: #F39AC8; }
.h-lg { font-size: clamp(32px, 4.5vw, 44px); font-weight: 800; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s ease, filter .15s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { color: #fff; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { color: #fff; background: rgba(255,255,255,.08); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #E6E3F1; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand img { height: 46px; width: auto; display: block; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 22px; }
.brand:hover { color: var(--ink); }
.menu { display: flex; align-items: center; gap: 4px 24px; font-size: 15px; font-weight: 500; }
.menu a:not(.btn) { color: var(--ink); text-decoration: none; padding: 12px 0; }
.menu a:not(.btn):hover { color: var(--teal); }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; border-radius: 8px; }

/* Hero */
.hero { background: var(--teal); color: #fff; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 96px; }
.hero-grid > * { flex: 1 1 420px; min-width: 0; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; }
.lead { font-size: 20px; line-height: 1.55; color: var(--on-dark); max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* Photos & placeholders */
.photo { min-height: 260px; background: #ECE9F7; color: var(--muted); display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-size: 15px; border-radius: var(--radius); }
.photo.tall { min-height: 400px; }
.photo-dark { background: var(--teal-2); color: var(--on-dark); border: 2px dashed #8E86D0; }
img.photo, .program img { object-fit: cover; width: 100%; padding: 0; }

/* Cards */
.card { border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.card h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.card h3 { font-size: 26px; font-weight: 800; }
.card p { font-size: 17px; color: var(--body); }
.card .btn { margin-top: auto; align-self: flex-start; }
.soft { background: var(--soft); }
.white { background: #fff; }
.cta-dark { background: var(--teal); color: #fff; }
.cta-dark p { color: var(--on-dark); }

/* Why */
.why { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.why > .stack { flex: 1 1 320px; }
.why > .grid-3 { flex: 2 1 560px; min-width: 0; gap: 28px; }
.dark h2 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; }
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature h3 { font-family: Inter, sans-serif; font-size: 20px; font-weight: 600; }
.feature p { color: var(--on-dark-2); }

/* Programs */
.program { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.program .photo { border-radius: 0; }
.program-body { padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.program h3 { font-size: 28px; font-weight: 800; }
.program p, .program li { color: var(--body); font-size: 17px; }
.program ul { margin: 0; padding-left: 20px; }

/* Progress */
.stat { background: #fff; border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 6px; color: var(--body); }
.num { font-family: var(--display); font-size: clamp(40px, 5vw, 52px); font-weight: 800; color: var(--teal); line-height: 1; }
.goal { gap: 18px; }
.goal h3 { font-family: Inter, sans-serif; font-size: 22px; font-weight: 600; }
.goal-pct { font-weight: 600; color: var(--teal) !important; font-size: 16px !important; }
.bar { height: 18px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--teal); border-radius: 999px; }
.timeline { list-style: none; margin: 0; padding: 8px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.timeline li { display: flex; flex-direction: column; gap: 4px; }
.timeline strong { color: var(--teal); font-size: 14px; }
.timeline span { color: var(--body); font-size: 15px; line-height: 1.5; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps li { border-top: 3px solid var(--teal); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.step-n { font-family: var(--display); font-weight: 800; color: var(--teal); font-size: 18px; }
.steps h3 { font-family: Inter, sans-serif; font-size: 21px; font-weight: 600; }
.steps p { color: var(--body); }

/* Story */
.story { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.story > .photo { flex: 1 1 400px; min-width: 0; }
.story > figure { flex: 1 1 440px; margin: 0; gap: 20px; }
blockquote { margin: 0; font-family: var(--display); font-size: clamp(24px, 3vw, 30px); line-height: 1.3; font-weight: 600; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-2); padding: 64px 0 40px; font-size: 15px; }
.site-footer a { color: #F39AC8; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-grid > * { flex: 1 1 220px; min-width: 0; }
.footer-grid > :first-child { flex-basis: 300px; }
.brand-foot { font-family: var(--display); font-weight: 800; font-size: 24px; color: #fff; }
.foot-h { font-weight: 600; color: #fff; }
.copyright { margin-top: 40px; padding-top: 24px; border-top: 1px solid #332E63; font-size: 13px; color: #A9A4C8; }

/* Mobile */
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid #E6E3F1; flex-direction: column; align-items: stretch; padding: 8px 24px 20px; gap: 0; }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid #EFEDF6; }
  .menu .btn { margin-top: 12px; }
  .section { padding: 64px 0; }
  .hero-grid { padding-top: 56px; padding-bottom: 64px; gap: 40px; }
  .card { padding: 28px; }
  .photo.tall { min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
