/* The Yunus Foundation: site styles
   Palette and type match the business cards (Midnight Navy + gold, EB Garamond). */

:root {
    --navy: #14213D;
    --navy-2: #1C2C4F;
    --gold: #C8961E;          /* on navy only (5.96:1) */
    --gold-light: #D8B25A;    /* on navy, large text */
    --gold-ink: #8B6508;      /* gold for text on light backgrounds (4.8:1) */
    --cream: #F3EBDD;
    --paper: #FAF6EE;
    --ink: #1B1F2A;
    --muted: #5E5A52;
    --line: #E2D8C6;
    --on-navy-muted: #CFC7B8;

    --serif: 'EB Garamond', Garamond, 'Times New Roman', serif;
    --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --wrap: 1120px;
    --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.2rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
h3 { font-size: 1.5rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
@media (min-width: 640px) { :root { --gutter: 28px; } }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--gold); color: var(--navy); padding: .75rem 1rem; font-family: var(--sans); font-weight: 600; }
.skip-link:focus { left: 1rem; top: 1rem; }

.label {
    font-family: var(--sans);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-ink);
}
.on-navy .label { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: .02em;
    text-decoration: none; padding: .85em 1.5em; min-height: 48px;
    border-radius: 3px; border: 1px solid transparent; cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--navy-2); }
.btn-line { border-color: rgba(243, 235, 221, .5); color: var(--cream); }
.btn-line:hover { border-color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--navy); color: var(--cream);
    border-bottom: 1px solid rgba(200, 150, 30, .3);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand b { display: block; font-weight: 500; font-size: 1.35rem; line-height: 1.05; }
.brand i { display: block; font-size: .95rem; color: var(--gold-light); line-height: 1.1; }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: .95rem; }
.nav-links a { text-decoration: none; opacity: .9; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav-links .btn { opacity: 1; padding: .55em 1.15em; min-height: 42px; }
.nav-links .btn:hover { text-decoration: none; }

.menu-toggle {
    display: none; background: none; border: 1px solid rgba(243, 235, 221, .4); border-radius: 3px;
    color: var(--cream); font-family: var(--sans); font-weight: 600; font-size: .9rem;
    padding: .55em .9em; min-height: 44px; cursor: pointer;
}
@media (max-width: 860px) {
    .menu-toggle { display: inline-flex; align-items: center; }
    .nav-links {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--navy); border-bottom: 1px solid rgba(200, 150, 30, .3);
        padding: 8px var(--gutter) 20px;
        box-shadow: 0 16px 24px rgba(0, 0, 0, .25);
    }
    .nav-links.open { display: flex; }
    /* Without JavaScript the menu simply shows, stacked under the logo */
    .no-js .nav { flex-wrap: wrap; }
    .no-js .menu-toggle { display: none; }
    .no-js .nav-links { display: flex; position: static; width: 100%; padding-inline: 0; box-shadow: none; border: 0; }
    .nav-links li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid rgba(243, 235, 221, .1); font-size: 1.05rem; }
    .nav-links .btn { margin-top: 14px; width: 100%; }
}

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--cream); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; padding-block: 88px 96px; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 400; letter-spacing: -.01em; margin-top: 18px; }
.hero h1 em { color: var(--gold-light); }
.hero .lede { font-size: 1.3rem; color: #DCD4C5; max-width: 42ch; margin-top: 24px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-mark { margin: 0; color: var(--gold); justify-self: end; width: 100%; max-width: 340px; }
.hero-mark svg { width: 100%; height: auto; }
.hero-mark figcaption { font-style: italic; color: #B9B2A6; font-size: 1rem; margin-top: 12px; text-align: right; }
@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; gap: 24px; padding-block: 44px 60px; }
    .hero-mark { order: -1; max-width: 130px; justify-self: start; }
    .hero-mark figcaption { display: none; }
}

/* ---------- Facts strip ---------- */
.facts { background: var(--cream); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 28px 20px 28px 0; display: grid; gap: 4px; align-content: start; }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--line); }
.fact b { font-weight: 500; font-size: 1.8rem; line-height: 1.1; color: var(--navy); }
.fact span { font-family: var(--sans); font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) {
    .facts-grid { grid-template-columns: 1fr 1fr; }
    .fact, .fact + .fact { padding: 20px 12px 20px 0; border-left: 0; }
    .fact:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
    .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
    .fact b { font-size: 1.5rem; }
}

/* ---------- Sections ---------- */
section { padding-block: 96px; scroll-margin-top: 68px; }
@media (max-width: 640px) { section { padding-block: 64px; } }
.head { display: grid; gap: 14px; max-width: 680px; margin-bottom: 48px; }
.head p:not(.label) { color: var(--muted); font-size: 1.25rem; }
.on-navy .head p:not(.label) { color: var(--on-navy-muted); }

/* Story */
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.story-grid blockquote {
    margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.28; font-style: italic;
    border-left: 2px solid var(--gold); padding-left: 26px; color: var(--navy);
}
.story-grid blockquote cite { display: block; margin-top: 18px; font-style: normal; }
.story-body { display: grid; gap: 18px; max-width: 62ch; }
.story-body h2 { margin-bottom: 4px; }
.story-body p { color: #3A3833; }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Pillars */
.pillars { background: var(--cream); }
.pillar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 90px; }
.pillar-media { margin: 0; background: var(--navy); }
.pillar-media video, .pillar-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--navy); }
.pillar-media figcaption { font-family: var(--sans); font-size: .85rem; color: var(--on-navy-muted); padding: 10px 30px 12px; }
.pillar-top { background: var(--navy); color: var(--cream); padding: 28px 30px; display: flex; align-items: center; gap: 18px; }
.pillar-top svg { width: 52px; height: 52px; color: var(--gold); flex: none; }
.pillar-top h3 { font-size: 2rem; font-weight: 400; }
.pillar-top .label { color: var(--gold); }
.pillar-body { padding: 28px 30px 32px; display: grid; gap: 16px; align-content: start; }
.pillar-body p { color: #3A3833; }
.pillar-body ul { margin: 0; padding-left: 1.1em; color: #3A3833; }
.pillar-body li { margin: .35em 0; }
.pillar-body li::marker { color: var(--gold-ink); }
.pillar-body h4 { margin: 8px 0 0; font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.learn-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.learn-list div { background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 14px; font-size: 1rem; line-height: 1.35; }
.learn-list b { display: block; font-weight: 600; color: var(--navy); font-size: 1.05rem; margin-bottom: 2px; }
@media (max-width: 900px) { .pillar-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .learn-list { grid-template-columns: 1fr; } .pillar-top, .pillar-body, .pillar-media figcaption { padding-inline: 22px; } }

/* Through the years */
.years-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.year-shot { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.year-shot img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--cream); }
.year-shot figcaption { padding: 14px 18px 18px; font-size: 1.05rem; color: #3A3833; line-height: 1.4; }
.year-shot figcaption b { display: block; font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; color: var(--gold-ink); margin-bottom: 4px; }
@media (max-width: 760px) { .years-grid { grid-template-columns: 1fr 1fr; } .year-shot:last-child { grid-column: 1 / -1; } .year-shot:last-child img { aspect-ratio: 16 / 10; } }
@media (max-width: 460px) { .years-grid { grid-template-columns: 1fr; } .year-shot img, .year-shot:last-child img { aspect-ratio: 4 / 3; } }

/* How we work */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); counter-reset: step; }
.steps li { padding: 28px 24px 8px 0; counter-increment: step; display: grid; gap: 8px; align-content: start; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step); font-size: 2.4rem; line-height: 1; color: var(--gold-ink); }
.steps h3 { font-size: 1.3rem; }
.steps p { color: var(--muted); font-size: 1.08rem; }
.founder-note { margin-top: 44px; background: var(--cream); border-left: 3px solid var(--gold); padding: 22px 24px; border-radius: 0 4px 4px 0; max-width: 760px; }
.founder-note p { font-size: 1.2rem; }
@media (max-width: 900px) {
    .steps { grid-template-columns: 1fr 1fr; }
    .steps li, .steps li + li { padding: 22px 20px 18px 0; border-left: 0; }
    .steps li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
    .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
    .steps { grid-template-columns: 1fr; }
    .steps li, .steps li + li, .steps li:nth-child(even) { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
    .steps li:first-child { border-top: 0; }
}

/* Why it matters */
.why { background: var(--navy); color: var(--cream); }
.why-grid { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
.big-stat { font-size: clamp(3.6rem, 9vw, 6.4rem); line-height: 1; color: var(--gold-light); font-weight: 400; font-variant-numeric: lining-nums; }
.why p:not(.big-stat) { font-size: 1.35rem; color: #DCD4C5; max-width: 46ch; }
.why small { display: block; margin-top: 14px; font-family: var(--sans); font-size: .85rem; color: #A9A397; }
.why small a { color: var(--on-navy-muted); }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; gap: 16px; } }

/* Voices */
.voices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.voice { margin: 0; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 4px; padding: 28px; display: grid; gap: 18px; align-content: space-between; }
.voice blockquote { margin: 0; font-style: italic; font-size: 1.18rem; line-height: 1.5; color: #2D2B27; }
.voice figcaption { font-family: var(--sans); font-size: .9rem; color: var(--muted); line-height: 1.4; }
.voice figcaption b { display: block; color: var(--navy); font-weight: 600; }
.voice figcaption i { display: block; margin-top: 4px; font-size: .82rem; }
@media (max-width: 900px) { .voices-grid { grid-template-columns: 1fr; } }

/* Give */
.give { background: var(--cream); }
.give-box { background: var(--navy); color: var(--cream); border-radius: 4px; padding: clamp(28px, 6vw, 64px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.give-box h2 { font-weight: 400; }
.give-box h2 em { color: var(--gold-light); }
.give-box p { color: #DCD4C5; margin-top: 16px; }
.give-box .give-amount { font-size: 1.45rem; color: var(--gold-light); }
.give-actions { display: grid; gap: 12px; }
@media (max-width: 860px) { .give-box { grid-template-columns: 1fr; } }

/* Leadership */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 900px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 28px; display: grid; gap: 18px; align-content: start; }
.avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--navy); color: var(--gold-light); display: grid; place-items: center; font-size: 1.8rem; object-fit: cover; }
.person h3 { font-size: 1.4rem; }
.person .role { font-family: var(--sans); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); font-weight: 600; margin-top: 4px; }
.person .bio { margin-top: 12px; font-size: 1.05rem; color: #3A3833; }
.person .tbd { color: var(--muted); font-style: italic; }
.person .role.tbd { text-transform: none; letter-spacing: 0; font-family: var(--serif); font-size: 1rem; font-weight: 400; }
@media (max-width: 680px) { .people { grid-template-columns: 1fr; } .person { grid-template-columns: 72px 1fr; padding: 22px; } .avatar { width: 72px; height: 72px; font-size: 1.4rem; } }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--navy); color: var(--cream); padding-block: 64px 56px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 400; margin-top: 14px; }
.page-hero p { color: #DCD4C5; margin-top: 16px; max-width: 56ch; font-size: 1.25rem; }
.prose { padding-block: 56px 88px; }
.prose .wrap > * { max-width: 70ch; }
.prose h2 { font-size: 1.8rem; margin: 40px 0 10px; }
.prose p, .prose li { color: #3A3833; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .45em 0; }
.prose a:not(.btn) { color: var(--gold-ink); }
.notice { background: var(--cream); border-left: 3px solid var(--gold); padding: 24px 26px; border-radius: 0 4px 4px 0; }
.notice h2 { margin-top: 0; }
.notice .btn { margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-muted); padding-block: 64px 36px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand svg { width: 56px; height: 56px; }
.foot-brand .name { color: var(--cream); font-size: 1.35rem; }
.foot-brand p { font-size: 1.05rem; max-width: 38ch; }
.foot h2 { font-size: 1.1rem; color: var(--cream); margin-bottom: 12px; font-weight: 500; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 1.05rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.legal { border-top: 1px solid rgba(243, 235, 221, .14); margin-top: 48px; padding-top: 22px; font-family: var(--sans); font-size: .85rem; color: #A9A397; display: grid; gap: 8px; }
.legal p { max-width: 80ch; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .btn { transition: none; }
}
