/*
Theme Name: KRE8 Impact
Theme URI: https://kre8impact.org/
Author: CopyCats Printing
Description: A responsive Gutenberg block theme for KRE8 Impact, built around community outreach, student support, and holiday food programs.
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kre8-impact
Tags: block-patterns, full-site-editing, one-column, custom-colors, custom-menu, featured-images, wide-blocks
*/

:root {
	--kre8-navy: #052d58;
	--kre8-navy-deep: #031f3f;
	--kre8-orange: #ff8500;
	--kre8-orange-dark: #df6f00;
	--kre8-teal: #16bdc6;
	--kre8-cream: #fff8ee;
	--kre8-white: #ffffff;
	--kre8-ink: #10233f;
	--kre8-muted: #536273;
	--kre8-border: #dbe3ea;
	--kre8-shadow: 0 18px 44px rgba(4, 36, 70, 0.13);
}

html {
	scroll-behavior: smooth;
}

body {
	overflow-x: hidden;
}

body,
button,
input,
select,
textarea {
	font-family: Arial, Helvetica, sans-serif;
}

.wp-site-blocks {
	padding: 0;
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

a {
	text-underline-offset: 0.2em;
}

/* Header */
.kre8-header-wrap {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 1px 0 rgba(5, 45, 88, 0.09);
	backdrop-filter: blur(12px);
}

.admin-bar .kre8-header-wrap {
	top: 32px;
}

.kre8-header {
	min-height: 74px;
	padding: 0 28px;
}

.kre8-wordmark {
	display: inline-flex;
	align-items: baseline;
	gap: 0.16em;
	color: var(--kre8-navy);
	font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
	font-size: clamp(1.75rem, 2.6vw, 2.55rem);
	font-weight: 900;
	letter-spacing: -0.035em;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.kre8-wordmark span {
	color: var(--kre8-orange);
	font-family: "Arial Narrow", Arial, sans-serif;
	font-size: 0.82em;
	font-weight: 900;
	letter-spacing: -0.045em;
}

.kre8-nav {
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.025em;
	text-transform: uppercase;
}

.kre8-nav .wp-block-navigation__container {
	gap: clamp(0.9rem, 2vw, 2rem);
}

.kre8-nav .wp-block-navigation-item__content {
	color: var(--kre8-navy);
	text-decoration: none;
}

.kre8-nav .wp-block-navigation-item__content:hover,
.kre8-nav .wp-block-navigation-item__content:focus-visible {
	color: var(--kre8-orange-dark);
}

.kre8-nav .kre8-nav-donate .wp-block-navigation-item__content {
	padding: 0.85rem 1.2rem;
	border-radius: 7px;
	background: var(--kre8-orange);
	color: var(--kre8-white);
}

.kre8-nav .kre8-nav-donate .wp-block-navigation-item__content:hover,
.kre8-nav .kre8-nav-donate .wp-block-navigation-item__content:focus-visible {
	background: var(--kre8-orange-dark);
	color: var(--kre8-white);
}

/* Shared section styles */
.kre8-kicker {
	margin: 0 0 0.55rem;
	color: var(--kre8-teal);
	font-size: 0.76rem;
	font-weight: 900;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.kre8-section-title {
	position: relative;
	margin: 0 0 1.25rem;
	color: var(--kre8-navy);
	font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
	font-size: clamp(2.1rem, 4vw, 3.45rem);
	font-weight: 900;
	letter-spacing: -0.025em;
	line-height: 1.03;
}

.kre8-section-title::after {
	content: "";
	display: block;
	width: 54px;
	height: 5px;
	margin-top: 0.65rem;
	border-radius: 99px;
	background: var(--kre8-teal);
	transform: rotate(-2deg);
}

.kre8-centered-title::after {
	margin-inline: auto;
}

.kre8-section-copy {
	color: var(--kre8-ink);
	font-size: clamp(1rem, 1.35vw, 1.15rem);
	line-height: 1.7;
}

.kre8-button .wp-block-button__link {
	min-width: 150px;
	padding: 0.9rem 1.35rem;
	border: 2px solid var(--kre8-orange);
	border-radius: 7px;
	background: var(--kre8-orange);
	box-shadow: none;
	color: var(--kre8-white);
	font-size: 0.86rem;
	font-weight: 900;
	letter-spacing: 0.025em;
	text-transform: uppercase;
	transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.kre8-button .wp-block-button__link:hover,
.kre8-button .wp-block-button__link:focus-visible {
	border-color: var(--kre8-orange-dark);
	background: var(--kre8-orange-dark);
	color: var(--kre8-white);
	transform: translateY(-2px);
}

.kre8-button-outline .wp-block-button__link {
	border-color: var(--kre8-teal);
	background: transparent;
	color: var(--kre8-white);
}

.kre8-button-outline .wp-block-button__link:hover,
.kre8-button-outline .wp-block-button__link:focus-visible {
	border-color: var(--kre8-white);
	background: var(--kre8-white);
	color: var(--kre8-navy);
}

/* Hero */
.kre8-hero {
	position: relative;
	min-height: min(720px, calc(100vh - 74px)) !important;
}

.kre8-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(2, 30, 61, 0.98) 0%, rgba(3, 37, 74, 0.92) 28%, rgba(3, 37, 74, 0.45) 52%, rgba(3, 37, 74, 0) 78%);
}

.kre8-hero .wp-block-cover__image-background {
	object-position: center center;
}

.kre8-hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
	width: 100%;
}

.kre8-hero-content {
	padding: 80px 28px;
}

.kre8-hero-copy {
	max-width: 650px;
}

.kre8-hero-title {
	margin: 0;
	color: var(--kre8-white);
	font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
	font-size: clamp(2.8rem, 6vw, 5.4rem);
	font-weight: 900;
	letter-spacing: 0.015em;
	line-height: 0.91;
	text-transform: uppercase;
	text-shadow: 0 5px 22px rgba(0, 0, 0, 0.2);
}

.kre8-hero-title span {
	display: block;
	white-space: nowrap;
}

.kre8-hero-title::after {
	content: "";
	display: block;
	width: 82px;
	height: 6px;
	margin-top: 1.25rem;
	border-radius: 99px;
	background: var(--kre8-teal);
	transform: rotate(-2deg);
}

.kre8-hero-tagline {
	max-width: 500px;
	margin: 1.25rem 0 1.7rem;
	color: var(--kre8-white);
	font-size: clamp(1.2rem, 2vw, 1.65rem);
	line-height: 1.45;
}

/* Mission */
.kre8-about-section {
	position: relative;
	padding: clamp(64px, 8vw, 110px) 28px;
	background: var(--kre8-white);
}

.kre8-about-section::after {
	content: "";
	position: absolute;
	right: 12px;
	bottom: 32px;
	width: 150px;
	height: 90px;
	background: repeating-linear-gradient(-8deg, transparent 0 8px, var(--kre8-orange) 9px 17px);
	opacity: 0.95;
	clip-path: polygon(12% 10%, 100% 0, 84% 100%, 0 86%);
	transform: rotate(-9deg);
}

.kre8-about-grid {
	position: relative;
	z-index: 2;
	gap: clamp(42px, 7vw, 90px);
}

.kre8-about-image {
	position: relative;
}

.kre8-about-image::before {
	content: "";
	position: absolute;
	left: -36px;
	bottom: 10px;
	width: 38px;
	height: 86px;
	background-image: radial-gradient(circle, var(--kre8-teal) 2px, transparent 3px);
	background-size: 14px 14px;
}

.kre8-about-image img {
	width: 100%;
	min-height: 390px;
	border-radius: 18px;
	box-shadow: var(--kre8-shadow);
	object-fit: cover;
}

/* Impact band */
.kre8-impact-band {
	padding: 34px 28px;
	background: linear-gradient(105deg, var(--kre8-navy-deep), var(--kre8-navy));
	color: var(--kre8-white);
}

.kre8-impact-grid {
	gap: 0;
}

.kre8-impact-item {
	min-height: 150px;
	padding: 1.2rem clamp(1rem, 3vw, 2.8rem);
	text-align: center;
}

.kre8-impact-grid > .wp-block-column:not(:first-child) .kre8-impact-item {
	border-left: 1px solid rgba(255, 255, 255, 0.45);
}

.kre8-impact-icon {
	display: inline-grid;
	width: 54px;
	height: 54px;
	place-items: center;
	margin-bottom: 0.25rem;
	color: var(--kre8-teal);
}

.kre8-impact-icon svg {
	width: 52px;
	height: 52px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.kre8-impact-value {
	margin: 0;
	color: var(--kre8-white);
	font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
	font-size: clamp(1.65rem, 3vw, 2.65rem);
	font-weight: 900;
	letter-spacing: 0.015em;
	line-height: 1;
	text-transform: uppercase;
}

.kre8-impact-label {
	margin: 0.55rem 0 0;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.025em;
	text-transform: uppercase;
}

/* Programs */
.kre8-programs-section {
	padding: clamp(68px, 8vw, 110px) 28px;
	background: var(--kre8-cream);
}

.kre8-programs-intro {
	margin-bottom: 2rem;
	text-align: center;
}

.kre8-program-grid {
	gap: clamp(24px, 4vw, 46px);
}

.kre8-program-card {
	height: 100%;
	overflow: hidden;
	border: 1px solid rgba(5, 45, 88, 0.1);
	border-radius: 15px;
	background: var(--kre8-white);
	box-shadow: 0 12px 35px rgba(5, 45, 88, 0.1);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.kre8-program-card:hover {
	box-shadow: 0 20px 46px rgba(5, 45, 88, 0.16);
	transform: translateY(-5px);
}

.kre8-program-card figure {
	margin: 0;
}

.kre8-program-card img {
	display: block;
	width: 100%;
	height: clamp(260px, 30vw, 390px);
	object-fit: cover;
}

.kre8-card-body {
	padding: clamp(25px, 4vw, 38px);
}

.kre8-card-title {
	margin: 0 0 0.7rem;
	color: var(--kre8-navy);
	font-family: "Arial Narrow", Arial, sans-serif;
	font-size: clamp(1.35rem, 2.5vw, 2rem);
	font-weight: 900;
	line-height: 1.1;
}

.kre8-card-body p {
	color: var(--kre8-ink);
	line-height: 1.65;
}

.kre8-text-link a {
	color: #007f98;
	font-size: 0.85rem;
	font-weight: 900;
	letter-spacing: 0.03em;
	text-decoration: none;
	text-transform: uppercase;
}

.kre8-text-link a:hover,
.kre8-text-link a:focus-visible {
	color: var(--kre8-orange-dark);
}

/* Community banner */
.kre8-community-banner {
	min-height: 390px !important;
}

.kre8-community-banner .wp-block-cover__image-background {
	object-position: center 48%;
}

.kre8-community-banner .wp-block-cover__background {
	background: linear-gradient(90deg, rgba(3, 31, 63, 0.14), rgba(3, 31, 63, 0.92) 39%, rgba(3, 31, 63, 0.92) 61%, rgba(3, 31, 63, 0.14)) !important;
	opacity: 1 !important;
}

.kre8-community-title {
	max-width: 470px;
	margin-inline: auto;
	color: var(--kre8-white);
	font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
	font-size: clamp(2.55rem, 5vw, 4.4rem);
	font-weight: 900;
	letter-spacing: 0.015em;
	line-height: 1.02;
	text-align: center;
}

.kre8-community-title::after {
	content: "";
	display: block;
	width: 62px;
	height: 5px;
	margin: 0.75rem auto 0;
	border-radius: 99px;
	background: var(--kre8-teal);
}

/* Founders */
.kre8-founders-section {
	padding: clamp(62px, 7vw, 92px) 28px;
	background: var(--kre8-white);
}

.kre8-founders-grid {
	align-items: center !important;
	gap: clamp(28px, 5vw, 68px);
}

.kre8-founder {
	text-align: center;
}

.kre8-founder-avatar {
	display: grid;
	width: 112px;
	height: 112px;
	place-items: center;
	margin: 0 auto 0.8rem;
	border: 5px solid var(--kre8-cream);
	border-radius: 50%;
	background: linear-gradient(145deg, var(--kre8-navy), var(--kre8-navy-deep));
	box-shadow: 0 8px 24px rgba(5, 45, 88, 0.16);
	color: var(--kre8-white);
	font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
	font-size: 2.45rem;
	font-weight: 900;
}

.kre8-founder-name {
	margin: 0;
	color: var(--kre8-navy);
	font-weight: 900;
}

.kre8-founder-role {
	margin: 0.2rem 0 0;
	color: var(--kre8-muted);
	font-size: 0.8rem;
}

.kre8-founders-copy {
	text-align: center;
}

.kre8-founders-copy .kre8-section-title::after {
	margin-inline: auto;
}

/* CTA */
.kre8-cta {
	position: relative;
	padding: clamp(56px, 7vw, 84px) 28px;
	overflow: hidden;
	background: linear-gradient(110deg, var(--kre8-orange-dark), var(--kre8-orange) 45%, #ff940f);
	color: var(--kre8-white);
}

.kre8-cta::before,
.kre8-cta::after {
	content: "";
	position: absolute;
	width: 150px;
	height: 95px;
	opacity: 0.28;
}

.kre8-cta::before {
	left: -28px;
	top: -10px;
	background: repeating-linear-gradient(-9deg, transparent 0 8px, var(--kre8-white) 9px 17px);
	transform: rotate(-8deg);
}

.kre8-cta::after {
	right: 16px;
	top: 20px;
	background-image: radial-gradient(circle, var(--kre8-white) 2px, transparent 3px);
	background-size: 15px 15px;
}

.kre8-cta-inner {
	position: relative;
	z-index: 2;
}

.kre8-cta-title {
	width: 100%;
	max-width: 1200px !important;
	margin: 0 0 1.7rem;
	color: var(--kre8-white);
	font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
	font-size: clamp(2.15rem, 4vw, 3.35rem);
	font-weight: 900;
	letter-spacing: 0.015em;
	line-height: 1.05;
	text-align: center;
}

.kre8-cta-title::after {
	content: "";
	display: block;
	width: 70px;
	height: 5px;
	margin: 0.75rem auto 0;
	border-radius: 99px;
	background: var(--kre8-navy);
}

.kre8-cta-buttons {
	justify-content: center;
}

.kre8-cta-buttons .wp-block-button__link {
	min-width: 205px;
	padding: 0.95rem 1.5rem;
	border: 2px solid var(--kre8-white);
	border-radius: 8px;
	background: var(--kre8-navy);
	color: var(--kre8-white);
	font-size: 0.94rem;
	font-weight: 900;
	letter-spacing: 0.025em;
	text-transform: uppercase;
}

.kre8-cta-buttons .wp-block-button:nth-child(2) .wp-block-button__link {
	background: transparent;
}

.kre8-cta-buttons .wp-block-button:nth-child(3) .wp-block-button__link {
	background: var(--kre8-white);
	color: var(--kre8-orange-dark);
}

.kre8-cta-buttons .wp-block-button__link:hover,
.kre8-cta-buttons .wp-block-button__link:focus-visible {
	border-color: var(--kre8-navy-deep);
	background: var(--kre8-navy-deep);
	color: var(--kre8-white);
}

/* Footer */
.kre8-footer-wrap {
	padding: 46px 28px 24px;
	background: linear-gradient(105deg, var(--kre8-navy-deep), var(--kre8-navy));
	color: var(--kre8-white);
}

.kre8-footer-grid {
	align-items: center !important;
	gap: 38px;
}

.kre8-footer-wordmark {
	color: var(--kre8-white);
}

.kre8-footer-tagline {
	max-width: 330px;
	margin-top: 0.8rem;
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.93rem;
	line-height: 1.55;
}

.kre8-footer-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(110px, 1fr));
	gap: 0.65rem 1.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kre8-footer-links a {
	color: var(--kre8-white);
	font-size: 0.8rem;
	font-weight: 800;
	text-decoration: none;
	text-transform: uppercase;
}

.kre8-footer-links a:hover,
.kre8-footer-links a:focus-visible {
	color: var(--kre8-teal);
}

.kre8-footer-heart {
	margin: 0;
	color: var(--kre8-teal);
	font-size: clamp(3rem, 8vw, 5.5rem);
	line-height: 1;
	text-align: right;
	transform: rotate(-8deg);
}

.kre8-copyright {
	margin: 32px 0 0;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.76rem;
	text-align: center;
}

/* Basic inner-page fallback */
.kre8-inner-main {
	min-height: 52vh;
	padding: 70px 28px;
}

.kre8-inner-main .wp-block-post-title {
	color: var(--kre8-navy);
}

/* Accessibility and responsive behavior */
:focus-visible {
	outline: 3px solid var(--kre8-teal);
	outline-offset: 4px;
}

@media (max-width: 900px) {
	.admin-bar .kre8-header-wrap {
		top: 46px;
	}

	.kre8-header {
		min-height: 66px;
		padding-inline: 20px;
	}

	.kre8-nav .wp-block-navigation__responsive-container.is-menu-open {
		padding: 28px;
		background: var(--kre8-navy-deep);
		color: var(--kre8-white);
	}

	.kre8-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		color: var(--kre8-white);
		font-size: 1.15rem;
	}

	.kre8-hero::before {
		background: linear-gradient(90deg, rgba(2, 30, 61, 0.97), rgba(2, 30, 61, 0.78) 62%, rgba(2, 30, 61, 0.38));
	}

	.kre8-impact-grid > .wp-block-column:not(:first-child) .kre8-impact-item {
		border-left: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.35);
	}

	.kre8-community-banner .wp-block-cover__background {
		background: rgba(3, 31, 63, 0.77) !important;
	}

	.kre8-footer-heart {
		text-align: center;
	}
}

@media (max-width: 700px) {
	.kre8-header {
		padding-inline: 16px;
	}

	.kre8-wordmark {
		font-size: 1.8rem;
	}

	.kre8-hero {
		min-height: 660px !important;
	}

	.kre8-hero .wp-block-cover__image-background {
		object-position: 64% center;
	}

	.kre8-hero::before {
		background: linear-gradient(0deg, rgba(2, 30, 61, 0.97), rgba(2, 30, 61, 0.8) 60%, rgba(2, 30, 61, 0.36));
	}

	.kre8-hero-content {
		align-items: flex-end;
		padding: 60px 20px;
	}

	.kre8-hero-title {
		font-size: clamp(2.15rem, 10.8vw, 3.4rem);
	}

	.kre8-hero-buttons {
		align-items: stretch;
		flex-direction: column;
	}

	.kre8-hero-buttons .wp-block-button,
	.kre8-hero-buttons .wp-block-button__link {
		width: 100%;
	}

	.kre8-about-section,
	.kre8-programs-section,
	.kre8-founders-section,
	.kre8-cta {
		padding-inline: 20px;
	}

	.kre8-about-image::before,
	.kre8-about-section::after {
		display: none;
	}

	.kre8-about-image img {
		min-height: 290px;
	}

	.kre8-program-card img {
		height: 270px;
	}

	.kre8-cta-buttons {
		align-items: stretch;
		flex-direction: column;
	}

	.kre8-cta-buttons .wp-block-button,
	.kre8-cta-buttons .wp-block-button__link {
		width: 100%;
	}

	.kre8-footer-wrap {
		padding-inline: 20px;
	}

	.kre8-footer-grid {
		text-align: center;
	}

	.kre8-footer-tagline {
		margin-inline: auto;
	}

	.kre8-footer-links {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
