/* ==========================================================================
   Site Header — Desktop (1440px reference) & Mobile (390px / 320px adaptive)
   ========================================================================== */

.ww-header {
	position: relative;
	width: 100%;
	height: 210px;
	background-color: #051738;
	background-image:
		linear-gradient(180deg, rgba(2, 9, 21, 0.32) 0%, rgba(4, 21, 52, 0.18) 55%, rgba(2, 9, 21, 0.55) 100%),
		url('../images/header-lightning-bg.png');
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	border-bottom: 0;
	overflow-x: clip;
	overflow-y: visible;
	z-index: 30;
}

/* Subtle sweeping superhero energy sheen across header */
.ww-header::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 50% 0%, rgba(86, 216, 255, 0.24), transparent 62%);
	mix-blend-mode: screen;
	pointer-events: none;
	animation: ww-header-pulse 6s ease-in-out infinite alternate;
}

/* Animated flowing plasma energy beam along header bottom edge */
.ww-header::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4px;
	background: linear-gradient(
		90deg,
		var(--ww-gold) 0%,
		var(--ww-hero-cyan) 28%,
		var(--ww-crimson) 52%,
		var(--ww-gold) 78%,
		var(--ww-hero-cyan) 100%
	);
	background-size: 240% 100%;
	box-shadow: 0 0 14px rgba(255, 195, 66, 0.75), 0 0 24px rgba(86, 216, 255, 0.45);
	animation: ww-plasma-flow 7s linear infinite;
	pointer-events: none;
	z-index: 5;
}

@keyframes ww-header-pulse {
	from { opacity: 0.55; }
	to { opacity: 1; }
}

@keyframes ww-plasma-flow {
	from { background-position: 0% 50%; }
	to { background-position: 240% 50%; }
}

@keyframes ww-emblem-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}

.ww-header-inner {
	position: relative;
	width: 100%;
	max-width: 1440px;
	height: 100%;
	margin: 0 auto;
}

/* Left circular silver/black W emblem — vertically centered with generous inset */
.ww-header-logo {
	position: absolute;
	top: 50%;
	left: 28px;
	transform: translateY(-50%);
	display: block;
	width: 124px;
	height: 124px;
	border-radius: 50%;
	z-index: 3;
	filter: drop-shadow(0 0 16px rgba(86, 216, 255, 0.45));
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.ww-header-logo:hover,
.ww-header-logo:focus-visible {
	transform: translateY(-50%) scale(1.07) rotate(-4deg);
	filter: drop-shadow(0 0 24px rgba(255, 195, 66, 0.85)) drop-shadow(0 0 14px rgba(86, 216, 255, 0.75));
}

.ww-header-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Floating Apple Liquid Glass Navigation Pill — optically balanced with open breathing room */
.ww-nav {
	position: absolute;
	top: 22px;
	left: calc(50% + 66px);
	transform: translateX(-50%);
	width: max-content;
	max-width: calc(100% - 176px);
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 4;
}

.ww-nav-list {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	max-width: 100%;
	height: 52px;
	margin: 0;
	padding: 5px clamp(8px, 0.9vw, 12px);
	gap: clamp(2px, 0.3vw, 4px);
	list-style: none;
	background: rgba(8, 18, 40, 0.82);
	-webkit-backdrop-filter: blur(var(--glass-blur, 18px)) saturate(var(--glass-saturate, 185%));
	backdrop-filter: blur(var(--glass-blur, 18px)) saturate(var(--glass-saturate, 185%));
	border: 1px solid rgba(255, 255, 255, 0.26);
	border-radius: var(--radius-pill, 9999px);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.38),
		inset 0 -1px 0 rgba(0, 0, 0, 0.35),
		0 12px 32px rgba(0, 0, 0, 0.48),
		0 0 22px rgba(86, 216, 255, 0.22);
}

.ww-nav-list > li {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	height: 42px;
	border-left: 0;
}

.ww-nav-list > li > a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	padding: 0 clamp(7px, 0.95vw, 15px);
	color: #ffffff;
	background-color: transparent;
	border-radius: var(--radius-pill, 9999px);
	font-family: var(--ww-font-nav);
	font-size: clamp(12.5px, 1.05vw, 14.5px);
	font-weight: 700;
	letter-spacing: 0.015em;
	text-transform: none;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--dur-fast, 160ms) var(--ease-apple, ease),
	            color var(--dur-fast, 160ms) var(--ease-apple, ease),
	            transform var(--dur-fast, 160ms) var(--ease-apple, ease),
	            box-shadow var(--dur-fast, 160ms) var(--ease-apple, ease);
}

.ww-nav-list > li > a:hover,
.ww-nav-list > li > a:focus-visible {
	background-color: rgba(86, 216, 255, 0.2);
	color: var(--ww-gold);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
	outline: none;
}

.ww-nav-list > li.current-menu-item > a,
.ww-nav-list > li.current_page_item > a,
.ww-nav-list > li > a[aria-current='page'] {
	background: var(--btn-primary-bg, linear-gradient(180deg, #df1641 0%, var(--ww-crimson) 55%, #8b0000 100%));
	color: var(--ww-white);
	box-shadow: var(--btn-primary-shadow, 0 6px 16px rgba(187, 6, 46, 0.45));
}

/* Center-bottom Bigger Levitating & Teleporting Superhero Wordmark — aligned with nav */
.ww-header-wordmark {
	position: absolute;
	top: 96px;
	left: calc(50% + 56px);
	transform: translateX(-50%);
	width: var(--ww-container-width);
	max-width: calc(100% - 240px);
	height: 92px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	pointer-events: none;
}

.ww-teleport-wordmark {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 24px;
	overflow: visible;
}

/* Quantum Teleportation Rift Glow & Expanding Energy Shockwave Rings */
.ww-warp-rift {
	position: absolute;
	inset: -6px 10%;
	border-radius: 50%;
	background: radial-gradient(
		ellipse at center,
		rgba(255, 255, 255, 0.95) 0%,
		rgba(86, 216, 255, 0.72) 28%,
		rgba(168, 85, 247, 0.36) 54%,
		transparent 76%
	);
	mix-blend-mode: screen;
	opacity: 0;
	transform: scale(0.2, 1.8);
	pointer-events: none;
	z-index: 3;
	animation: ww-rift-flash 6.2s ease-in-out infinite;
}

.ww-warp-ring {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 140px;
	height: 76px;
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
	z-index: 1;
	transform: translate(-50%, -50%) scale(0.3);
}

.ww-warp-ring--1 {
	border: 2.5px solid #56d8ff;
	box-shadow: 0 0 18px #56d8ff, inset 0 0 14px rgba(86, 216, 255, 0.7);
	animation: ww-ring-pulse 6.2s ease-out infinite;
}

.ww-warp-ring--2 {
	border: 2px solid var(--ww-gold);
	box-shadow: 0 0 16px rgba(255, 195, 66, 0.85);
	animation: ww-ring-pulse 6.2s 0.14s ease-out infinite;
}

.ww-wordmark-line {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	z-index: 2;
	white-space: nowrap;
}

.ww-hero-word {
	position: relative;
	display: inline-block;
	font-family: var(--ww-font-display);
	font-weight: 700;
	font-style: italic;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 0.95;
	will-change: transform, opacity, filter;
}

/* Bigger, Bold Blockbuster Metallic Silver-to-Gold Superhero Lettering */
.ww-hero-word--1,
.ww-hero-word--2 {
	font-size: clamp(48px, 5.2vw, 72px);
	background: linear-gradient(180deg, #ffffff 0%, #dff7ff 38%, #ffc342 74%, #f59e0b 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-stroke: 1.2px rgba(4, 15, 36, 0.85);
	filter:
		drop-shadow(0 4px 0 #06142e)
		drop-shadow(0 0 18px rgba(86, 216, 255, 0.65));
}

.ww-hero-word--1 {
	animation:
		ww-teleport-in 0.85s cubic-bezier(0.16, 1, 0.3, 1) both,
		ww-teleport-cycle 6.2s 0.9s ease-in-out infinite;
}

.ww-hero-word--2 {
	animation:
		ww-teleport-in 0.85s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both,
		ww-teleport-cycle 6.2s 0.98s ease-in-out infinite;
}

.ww-hero-word--3 {
	font-size: clamp(22px, 2.3vw, 31px);
	padding: 6px 16px;
	border-radius: 8px;
	background: linear-gradient(135deg, rgba(187, 6, 46, 0.94), rgba(105, 0, 24, 0.96));
	border: 2px solid var(--ww-gold);
	color: #ffffff;
	letter-spacing: 0.12em;
	box-shadow: 0 5px 18px rgba(0, 0, 0, 0.55), 0 0 18px rgba(86, 216, 255, 0.4);
	animation:
		ww-teleport-in 0.85s 0.16s cubic-bezier(0.16, 1, 0.3, 1) both,
		ww-teleport-cycle 6.2s 1.06s ease-in-out infinite;
}

/* Initial Quantum Warp-In Materialization */
@keyframes ww-teleport-in {
	0% {
		opacity: 0;
		transform: scaleX(0.25) scaleY(2.1) translateY(-12px);
		filter: blur(14px) brightness(3.2) drop-shadow(0 0 28px #56d8ff);
	}
	55% {
		opacity: 1;
		transform: scaleX(1.06) scaleY(0.94) translateY(0);
		filter: blur(1px) brightness(1.8) drop-shadow(0 0 24px #56d8ff);
	}
	100% {
		opacity: 1;
		transform: scaleX(1) scaleY(1) translateY(0);
		filter: drop-shadow(0 4px 0 #06142e) drop-shadow(0 0 18px rgba(86, 216, 255, 0.65));
	}
}

/* Gentle Levitation + Periodic Quantum Teleport Blink */
@keyframes ww-teleport-cycle {
	0%, 100% {
		opacity: 1;
		transform: translateY(0) scaleX(1) scaleY(1);
		filter: drop-shadow(0 4px 0 #06142e) drop-shadow(0 0 18px rgba(86, 216, 255, 0.65));
	}
	25% {
		opacity: 1;
		transform: translateY(-4px) scaleX(1) scaleY(1);
	}
	50% {
		opacity: 1;
		transform: translateY(0) scaleX(1) scaleY(1);
	}
	72% {
		opacity: 1;
		transform: translateY(-3px) scaleX(1) scaleY(1);
		filter: drop-shadow(0 4px 0 #06142e) drop-shadow(0 0 18px rgba(86, 216, 255, 0.65));
	}
	/* Phase out into vertical quantum light beam */
	77% {
		opacity: 0.7;
		transform: translateY(0) scaleX(0.35) scaleY(1.85);
		filter: blur(8px) brightness(3.2) drop-shadow(0 0 32px #56d8ff);
	}
	80% {
		opacity: 0;
		transform: translateY(-6px) scaleX(0.1) scaleY(2.3);
		filter: blur(14px) brightness(4);
	}
	/* Re-materialize with bright flash */
	84% {
		opacity: 1;
		transform: translateY(0) scaleX(1.06) scaleY(0.94);
		filter: blur(1px) brightness(2.2) drop-shadow(0 0 30px #56d8ff);
	}
	89% {
		opacity: 1;
		transform: translateY(0) scaleX(1) scaleY(1);
		filter: drop-shadow(0 4px 0 #06142e) drop-shadow(0 0 18px rgba(86, 216, 255, 0.65));
	}
}

@keyframes ww-rift-flash {
	0%, 73%, 91%, 100% { opacity: 0; transform: scale(0.25, 1.6); }
	78% { opacity: 0.9; transform: scale(1.15, 0.9); }
	81% { opacity: 1; transform: scale(1.45, 0.45); }
	85% { opacity: 0.75; transform: scale(1.25, 0.95); }
}

@keyframes ww-ring-pulse {
	0%, 76%, 94%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
	81% { opacity: 0.95; transform: translate(-50%, -50%) scale(1.1); }
	91% { opacity: 0; transform: translate(-50%, -50%) scale(3.4, 1.45); }
}

@media (prefers-reduced-motion: reduce) {
	.ww-hero-word,
	.ww-warp-rift,
	.ww-warp-ring {
		animation: none !important;
	}
	.ww-warp-rift,
	.ww-warp-ring {
		display: none;
	}
}

/* Right header CTA pill button ("DONATE") with subtle superhero pulse */
.ww-btn-header-donate {
	position: absolute;
	top: 61px;
	right: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 146px;
	height: 46px;
	padding: 0 18px;
	background: linear-gradient(135deg, var(--ww-crimson), var(--ww-crimson-dark));
	color: var(--ww-white);
	border: 1.5px solid var(--ww-gold);
	border-radius: var(--ww-radius-pill);
	font-family: var(--ww-font-cta);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-indent: 0.18em;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	z-index: 4;
	box-shadow: 0 0 18px rgba(187, 6, 46, 0.55), 0 0 10px rgba(255, 195, 66, 0.35);
	transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.ww-btn-header-donate:hover,
.ww-btn-header-donate:focus-visible {
	background: linear-gradient(135deg, var(--ww-cta-hover), #2b593c);
	border-color: var(--ww-white);
	transform: translateY(-2px) scale(1.04);
	box-shadow: 0 8px 24px rgba(63, 118, 82, 0.65), 0 0 18px rgba(86, 216, 255, 0.45);
}

/* Mobile hamburger toggle (hidden on desktop) */
.ww-nav-toggle {
	display: none;
}

/* ==========================================================================
   Full-Screen Mobile Navigation Drawer
   ========================================================================== */

.ww-mobile-drawer {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 96px 24px 40px;
	background-color: var(--ww-white);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.ww-mobile-drawer.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 0.25s ease, visibility 0s linear 0s;
}

.ww-drawer-close {
	position: absolute;
	top: 18px;
	right: 16px;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ww-ink);
	cursor: pointer;
}

.ww-drawer-close svg {
	width: 24px;
	height: 24px;
}

.ww-mobile-nav-list {
	width: 100%;
	max-width: 320px;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.ww-mobile-nav-list > li {
	margin: 0;
}

.ww-mobile-nav-list > li > a {
	display: block;
	padding: 0 12px;
	height: 56px;
	line-height: 56px;
	color: var(--ww-ink);
	font-family: var(--ww-font-body);
	font-size: 22px;
	font-weight: 400;
	text-decoration: none;
	white-space: nowrap;
}

.ww-mobile-nav-list > li.current-menu-item > a,
.ww-mobile-nav-list > li.current_page_item > a,
.ww-mobile-nav-list > li > a[aria-current='page'] {
	color: var(--ww-blue);
}

/* ==========================================================================
   Site Footer — Animated Superpowered Cosmic Navy Footer
   ========================================================================== */

.ww-footer {
	position: relative;
	width: 100%;
	min-height: 360px;
	padding: 0 0 32px;
	background:
		radial-gradient(circle at 50% 24%, rgba(86, 216, 255, 0.14), transparent 48%),
		linear-gradient(180deg, #06142c 0%, #030a18 100%);
	text-align: center;
	overflow: hidden;
	z-index: 5;
}

.ww-footer-gold-bar {
	width: 100%;
	height: 4px;
	background: linear-gradient(
		90deg,
		var(--ww-gold) 0%,
		var(--ww-hero-cyan) 28%,
		var(--ww-crimson) 52%,
		var(--ww-gold) 78%,
		var(--ww-hero-cyan) 100%
	);
	background-size: 240% 100%;
	box-shadow: 0 0 14px rgba(255, 195, 66, 0.7), 0 0 24px rgba(86, 216, 255, 0.4);
	animation: ww-plasma-flow 7s linear infinite;
	margin: 0 0 32px;
}

.ww-footer-logo-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 210px;
	height: 210px;
	margin: 0 auto 18px;
	border-radius: 50%;
	filter: drop-shadow(0 0 22px rgba(255, 195, 66, 0.45));
	animation: ww-emblem-float 4.5s ease-in-out infinite;
	transition: filter 0.3s ease, transform 0.3s ease;
}

.ww-footer-logo-link:hover,
.ww-footer-logo-link:focus-visible {
	filter: drop-shadow(0 0 28px rgba(255, 195, 66, 0.85)) drop-shadow(0 0 16px rgba(86, 216, 255, 0.6));
}

.ww-footer-logo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ww-footer-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 22px;
	max-width: 960px;
	margin: 0 auto 20px;
	padding: 0 20px;
	list-style: none;
}

.ww-footer-nav a {
	color: rgba(238, 248, 255, 0.85);
	font-family: var(--ww-font-display);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 0.2s ease, text-shadow 0.2s ease;
}

.ww-footer-nav a:hover,
.ww-footer-nav a:focus-visible {
	color: var(--ww-gold);
	text-shadow: 0 0 12px rgba(255, 195, 66, 0.7);
}

.ww-footer-social-wrap {
	margin: 0 auto 14px;
	display: flex;
	justify-content: center;
}

.ww-footer-social {
	display: inline-block;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	box-shadow: 0 0 14px rgba(86, 216, 255, 0.3);
	transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ww-footer-social:hover,
.ww-footer-social:focus-visible {
	opacity: 1;
	transform: translateY(-2px) scale(1.08);
	box-shadow: 0 0 20px rgba(255, 195, 66, 0.7);
}

.ww-footer-social img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	border-radius: 8px;
}

.ww-footer-divider {
	width: calc(100% - 160px);
	max-width: 1200px;
	height: 1px;
	margin: 0 auto 18px;
	border: 0;
	background: linear-gradient(90deg, transparent, rgba(86, 216, 255, 0.45), transparent);
}

.ww-footer-copyright {
	margin: 0;
	padding: 0 16px;
	color: var(--ww-gold);
	font-family: var(--ww-font-body);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.06em;
}

/* ==========================================================================
   Responsive Breakpoints — Tablet & Mobile (390px target)
   ========================================================================== */

@media (max-width: 1180px) {
	.ww-nav {
		max-width: calc(100% - 172px);
	}

	.ww-header-wordmark {
		max-width: calc(100% - 190px);
	}

	.ww-nav-list > li > a {
		font-size: clamp(12px, 1.12vw, 14px);
		padding: 0 clamp(6px, 0.72vw, 10px);
	}
}

@media (max-width: 960px) {
	.ww-header {
		height: auto;
		min-height: 298px;
		padding: 16px 20px 18px;
	}

	.ww-header-inner {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		min-height: 274px;
	}

	.ww-header-logo {
		position: relative;
		top: auto;
		left: auto;
		transform: none;
		width: 146px;
		height: 146px;
		margin: 0 auto;
	}

	.ww-header-logo:hover,
	.ww-header-logo:focus-visible {
		transform: scale(1.05) rotate(-4deg);
	}

	.ww-nav {
		display: none;
	}

	.ww-nav-toggle {
		position: absolute;
		top: 6px;
		right: -10px;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 8px;
		width: 60px;
		height: 60px;
		padding: 0;
		background-color: var(--ww-gold);
		border: 2px solid var(--ww-crimson);
		border-radius: 0;
		cursor: pointer;
		z-index: 10;
	}

	.ww-nav-toggle-bar {
		display: block;
		width: 26px;
		height: 2.5px;
		background-color: var(--ww-crimson);
		transition: transform 0.2s ease, opacity 0.2s ease;
	}

	.ww-header-wordmark {
		position: relative;
		top: auto;
		left: auto;
		transform: none;
		width: 100%;
		max-width: 360px;
		height: auto;
		margin: 4px auto 14px;
	}

	.ww-teleport-wordmark {
		padding: 4px 10px;
	}

	.ww-wordmark-line {
		flex-wrap: wrap;
		gap: 6px 12px;
		white-space: normal;
	}

	.ww-hero-word--1,
	.ww-hero-word--2 {
		font-size: 42px;
	}

	.ww-hero-word--3 {
		font-size: 18px;
		padding: 4px 12px;
	}

	.ww-btn-header-donate {
		position: relative;
		top: auto;
		right: auto;
		width: 146px;
		height: 50px;
		font-size: 16px;
	}

	/* Mobile Footer */
	.ww-footer {
		min-height: 310px;
		padding: 24px 24px 22px;
	}

	.ww-footer-gold-bar {
		width: 100%;
		margin: 0 auto 16px;
	}

	.ww-footer-logo-link,
	.ww-footer-logo {
		width: 158px;
		height: 158px;
	}

	.ww-footer-social-wrap {
		margin: 4px auto 12px;
	}

	.ww-footer-divider {
		width: 100%;
		margin: 0 auto 14px;
	}

	.ww-footer-copyright {
		padding: 0;
		font-size: 10px;
		line-height: 14px;
		letter-spacing: 0.3px;
		white-space: nowrap;
	}
}
