/*
Theme Name: Hempstead Education Foundation
Theme URI: https://hempsteadeducationfoundation.org
Author: Hempstead Education Foundation
Description: Custom theme for the Hempstead Education Foundation. Home and About pages with Givebutter giving.
Version: 2.4.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: hempstead-foundation
*/

:root {
	--green-900: #013d16;
	--green-700: #035c23;
	--green-500: #2f7d45;
	--mint: #e8f0e7;
	--paper: #fbfcf8;
	--ink: #16241a;
	--muted: #4a5a4f;
	--gold: #c9a24b;
	--line: #cfdccd;

	--serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--script: "Kaushan Script", "Brush Script MT", cursive;
	--sans: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;

	--wrap: 1160px;
	--gutter: clamp(20px, 4vw, 40px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-variant-numeric: lining-nums;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-700); }

h1, h2, h3 { font-family: var(--serif); line-height: 1.12; margin: 0; color: var(--green-900); }

p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--green-900); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
	display: inline-block;
	background: var(--green-700);
	color: #fff;
	font-family: var(--sans);
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	padding: 15px 28px;
	border-radius: 999px;
	border: 2px solid var(--green-700);
	transition: background-color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--green-900); border-color: var(--green-900); }
.btn--ghost { background: transparent; color: var(--green-900); border-color: var(--green-900); }
.btn--ghost:hover { background: var(--green-900); color: #fff; }
.btn--small { padding: 9px 22px; font-size: .95rem; }

.text-link { font-weight: 700; text-underline-offset: 4px; word-break: break-word; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251, 252, 248, .94);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__seal { width: 56px; height: auto; }
.brand__name { font-family: var(--serif); font-weight: 800; color: var(--green-900); font-size: 1.05rem; line-height: 1.15; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero__intro { font-weight: 600; color: var(--green-700); margin-bottom: 18px; font-size: 1.05rem; }
.hero__title { display: flex; flex-direction: column; }
.hero__line { font-weight: 900; font-size: clamp(2.8rem, 6.4vw, 5.4rem); letter-spacing: -.01em; line-height: 1; }
.hero__script {
	font-family: var(--script);
	font-weight: 400;
	color: var(--green-700);
	font-size: clamp(4rem, 10.5vw, 8.6rem);
	line-height: 1.05;
	margin: -.02em 0 0 -.04em;
	transform: rotate(-4deg);
	transform-origin: left center;
	padding-bottom: .12em;
	background-image: linear-gradient(var(--gold), var(--gold));
	background-repeat: no-repeat;
	background-position: 0.3em 92%;
	background-size: 78% 5px;
	width: fit-content;
	padding-right: .3em;
}
.hero__lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; margin: 26px 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__art { position: relative; justify-self: center; width: min(100%, 460px); }
.hero__art::before {
	content: ""; position: absolute; inset: 6% 5% 7% 5%;
	border-radius: 50%; background: var(--mint);
}
.hero__art img { position: relative; width: 100%; }

@media (prefers-reduced-motion: no-preference) {
	.hero__script { animation: sweep 1.1s cubic-bezier(.2, .7, .2, 1) .15s both; }
	@keyframes sweep {
		from { opacity: 0; transform: rotate(-4deg) translateX(-18px); clip-path: inset(0 100% 0 0); }
		to { opacity: 1; transform: rotate(-4deg) translateX(0); clip-path: inset(0 0 0 0); }
	}
}

/* Motto band */
.motto { background: var(--green-900); color: #fff; padding: clamp(40px, 6vw, 64px) 0; text-align: center; }
.motto__text { font-family: var(--script); font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.2; margin: 0 auto; }

/* Section basics */
.section-title { font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); }
.section-lede { color: var(--muted); font-size: 1.15rem; margin-top: 12px; max-width: 36em; }

/* Pillars */
.pillars { padding: clamp(64px, 9vw, 112px) 0; text-align: center; }
.pillars .section-lede { margin-left: auto; margin-right: auto; }
.pillars__list {
	list-style: none; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, 1fr);
}
.pillar { padding: 8px clamp(16px, 2.4vw, 32px); }
.pillar + .pillar { border-left: 2px solid var(--line); }
.pillar__icon { display: block; width: 60px; height: 60px; margin: 0 auto 18px; color: var(--green-700); }
.pillar__icon svg { width: 100%; height: 100%; }
.pillar__title { font-size: 1.22rem; font-weight: 800; margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: 1rem; margin: 0; }

/* Founding */
.founding { background: var(--mint); padding: clamp(64px, 9vw, 112px) 0; }
.founding__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.founding__flyer { margin: 0; justify-self: center; max-width: 420px; }
.founding__flyer img { border-radius: 10px; box-shadow: 0 24px 48px -24px rgba(1, 61, 22, .45); }
.founding__copy p { font-size: 1.15rem; max-width: 32em; }
.founding__copy .section-title { margin-bottom: 22px; }
.founding__copy .btn { margin-top: 10px; }

/* Contact */
.contact { padding: clamp(56px, 8vw, 96px) 0; text-align: center; }
.contact__title { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.contact__email {
	font-family: var(--serif); font-style: italic; font-weight: 700;
	font-size: clamp(1rem, 4.2vw, 1.9rem);
	text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px;
	word-break: break-word;
}

/* About */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.page-hero__title { font-family: var(--script); font-weight: 400; color: var(--green-700); font-size: clamp(3rem, 7vw, 5.2rem); line-height: 1.1; margin-bottom: 18px; }
.mission { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 3.1vw, 2.35rem); line-height: 1.32; color: var(--green-900); margin: 0; max-width: 30em; }

.fund { padding: clamp(64px, 9vw, 104px) 0; }
.fund__list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 72px); }
.fund__item { display: flex; gap: 20px; padding: 28px 0; border-top: 2px solid var(--line); }
.fund__icon { flex: none; width: 44px; height: 44px; color: var(--green-700); }
.fund__icon svg { width: 100%; height: 100%; }
.fund__item h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 8px; }
.fund__item p { color: var(--muted); margin: 0; }

.involved { background: var(--mint); padding: clamp(64px, 9vw, 104px) 0; }
.involved__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); margin-top: 36px; }
.involved__item { background: var(--paper); border-radius: 14px; padding: clamp(28px, 4vw, 44px); border-top: 5px solid var(--green-700); }
.involved__item h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 10px; }
.involved__item p { color: var(--muted); }


/* Founding Member levels */
.levels { padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 8vw, 96px); }
.levels__head { text-align: center; }
.levels__head .section-lede { margin-left: auto; margin-right: auto; }
.tiers {
	list-style: none; padding: 0; margin: clamp(40px, 6vw, 60px) 0 0;
	display: grid; grid-template-columns: 1.25fr repeat(4, 1fr);
	border: 2px solid var(--green-700); border-radius: 14px; overflow: hidden;
	background: #fff;
}
.tier { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: clamp(24px, 3vw, 36px) 14px; }
.tier + .tier { border-left: 1px solid var(--line); }
.tier__name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; line-height: 1.2; color: var(--green-900); min-height: 2.4em; display: flex; align-items: center; justify-content: center; }
.tier__amount { font-family: var(--serif); font-weight: 900; font-size: clamp(1.7rem, 2.6vw, 2.2rem); color: var(--green-700); line-height: 1; font-variant-numeric: lining-nums; padding-top: 14px; border-top: 2px solid var(--gold); min-width: 3.4em; }
.tier--top { background: var(--green-900); }
.tier--top .tier__name { color: #fff; font-size: 1.35rem; }
.tier--top .tier__amount { color: #fff; font-size: clamp(2rem, 3.2vw, 2.7rem); }

.perks__title { text-align: center; font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 800; margin: clamp(56px, 7vw, 80px) 0 32px; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.perk { padding: 4px clamp(14px, 2vw, 28px); }
.perk + .perk { border-left: 2px solid var(--line); }
.perk__icon { display: block; width: 48px; height: 48px; margin: 0 auto 14px; color: var(--green-700); }
.perk__icon svg { width: 100%; height: 100%; }
.perk h4 { font-family: var(--serif); font-size: 1.15rem; font-weight: 800; color: var(--green-900); margin: 0 0 6px; }
.perk p { color: var(--muted); font-size: .98rem; margin: 0; }

.once { text-align: center; margin: clamp(48px, 6vw, 72px) auto 0; max-width: 40em; padding-top: 32px; border-top: 2px solid var(--line); }
.once__title { font-family: var(--serif); font-weight: 800; font-size: 1.35rem; color: var(--green-900); margin-bottom: 6px; }
.once p:last-child { color: var(--muted); margin: 0; }

.ask { background: var(--green-900); padding: clamp(56px, 8vw, 88px) 0; text-align: center; }
.ask__question { font-family: var(--script); color: #fff; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.25; margin: 0 auto 32px; max-width: 18em; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--green-900); }
.btn--gold:hover { background: #fff; border-color: #fff; color: var(--green-900); }

.page-hero__sub { font-weight: 600; color: var(--green-700); margin-bottom: 22px; }

@media (max-width: 900px) {
	.tiers { grid-template-columns: 1fr; }
	.tier { flex-direction: row; justify-content: space-between; text-align: left; padding: 18px 24px; }
	.tier + .tier { border-left: 0; border-top: 1px solid var(--line); }
	.tier__name { min-height: 0; justify-content: flex-start; }
	.tier__amount { border-top: 0; padding-top: 0; min-width: 0; text-align: right; }
	.tier--top .tier__amount { font-size: 2rem; }
	.perks { grid-template-columns: 1fr 1fr; row-gap: 36px; }
	.perk:nth-child(3) { border-left: 0; }
}
@media (max-width: 460px) {
	.perks { grid-template-columns: 1fr; }
	.perk + .perk { border-left: 0; border-top: 2px solid var(--line); padding-top: 28px; }
	.tier__name { font-size: 1.05rem; }
	.tier__amount { font-size: 1.5rem; }
}


/* Founding board */
.board { padding: clamp(64px, 9vw, 104px) 0 clamp(64px, 9vw, 104px); border-bottom: 1px solid var(--line); }
.board__head { max-width: 760px; }
.board__eyebrow { margin: 0 0 12px; font-weight: 700; font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.board__lede { font-size: 1.15rem; color: var(--muted); margin-top: 18px; }
.board__feature { position: relative; z-index: 2; display: grid; grid-template-columns: 1.45fr 1fr; margin: clamp(36px, 5vw, 56px) 0 0; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #0a5a27, #033d18); border: 2px solid rgba(201, 162, 75, .75); box-shadow: 0 34px 70px -30px rgba(0, 0, 0, .55); }
.board__feature img { display: block; width: 100%; height: 100%; min-height: 360px; object-fit: cover; object-position: center 60%; }
.board__badge { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 48px); border-left: 4px solid var(--gold); }
.board__badge span { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.board__badge strong { display: block; font-family: var(--serif); font-weight: 900; font-size: clamp(2rem, 3.6vw, 2.9rem); color: #fff; line-height: 1.05; margin-top: 6px; }
.board__badge p { margin: 18px 0 0; color: #cfe0d2; font-size: 1.05rem; line-height: 1.6; }

.board__role { position: relative; margin: clamp(-60px, -6vw, -40px) 0 0; padding: clamp(100px, 11vw, 140px) 0 clamp(56px, 7vw, 80px); background: var(--green-900); color: #fff; }
.board__role::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, #8a6a24, #f3dc97 30%, #c9a24b 60%, #8a6a24); opacity: 0; }
.board__role-title { font-family: var(--serif); font-weight: 900; font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: #fff; margin-bottom: 28px; }
.role-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.role { padding: 26px 24px 28px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(201, 162, 75, .4); box-shadow: inset 0 4px 0 #c9a24b; transition: transform .25s ease, background .25s ease; }
.role:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .1); }
.role__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--green-900); margin-bottom: 18px; }
.role__icon svg { width: 24px; height: 24px; }
.role h4 { font-family: var(--serif); font-weight: 800; font-size: 1.3rem; color: #fff; margin: 0 0 8px; }
.role p { margin: 0; color: #cfe0d2; font-size: .98rem; }

.board .board__photos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); margin-top: clamp(48px, 6vw, 72px); align-items: start; }
.board__photo { margin: 0; }
.board__photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-position: center; object-fit: cover; border-radius: 12px; box-shadow: 0 24px 48px -24px rgba(1, 61, 22, .45); }
.board__photo figcaption { font-size: .92rem; color: var(--muted); margin-top: 14px; padding-left: 12px; border-left: 3px solid var(--gold); }
@media (max-width: 980px) {
	.role-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
	.board .board__photos, .role-list { grid-template-columns: 1fr; }
	.board__feature { grid-template-columns: 1fr; }
	.board__feature img { min-height: 0; aspect-ratio: 4 / 3; }
	.board__badge { border-left: 0; border-top: 4px solid var(--gold); }
	.board__role { margin-top: -30px; padding-top: 80px; }
}


/* Fallback pages */
.basic { padding: clamp(56px, 8vw, 96px) 0; }
.basic__inner { max-width: 760px; }
.entry + .entry { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }
.entry__title { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 20px; }
.entry__title a { color: inherit; text-decoration: none; }

/* Footer */
.site-footer { background: var(--green-900); color: #e3ece2; }
.site-footer a { color: #fff; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; padding-top: 64px; padding-bottom: 48px; }
.site-footer__brand { display: flex; align-items: center; gap: 24px; }
.site-footer__seal { flex: none; width: 112px; height: 112px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; }
.site-footer__seal img { width: 92px; }
.site-footer__motto { font-family: var(--script); font-size: 1.7rem; line-height: 1.25; color: #fff; margin: 0; max-width: 12em; }
.site-footer__cols { display: flex; gap: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.site-footer__cols div { display: flex; flex-direction: column; gap: 8px; }
.site-footer__cols a { text-decoration: none; }
.site-footer__cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__head { font-family: var(--sans); font-size: .95rem; font-weight: 700; color: var(--gold); margin-bottom: 6px; }
.site-footer__base { border-top: 1px solid rgba(255, 255, 255, .16); padding: 22px 0 26px; text-align: center; }
.site-footer__creed { font-family: var(--serif); letter-spacing: .22em; text-transform: uppercase; font-size: .82rem; color: #fff; margin: 0 0 6px; }
.site-footer__creed span { color: var(--gold); margin: 0 .5em; }
.site-footer__legal { font-size: .88rem; color: #b9cab8; margin: 0; }

/* Responsive */
@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__art { width: min(72%, 340px); grid-row: 1; }
	.pillars__list { grid-template-columns: 1fr 1fr; row-gap: 40px; }
	.pillar:nth-child(3) { border-left: 0; }
	.founding__inner { grid-template-columns: 1fr; }
	.founding__flyer { max-width: 340px; }
}
@media (max-width: 640px) {
	.brand__name { font-size: .92rem; }
	.brand__seal { width: 46px; }
	.site-nav { gap: 14px; }
	.fund__list, .involved__grid { grid-template-columns: 1fr; }
	.site-footer__brand { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 460px) {
	.brand__name { display: none; }
	.pillars__list { grid-template-columns: 1fr; }
	.pillar + .pillar { border-left: 0; border-top: 2px solid var(--line); padding-top: 32px; }
	.pillar { padding-bottom: 8px; }
	.hero__actions .btn { width: 100%; text-align: center; }
}

/* ============================================================
 * Ask the Foundation chat
 * ============================================================ */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border: 2px solid var(--gold); border-radius: 999px; background: var(--green-900); color: #fff; font-family: var(--sans); font-weight: 700; font-size: 1rem; cursor: pointer; box-shadow: 0 18px 40px -14px rgba(1, 61, 22, .6); transition: transform .2s, background .2s; }
.chat-fab:hover { transform: translateY(-2px); background: var(--green-700); }
.chat-fab svg { color: var(--gold); }
.chat-open .chat-fab { opacity: 0; pointer-events: none; }

.chat-panel { position: fixed; right: 22px; bottom: 22px; z-index: 95; width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 44px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 90px -20px rgba(1, 61, 22, .45); }
.chat-panel[hidden] { display: none; }
.chat-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--green-900); color: #fff; border-bottom: 3px solid var(--gold); }
.chat-panel__who { display: flex; align-items: center; gap: 12px; }
.chat-panel__who img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; }
.chat-panel__title { margin: 0; font-family: var(--serif); font-weight: 800; font-size: 1.15rem; color: #fff; }
.chat-panel__sub { margin: 0; font-size: .82rem; color: #cfe0d2; }
.chat-panel__close { background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.chat-panel__close:hover { background: rgba(255, 255, 255, .24); }
.chat-panel__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--mint); }
.chat-panel .msg { max-width: 88%; padding: 11px 15px; border-radius: 14px; font-size: .98rem; line-height: 1.55; }
.chat-panel .msg p { margin: 0; }
.chat-panel .msg p + p, .chat-panel .msg p + ol, .chat-panel .msg p + ul, .chat-panel .msg ol + p, .chat-panel .msg ul + p { margin-top: 8px; }
.chat-panel .msg ol, .chat-panel .msg ul { margin: 0; padding-left: 20px; }
.chat-panel .msg li + li { margin-top: 3px; }
.chat-panel .msg--bot { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-panel .msg--bot b { color: var(--green-700); }
.chat-panel .msg--bot a { color: var(--green-700); font-weight: 600; word-break: break-all; }
.chat-panel .msg--user { align-self: flex-end; background: var(--green-700); color: #fff; border-bottom-right-radius: 4px; }
.chat-panel .msg--note { background: #fbf6e8; border-color: #eadcb4; }
.chat-panel .msg__book { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--green-700); }
.chat-panel .msg--typing { display: inline-flex; gap: 5px; width: max-content; }
.chat-panel .msg--typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--green-700); opacity: .3; animation: hef-dots 1.2s infinite; }
.chat-panel .msg--typing span:nth-child(2) { animation-delay: .15s; }
.chat-panel .msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes hef-dots { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.chat-starters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chat-starters button { background: #fff; border: 1.5px solid var(--green-700); color: var(--green-700); font: inherit; font-weight: 600; font-size: .9rem; padding: 7px 13px; border-radius: 999px; cursor: pointer; }
.chat-starters button:hover { background: var(--green-700); color: #fff; }
.chat-panel__form { display: flex; align-items: flex-end; gap: 10px; margin: 0; padding: 12px 14px; border-top: 1px solid var(--line); background: #fff; }
.chat-panel__form textarea { flex: 1; resize: none; font: inherit; font-size: 1rem; line-height: 1.45; color: var(--ink); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 13px; max-height: 120px; }
.chat-panel__form textarea:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(201, 162, 75, .35); }
.chat-panel__form button { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--gold); color: var(--green-900); display: grid; place-items: center; cursor: pointer; }
.chat-panel__form button:disabled { opacity: .5; cursor: wait; }
.chat-panel__fine { margin: 0; font-size: .78rem; color: var(--muted); padding: 0 14px 12px; background: #fff; }
.chat-panel__fine a { color: var(--green-700); font-weight: 600; }

@media (max-width: 640px) {
	.chat-fab { right: 14px; bottom: 14px; padding: 13px 18px; }
	.chat-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.chat-panel .msg--typing span { animation: none !important; }
}

/* ============================================================
 * Donors page
 * ============================================================ */
.donors-count { margin: 26px 0 0; font-weight: 600; color: var(--muted); }
.donors-count strong { font-family: var(--serif); font-size: 2.2rem; color: var(--green-700); margin-right: 6px; vertical-align: -3px; }

.wall { position: relative; overflow: hidden; color: #fff; padding: clamp(72px, 10vw, 128px) 0 clamp(80px, 11vw, 140px);
	background:
		radial-gradient(900px 500px at 50% 0%, rgba(201, 162, 75, .28), transparent 70%),
		radial-gradient(700px 500px at 0% 100%, rgba(47, 125, 69, .55), transparent 70%),
		linear-gradient(180deg, #012a10 0%, var(--green-900) 45%, #012a10 100%); }
.wall::before, .wall::after { content: ""; position: absolute; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, #8a6a24, #f3dc97 20%, #c9a24b 50%, #f3dc97 80%, #8a6a24); }
.wall::before { top: 0; }
.wall::after { bottom: 0; }
.wall__seal { position: absolute; width: min(760px, 90vw); left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .03; filter: grayscale(1) brightness(3); pointer-events: none; }
.wall__inner { position: relative; }
.wall__head { text-align: center; margin-bottom: clamp(48px, 7vw, 80px); }
.wall__eyebrow { margin: 0 0 14px; font-weight: 700; font-size: .95rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.wall__eyebrow span { margin: 0 8px; }
.wall__title { font-weight: 900; font-size: clamp(3rem, 7.5vw, 5.6rem); line-height: 1; letter-spacing: -.01em;
	background: linear-gradient(180deg, #fff6d8 0%, #f3dc97 35%, #c9a24b 70%, #9c7a2c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone;
	filter: drop-shadow(0 4px 18px rgba(201, 162, 75, .35)); }
.wall__sub { margin: 18px auto 0; max-width: 34em; color: #cfe0d2; font-size: 1.15rem; }

/* Tiers */
.ftier { margin-top: clamp(48px, 6vw, 72px); }
.ftier__head { display: flex; align-items: center; gap: 22px; margin-bottom: 28px; }
.ftier__line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(201, 162, 75, .7)); }
.ftier__line:last-child { background: linear-gradient(90deg, rgba(201, 162, 75, .7), transparent); }
.ftier__name { font-family: var(--sans); font-weight: 800; font-size: clamp(1rem, 1.6vw, 1.2rem); letter-spacing: .16em; text-transform: uppercase; color: #f3dc97; text-align: center; }
.ftier__name span { display: block; margin-top: 4px; font-weight: 500; font-size: .85rem; letter-spacing: .08em; color: #b9cdbd; text-transform: none; }

.plaques { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.plaque { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px;
	padding: 26px 28px; border-radius: 6px; animation: hef-rise .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes hef-rise { from { opacity: 0; transform: translateY(20px); } }
.plaque__name { font-family: var(--serif); font-weight: 800; line-height: 1.2; }
.plaque__tribute { font-style: italic; font-size: .9rem; opacity: .85; }
.plaque__logo { display: grid; place-items: center; background: #fff; border-radius: 6px; padding: 12px 18px; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .4); }
.plaque__logo img { display: block; max-height: 64px; max-width: 200px; width: auto; height: auto; object-fit: contain; }
.plaque--anon .plaque__name { font-style: italic; font-weight: 700; }

/* Visionary: brushed gold with a moving shine */
.ftier--visionary .plaque { flex: 1 1 360px; max-width: 540px; min-height: 190px; padding: 40px 36px; color: #0b2a14;
	background: linear-gradient(135deg, #fff1c2 0%, #e8c76f 22%, #c9a24b 48%, #a8842f 70%, #e9cc7c 100%);
	box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .5), inset 0 0 0 7px rgba(120, 90, 30, .35), inset 0 0 0 8px rgba(255, 244, 210, .6); }
.ftier--visionary .plaque::after { content: ""; position: absolute; top: -60%; left: -60%; width: 40%; height: 220%; transform: rotate(25deg);
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: hef-shine 5.5s ease-in-out infinite; animation-delay: calc(var(--i) * 800ms); }
@keyframes hef-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.ftier--visionary .plaque__name { font-size: clamp(1.8rem, 3.4vw, 2.6rem); text-shadow: 0 1px 0 rgba(255, 245, 210, .7); }
.ftier--visionary .plaque__tribute { color: #1f3d25; }

/* Legacy: deep green with a heavy gold frame */
.ftier--legacy .plaque { flex: 1 1 300px; max-width: 440px; min-height: 150px; color: #f3dc97;
	background: linear-gradient(160deg, #0a5a27, #033d18); border: 2px solid #c9a24b;
	box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7), inset 0 0 0 6px #033d18, inset 0 0 0 7px rgba(201, 162, 75, .55); }
.ftier--legacy .plaque__name { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.ftier--legacy .plaque__tribute { color: #cfe0d2; }

/* Green & White: ivory plaque, green lettering, gold crown bar */
.ftier--greenwhite .plaque { flex: 1 1 260px; max-width: 380px; min-height: 130px; color: var(--green-900); background: linear-gradient(180deg, #fffdf6, #f1ecdc);
	box-shadow: 0 20px 44px -22px rgba(0, 0, 0, .7), inset 0 5px 0 #c9a24b; }
.ftier--greenwhite .plaque__name { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.ftier--greenwhite .plaque__tribute { color: var(--muted); }

/* Bobcat and Founding Friend: glass tiles with a gold edge */
.ftier--bobcat .plaque, .ftier--friend .plaque { flex: 0 1 250px; min-height: 104px; padding: 22px 22px; color: #fff;
	background: rgba(255, 255, 255, .07); border: 1px solid rgba(201, 162, 75, .45); backdrop-filter: blur(4px); box-shadow: inset 4px 0 0 #c9a24b; }
.ftier--bobcat .plaque__name { font-size: 1.35rem; }
.ftier--bobcat .plaque__logo, .ftier--friend .plaque__logo { padding: 8px 12px; }
.ftier--bobcat .plaque__logo img, .ftier--friend .plaque__logo img { max-height: 44px; max-width: 150px; }
.ftier--friend .plaque { flex-basis: 220px; box-shadow: inset 3px 0 0 rgba(201, 162, 75, .7); }
.ftier--friend .plaque__name { font-size: 1.2rem; }
.ftier--bobcat .plaque__tribute, .ftier--friend .plaque__tribute { color: #cfe0d2; }

/* Friends of the Foundation: gold-edged chips */
.ftier--supporter .plaques { gap: 10px; }
.ftier--supporter .plaque { flex-direction: row; gap: 10px; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(201, 162, 75, .35); }
.ftier--supporter .plaque__name { font-family: var(--sans); font-weight: 600; font-size: 1rem; color: #e6efe7; }
.ftier--supporter .plaque__logo { padding: 4px 8px; }
.ftier--supporter .plaque__logo img { max-height: 24px; max-width: 90px; }
.ftier--supporter .plaque__tribute { font-size: .8rem; color: #b9cdbd; }

/* Hover lift */
.plaque { transition: transform .25s ease; }
.plaque:hover { transform: translateY(-4px); }

.wall__empty { max-width: 680px; margin: 0 auto; text-align: center; padding: 52px 36px; border-radius: 6px;
	background: linear-gradient(160deg, #0a5a27, #033d18); border: 2px solid #c9a24b; box-shadow: inset 0 0 0 6px #033d18, inset 0 0 0 7px rgba(201, 162, 75, .55), 0 30px 60px -24px rgba(0, 0, 0, .7); }
.wall__empty .wall__empty-title { margin: 0 0 12px; font-family: var(--serif); font-weight: 800; font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: #f3dc97; }
.wall__empty p { color: #d8e4da; }
.wall__empty .btn { margin-top: 24px; }

/* Foundation seal for donors without a logo */
.plaque__logo--seal { padding: 0; border-radius: 50%; width: 76px; height: 76px; overflow: hidden; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .45), 0 0 0 3px rgba(201, 162, 75, .9); }
.plaque__logo--seal img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; padding: 4px; background: #fff; }
.ftier--visionary .plaque__logo--seal { width: 92px; height: 92px; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5), 0 0 0 3px #7a5c1c; }
.ftier--bobcat .plaque__logo--seal, .ftier--friend .plaque__logo--seal { width: 58px; height: 58px; padding: 0; }
.ftier--bobcat .plaque__logo--seal img, .ftier--friend .plaque__logo--seal img { max-height: none; max-width: none; }
.ftier--supporter .plaque__logo--seal { width: 28px; height: 28px; padding: 0; box-shadow: 0 0 0 2px rgba(201, 162, 75, .8); }
.ftier--supporter .plaque__logo--seal img { max-height: none; max-width: none; padding: 1px; }

@media (prefers-reduced-motion: reduce) {
	.plaque, .ftier--visionary .plaque::after { animation: none !important; }
}

.donors-cta { padding: clamp(56px, 8vw, 96px) 0; }
.donors-cta__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.donors-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 820px) {
	.donors-cta__inner { grid-template-columns: 1fr; }
	.donors-cta__actions { justify-content: flex-start; }
}

/* ============================================================
 * Students: who it's all for
 * ============================================================ */
.students { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 120px) 0; color: #fff;
	background:
		radial-gradient(700px 420px at 92% 0%, rgba(201, 162, 75, .22), transparent 70%),
		radial-gradient(600px 420px at 0% 100%, rgba(47, 125, 69, .55), transparent 70%),
		linear-gradient(180deg, #012a10 0%, var(--green-900) 100%); }
.students::before, .students::after { content: ""; position: absolute; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #8a6a24, #f3dc97 25%, #c9a24b 50%, #f3dc97 75%, #8a6a24); }
.students::before { top: 0; }
.students::after { bottom: 0; }
.students__head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: end; margin-bottom: clamp(36px, 5vw, 52px); }
.students__eyebrow { margin: 0 0 6px; font-family: var(--script); font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--gold); }
.students__title { color: #fff; font-weight: 900; font-size: clamp(2.6rem, 5.4vw, 4.2rem); line-height: 1.02; letter-spacing: -.01em; }
.students__intro p { margin: 0; font-size: 1.1rem; line-height: 1.65; color: #d7e6da; }
.students__sign { margin-top: 18px !important; padding-left: 14px; border-left: 3px solid var(--gold); font-family: var(--serif); font-weight: 700; font-style: italic; font-size: 1.2rem; color: #f3dc97 !important; }

.students__mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 220px) 250px; gap: 14px; }
.sm { position: relative; margin: 0; overflow: hidden; border-radius: 14px; background: #022b11; box-shadow: 0 24px 44px -26px rgba(0, 0, 0, .8);
	opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.students__mosaic.is-in .sm { opacity: 1; transform: none; }
.students__mosaic.is-in .sm:nth-child(2) { transition-delay: .08s; }
.students__mosaic.is-in .sm:nth-child(3) { transition-delay: .16s; }
.students__mosaic.is-in .sm:nth-child(4) { transition-delay: .24s; }
.students__mosaic.is-in .sm:nth-child(5) { transition-delay: .32s; }
.students__mosaic.is-in .sm:nth-child(6) { transition-delay: .40s; }
.students__mosaic.is-in .sm:nth-child(7) { transition-delay: .48s; }
.students__mosaic.is-in .sm:nth-child(8) { transition-delay: .56s; }
.students__mosaic.is-in .sm:nth-child(9) { transition-delay: .64s; }
.sm img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.sm::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(243, 220, 151, .25); pointer-events: none; transition: box-shadow .3s ease; }
.sm:hover img { transform: scale(1.05); }
.sm:hover::after { box-shadow: inset 0 0 0 2px rgba(243, 220, 151, .85); }
.sm figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 16px 14px; background: linear-gradient(180deg, transparent, rgba(1, 30, 12, .88)); }
.sm figcaption strong { display: block; font-family: var(--serif); font-weight: 800; font-size: 1.08rem; color: #fff; line-height: 1.2; }
.sm figcaption span { display: block; margin-top: 2px; font-size: .8rem; color: #f3dc97; }
.sm--band { grid-column: 1 / 3; grid-row: 1 / 3; }
.sm--band img { object-position: 35% center; }
.sm--band figcaption strong { font-size: 1.35rem; }
.sm--cheer { grid-column: 3 / 5; grid-row: 1; }
.sm--cheer img { object-position: center 35%; }
.sm--champion { grid-column: 3; grid-row: 2; }
.sm--champion img { object-position: 60% center; }
.sm--ffa { grid-column: 4; grid-row: 2 / 4; }
.sm--ffa img { object-position: center 40%; }
.sm--prince { grid-column: 1; grid-row: 3; }
.sm--prince img { object-position: 52% 30%; }
.sm--parade { grid-column: 2; grid-row: 3; }
.sm--parade img { object-position: 60% center; }
.sm--showring { grid-column: 3; grid-row: 3; }
.sm--showring img { object-position: center 50%; }
.sm--football { grid-column: 1 / 3; grid-row: 4; }
.sm--football img { object-position: center 45%; }
.sm--theatre { grid-column: 3 / 5; grid-row: 4; }
.sm--theatre img { object-position: center 40%; }

.students__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: clamp(28px, 4vw, 40px); }
.students__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.students__tags li { padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(201, 162, 75, .55); color: #f3dc97; font-weight: 600; font-size: .92rem; }
.students__link { color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none; padding-bottom: 3px; border-bottom: 2px solid var(--gold); }
.students__link:hover { color: #f3dc97; }

@media (max-width: 980px) {
	.students__head { grid-template-columns: 1fr; align-items: start; }
	.students__mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 280px 200px 220px 220px 200px 220px 200px; }
	.sm--band { grid-column: 1 / 3; grid-row: 1; }
	.sm--cheer { grid-column: 1 / 3; grid-row: 2; }
	.sm--champion { grid-column: 1; grid-row: 3; }
	.sm--ffa { grid-column: 2; grid-row: 3 / 5; }
	.sm--showring { grid-column: 1; grid-row: 4; }
	.sm--prince { grid-column: 1; grid-row: 5; }
	.sm--parade { grid-column: 2; grid-row: 5; }
	.sm--football { grid-column: 1 / 3; grid-row: 6; }
	.sm--theatre { grid-column: 1 / 3; grid-row: 7; }
}
@media (max-width: 560px) {
	.sm figcaption { padding: 34px 12px 10px; }
	.sm figcaption strong { font-size: .92rem; }
	.sm--band figcaption strong { font-size: 1.15rem; }
	.sm figcaption span { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
	.sm { opacity: 1; transform: none; transition: none; }
	.sm img { transition: none; }
}

/* ============================================================
 * Recognition strip: proud of Hempstead ISD
 * ============================================================ */
.pride { background: #fff; border-bottom: 1px solid var(--line); }
.pride__inner { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 48px); padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.pride__label { margin: 0; font-family: var(--serif); font-weight: 900; font-size: 1.25rem; color: var(--green-900); line-height: 1.05; }
.pride__label span { display: block; font-family: var(--script); font-weight: 400; font-size: 1.15rem; color: var(--gold); }
.pride__badge { display: flex; align-items: center; gap: 14px; padding: 10px 20px 10px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.pride__badge p { margin: 0; line-height: 1.25; }
.pride__badge strong { display: block; font-family: var(--serif); font-weight: 800; font-size: 1.02rem; color: var(--green-900); }
.pride__badge p span { display: block; font-size: .8rem; color: var(--muted); max-width: 36ch; }
.medal { flex: none; display: grid; place-items: center; align-content: center; width: 52px; height: 52px; border-radius: 50%; font-family: var(--serif); font-weight: 900; font-size: 1.6rem; line-height: 1; }
.medal small { display: block; font-family: var(--sans); font-weight: 700; font-size: .62rem; letter-spacing: .04em; margin-top: 1px; }
.medal--gold { color: #3a2a06; background: linear-gradient(135deg, #fff1c2, #e3c06a 40%, #c9a24b 65%, #e9cc7c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55), 0 6px 14px -6px rgba(140, 105, 30, .6); }
.medal--green { color: #fff; background: linear-gradient(135deg, #2f7d45, var(--green-900)); box-shadow: inset 0 0 0 2px rgba(201, 162, 75, .85), 0 6px 14px -6px rgba(1, 61, 22, .6); }
@media (max-width: 760px) {
	.pride__inner { justify-content: flex-start; gap: 12px; }
	.pride__label { width: 100%; }
	.pride__badge { width: 100%; border-radius: 16px; }
	.pride__badge p span { max-width: none; }
}
