/* ==========================================================================
   WAI Branches — "Branches We Honor" seal grid
   Palette: navy #003161, red #b5121b, Montserrat (WWP design system)
   ========================================================================== */
.waib-section {
	--waib-navy: #003161;
	--waib-red: #b5121b;
	--waib-size: 150px;
	max-width: 1140px;
	margin: 0 auto;
	padding: 10px 20px;
	font-family: "Montserrat", Arial, Helvetica, sans-serif;
	text-align: center;
}

.waib-title {
	color: var(--waib-navy);
	font-size: 30px;
	font-weight: 800;
	letter-spacing: .5px;
	margin: 0 0 10px;
}
.waib-title::after {
	content: "";
	display: block;
	width: 64px;
	height: 4px;
	background: var(--waib-red);
	margin: 14px auto 0;
	border-radius: 2px;
}

.waib-intro {
	color: #4a5568;
	font-size: 16px;
	line-height: 1.6;
	max-width: 720px;
	margin: 0 auto 34px;
}

/* ---- Grid ---- */
.waib-grid {
	display: grid;
	gap: 28px;
	align-items: start;
	justify-content: center;
	margin-top: 20px;
}
.waib-grid--auto {
	grid-template-columns: repeat(auto-fit, minmax(var(--waib-size), max-content));
}
.waib-grid--fixed {
	grid-template-columns: repeat(var(--waib-cols, 3), minmax(0, var(--waib-size)));
}

/* ---- Card ---- */
.waib-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: inherit;
	padding: 10px;
	border-radius: 10px;
	background: transparent;
	transition: transform .35s cubic-bezier(.2,.7,.3,1), background-color .35s ease, box-shadow .35s ease;
	/* scroll-reveal start state */
	opacity: 0;
	transform: translateY(18px);
}
.waib-card.is-visible {
	opacity: 1;
	transform: translateY(0);
	/* stagger by index */
	transition-delay: calc(var(--waib-i, 0) * 70ms);
}

/* ---- Seal ---- */
.waib-seal-wrap {
	width: var(--waib-size);
	height: var(--waib-size);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
.waib-seal {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	display: block;
	transition: filter .4s ease, transform .35s cubic-bezier(.2,.7,.3,1);
	filter: none;
}
/* placeholder tile for branches without an uploaded seal */
.waib-seal--placeholder {
	width: 78%;
	height: 78%;
	border-radius: 50%;
	background: var(--waib-navy);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: calc(var(--waib-size) * .26);
	letter-spacing: 1px;
	border: 3px solid #4a7fd5;
}

/* Grayscale mode: seals desaturate until hovered/focused */
.waib-grid.is-grayscale .waib-seal {
	filter: grayscale(1) contrast(.95) brightness(1.02);
}

/* ---- Hover / focus bloom ---- */
/* seal returns to full color on hover — common to every effect */
.waib-card:hover .waib-seal,
.waib-card:focus-visible .waib-seal {
	filter: none;
}

/* -- effect: default (lift + shadow) -- */
.waib-hover--default .waib-card:hover,
.waib-hover--default .waib-card:focus-visible {
	transform: translateY(-6px);
	background: #f6f8fb;
	box-shadow: 0 14px 30px rgba(0, 49, 97, .16);
	outline: none;
}
.waib-hover--default .waib-card:hover .waib-seal,
.waib-hover--default .waib-card:focus-visible .waib-seal {
	transform: scale(1.06);
}

/* -- effect: ring pop (soft blue rings expand around the seal) -- */
.waib-hover--ring .waib-seal-wrap {
	border-radius: 50%;
	transition: box-shadow .3s ease, transform .3s ease;
}
.waib-hover--ring .waib-card:hover .waib-seal-wrap,
.waib-hover--ring .waib-card:focus-visible .waib-seal-wrap {
	box-shadow: 0 0 0 6px rgba(74, 127, 213, .18), 0 0 0 12px rgba(74, 127, 213, .08);
	transform: scale(1.04);
}
.waib-hover--ring .waib-card { outline: none; }

/* ---- Name label ---- */
.waib-name {
	color: var(--waib-navy);
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	line-height: 1.2;
	position: relative;
	padding-bottom: 6px;
}
.waib-name::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 0;
	height: 2px;
	background: var(--waib-red);
	transform: translateX(-50%);
	transition: width .3s ease;
}
.waib-card:hover .waib-name::after,
.waib-card:focus-visible .waib-name::after {
	width: 28px;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
	.waib-card { opacity: 1; transform: none; transition: none; }
	.waib-seal { transition: filter .2s ease; }
}

/* ---- Small screens ---- */
@media (max-width: 600px) {
	.waib-section { --waib-size: 120px; }
	.waib-grid { gap: 20px; }
	.waib-title { font-size: 24px; }
}

/* ---- Extras strip: charity tagline + affiliations ---- */
.waib-extras {
	margin-top: 40px;
	padding-top: 26px;
	border-top: 1px solid #e2e8f0;
	text-align: center;
}
.waib-grid.is-grayscale + .waib-extras { /* no-op hook if needed */ }

.waib-note {
	color: #4a5568;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .3px;
	margin: 0 0 16px;
}

.waib-affiliations {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px 0;
}
.waib-affiliations li {
	display: flex;
	align-items: center;
}
.waib-affiliations li:not(:last-child)::after {
	content: "";
	width: 1px;
	height: 14px;
	background: #cbd5e0;
	margin: 0 18px;
}
.waib-affiliations a,
.waib-affiliations span {
	color: var(--waib-navy);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-decoration: none;
	transition: color .2s ease;
}
.waib-affiliations a:hover {
	color: var(--waib-red);
}
.waib-affiliations span {
	color: #718096; /* non-linked items read as muted */
}

@media (max-width: 600px) {
	.waib-affiliations li:not(:last-child)::after { margin: 0 12px; }
	.waib-affiliations a, .waib-affiliations span { font-size: 12px; letter-spacing: .5px; }
}

/* ---- GoFundMe bar (moved from wai-sponsors) — full-width blue band ---- */
.waib-gofundme {
	width: 100%;
	background-color: #4a7fd5;
	min-height: 135px;
	display: flex;
	align-items: center;
	padding: 16px 20px;
	box-sizing: border-box;
	font-family: "Montserrat", Arial, Helvetica, sans-serif;
}
.waib-gofundme-inner {
	max-width: 1140px;
	width: 100%;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 30px;
}
.waib-gf-msg {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}
.waib-gf-logo-link { line-height: 0; display: inline-flex; }
.waib-gf-logo { height: 32px; width: auto; display: block; }
.waib-gf-text {
	color: #fff;
	font-weight: 700;
	font-size: 1.1rem;
	text-transform: uppercase;
	letter-spacing: .5px;
}
.waib-gf-btn {
	background: #eaf1fb;
	color: #1a2233;
	font-weight: 700;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: .5px;
	text-decoration: none;
	padding: 12px 26px;
	border-radius: 999px;
	white-space: nowrap;
	transition: background-color .2s ease, transform .2s ease;
}
.waib-gf-btn:hover { background: #fff; transform: translateY(-1px); }
.waib-gf-btn span { color: #b5121b; }

@media (max-width: 600px) {
	.waib-gofundme-inner { gap: 14px; }
	.waib-gf-text { font-size: 1rem; text-align: center; }
}

/* ---- Full-width background band behind the branches section ---- */
.waib-outer {
	width: 100%;
	box-sizing: border-box;
	padding: 30px 0 40px;
}
