/*
  SAFE trust site — one small stylesheet, no build step, no external fonts.
  Palette (from the developer brief, checked for WCAG 2.2 AA contrast):
    navy   #10293A  — primary text, header/footer backgrounds
    teal   #0E5A56  — links, secondary accent
    amber  #A65700  — buttons and focus rings (white text on it is 5.3:1)
    amber-bright #F0A202 — decorative accents and pill badges with navy text (7.1:1)
    bg     #FAF6EF  — page background, warm light neutral
  System font stack only — nothing is fetched from anywhere.
*/

:root {
	--navy: #10293a;
	--navy-700: #163b52;
	--teal: #0e5a56;
	--amber: #a65700;
	--amber-bright: #f0a202;
	--bg: #faf6ef;
	--surface: #ffffff;
	--text: #1b2a33;
	--muted: #4b5d68;
	--border: #e3dcc9;
	--radius: 10px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari",
		"Noto Sans Gurmukhi", Helvetica, Arial, sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font);
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--teal);
	text-decoration-thickness: 2px;
}

a:hover {
	color: var(--amber);
}

/* Visible focus for every interactive element (WCAG 2.2 AA, 1.4.11/2.4.11).
   A single amber outline doesn't hit 3:1 against every background this site uses (navy header,
   amber buttons, light sections), so the indicator is a light halo + a dark ring: the halo
   always separates the ring from whatever is underneath, so the ring-vs-halo contrast (the pair
   that actually matters) stays well above 3:1 everywhere. */
a:focus-visible,
button:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px var(--bg), 0 0 0 5px var(--navy);
	border-radius: 4px;
}

.site-header a:focus-visible,
.site-footer a:focus-visible,
.btn-primary:focus-visible {
	box-shadow: 0 0 0 2px var(--navy), 0 0 0 5px var(--amber-bright);
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--amber);
	color: #fff;
	padding: 0.75rem 1.25rem;
	z-index: 100;
	border-radius: 0 0 8px 0;
	font-weight: 600;
}

.skip-link:focus {
	left: 0;
}

.wrap {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

/* Header */
.site-header {
	background: var(--navy);
	color: #fff;
}

.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 0.9rem;
	padding-bottom: 0.9rem;
	flex-wrap: wrap;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: 0.02em;
}

.brand:hover {
	color: var(--amber-bright);
}

.brand svg {
	width: 34px;
	height: 34px;
	flex-shrink: 0;
}

.main-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.25rem;
	font-size: 0.95rem;
}

.main-nav a {
	color: #e8eef2;
}

.main-nav a:hover,
.main-nav a:focus-visible {
	color: var(--amber-bright);
}

.lang-switch {
	display: flex;
	gap: 0.6rem;
	font-size: 0.9rem;
	align-items: center;
}

.lang-switch a {
	color: #cfd9de;
	padding: 0.2rem 0.5rem;
	border-radius: 6px;
}

.lang-switch a[aria-current="true"] {
	color: #fff;
	background: var(--navy-700);
	font-weight: 700;
}

/* Hero */
.hero {
	background: linear-gradient(180deg, var(--navy) 0%, var(--navy-700) 100%);
	color: #fff;
	padding: 3rem 0 3.5rem;
}

.hero h1 {
	font-size: clamp(1.6rem, 5vw, 2.4rem);
	line-height: 1.25;
	margin: 0 0 0.75rem;
}

.hero .working-name {
	display: inline-block;
	background: var(--amber-bright);
	color: var(--navy);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	padding: 0.3rem 0.65rem;
	border-radius: 999px;
	margin-bottom: 1rem;
}

.hero p {
	font-size: 1.05rem;
	max-width: 42rem;
	color: #e8eef2;
}

.cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	margin-top: 1.5rem;
}

.btn {
	display: inline-block;
	padding: 0.7rem 1.3rem;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
	border: 2px solid transparent;
}

.btn-primary {
	background: var(--amber);
	color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
	background: #8a4700;
	color: #fff;
}

.btn-ghost {
	background: transparent;
	color: #fff;
	border-color: #ffffff66;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
	border-color: #fff;
	color: var(--amber-bright);
}

/* Same outline style, for buttons placed on light section backgrounds instead of the hero/footer. */
.btn-outline {
	background: transparent;
	color: var(--navy);
	border-color: var(--navy);
}

.btn-outline:hover,
.btn-outline:focus-visible {
	color: var(--amber); /* #A65700 — 4.9:1 on --bg, 5.3:1 on white; AA-safe, unlike --amber-bright */
	border-color: var(--amber);
}

/* Sections */
main section {
	padding: 2.75rem 0;
	border-bottom: 1px solid var(--border);
}

main section:last-of-type {
	border-bottom: none;
}

main section:nth-of-type(even) {
	background: var(--surface);
}

h2 {
	font-size: clamp(1.35rem, 3.5vw, 1.8rem);
	color: var(--navy);
	margin: 0 0 1rem;
}

h3 {
	font-size: 1.1rem;
	color: var(--navy);
	margin: 0 0 0.4rem;
}

.lede {
	max-width: 42rem;
	font-size: 1.05rem;
	color: var(--muted);
}

/* Honest-note callout */
.notice {
	border-left: 4px solid var(--amber-bright);
	background: var(--bg);
	padding: 1rem 1.25rem;
	border-radius: 0 8px 8px 0;
	margin-top: 1.5rem;
	max-width: 42rem;
	color: var(--text);
}

main section:nth-of-type(even) .notice {
	background: var(--bg);
}

.notice p {
	margin: 0.3rem 0;
	font-size: 0.97rem;
}

/* Pillars grid */
.pillars {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.1rem;
	margin-top: 1.75rem;
}

@media (min-width: 640px) {
	.pillars {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 980px) {
	.pillars {
		grid-template-columns: repeat(3, 1fr);
	}
}

.pillar {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.25rem;
	box-shadow: 0 2px 6px rgba(16, 41, 58, 0.06);
}

main section:nth-of-type(even) .pillar {
	background: var(--bg);
}

.pillar .icon {
	width: 40px;
	height: 40px;
	color: var(--teal);
	margin-bottom: 0.6rem;
}

.pillar .tag {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--navy);
	background: var(--amber-bright);
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	margin-bottom: 0.5rem;
}

.pillar p {
	margin: 0;
	color: var(--muted);
	font-size: 0.95rem;
}

/* Initiative */
.initiative-card {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.5rem;
	margin-top: 1.5rem;
}

@media (min-width: 720px) {
	.initiative-card {
		flex-direction: row;
		align-items: center;
	}
}

.initiative-card .icon {
	width: 56px;
	height: 56px;
	color: var(--amber);
	flex-shrink: 0;
}

.initiative-card p {
	color: var(--muted);
	margin: 0.5rem 0 0;
}

/* Get involved */
.involve-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1.5rem;
}

/* Contact */
.contact-grid {
	display: grid;
	gap: 1.25rem;
	margin-top: 1.5rem;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.contact-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.contact-card {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.25rem;
	background: var(--surface);
}

main section:nth-of-type(odd) .contact-card {
	background: var(--surface);
}

.contact-card h3 {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.contact-card .icon {
	width: 22px;
	height: 22px;
	color: var(--teal);
}

address {
	font-style: normal;
	color: var(--muted);
	margin: 0;
}

/* Footer */
.site-footer {
	background: var(--navy);
	color: #cfd9de;
	padding: 2rem 0;
	font-size: 0.9rem;
}

.site-footer a {
	color: #e8eef2;
}

.site-footer a:hover,
.site-footer a:focus-visible {
	color: var(--amber-bright);
}

.footer-top {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.footer-note {
	max-width: 46rem;
	color: #aebbc2;
	font-size: 0.85rem;
}

.footer-links {
	display: flex;
	gap: 1.25rem;
	flex-wrap: wrap;
}

/* Utility */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* No sideways scroll at any width this site supports, down to 360px. */
html,
body {
	overflow-x: hidden;
}

/* ───────────────────────────────────────────────────────────
   Mobile menu: a toggle button + the same nav/lang links, laid
   out as a full-screen sheet instead of a row, under 640px.
   Desktop is untouched — .nav-panel is `display: contents` there,
   so the header's flex row sees main-nav and lang-switch exactly
   as it did before this existed.
   ─────────────────────────────────────────────────────────── */
.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin-left: auto;
	background: transparent;
	border: none;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
}

.nav-toggle svg {
	width: 24px;
	height: 24px;
}

.nav-toggle:hover {
	background: var(--navy-700);
}

.nav-panel {
	display: contents;
}

@media (max-width: 640px) {
	.site-header {
		position: sticky;
		top: 0;
		z-index: 80;
	}

	.site-header .wrap {
		padding-top: 0.6rem;
		padding-bottom: 0.6rem;
		flex-wrap: nowrap;
	}

	.brand {
		font-size: 1.05rem;
	}

	.brand svg {
		width: 28px;
		height: 28px;
	}

	.nav-toggle {
		display: flex;
	}

	.nav-panel {
		display: none;
		flex-direction: column;
		position: fixed;
		inset: 0;
		padding: 5.25rem 1.5rem 2rem;
		padding-bottom: calc(2rem + env(safe-area-inset-bottom));
		background: var(--navy);
		overflow-y: auto;
		z-index: 70;
	}

	.nav-panel.open {
		display: flex;
	}

	.nav-panel .main-nav {
		flex-direction: column;
		gap: 0;
		width: 100%;
		font-size: 1.05rem;
	}

	.nav-panel .main-nav a {
		display: flex;
		align-items: center;
		min-height: 56px;
		padding: 0.4rem 0;
		font-size: 1.3rem;
		font-weight: 600;
		text-decoration: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	}

	.nav-panel .lang-switch a:not([aria-current="true"]) {
		text-decoration: none;
	}

	/* The sheet sits inside the header, so the logo and the menu button must stay above it —
	   the button closes the sheet again. */
	.site-header .brand,
	.nav-toggle {
		position: relative;
		z-index: 90;
	}

	.nav-panel .lang-switch {
		margin-top: 1.5rem;
		gap: 0.6rem;
	}

	.nav-panel .lang-switch a {
		padding: 0.6rem 0.9rem;
		font-size: 1rem;
		min-height: 44px;
		display: flex;
		align-items: center;
	}

	body.nav-open {
		overflow: hidden;
	}
}

/* ───────────────────────────────────────────────────────────
   Hero, CTAs: a tighter, bigger, balanced heading and full-width
   stacked buttons at phone widths. Desktop rules above are unchanged.
   ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
	.hero {
		padding: 1.75rem 0 2rem;
	}

	.hero h1 {
		font-size: clamp(1.9rem, 9vw, 2.3rem);
		text-wrap: balance;
	}

	.hero p {
		font-size: 0.98rem;
		max-width: 26rem;
	}

	.cta-row,
	.involve-row {
		flex-direction: column;
		gap: 0.75rem;
	}

	.cta-row .btn,
	.involve-row .btn {
		width: 100%;
		min-height: 48px;
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
		font-size: 1rem;
	}
}

/* ───────────────────────────────────────────────────────────
   Focus-area cards: icon left, title + text right, one column,
   less padding — instead of the icon-on-top card used from 640px up.
   ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
	.pillar {
		display: flex;
		align-items: flex-start;
		gap: 0.85rem;
		padding: 0.9rem;
	}

	.pillar .icon {
		width: 30px;
		height: 30px;
		margin-bottom: 0;
		margin-top: 0.15rem;
		flex-shrink: 0;
	}

	.pillar-body {
		flex: 1;
		min-width: 0;
	}

	.pillar .tag {
		margin-bottom: 0.3rem;
	}

	.initiative-card {
		padding: 1.1rem;
	}
}

/* ───────────────────────────────────────────────────────────
   Contact cards: tap-to-email and tap-to-open-map, each a full
   44px+ tap target. Cards are already one column under 640px
   (.contact-grid's own rule); this only adds the map link's style.
   ─────────────────────────────────────────────────────────── */
.map-link {
	display: flex;
	align-items: center;
	min-height: 44px;
	color: inherit;
	text-decoration: none;
	border-radius: 8px;
}

.map-link address {
	text-decoration: underline;
	text-decoration-color: var(--border);
}

.map-link:hover,
.map-link:focus-visible {
	color: var(--amber);
}

.map-link:hover address,
.map-link:focus-visible address {
	text-decoration-color: var(--amber);
}

.contact-card p a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* ───────────────────────────────────────────────────────────
   Sticky bottom action bar (phones only): Volunteer + Partner,
   always reachable, hidden while the enquiry dialog is open or
   while the Get-involved section (which has the same two actions
   already) is on screen — forms.js toggles `.hide` for both.
   ─────────────────────────────────────────────────────────── */
.mobile-cta-bar {
	display: none;
}

@media (max-width: 640px) {
	.mobile-cta-bar {
		display: flex;
		gap: 0.6rem;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 60;
		background: var(--surface);
		border-top: 1px solid var(--border);
		padding: 0.6rem 0.75rem;
		padding-bottom: calc(0.6rem + env(safe-area-inset-bottom));
		box-shadow: 0 -4px 16px rgba(16, 41, 58, 0.12);
		transition: transform 0.18s ease;
	}

	.mobile-cta-bar.hide {
		transform: translateY(110%);
	}

	.mobile-cta-bar .btn {
		flex: 1;
		min-height: 44px;
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
		padding: 0.6rem 0.5rem;
	}

	.btn-outline-bar {
		background: transparent;
		color: var(--navy);
		border-color: var(--navy);
	}

	.btn-outline-bar:hover,
	.btn-outline-bar:focus-visible {
		color: var(--amber);
		border-color: var(--amber);
	}

	/* Room at the foot of the page so the fixed bar never sits over real content. */
	body {
		padding-bottom: calc(64px + env(safe-area-inset-bottom));
	}
}

/* ───────────────────────────────────────────────────────────
   Volunteer / Partner enquiry dialog (forms.js builds the markup;
   this is its only styling). Centered card on desktop/tablet, a
   full-screen bottom sheet on phones.
   ─────────────────────────────────────────────────────────── */
.safe-dialog {
	border: none;
	border-radius: 14px;
	padding: 0;
	width: min(30rem, calc(100vw - 2.5rem));
	max-height: 85vh;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(16, 41, 58, 0.35);
	display: flex;
	flex-direction: column;
}

.safe-dialog::backdrop {
	background: rgba(16, 41, 58, 0.55);
}

.safe-dialog-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 1.25rem;
	border-bottom: 1px solid var(--border);
	flex-shrink: 0;
}

.safe-dialog-head h2 {
	margin: 0;
	font-size: 1.2rem;
}

.safe-dialog-close {
	background: transparent;
	border: none;
	color: var(--muted);
	font-size: 1.4rem;
	line-height: 1;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	cursor: pointer;
	flex-shrink: 0;
}

.safe-dialog-close:hover {
	color: var(--navy);
	background: var(--bg);
}

.safe-dialog-body {
	padding: 1.1rem 1.25rem;
	overflow-y: auto;
	flex: 1;
}

/* Lives as the last child inside the form, inside .safe-dialog-body — sticky to that body's own
   scroll, so the submit button stays reachable without the dialog needing a 3-way flex split. */
.safe-dialog-foot {
	position: sticky;
	bottom: 0;
	margin: 1rem -1.25rem -1.1rem;
	padding: 1rem 1.25rem;
	background: #fff;
	border-top: 1px solid var(--border);
}

.safe-kind-toggle {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.1rem;
}

.safe-kind-toggle button {
	flex: 1;
	min-height: 44px;
	padding: 0.55rem;
	border: 2px solid var(--border);
	border-radius: 8px;
	background: #fff;
	font-weight: 700;
	color: var(--navy);
	cursor: pointer;
}

.safe-kind-toggle button[aria-pressed="true"] {
	border-color: var(--amber);
	background: var(--amber);
	color: #fff;
}

.safe-field {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	margin-bottom: 0.9rem;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--navy);
}

.safe-field input,
.safe-field textarea {
	font-size: 16px; /* never smaller: iOS zooms the page on focus below 16px */
	font-weight: 400;
	font-family: var(--font);
	color: var(--text);
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: #fff;
}

.safe-field textarea {
	resize: vertical;
	min-height: 4.5rem;
}

.safe-field input:focus,
.safe-field textarea:focus {
	outline: none;
	border-color: var(--teal);
	box-shadow: 0 0 0 3px rgba(14, 90, 86, 0.15);
}

.safe-field.has-error input,
.safe-field.has-error textarea {
	border-color: #b3261e;
}

.safe-field-error {
	color: #b3261e;
	font-size: 0.82rem;
	font-weight: 600;
}

.safe-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-weight: 400;
	font-size: 0.92rem;
	color: var(--text);
	margin-bottom: 0.9rem;
}

.safe-consent input {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	margin-top: 0.1rem;
}

.safe-consent a {
	color: var(--teal);
}

.safe-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.safe-submit {
	width: 100%;
	min-height: 48px;
	border: 2px solid transparent;
	border-radius: 8px;
	background: var(--amber);
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.safe-submit:hover,
.safe-submit:focus-visible {
	background: #8a4700;
}

.safe-submit[disabled] {
	opacity: 0.7;
	cursor: default;
}

.safe-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: safe-spin 0.7s linear infinite;
}

@keyframes safe-spin {
	to {
		transform: rotate(360deg);
	}
}

.safe-error-banner {
	background: #fdeceb;
	border: 1px solid #b3261e;
	color: #7a1a13;
	border-radius: 8px;
	padding: 0.65rem 0.85rem;
	font-size: 0.9rem;
	margin-bottom: 0.9rem;
}

.safe-success {
	text-align: center;
	padding: 1rem 0;
}

.safe-success svg {
	width: 44px;
	height: 44px;
	color: var(--teal);
	margin: 0 auto 0.75rem;
}

.safe-success p {
	color: var(--text);
	font-size: 1.02rem;
	margin: 0;
}

@media (max-width: 640px) {
	.safe-dialog {
		position: fixed;
		inset: auto 0 0 0;
		margin: 0;
		width: 100%;
		max-width: none;
		max-height: 92vh;
		border-radius: 16px 16px 0 0;
	}

	.safe-dialog-foot {
		padding-bottom: calc(1rem + env(safe-area-inset-bottom));
	}

	.safe-field select {
		font-size: 16px;
	}
}

/* The form toggles fields with the hidden attribute; never let a display rule override it. */
[hidden] {
	display: none !important;
}
