/* =========================================================================
   TIEN'HAMMA — main.css
   Warm, human, non-profit design system.
   Palette: terracotta + ochre + deep green + cream + charcoal.
   ========================================================================= */

/* -------- Design tokens -------- */
:root {
	/* Brand */
	--th-terracotta:    #C44536;
	--th-terracotta-dk: #9B3328;
	--th-terracotta-lt: #E0735F;
	--th-ochre:         #E6A23C;
	--th-ochre-dk:      #B97D24;
	--th-green:         #2F5D3E;
	--th-green-dk:      #1F4029;
	--th-green-lt:      #4E8862;

	/* Neutrals */
	--th-cream:    #FAF5EC;
	--th-cream-2:  #F2EADB;
	--th-sand:     #E8DDC8;
	--th-charcoal: #1F1A17;
	--th-ink:      #2C2620;
	--th-muted:    #6B5F54;
	--th-line:     #DCCFB8;
	--th-white:    #FFFFFF;

	/* Semantic */
	--bg:          var(--th-cream);
	--surface:     var(--th-white);
	--surface-2:   var(--th-cream-2);
	--text:        var(--th-charcoal);
	--text-muted:  var(--th-muted);
	--primary:     var(--th-terracotta);
	--primary-dk:  var(--th-terracotta-dk);
	--accent:      var(--th-ochre);
	--success:     var(--th-green);
	--border:      var(--th-line);

	/* Type */
	--font-serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
	--font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	/* Spacing */
	--gutter: 1.5rem;
	--section-y: clamp(4rem, 8vw, 7rem);

	/* Radius + shadow */
	--radius-sm: 0.5rem;
	--radius:    0.875rem;
	--radius-lg: 1.5rem;
	--radius-pill: 999px;
	--shadow-sm: 0 1px 2px rgba(31, 26, 23, 0.06);
	--shadow:    0 8px 28px rgba(31, 26, 23, 0.08);
	--shadow-lg: 0 24px 60px rgba(31, 26, 23, 0.16);

	/* Motion */
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* -------- Reset / base -------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--primary-dk); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4, h5 {
	font-family: var(--font-serif);
	font-weight: 700;
	line-height: 1.15;
	color: var(--th-charcoal);
	margin: 0 0 .6em;
	letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.eyebrow {
	font-family: var(--font-sans);
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--primary);
	margin-bottom: 1rem;
	display: inline-block;
}

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: -9999px; top: 8px; background: var(--primary);
	color: #fff; padding: 8px 16px; border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { left: 8px; }

/* -------- Layout primitives -------- */
.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}
.container-narrow { max-width: 760px; }

/* -------- Buttons -------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	padding: 0.95rem 1.6rem;
	border-radius: var(--radius-pill);
	font-weight: 600;
	font-size: 0.98rem;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary {
	background: var(--primary);
	color: #fff;
	box-shadow: 0 4px 14px rgba(196, 69, 54, 0.3);
}
.btn-primary:hover { background: var(--primary-dk); color: #fff; box-shadow: 0 8px 22px rgba(196, 69, 54, 0.4); }
.btn-ghost {
	background: transparent;
	border-color: var(--th-charcoal);
	color: var(--th-charcoal);
}
.btn-ghost:hover { background: var(--th-charcoal); color: #fff; }
.btn-light {
	background: rgba(255,255,255,0.92);
	color: var(--th-charcoal);
	border-color: rgba(255,255,255,0.92);
	backdrop-filter: blur(4px);
}
.btn-light:hover { background: #fff; color: var(--primary); }
.btn-donate .heart {
	color: var(--accent);
	font-size: 1.05em;
	animation: th-pulse 2.4s var(--ease) infinite;
}
@keyframes th-pulse {
	0%, 100% { transform: scale(1); }
	50%      { transform: scale(1.18); }
}

/* -------- Header / nav -------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(250, 245, 236, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.scrolled {
	border-bottom-color: var(--border);
	background: rgba(250, 245, 236, 0.95);
	box-shadow: var(--shadow-sm);
}
.nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding-top: 1rem;
	padding-bottom: 1rem;
}
.brand {
	display: inline-flex;
	flex-direction: column;
	gap: 0.1rem;
	color: var(--th-charcoal);
	text-decoration: none;
	line-height: 1;
}
.brand:hover { color: var(--primary); }
.brand-wordmark {
	font-family: var(--font-serif);
	font-size: 1.55rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}
.brand-wordmark-light { color: var(--th-cream); }
.brand-tagline {
	font-size: 0.7rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--text-muted);
	font-weight: 500;
}
.brand-logo { max-height: 56px; width: auto; }

.primary-nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-left: auto;
}
.nav-links {
	display: flex;
	gap: 1.6rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav-links a {
	color: var(--th-charcoal);
	font-weight: 500;
	font-size: 0.95rem;
	position: relative;
}
.nav-links a::after {
	content: "";
	position: absolute;
	bottom: -6px;
	left: 50%;
	width: 0;
	height: 2px;
	background: var(--primary);
	transition: all .25s var(--ease);
	transform: translateX(-50%);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

/* Subtle highlight on "Get involved" so the most action-oriented nav item
   reads as the primary call to engagement before the donor reaches Donate. */
.nav-item--involved > a { color: var(--primary); font-weight: 600; }
.nav-item--involved > a:hover { color: var(--primary-dk); }

/* ---- Activities dropdown ---- */
.nav-item--has-dropdown { position: relative; }
.nav-dropdown-trigger {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	color: var(--th-charcoal);
	font-family: var(--font-sans);
	font-weight: 500;
	font-size: 0.95rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	position: relative;
}
.nav-dropdown-trigger::after {
	content: "";
	position: absolute;
	bottom: -6px;
	left: 50%;
	width: 0;
	height: 2px;
	background: var(--primary);
	transition: all .25s var(--ease);
	transform: translateX(-50%);
}
.nav-dropdown-trigger:hover { color: var(--primary); }
.nav-dropdown-trigger:hover::after { width: 100%; }
.nav-dropdown-caret {
	font-size: 0.75em;
	transition: transform .2s var(--ease);
	line-height: 1;
}
.nav-dropdown-trigger[aria-expanded="true"] .nav-dropdown-caret { transform: rotate(180deg); }

.nav-dropdown {
	position: absolute;
	top: calc(100% + 14px);
	left: 50%;
	transform: translateX(-50%) translateY(-6px);
	min-width: 320px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	padding: 0.6rem;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
	z-index: 60;
}
.nav-dropdown::before {
	content: "";
	position: absolute;
	top: -8px;
	left: 50%;
	transform: translateX(-50%) rotate(45deg);
	width: 14px;
	height: 14px;
	background: var(--surface);
	border-left: 1px solid var(--border);
	border-top: 1px solid var(--border);
}
.nav-item--has-dropdown:hover > .nav-dropdown,
.nav-item--has-dropdown:focus-within > .nav-dropdown,
.nav-dropdown-trigger[aria-expanded="true"] + .nav-dropdown {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
	transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear 0s;
}
.nav-dropdown-item {
	display: block;
	padding: 0.85rem 1rem;
	border-radius: var(--radius-sm);
	color: var(--th-charcoal);
	text-decoration: none;
	transition: background .15s var(--ease), color .15s var(--ease);
}
.nav-dropdown-item:hover { background: var(--surface-2); color: var(--primary); }
.nav-dropdown-label {
	display: block;
	font-weight: 600;
	font-size: 0.98rem;
	line-height: 1.2;
}
.nav-dropdown-desc {
	display: block;
	margin-top: 0.3rem;
	font-size: 0.86rem;
	color: var(--text-muted);
	line-height: 1.4;
}

.nav-right {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.lang-switch {
	display: inline-flex;
	gap: 2px;
	background: var(--th-sand);
	border-radius: var(--radius-pill);
	padding: 4px;
}
.lang-switch a {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--th-charcoal);
	padding: 0.35rem 0.65rem;
	border-radius: var(--radius-pill);
	transition: all .2s var(--ease);
	letter-spacing: 0.06em;
}
.lang-switch a.active,
.lang-switch a[aria-current="page"] {
	background: var(--th-charcoal);
	color: var(--th-cream);
}

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	width: 38px;
	height: 38px;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	cursor: pointer;
	margin-left: auto;
}
.nav-toggle span {
	display: block;
	height: 2px;
	background: var(--th-charcoal);
	border-radius: 2px;
	transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------- Hero -------- */
.hero {
	position: relative;
	overflow: hidden;
	padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
	background: linear-gradient(180deg, var(--th-cream) 0%, var(--th-cream-2) 100%);
	isolation: isolate;
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(70% 60% at 90% 10%, rgba(230, 162, 60, 0.22), transparent 60%),
		radial-gradient(60% 50% at 10% 100%, rgba(47, 93, 62, 0.16),  transparent 60%);
	z-index: -1;
	pointer-events: none;
}
.hero-grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 4rem;
	align-items: center;
}
.hero-copy .eyebrow { color: var(--primary); }
.hero-title {
	font-size: clamp(2.6rem, 6vw, 4.8rem);
	margin: 0 0 1.3rem;
	font-weight: 800;
}
.hero-title em {
	font-style: italic;
	font-weight: 500;
	color: var(--primary);
}
.hero-subtitle {
	font-size: clamp(1.05rem, 1.4vw, 1.2rem);
	color: var(--text);
	max-width: 36em;
	margin-bottom: 2rem;
}
.hero-ctas {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}
.hero-stats {
	margin-top: 2.6rem;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.6rem;
	max-width: 480px;
}
.hero-stat {
	border-top: 2px solid var(--th-charcoal);
	padding-top: 0.9rem;
}
.hero-stat-num {
	font-family: var(--font-serif);
	font-size: 2.2rem;
	font-weight: 700;
	color: var(--primary);
	line-height: 1;
}
.hero-stat-label {
	font-size: 0.86rem;
	color: var(--text-muted);
	margin-top: 0.4rem;
}

.hero-visual {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	background: var(--th-sand);
}
.hero-visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Portrait mode (used when the hero falls back to the chairperson photo) —
   pull the face up so the bottom-third overlay never crops over it. */
.hero-visual-portrait img { object-position: center 25%; }
.hero-visual::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(31, 26, 23, 0.45));
}
.hero-badge {
	position: absolute;
	bottom: 1.5rem;
	left: 1.5rem;
	right: 1.5rem;
	color: #fff;
	z-index: 2;
}
.hero-badge-label {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	opacity: 0.85;
}
.hero-badge-title {
	font-family: var(--font-serif);
	font-size: 1.5rem;
	font-weight: 600;
	margin-top: 0.3rem;
}

/* Placeholder image (used when no hero image set) */
.hero-visual-placeholder {
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 20% 20%, var(--th-ochre), transparent 45%),
		radial-gradient(circle at 80% 70%, var(--th-green-lt), transparent 50%),
		linear-gradient(135deg, var(--th-terracotta-lt), var(--th-terracotta));
	display: grid;
	place-items: center;
}
.hero-visual-placeholder svg {
	width: 50%;
	color: rgba(255,255,255,0.6);
}

/* -------- Section primitives -------- */
.section {
	padding: var(--section-y) 0;
}
.section-tight { padding: 4rem 0; }
.section-alt   { background: var(--surface-2); }
.section-dark  { background: var(--th-charcoal); color: var(--th-cream); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--th-cream); }
.section-green {
	background: var(--th-green);
	color: var(--th-cream);
}
.section-green h1, .section-green h2, .section-green h3 { color: var(--th-cream); }

.section-head {
	max-width: 760px;
	margin: 0 auto 3.5rem;
	text-align: center;
}
.section-head h2 { margin-bottom: 1rem; }
.section-head p {
	font-size: 1.1rem;
	color: var(--text-muted);
}

/* -------- Mission -------- */
.mission { position: relative; }
.mission-grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 4rem;
	align-items: start;
}
.mission-pull {
	font-family: var(--font-serif);
	font-size: clamp(1.4rem, 2.2vw, 1.85rem);
	font-weight: 500;
	line-height: 1.35;
	color: var(--th-charcoal);
	margin-bottom: 1.5rem;
}
.mission-body { color: var(--text-muted); }
.mission-cta { margin-top: 1.5rem; }

/* Chairperson quote (homepage mission) */
.chairperson-quote {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1.4rem;
	align-items: start;
	margin: 2rem 0 1.5rem;
	padding: 1.5rem 1.5rem 1.5rem 0;
	border-left: 3px solid var(--primary);
	padding-left: 1.5rem;
}
.chairperson-photo {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--th-sand);
}
.chairperson-photo img { width: 100%; height: 100%; object-fit: cover; }
.chairperson-placeholder {
	width: 100%; height: 100%;
	display: grid; place-items: center;
	background: linear-gradient(135deg, var(--th-terracotta-lt), var(--th-terracotta));
	color: #fff;
	font-family: var(--font-serif);
	font-size: 1.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}
.chairperson-quote blockquote {
	margin: 0;
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 1.2rem;
	line-height: 1.4;
	color: var(--th-charcoal);
}
.chairperson-quote figcaption {
	font-family: var(--font-sans);
	font-style: normal;
	font-size: 0.88rem;
	color: var(--text-muted);
	margin-top: 0.7rem;
	line-height: 1.4;
}
.chairperson-quote figcaption strong { color: var(--th-charcoal); font-weight: 600; }

/* Team page — 3 cols on desktop fills perfectly for 9 members (3×3).
   Cascades to 2 on tablet, 1 on mobile. */
.team-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
}
.team-card {
	background: var(--surface);
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
	display: flex;
	flex-direction: column;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-photo {
	margin: 0;
	aspect-ratio: 4/5;
	overflow: hidden;
	background: var(--th-sand);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo-placeholder {
	width: 100%; height: 100%;
	display: grid; place-items: center;
	background: linear-gradient(135deg, var(--th-terracotta-lt), var(--th-terracotta));
	color: #fff;
	font-family: var(--font-serif);
	font-size: 3.5rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}
.team-body { padding: 1.5rem; }
.team-name { font-size: 1.3rem; margin-bottom: 0.3rem; }
.team-role {
	font-family: var(--font-sans);
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--primary);
	font-weight: 600;
	margin-bottom: 0.8rem;
}
.team-bio { color: var(--text-muted); font-size: 0.96rem; margin: 0; }

/* Causes page photos */
.cause-photo {
	margin: 0;
	aspect-ratio: 4/5;
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.cause-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Contact page form */
.contact-form-wrap .wpcf7 {
	background: var(--surface);
	border-radius: var(--radius-lg);
	padding: 2.5rem;
	box-shadow: var(--shadow-sm);
}
.contact-form-wrap .wpcf7-form p { margin: 0 0 1rem; }
.contact-form-wrap .wpcf7-form label { display: block; font-weight: 500; font-size: 0.92rem; margin-bottom: 0.4rem; color: var(--th-charcoal); }
.contact-form-wrap .wpcf7-form input[type="text"],
.contact-form-wrap .wpcf7-form input[type="email"],
.contact-form-wrap .wpcf7-form input[type="tel"],
.contact-form-wrap .wpcf7-form textarea,
.contact-form-wrap .wpcf7-form select {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1.5px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	font-family: var(--font-sans);
	font-size: 1rem;
	color: var(--th-charcoal);
	transition: border-color .2s var(--ease);
}
.contact-form-wrap .wpcf7-form textarea { min-height: 140px; resize: vertical; }
.contact-form-wrap .wpcf7-form input:focus,
.contact-form-wrap .wpcf7-form textarea:focus,
.contact-form-wrap .wpcf7-form select:focus {
	border-color: var(--primary);
	outline: none;
}
.contact-form-wrap .wpcf7-form input[type="submit"] {
	background: var(--primary);
	color: #fff;
	border: 0;
	padding: 1rem 2rem;
	border-radius: var(--radius-pill);
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	font-family: var(--font-sans);
	transition: background .2s var(--ease), transform .2s var(--ease);
}
.contact-form-wrap .wpcf7-form input[type="submit"]:hover { background: var(--primary-dk); transform: translateY(-1px); }
.contact-form-wrap .wpcf7-response-output {
	border-radius: var(--radius-sm);
	padding: 0.9rem 1.2rem !important;
	margin-top: 1rem !important;
	background: rgba(47, 93, 62, 0.08);
	border-color: var(--th-green) !important;
}

.contact-fallback {
	background: var(--surface);
	border-radius: var(--radius-lg);
	padding: 2.5rem;
	box-shadow: var(--shadow-sm);
}
.contact-fallback-hint {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
	font-size: 0.88rem;
	color: var(--text-muted);
}
.contact-fallback-hint a { color: var(--primary); text-decoration: underline; }

/* -------- Impact stats -------- */
.impact-strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	background: var(--th-charcoal);
	color: var(--th-cream);
	border-radius: var(--radius-lg);
	padding: 3rem 2.5rem;
	margin-top: -3rem;
	position: relative;
	z-index: 2;
	box-shadow: var(--shadow);
}
.impact-stat-num {
	font-family: var(--font-serif);
	font-size: clamp(2.4rem, 4vw, 3.4rem);
	font-weight: 700;
	color: var(--th-ochre);
	line-height: 1;
}
.impact-stat-label {
	font-size: 0.95rem;
	margin-top: 0.6rem;
	color: rgba(250, 245, 236, 0.78);
	line-height: 1.4;
}

/* -------- Values -------- */
.values-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}
.value-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 2rem;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.value-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow);
	border-color: var(--primary);
}
.value-icon {
	width: 56px;
	height: 56px;
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	display: grid;
	place-items: center;
	margin-bottom: 1.2rem;
	color: var(--primary);
	font-size: 1.6rem;
}
.value-card:nth-child(2) .value-icon { color: var(--th-green); }
.value-card:nth-child(3) .value-icon { color: var(--accent); }
.value-card:nth-child(4) .value-icon { color: var(--th-terracotta-dk); }
.value-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.value-card p { color: var(--text-muted); font-size: 0.96rem; margin: 0; }

/* -------- Campaigns -------- */
.campaigns-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
}
.campaign-card {
	background: var(--surface);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
	display: flex;
	flex-direction: column;
}
.campaign-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.campaign-media {
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, var(--th-ochre), var(--th-terracotta));
	position: relative;
	overflow: hidden;
}
.campaign-card:nth-child(2) .campaign-media {
	background: linear-gradient(135deg, var(--th-green), var(--th-green-lt));
}
.campaign-media-label {
	position: absolute;
	top: 1rem;
	left: 1rem;
	background: rgba(255,255,255,0.95);
	color: var(--th-charcoal);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	padding: 0.4rem 0.9rem;
	border-radius: var(--radius-pill);
}
.campaign-body {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.campaign-title { font-size: 1.6rem; margin-bottom: 0.6rem; }
.campaign-desc {
	color: var(--text-muted);
	margin-bottom: 1.5rem;
	flex: 1;
}
.progress {
	background: var(--surface-2);
	border-radius: var(--radius-pill);
	height: 12px;
	overflow: hidden;
	position: relative;
}
.progress-bar {
	height: 100%;
	background: linear-gradient(90deg, var(--accent), var(--primary));
	border-radius: var(--radius-pill);
	transition: width 1s var(--ease);
}
.progress-meta {
	display: flex;
	justify-content: space-between;
	font-size: 0.9rem;
	margin-top: 0.7rem;
	color: var(--text-muted);
}
.progress-meta strong { color: var(--th-charcoal); }
.campaign-footer {
	margin-top: 1.5rem;
	display: flex;
	gap: 0.8rem;
	flex-wrap: wrap;
}

/* -------- Get involved -------- */
.involved-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}
.involved-card {
	background: var(--surface);
	border-radius: var(--radius);
	padding: 2.2rem 2rem;
	border: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	transition: all .3s var(--ease);
}
.involved-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.involved-icon {
	font-size: 2.4rem;
	margin-bottom: 1.2rem;
}
.involved-card h3 { font-size: 1.4rem; margin-bottom: 0.7rem; }
.involved-card p { color: var(--text-muted); font-size: 0.97rem; margin-bottom: 1.5rem; flex: 1; }
.involved-card a {
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}
.involved-card a:hover { gap: 0.7rem; }

/* -------- News -------- */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}
.post-card {
	background: var(--surface);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
	display: flex;
	flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--surface-2);
}
.post-card-media img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform .5s var(--ease);
}
.post-card:hover .post-card-media img { transform: scale(1.05); }
.post-card-placeholder {
	width: 100%; height: 100%;
	background: linear-gradient(135deg, var(--th-sand), var(--th-cream-2));
}
.post-card-body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card-meta {
	display: flex; gap: 0.8rem; font-size: 0.82rem; color: var(--text-muted);
	margin-bottom: 0.7rem;
	text-transform: uppercase; letter-spacing: 0.1em;
}
.post-card-cat { color: var(--primary); font-weight: 600; }
.post-card-title { font-size: 1.2rem; margin-bottom: 0.6rem; line-height: 1.3; }
.post-card-title a { color: var(--th-charcoal); }
.post-card-title a:hover { color: var(--primary); }
.post-card-excerpt { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 1rem; flex: 1; }
.post-card-link { font-weight: 600; font-size: 0.92rem; }

/* -------- Partners -------- */
.partners-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
	align-items: center;
}
.partner-logo {
	height: 80px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	display: grid;
	place-items: center;
	padding: 1.2rem;
	font-family: var(--font-serif);
	font-weight: 600;
	color: var(--th-charcoal);
	text-align: center;
	font-size: 0.95rem;
	transition: all .25s var(--ease);
}
.partner-logo:hover { color: var(--primary); border-color: var(--primary); }

/* -------- CTA donate -------- */
.cta-donate {
	background: linear-gradient(135deg, var(--th-terracotta) 0%, var(--th-terracotta-dk) 100%);
	color: #fff;
	border-radius: var(--radius-lg);
	padding: clamp(3rem, 6vw, 5rem);
	margin: 0 var(--gutter);
	max-width: calc(1200px - 2 * var(--gutter));
	margin-left: auto;
	margin-right: auto;
	margin-bottom: var(--section-y);
	position: relative;
	overflow: hidden;
	text-align: center;
}
.cta-donate::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(60% 80% at 90% 0%, rgba(230, 162, 60, 0.35), transparent 60%),
		radial-gradient(60% 80% at 0% 100%, rgba(47, 93, 62, 0.3),  transparent 60%);
	z-index: 0;
}
.cta-donate > * { position: relative; z-index: 1; }
.cta-donate h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); }
.cta-donate p { color: rgba(255,255,255,0.92); font-size: 1.1rem; max-width: 600px; margin: 0 auto 2rem; }
.cta-donate .btn-light { font-size: 1.05rem; padding: 1.1rem 1.8rem; }

/* -------- Newsletter -------- */
.newsletter-section {
	padding: 3rem 0;
	background: var(--bg);
}
.newsletter-card {
	background: var(--th-charcoal);
	color: var(--th-cream);
	border-radius: var(--radius-lg);
	padding: clamp(2.5rem, 5vw, 4rem);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}
.newsletter-copy h2 { color: var(--th-cream); margin-bottom: 0.6rem; }
.newsletter-copy .eyebrow { color: var(--th-ochre); }
.newsletter-copy p { color: rgba(250, 245, 236, 0.75); margin: 0; }
.newsletter-form {
	display: flex;
	gap: 0.6rem;
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: var(--radius-pill);
	padding: 0.45rem;
}
.newsletter-form input[type="email"] {
	flex: 1;
	background: transparent;
	border: 0;
	color: var(--th-cream);
	font-family: var(--font-sans);
	font-size: 0.98rem;
	padding: 0 1.2rem;
	outline: none;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(250, 245, 236, 0.45); }
.newsletter-form .btn { padding: 0.8rem 1.4rem; }

/* -------- Footer -------- */
.site-footer {
	background: var(--th-charcoal);
	color: var(--th-cream);
	padding: 4rem 0 2rem;
}
.footer-top {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 3rem;
	padding-bottom: 3rem;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-mission {
	color: rgba(250, 245, 236, 0.7);
	font-size: 0.95rem;
	max-width: 38ch;
	margin: 1rem 0 1.5rem;
}
.footer-socials {
	display: flex;
	gap: 0.6rem;
}
.footer-socials a {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,0.18);
	display: grid;
	place-items: center;
	color: var(--th-cream);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: all .2s var(--ease);
}
.footer-socials a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-col h5 {
	color: var(--th-cream);
	font-family: var(--font-sans);
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	margin-bottom: 1.2rem;
}
.footer-col ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}
.footer-col a {
	color: rgba(250, 245, 236, 0.7);
	font-size: 0.95rem;
}
.footer-col a:hover { color: var(--th-cream); }

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	padding-top: 2rem;
	color: rgba(250, 245, 236, 0.5);
	font-size: 0.85rem;
}
.footer-bottom .footer-nav,
.footer-meta-links {
	display: flex;
	gap: 1.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}
.footer-bottom a { color: rgba(250, 245, 236, 0.6); }
.footer-bottom a:hover { color: var(--th-cream); }

/* -------- Page header / generic -------- */
.page-header {
	padding: clamp(5rem, 9vw, 7rem) 0 clamp(2.5rem, 4vw, 3.5rem);
	background: linear-gradient(180deg, var(--th-cream) 0%, var(--th-cream-2) 100%);
}
.page-title { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 1rem; }
.page-lead { font-size: 1.15rem; color: var(--text-muted); max-width: 60ch; }
.page-body { padding: 4rem 0; }
.page-feature {
	margin: 0 0 2.5rem;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.prose {
	font-size: 1.05rem;
	line-height: 1.75;
	color: var(--ink);
}
.prose h2 { margin-top: 2.4em; }
.prose h3 { margin-top: 2em; }
.prose blockquote {
	border-left: 4px solid var(--primary);
	padding: 0.5rem 0 0.5rem 1.5rem;
	font-family: var(--font-serif);
	font-style: italic;
	color: var(--text);
	font-size: 1.2rem;
	margin: 2rem 0;
}
.prose ul, .prose ol { padding-left: 1.5rem; margin: 1em 0; }
.prose li { margin: 0.4em 0; }
.prose a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

.post-list-section { padding: 4rem 0; }
.single-post-header { padding: clamp(4rem, 7vw, 6rem) 0 2rem; }
.single-post-meta {
	display: flex; gap: 1rem; text-transform: uppercase; letter-spacing: 0.12em;
	font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem;
}
.single-post-cat { color: var(--primary); font-weight: 600; }
.single-post-title { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.single-post-feature {
	margin: 2rem 0;
	border-radius: var(--radius-lg);
	overflow: hidden;
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}
.single-post-footer { margin: 3rem 0; padding-top: 2rem; border-top: 1px solid var(--border); }

.error-404 .page-title {
	font-size: clamp(5rem, 12vw, 9rem);
	color: var(--primary);
	margin-bottom: 0.5rem;
}
.cta-row { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }

.pagination {
	margin-top: 3rem;
	display: flex;
	justify-content: center;
	gap: 0.5rem;
}
.pagination .page-numbers {
	display: inline-grid; place-items: center;
	min-width: 40px; height: 40px; padding: 0 .8rem;
	border-radius: var(--radius-sm);
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--th-charcoal);
	font-weight: 500;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.empty-state { text-align: center; color: var(--text-muted); padding: 3rem 0; }

/* -------- Donation page -------- */
.donate-wrap {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 4rem;
	padding: 4rem 0;
}
.donate-form {
	background: var(--surface);
	border-radius: var(--radius-lg);
	padding: 2.5rem;
	box-shadow: var(--shadow);
}
.donate-cadence {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.5rem;
	background: var(--surface-2);
	border-radius: var(--radius-pill);
	padding: 4px;
	margin-bottom: 1.5rem;
}
.donate-cadence input { position: absolute; opacity: 0; pointer-events: none; }
.donate-cadence label {
	display: grid;
	place-items: center;
	padding: 0.75rem;
	border-radius: var(--radius-pill);
	cursor: pointer;
	font-weight: 600;
	font-size: 0.94rem;
	color: var(--text-muted);
	transition: all .2s var(--ease);
}
.donate-cadence input:checked + label {
	background: var(--th-charcoal);
	color: var(--th-cream);
}
.donate-presets {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.7rem;
	margin-bottom: 1rem;
}
.donate-presets input { position: absolute; opacity: 0; pointer-events: none; }
.donate-presets label {
	display: grid;
	place-items: center;
	padding: 1.2rem 0.5rem;
	border: 2px solid var(--border);
	border-radius: var(--radius);
	cursor: pointer;
	font-family: var(--font-serif);
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--th-charcoal);
	transition: all .2s var(--ease);
}
.donate-presets label:hover { border-color: var(--primary); }
.donate-presets input:checked + label {
	border-color: var(--primary);
	background: var(--primary);
	color: #fff;
}
.donate-custom {
	display: flex;
	align-items: center;
	border: 2px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 1.5rem;
}
.donate-custom-symbol {
	padding: 0 1rem;
	font-family: var(--font-serif);
	font-size: 1.4rem;
	color: var(--text-muted);
	background: var(--surface-2);
	height: 100%;
	display: grid;
	place-items: center;
	min-height: 56px;
}
.donate-custom input {
	flex: 1;
	border: 0;
	padding: 1rem;
	font-family: var(--font-serif);
	font-size: 1.4rem;
	color: var(--th-charcoal);
	background: transparent;
	outline: none;
}
.donate-meaning {
	background: var(--th-green);
	color: var(--th-cream);
	padding: 1rem 1.2rem;
	border-radius: var(--radius);
	font-size: 0.94rem;
	margin-bottom: 1.5rem;
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
}
.donate-meaning::before { content: "✦"; color: var(--th-ochre); font-size: 1.2rem; line-height: 1; }
.donate-submit { width: 100%; justify-content: center; font-size: 1.1rem; padding: 1.1rem; }
.donate-rails {
	margin-top: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	text-align: center;
}
.donate-rails-or {
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--text-muted);
	display: flex;
	align-items: center;
	gap: 0.8rem;
}
.donate-rails-or::before,
.donate-rails-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.donate-rails a { color: var(--th-charcoal); text-decoration: underline; }

.donate-side h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.donate-side .donate-bank {
	background: var(--surface-2);
	border-radius: var(--radius);
	padding: 1.5rem;
	font-size: 0.95rem;
	margin-bottom: 1.5rem;
}
.donate-side .donate-bank dt { font-weight: 600; color: var(--text-muted); margin-top: 0.6rem; }
.donate-side .donate-bank dt:first-child { margin-top: 0; }
.donate-side .donate-bank dd { margin: 0 0 0.5rem; color: var(--th-charcoal); font-family: ui-monospace, "SF Mono", Menlo, monospace; }

/* -------- Reveal on scroll --------
   Only hide content when JS has booted (html.has-js). Without JS — or while
   the script is still loading — content stays visible. This guarantees the
   page never looks empty even if main.js fails to execute. */
.has-js .reveal {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.has-js .reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* -------- Notice messages -------- */
.notice {
	padding: 0.9rem 1.2rem;
	border-radius: var(--radius);
	font-size: 0.95rem;
	margin-bottom: 1.5rem;
}
.notice-success { background: rgba(47, 93, 62, 0.1); color: var(--th-green-dk); border: 1px solid rgba(47, 93, 62, 0.25); }
.notice-error   { background: rgba(196, 69, 54, 0.1); color: var(--primary-dk); border: 1px solid rgba(196, 69, 54, 0.25); }

/* -------- Responsive -------- */
@media (max-width: 960px) {
	.hero-grid,
	.mission-grid,
	.newsletter-card,
	.donate-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
	.impact-strip { grid-template-columns: repeat(2, 1fr); padding: 2rem; }
	.values-grid { grid-template-columns: repeat(2, 1fr); }
	.campaigns-grid { grid-template-columns: 1fr; }
	.involved-grid { grid-template-columns: 1fr; }
	.post-grid { grid-template-columns: repeat(2, 1fr); }
	.partners-row { grid-template-columns: repeat(2, 1fr); }
	.footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
	.team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
	.nav-toggle { display: flex; order: 3; }
	/* Drop backdrop-filter on mobile — it creates a containing block that traps the fixed-position menu inside the header */
	.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--th-cream); }
	.primary-nav {
		position: fixed;
		inset: 72px 0 0;
		background: var(--th-cream);
		align-items: stretch;
		flex-direction: column;
		padding: 2rem var(--gutter);
		gap: 2rem;
		transform: translateY(-100vh);
		visibility: hidden;
		transition: transform .3s var(--ease), visibility 0s linear .3s;
		overflow-y: auto;
		z-index: 40;
	}
	.primary-nav.is-open {
		transform: translateY(0);
		visibility: visible;
		transition: transform .3s var(--ease), visibility 0s linear 0s;
	}
	.nav-links {
		flex-direction: column;
		gap: 1.2rem;
		width: 100%;
	}
	.nav-links a { font-size: 1.2rem; }
	.nav-dropdown-trigger { font-size: 1.2rem; }
	/* On mobile the dropdown stacks inline rather than floating */
	.nav-item--has-dropdown { width: 100%; }
	.nav-dropdown {
		position: static;
		transform: none;
		box-shadow: none;
		border: 0;
		background: var(--surface-2);
		padding: 0.5rem;
		margin-top: 0.7rem;
		min-width: 0;
		max-height: 0;
		overflow: hidden;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transition: max-height .25s var(--ease), padding .25s var(--ease), margin .25s var(--ease);
	}
	.nav-dropdown::before { display: none; }
	.nav-dropdown-trigger[aria-expanded="true"] + .nav-dropdown {
		max-height: 400px;
	}
	.nav-dropdown-item { padding: 0.7rem 0.9rem; }
	.nav-dropdown-label { font-size: 1rem; }
	.nav-right { flex-direction: column; align-items: stretch; width: 100%; gap: 1rem; }
	.nav-right .lang-switch { justify-content: center; }
	.btn-donate { justify-content: center; }
	.post-grid,
	.partners-row,
	.footer-top,
	.team-grid { grid-template-columns: 1fr; }
	.values-grid { grid-template-columns: 1fr; }
	.chairperson-quote { grid-template-columns: 1fr; }
	.chairperson-photo { width: 72px; height: 72px; }
	.donate-presets { grid-template-columns: repeat(2, 1fr); }
	.hero-stats { grid-template-columns: 1fr; }
	.cta-donate { margin-left: 1rem; margin-right: 1rem; padding: 2.5rem 1.5rem; }
	.impact-strip { margin-top: -2rem; padding: 1.8rem 1.4rem; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
	.reveal { opacity: 1; transform: none; }
	html { scroll-behavior: auto; }
}
