/* aXcelerate theme — brand tokens and base styles.
   Colours, type and spacing follow the aXcelerate Brand Book. */

@font-face {
	font-family: "Manrope";
	src: url("../fonts/manrope-variable.woff") format("woff");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

:root {
	--axc-green-700: #0AC251;
	--axc-green-600: #3BCE73;
	--axc-green-deep: #0C9943;
	--axc-green-100: #E7F9EE;
	--axc-green-25: #EEFBF3;
	--axc-navy-700: #20374B;
	--axc-navy-600: #5A6D80;
	--axc-navy-500: #8E9AA5;
	--axc-navy-400: #D9DDE1;
	--axc-navy-300: #E4E5E8;
	--axc-navy-200: #ECEEF0;
	--axc-navy-100: #F2F5F7;
	--axc-white: #FFFFFF;

	--axc-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--axc-container: 1240px;
	--axc-gutter: clamp(20px, 5vw, 60px);
	--axc-radius-sm: 8px;
	--axc-radius-md: 12px;
	--axc-radius-lg: 20px;
	--axc-header-h: 76px;

	--axc-shadow-grey:
		0 1px 2px rgba(51, 67, 82, .02),
		0 3px 5px rgba(51, 67, 82, .03),
		0 7px 10px rgba(51, 67, 82, .045),
		0 17px 23px rgba(51, 67, 82, .0586),
		0 56px 75px rgba(51, 67, 82, .09);
	--axc-shadow-green:
		0 1px 2px rgba(58, 122, 82, .05),
		0 4px 6px rgba(58, 122, 82, .08),
		0 10px 16px rgba(58, 122, 82, .10),
		0 30px 50px rgba(58, 122, 82, .14);
	--axc-ease: 180ms ease-out;
}

/* ── Base ─────────────────────────────────────────── */

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

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

body {
	margin: 0;
	background: var(--axc-white);
	color: var(--axc-navy-600);
	font-family: var(--axc-font);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	color: var(--axc-navy-700);
	font-family: var(--axc-font);
	font-weight: 700;
	line-height: 1.3;
	text-wrap: balance;
}
h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.2; }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: clamp(22px, 2.4vw, 32px); }
h4 { font-size: 24px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p { margin: 0 0 1.2em; }

a {
	color: var(--axc-navy-700);
	text-decoration-color: var(--axc-green-700);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	transition: color var(--axc-ease);
}
a:hover { color: var(--axc-green-deep); }

img, video { max-width: 100%; height: auto; }

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

hr {
	border: 0;
	height: 1px;
	background: var(--axc-navy-300);
	margin: 2em 0;
}

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

.axc-skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--axc-navy-700);
	color: var(--axc-white);
	border-radius: var(--axc-radius-sm);
	font-weight: 700;
	text-decoration: none;
}
.axc-skip-link:focus { top: 16px; color: var(--axc-white); }

.axc-container {
	width: 100%;
	max-width: calc(var(--axc-container) + var(--axc-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--axc-gutter);
}

/* ── Buttons ──────────────────────────────────────── */

.axc-button,
.wp-block-button__link,
.axc-entry button[type="submit"],
.axc-entry input[type="submit"],
.axc-empty input[type="submit"],
.search-form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 16px 20px;
	border: 0;
	border-radius: var(--axc-radius-sm);
	background: var(--axc-green-700);
	color: var(--axc-navy-700); /* Navy on green passes WCAG AA; white does not. */
	font-family: var(--axc-font);
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: filter var(--axc-ease), background var(--axc-ease);
}
.axc-button:hover,
.wp-block-button__link:hover,
.axc-entry button[type="submit"]:hover,
.axc-entry input[type="submit"]:hover,
.search-form input[type="submit"]:hover {
	color: var(--axc-navy-700);
	filter: brightness(1.08);
}
.axc-button:active { transform: translateY(1px); }

.axc-button--small { min-height: 44px; padding: 13px 18px; font-size: 16px; }

.axc-button--ghost {
	background: transparent;
	box-shadow: inset 0 0 0 1.5px var(--axc-navy-400);
}
.axc-button--ghost:hover {
	background: var(--axc-white);
	filter: none;
}

/* ── Forms ──────────────────────────────────────────
   Scoped to theme-rendered content (posts, comments, search) so plugin
   forms, including aXcelerate enrolment forms and Elementor forms, keep their own styles. */

:is(.axc-entry, .axc-empty, .search-form) :is(input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[type="search"], input[type="password"], input[type="date"], select, textarea) {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1.5px solid var(--axc-navy-400);
	border-radius: var(--axc-radius-sm);
	background: var(--axc-white);
	color: var(--axc-navy-700);
	font: inherit;
	transition: border-color var(--axc-ease);
}
:is(.axc-entry, .axc-empty, .search-form) :is(input, select, textarea):focus {
	border-color: var(--axc-green-deep);
	outline: none;
	box-shadow: 0 0 0 3px var(--axc-green-100);
}
:is(.axc-entry, .axc-empty) label { color: var(--axc-navy-700); font-weight: 600; }

.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form label { flex: 1; }

/* ── Header ───────────────────────────────────────── */

.axc-header {
	position: relative;
	z-index: 100;
	background: var(--axc-white);
	border-bottom: 1px solid var(--axc-navy-300);
}
.axc-has-sticky-header .axc-header {
	position: sticky;
	top: 0;
}
.admin-bar.axc-has-sticky-header .axc-header { top: 32px; }
@media (max-width: 782px) {
	.admin-bar.axc-has-sticky-header .axc-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar.axc-has-sticky-header .axc-header { top: 0; }
}

.axc-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--axc-header-h);
}

.axc-header__brand { flex: none; }
.axc-logo,
.custom-logo-link { display: inline-flex; padding: 6px 0; }
.axc-logo img,
.custom-logo { display: block; width: auto; height: 28px; }

.axc-header__panel {
	display: flex;
	align-items: center;
	gap: 24px;
	flex: 1;
}

.axc-nav { flex: 1; }
.axc-nav__list,
.axc-nav__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}
.axc-nav__list {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px 8px;
}
.axc-nav__list > li { position: relative; display: flex; align-items: center; }
.axc-nav__list a {
	display: block;
	padding: 10px 12px;
	color: var(--axc-navy-700);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	border-radius: var(--axc-radius-sm);
}
.axc-nav__list a:hover { background: var(--axc-navy-100); color: var(--axc-navy-700); }
.axc-nav__list .current-menu-item > a,
.axc-nav__list .current-menu-ancestor > a {
	box-shadow: inset 0 -3px 0 var(--axc-green-700);
	border-radius: 0;
}

.axc-submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-left: -8px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--axc-navy-700);
	cursor: pointer;
}
.axc-submenu-toggle:hover { background: var(--axc-navy-100); }
.axc-submenu-toggle[aria-expanded="true"] .axc-icon { transform: rotate(180deg); }
.axc-icon { transition: transform var(--axc-ease); }

.axc-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 260px;
	padding: 8px;
	background: var(--axc-white);
	border-radius: var(--axc-radius-md);
	box-shadow: var(--axc-shadow-grey);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--axc-ease), visibility var(--axc-ease);
}
.axc-nav__list .sub-menu a { font-weight: 500; }
.axc-nav__list li:hover > .sub-menu,
.axc-nav__list li:focus-within > .sub-menu,
.axc-nav__list li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
}

.axc-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

.axc-icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	color: var(--axc-navy-700);
}
.axc-icon-button:hover { background: var(--axc-navy-100); color: var(--axc-navy-700); }

.axc-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-left: auto;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--axc-navy-700);
	cursor: pointer;
}
.axc-nav-toggle:hover { background: var(--axc-navy-100); }
.axc-nav-toggle__close { display: none; }
.axc-nav-toggle[aria-expanded="true"] .axc-nav-toggle__open { display: none; }
.axc-nav-toggle[aria-expanded="true"] .axc-nav-toggle__close { display: inline-flex; }

@media (max-width: 1024px) {
	.axc-nav-toggle { display: inline-flex; }

	.axc-header__panel {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 16px var(--axc-gutter) 24px;
		background: var(--axc-white);
		border-bottom: 1px solid var(--axc-navy-300);
		box-shadow: var(--axc-shadow-grey);
		max-height: calc(100vh - var(--axc-header-h));
		overflow-y: auto;
	}
	.axc-header.is-open .axc-header__panel { display: flex; }

	.axc-nav__list { flex-direction: column; gap: 0; }
	.axc-nav__list > li { flex-wrap: wrap; justify-content: space-between; }
	.axc-nav__list > li > a { flex: 1; }
	.axc-nav__list a { padding: 14px 8px; font-size: 16px; }
	.axc-submenu-toggle { width: 44px; height: 44px; margin: 0; }

	.axc-nav__list .sub-menu {
		position: static;
		display: none;
		width: 100%;
		min-width: 0;
		padding: 0 0 8px 12px;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
	}
	.axc-nav__list li.is-open > .sub-menu { display: block; }
	.axc-nav__list li:hover > .sub-menu { display: none; }
	.axc-nav__list li.is-open:hover > .sub-menu { display: block; }

	.axc-header__actions { margin-left: 0; justify-content: space-between; }
	.axc-header__actions .axc-button { flex: 1; }
}

/* ── Main content ─────────────────────────────────── */

.axc-main { display: block; }
.axc-main:not(.axc-main--elementor) { padding-block: clamp(48px, 7vw, 100px); }

.axc-entry { max-width: calc(760px + var(--axc-gutter) * 2); }
.axc-entry__header { margin-bottom: 32px; }
.axc-entry__meta {
	margin: 0 0 8px;
	color: var(--axc-navy-600);
	font-size: 14px;
	font-weight: 600;
}
.axc-entry__thumbnail { margin: 0 0 32px; }
.axc-entry__thumbnail img { border-radius: var(--axc-radius-lg); }
.axc-entry__content { font-size: 18px; }
.axc-entry__content > * + h2,
.axc-entry__content > * + h3 { margin-top: 1.6em; }
.axc-entry__content ul,
.axc-entry__content ol { padding-left: 1.3em; }
.axc-entry__content li::marker { color: var(--axc-green-deep); }
.axc-entry__content blockquote {
	margin: 2em 0;
	padding: 24px 32px;
	background: var(--axc-navy-100);
	border-radius: var(--axc-radius-md);
	color: var(--axc-navy-700);
	font-size: 20px;
	font-weight: 600;
}
.axc-entry__content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}
.axc-entry__content th,
.axc-entry__content td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--axc-navy-300);
	text-align: left;
}
.axc-entry__content th { color: var(--axc-navy-700); background: var(--axc-navy-100); }
.alignwide { max-width: 1240px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

.axc-archive__header { margin-bottom: 40px; }
.axc-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 24px;
}
.axc-card {
	display: flex;
	flex-direction: column;
	background: var(--axc-navy-100);
	border-radius: var(--axc-radius-md);
	overflow: hidden;
}
.axc-card__image img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.axc-card__body { padding: 28px; }
.axc-card__title { font-size: 20px; line-height: 1.4; }
.axc-card__title a { text-decoration: none; }
.axc-card__title a:hover { text-decoration: underline; }
.axc-card__excerpt p:last-child { margin-bottom: 0; }

.navigation.pagination { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border-radius: var(--axc-radius-sm);
	box-shadow: inset 0 0 0 1.5px var(--axc-navy-300);
	font-weight: 700;
	text-decoration: none;
}
.page-numbers.current { background: var(--axc-green-100); box-shadow: none; }

.axc-404__code {
	margin: 0;
	color: var(--axc-green-deep);
	font-size: clamp(96px, 16vw, 180px);
	font-weight: 500;
	line-height: 1;
}

.axc-comments { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--axc-navy-300); }

/* ── Footer ───────────────────────────────────────── */

.axc-footer {
	position: relative;
	overflow: hidden;
	background: var(--axc-navy-100);
	color: var(--axc-navy-600);
	font-size: 15px;
	line-height: 1.6;
}
.axc-footer > .axc-container { position: relative; }
.axc-footer__wave {
	position: absolute;
	top: -60px;
	right: -120px;
	width: 760px;
	max-width: none;
	opacity: .12;
	pointer-events: none;
}

.axc-footer__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding-top: 72px;
	padding-bottom: 56px;
}
.axc-footer__intro { display: flex; flex-direction: column; gap: 16px; max-width: 620px; }
.axc-footer__intro .axc-logo img,
.axc-footer__intro .custom-logo { height: 30px; }
.axc-footer__title {
	margin: 0;
	color: var(--axc-navy-700);
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 700;
	line-height: 1.35;
}
.axc-footer__text { margin: 0; font-size: 16px; line-height: 1.8; }
.axc-footer__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.axc-footer__rule { margin: 0; background: var(--axc-navy-400); }

.axc-footer__groups {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 32px 32px;
	padding-block: 48px;
}
.axc-footer__group { min-width: 0; }
.axc-footer__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
	list-style: none;
	cursor: default;
}
.axc-footer__summary::-webkit-details-marker { display: none; }
.axc-footer__summary .axc-icon { display: none; color: var(--axc-navy-600); flex: none; }

/* Doubled class beats Elementor's Site Settings heading styles (.elementor-kit-N h2). */
.axc-footer .axc-footer__heading {
	margin: 0;
	padding: 0;
	color: var(--axc-navy-700);
	font-family: var(--axc-font);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	line-height: 1.6;
	text-transform: uppercase;
	text-wrap: wrap;
}

.axc-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 2px;
	font-size: 14px;
	line-height: 1.5;
}
.axc-js .axc-footer__links.has-extra:not(.is-expanded) .is-extra { display: none; }

.axc-footer a {
	color: var(--axc-navy-600);
	text-decoration: none;
}
.axc-footer__links a,
.axc-footer__legal-list a { display: inline-block; padding: 4px 0; }
.axc-footer a:hover {
	color: var(--axc-navy-700);
	text-decoration: underline;
	text-decoration-color: var(--axc-green-700);
}

.axc-footer__more {
	display: none;
	margin-top: 6px;
	padding: 6px 0;
	border: 0;
	background: none;
	color: var(--axc-navy-700);
	font-family: var(--axc-font);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: underline;
	text-decoration-color: var(--axc-green-700);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}
.axc-js .axc-footer__more { display: inline-block; }
.axc-footer__more:hover { color: var(--axc-green-deep); }

.axc-footer__all {
	display: inline-block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 700;
}

/* Phones: each group is a tap-to-open section */
@media (max-width: 600px) {
	.axc-footer__groups { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 24px; }
	.axc-footer__group { border-bottom: 1px solid var(--axc-navy-400); }
	.axc-footer__summary {
		min-height: 52px;
		margin: 0;
		cursor: pointer;
	}
	.axc-footer__summary .axc-icon { display: block; transition: transform 180ms ease-out; }
	.axc-footer__group[open] .axc-footer__summary .axc-icon { transform: rotate(180deg); }
	.axc-footer__group[open] { padding-bottom: 16px; }
}
.axc-footer__empty { padding-block: 40px; }

.axc-footer__bar { position: relative; background: var(--axc-navy-200); }
.axc-footer__bar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	padding-block: 20px;
	font-size: 14px;
}
.axc-footer__copyright { margin: 0; }
.axc-footer__legal-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}


/* ── Elementor ────────────────────────────────────── */

/* Let Elementor sections run edge to edge on Elementor-built pages. */
.axc-main--elementor {
	overflow-x: clip;
	padding-top: var(--axc-elementor-top, 0px);
}

/* Elementor's own "Elementor Full Width" template skips the theme's page.php,
   so target its page content directly (headers and footers built in Elementor are left alone). */
body.page-template-elementor_header_footer .elementor[data-elementor-type="wp-page"],
body.page-template-elementor_header_footer .elementor[data-elementor-type="wp-post"],
body.page-template-elementor_header_footer .elementor[data-elementor-type="single-page"],
body.page-template-elementor_header_footer .elementor[data-elementor-type="single-post"] {
	padding-top: var(--axc-elementor-top, 0px);
}

/* Brand defaults that Elementor widgets inherit (overridable in Site Settings). */
.elementor-widget-heading .elementor-heading-title { font-family: var(--axc-font); }
.elementor-button { font-family: var(--axc-font); font-weight: 700; }

/* ── Motion ───────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
