/*
Theme Name:   Active Fusion
Theme URI:    https://activefusion.org.uk
Author:       Active Fusion
Author URI:   https://activefusion.org.uk
Description:  A focused donation landing page theme for Active Fusion, a charity using sport and physical activity to transform the lives of children and young people. Pairs with the Active Fusion Donations plugin.
Version:      1.0.0
Requires PHP: 7.4
License:      GPL v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  active-fusion
*/

/* ------------------------------------------------------------------ */
/* Design tokens (from active-fusion-logo.svg brand colours)          */
/* ------------------------------------------------------------------ */
:root {
	--af-navy: #141e29;
	--af-navy-light: #23303f;
	--af-red: #c21632;
	--af-red-dark: #9e1128;
	--af-cream: #f7f5f2;
	--af-border: #e2e5e9;
	--af-text: #2b333c;
	--af-text-muted: #5b6572;
	--af-font-heading: "Poppins", "Segoe UI", sans-serif;
	--af-font-body: "Inter", "Segoe UI", sans-serif;
	--af-radius: 12px;
	--af-container: 1140px;
}

/* ------------------------------------------------------------------ */
/* Reset & base                                                       */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

h1, h2, h3, h4 {
	font-family: var(--af-font-heading);
	color: var(--af-navy);
	line-height: 1.2;
	margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }

p { margin: 0 0 1em; color: var(--af-text-muted); }

a { color: var(--af-red); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.af-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--af-navy);
	color: #fff;
	padding: 10px 16px;
	z-index: 999;
}
.af-skip-link:focus {
	left: 12px;
	top: 12px;
}

.af-container {
	max-width: var(--af-container);
	margin: 0 auto;
	padding: 0 24px;
}

.af-eyebrow {
	display: inline-block;
	font-family: var(--af-font-heading);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--af-red);
	margin-bottom: 14px;
}
.af-eyebrow--light { color: #f4c3cc; }

.af-btn {
	display: inline-block;
	padding: 13px 28px;
	border-radius: 999px;
	font-family: var(--af-font-heading);
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
	border: 2px solid transparent;
}
.af-btn--primary {
	background: var(--af-red);
	color: #ffffff;
}
.af-btn--primary:hover {
	background: var(--af-red-dark);
	transform: translateY(-1px);
	color: #fff;
}
.af-btn--large { padding: 16px 34px; font-size: 1.05rem; }

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */
.af-header {
	background: #ffffff;
	border-bottom: 1px solid var(--af-border);
	position: sticky;
	top: 0;
	z-index: 100;
}

.af-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	padding-bottom: 14px;
}

.af-header__logo img,
.af-header__logo .custom-logo {
	height: 56px;
	width: auto;
}

.af-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.af-nav__menu {
	list-style: none;
	display: flex;
	gap: 24px;
	margin: 0;
	padding: 0;
}

.af-nav__menu a {
	color: var(--af-navy);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
}
.af-nav__menu a:hover { color: var(--af-red); }

.af-nav__cta { white-space: nowrap; }

.af-nav__toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}
.af-nav__toggle-bar {
	width: 24px;
	height: 2px;
	background: var(--af-navy);
	display: block;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */
.af-hero {
	background: linear-gradient(180deg, var(--af-cream) 0%, #ffffff 100%);
	padding: 72px 0;
}

.af-hero__inner {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 48px;
	align-items: center;
}

.af-hero__subheading {
	font-size: 1.15rem;
	color: var(--af-navy);
	font-weight: 500;
}

.af-hero__tagline {
	font-style: italic;
}

.af-hero__copy .af-btn { margin-top: 12px; }

.af-hero__media {
	display: flex;
	justify-content: center;
	position: relative;
}

.af-hero__photo-frame {
	position: relative;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(20, 30, 41, 0.25);
	border: 6px solid #ffffff;
}

.af-hero__photo-frame::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 18px;
	box-shadow: inset 0 0 0 3px var(--af-red);
	pointer-events: none;
}

.af-hero__photo-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 18px;
}

/* ------------------------------------------------------------------ */
/* Why give                                                            */
/* ------------------------------------------------------------------ */
.af-why-give {
	padding: 64px 0;
}

.af-why-give h2 {
	text-align: center;
	margin-bottom: 40px;
}

.af-why-give__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	text-align: center;
}

.af-why-give__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(194, 22, 50, 0.08);
	font-size: 1.6rem;
	margin-bottom: 14px;
}

.af-why-give__grid p {
	font-weight: 600;
	color: var(--af-navy);
	margin: 0;
}

/* ------------------------------------------------------------------ */
/* Gift tiers                                                          */
/* ------------------------------------------------------------------ */
.af-gift-tiers {
	background: var(--af-cream);
	padding: 64px 0;
}

.af-gift-tiers h2 {
	text-align: center;
	margin-bottom: 40px;
}

.af-gift-tiers__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.af-gift-tier {
	background: #ffffff;
	border-radius: var(--af-radius);
	padding: 28px 24px;
	text-align: center;
	box-shadow: 0 4px 20px rgba(20, 30, 41, 0.06);
}

.af-gift-tier__amount {
	display: block;
	font-family: var(--af-font-heading);
	font-weight: 800;
	font-size: 2rem;
	color: var(--af-red);
	margin-bottom: 10px;
}

.af-gift-tier p {
	margin: 0;
	color: var(--af-text);
}

/* ------------------------------------------------------------------ */
/* Donate section                                                      */
/* ------------------------------------------------------------------ */
.af-donate {
	background: var(--af-navy);
	padding: 72px 0;
}

.af-donate__inner {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 48px;
	align-items: center;
}

.af-donate__intro h2 { color: #ffffff; }
.af-donate__intro p { color: #c6cdd6; }

/* ------------------------------------------------------------------ */
/* Generic page content                                                */
/* ------------------------------------------------------------------ */
.af-page-content,
.af-page {
	padding: 56px 0;
}

.af-page__header h1 { text-align: center; margin-bottom: 32px; }

/* ------------------------------------------------------------------ */
/* Blog listing                                                        */
/* ------------------------------------------------------------------ */
.af-blog { padding: 56px 0; }

.af-blog__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 28px;
}

.af-blog__card {
	border: 1px solid var(--af-border);
	border-radius: var(--af-radius);
	overflow: hidden;
}

.af-blog__thumb img { width: 100%; }

.af-blog__title { font-size: 1.2rem; padding: 0 20px; }
.af-blog__title a { color: var(--af-navy); text-decoration: none; }
.af-blog__excerpt { padding: 0 20px; }
.af-blog__link { display: block; padding: 0 20px 20px; text-decoration: none; font-weight: 600; }

.af-blog__pagination { margin-top: 32px; text-align: center; }

/* ------------------------------------------------------------------ */
/* Footer                                                               */
/* ------------------------------------------------------------------ */
.af-footer {
	background: var(--af-navy);
	color: #c6cdd6;
	padding-top: 48px;
}

.af-footer__inner {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.af-footer__brand p { color: #9aa4b0; }

.af-footer-widget__title,
.af-footer__contact .af-footer-widget__title {
	color: #ffffff;
	font-size: 1rem;
	margin-bottom: 12px;
}

.af-footer__contact a { color: #c6cdd6; text-decoration: none; }
.af-footer__contact a:hover { color: #ffffff; }
.af-footer__contact p { margin: 0 0 6px; color: #9aa4b0; }

.af-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}
.af-footer__menu li { margin-bottom: 8px; }
.af-footer__menu a { color: #c6cdd6; text-decoration: none; }
.af-footer__menu a:hover { color: #ffffff; }

.af-footer__bottom {
	padding: 20px 0;
	font-size: 0.85rem;
	color: #8994a2;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 900px) {
	.af-hero__inner,
	.af-donate__inner {
		grid-template-columns: 1fr;
	}

	.af-hero__media { order: -1; }

	.af-why-give__grid { grid-template-columns: repeat(2, 1fr); }

	.af-gift-tiers__grid { grid-template-columns: 1fr; }

	.af-footer__inner { grid-template-columns: 1fr; }

	.af-nav__toggle { display: flex; }

	.af-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #ffffff;
		border-bottom: 1px solid var(--af-border);
		flex-direction: column;
		align-items: flex-start;
		padding: 20px 24px;
		display: none;
	}

	.af-nav.is-open { display: flex; }

	.af-nav__menu {
		flex-direction: column;
		gap: 14px;
		width: 100%;
	}

	.af-nav__cta { width: 100%; text-align: center; }
}
