/* Nilachala Foundation — site styles */
:root {
	--ink: #1b1f2e;
	--ink-soft: #4a5068;
	--muted: #6b7088;
	--navy: #1f2a5c;
	--navy-deep: #151d42;
	--accent: #b8432b;
	--accent-dark: #963520;
	--gold: #c9973a;
	--paper: #ffffff;
	--paper-warm: #f7f4ee;
	--line: #e4e1d8;
	--radius: 10px;
	--max: 1160px;
	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.2;
	color: var(--navy-deep);
	margin: 0 0 0.5em;
	letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.container {
	width: 100%;
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 24px;
}

.eyebrow {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 0.9rem;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	padding: 0.8em 1.4em;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.95rem;
	border: 2px solid transparent;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
	cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-light:hover { background: #fff; color: var(--navy-deep); }

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255,255,255,0.96);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--navy-deep);
}
.brand:hover { text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand-name {
	font-family: var(--serif);
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.1;
}
.brand-name small {
	display: block;
	font-family: var(--sans);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
	color: var(--ink-soft);
	font-size: 0.93rem;
	font-weight: 500;
}
.nav a:hover { color: var(--navy-deep); text-decoration: none; }
.nav .btn { color: #fff; padding: 0.6em 1.1em; }

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 8px;
	cursor: pointer;
	color: var(--navy-deep);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* Hero */
.hero {
	background: var(--navy-deep);
	color: #fff;
	overflow: hidden;
}
.hero .container {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 56px;
	align-items: center;
	padding-top: 88px;
	padding-bottom: 88px;
}
.hero .eyebrow { color: var(--gold); }
.hero h1 {
	color: #fff;
	font-size: clamp(2.2rem, 4.4vw, 3.4rem);
	margin-bottom: 0.45em;
}
.hero-lede {
	font-size: 1.12rem;
	color: rgba(255,255,255,0.82);
	max-width: 34em;
	margin-bottom: 2em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-figure { margin: 0; position: relative; }
.hero-figure img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.hero-figure figcaption {
	margin-top: 12px;
	font-size: 0.85rem;
	color: rgba(255,255,255,0.6);
}

/* Facts strip */
.facts {
	background: var(--paper-warm);
	border-bottom: 1px solid var(--line);
}
.facts ul {
	list-style: none;
	margin: 0;
	padding: 28px 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.facts li { display: flex; flex-direction: column; }
.facts strong {
	font-family: var(--serif);
	font-size: 1.15rem;
	color: var(--navy-deep);
}
.facts span { font-size: 0.88rem; color: var(--muted); }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-warm); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* Programme cards */
.cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}
.card {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px 24px;
}
.card-icon {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	display: grid;
	place-items: center;
	background: rgba(31,42,92,0.08);
	color: var(--navy);
	margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.2rem; }
.card ul {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.93rem;
	color: var(--ink-soft);
}
.card li {
	position: relative;
	padding-left: 16px;
	margin-bottom: 0.55em;
	line-height: 1.5;
}
.card li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
}

/* Annual report */
.report {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 56px;
	align-items: start;
}
.highlights {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}
.highlights li {
	background: var(--paper);
	border-left: 3px solid var(--accent);
	border-radius: 0 var(--radius) var(--radius) 0;
	padding: 18px 20px;
	font-size: 0.93rem;
	color: var(--ink-soft);
	line-height: 1.55;
}
.highlights h3 {
	font-family: var(--sans);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--navy);
	margin-bottom: 0.45em;
}
.report-card {
	position: sticky;
	top: 100px;
	background: var(--navy-deep);
	color: #fff;
	border-radius: var(--radius);
	padding: 36px 32px;
}
.report-card .doc-icon {
	width: 52px;
	height: 52px;
	color: var(--gold);
	margin-bottom: 18px;
}
.report-card h3 { color: #fff; font-size: 1.5rem; }
.report-card p { color: rgba(255,255,255,0.78); font-size: 0.95rem; }
.report-card .meta {
	font-size: 0.82rem;
	color: rgba(255,255,255,0.55);
	margin: 14px 0 0;
}

/* Gallery */
.gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.gallery figure { margin: 0; }
.gallery img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius);
	background: var(--line);
}
.gallery figcaption {
	margin-top: 10px;
	font-size: 0.9rem;
	color: var(--ink-soft);
}
.gallery figcaption strong { display: block; color: var(--navy-deep); font-weight: 600; }
.gallery-note { margin-top: 36px; color: var(--ink-soft); }

/* About */
.about {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 64px;
	align-items: start;
}
.portrait { margin: 0; }
.portrait img {
	width: 100%;
	aspect-ratio: 398 / 432;
	object-fit: cover;
	border-radius: var(--radius);
}
.portrait figcaption {
	margin-top: 14px;
	font-family: var(--serif);
	font-size: 1.1rem;
	color: var(--navy-deep);
}
.portrait figcaption span {
	display: block;
	font-family: var(--sans);
	font-size: 0.85rem;
	color: var(--muted);
}
.about-body p { color: var(--ink-soft); }
.milestones {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin: 32px 0;
	padding: 0;
	list-style: none;
}
.milestones li {
	border-top: 2px solid var(--navy);
	padding-top: 12px;
	font-size: 0.9rem;
	color: var(--ink-soft);
	line-height: 1.45;
}
.milestones strong {
	display: block;
	font-family: var(--serif);
	font-size: 1.8rem;
	color: var(--navy-deep);
	line-height: 1.1;
	margin-bottom: 4px;
}

/* Trustees */
.trustees {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 18px;
}
.trustees li {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px 20px;
}
.trustees .initials {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--navy);
	color: #fff;
	font-family: var(--serif);
	font-size: 1.1rem;
	letter-spacing: 0.03em;
}
.trustees li:first-child .initials { background: var(--accent); }
.trustees strong {
	display: block;
	font-family: var(--serif);
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--navy-deep);
	line-height: 1.3;
}
.trustees div span { font-size: 0.88rem; color: var(--muted); }
.section-alt .card { background: var(--paper); }

/* Contact */
.contact {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.contact .card h3 { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); }
.contact .card p { margin: 0; color: var(--ink-soft); }
.contact .card a { font-weight: 600; }

/* Footer */
.site-footer {
	background: var(--navy-deep);
	color: rgba(255,255,255,0.65);
	font-size: 0.88rem;
	padding: 32px 0;
}
.site-footer .container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
}
.site-footer a { color: #fff; }

/* Responsive */
@media (max-width: 1020px) {
	.cards { grid-template-columns: repeat(2, 1fr); }
	.report { grid-template-columns: 1fr; }
	.report-card { position: static; }
	.about { grid-template-columns: 260px 1fr; gap: 40px; }
	.trustees { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.nav {
		display: none;
		position: absolute;
		top: 72px;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: #fff;
		border-bottom: 1px solid var(--line);
		padding: 8px 24px 20px;
	}
	.nav.open { display: flex; }
	.nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
	.nav .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }

	.hero .container { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
	.facts ul { grid-template-columns: repeat(2, 1fr); }
	.gallery { grid-template-columns: repeat(2, 1fr); }
	.about { grid-template-columns: 1fr; }
	.portrait { max-width: 320px; }
	.contact { grid-template-columns: 1fr; }
	.trustees { grid-template-columns: repeat(2, 1fr); }
	.section { padding: 72px 0; }
}

@media (max-width: 560px) {
	body { font-size: 16px; }
	.container { padding: 0 16px; }
	.cards, .highlights, .gallery, .milestones, .trustees { grid-template-columns: 1fr; }
	.trustees li { flex-direction: row; align-items: center; padding: 16px 18px; }
	.hero-actions .btn { width: 100%; justify-content: center; }
}
