/*
 * Aspire Training - design system CSS
 * ------------------------------------
 * Palette below is the client-specified brand palette (primary/secondary/
 * accent/text/light). Two supporting tokens weren't part of that 5-color
 * set and are kept from the original build - --aspire-black (the flat
 * black "Submit" button already used on the live site) and --aspire-border
 * (neutral #cccccc for input/card borders) - change either if you want.
 *
 * Selectors target Astra's standard markup (.site-header, .main-header-bar,
 * .main-navigation, .ast-button, footer widget areas, etc). If your Astra
 * version renders slightly different class names, open DevTools on the
 * live site and adjust the selector, not the color/spacing values.
 */

/* Self-hosted fonts. Astra's "Load fonts locally" Customizer option is
   Pro-only, so instead of that (or a Google Fonts <link> tag, which leaks
   visitor IPs to Google - a GDPR consideration for an Irish site) these
   .woff2 files are bundled directly in assets/fonts/ and loaded from here.
   Both are variable fonts - one file covers several weights, which is why
   multiple @font-face blocks below point at the same file. Latin character
   set only (covers English); if you need accented Irish-language
   characters beyond basic Latin (e.g. Ó, Ú with fada), grab the "latin-ext"
   subset files from fonts.google.com and add them the same way. */

@font-face {
	font-family: "Work Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/work-sans-variable-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 500 600;
	font-display: swap;
	src: url("../fonts/fraunces-variable-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Fraunces";
	font-style: italic;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/fraunces-italic-variable-latin.woff2") format("woff2");
}

:root {
	--aspire-navy: #124072;       /* brand "primary" - header/footer bg, deep accents */
	--aspire-blue: #3d6b99;        /* brand "secondary" - headings, links, color bands */
	--aspire-blue-light: #8ba6c2;  /* secondary lightened ~40% - pill button, soft borders */
	--aspire-gold: #f2b134;        /* brand "accent" */
	--aspire-black: #111111;       /* primary CTA buttons (Submit, etc.) - unchanged, matches live site */
	--aspire-white: #ffffff;
	--aspire-text: #2c2c2c;        /* brand "text" */
	--aspire-border: #cccccc;      /* unchanged - neutral border */
	--aspire-grey-bg: #f5f7fa;     /* brand "light" */

	--aspire-font-heading: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--aspire-font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--aspire-radius: 6px;
	--aspire-radius-pill: 999px;
}

/* ---------- Base typography ---------- */

body {
	font-family: var(--aspire-font-body);
	color: var(--aspire-text);
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.ast-hfb-header .site-title {
	font-family: var(--aspire-font-heading);
	font-weight: 700;
	color: var(--aspire-navy);
}

a {
	color: var(--aspire-blue);
}

a:hover,
a:focus {
	color: var(--aspire-navy);
}

/* ---------- Header / navigation ---------- */

/* Astra's Header Builder (no Elementor involved). Astra prints its own
   Customizer-generated color/typography CSS inline in <head>, AFTER this
   stylesheet - at equal specificity that inline block wins by cascade
   order, which is what washed the nav text out to a dull grey last time.
   Fixed here with higher-specificity selectors + !important so this always
   wins regardless of what Astra's Customizer has stored. */

.site-header,
.main-header-bar {
	background-color: var(--aspire-navy);
	border-bottom: none;
}

.ast-site-identity .site-title,
.ast-site-identity .site-title a {
	color: var(--aspire-white);
}

.site-header .main-navigation ul li a,
.main-header-bar .main-navigation ul li a,
.main-header-bar .main-navigation > .menu-container > .menu-item > a {
	color: var(--aspire-white) !important;
	font-weight: 600;
	font-family: var(--aspire-font-heading);
}

.site-header .main-navigation ul li a:hover,
.site-header .main-navigation ul li.current-menu-item > a,
.main-header-bar .main-navigation ul li a:hover,
.main-header-bar .main-navigation ul li.current-menu-item > a {
	color: var(--aspire-gold) !important;
}

/* Dropdown arrow / chevron icons on "Find A Course" etc. */
.main-header-bar .main-navigation .dropdown-menu-toggle,
.main-header-bar .main-navigation svg {
	color: var(--aspire-white) !important;
	fill: var(--aspire-white) !important;
}

/* "My Profile" pill button in the header */
.main-header-bar .ast-button,
.main-header-bar .menu-item > a.ast-button {
	background-color: var(--aspire-blue-light) !important;
	color: var(--aspire-navy) !important;
	border-radius: var(--aspire-radius-pill);
	padding: 0.6em 1.4em;
	font-weight: 600;
}

.main-header-bar .ast-button:hover {
	background-color: var(--aspire-gold) !important;
}

/* ---------- Buttons (general) ---------- */

.ast-button,
button:not(.main-header-bar .ast-button),
input[type="submit"],
.wp-block-button__link,
.wp-element-button {
	background-color: var(--aspire-black);
	color: var(--aspire-white);
	border: none;
	border-radius: var(--aspire-radius);
	font-weight: 600;
	font-family: var(--aspire-font-heading);
	padding: 0.75em 1.6em;
	transition: background-color 0.2s ease;
}

.ast-button:hover,
button:not(.main-header-bar .ast-button):hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.wp-element-button:hover {
	background-color: var(--aspire-navy);
	color: var(--aspire-white);
}

/* Secondary / outline button variant - use class "is-style-outline" in the
   block editor button block, or add "aspire-btn-outline" manually. */
.is-style-outline .wp-block-button__link,
.aspire-btn-outline {
	background-color: transparent;
	color: var(--aspire-blue);
	border: 2px solid var(--aspire-blue);
}

.is-style-outline .wp-block-button__link:hover,
.aspire-btn-outline:hover {
	background-color: var(--aspire-blue);
	color: var(--aspire-white);
}

/* ---------- Forms (contact / enquiry, Woo, LearnPress) ---------- */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
select,
textarea {
	border: 1px solid var(--aspire-border);
	border-radius: var(--aspire-radius);
	padding: 0.65em 0.9em;
	font-family: var(--aspire-font-body);
	color: var(--aspire-text);
	background-color: var(--aspire-white);
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--aspire-blue);
	outline: none;
	box-shadow: 0 0 0 2px rgba(60, 101, 145, 0.15);
}

label {
	font-weight: 600;
	color: var(--aspire-text);
}

/* ---------- Full-width color bands (e.g. "Experienced Educators") ---------- */

.aspire-band,
.wp-block-group.is-style-aspire-band {
	background-color: var(--aspire-blue);
	color: var(--aspire-white);
	padding: 3rem 1.5rem;
	text-align: center;
}

.aspire-band h2,
.aspire-band h3,
.wp-block-group.is-style-aspire-band h2,
.wp-block-group.is-style-aspire-band h3 {
	color: var(--aspire-white);
}

/* ---------- Footer ---------- */

/* Astra's Footer Builder - same inline-CSS-ordering issue as the header,
   same fix. */

.ast-builder-footer-row,
footer.site-footer,
.ast-footer {
	background-color: var(--aspire-navy) !important;
	color: var(--aspire-white);
}

.ast-builder-footer-row a,
.ast-footer a {
	color: var(--aspire-white) !important;
}

.ast-builder-footer-row a:hover,
.ast-footer a:hover {
	color: var(--aspire-gold) !important;
}

.ast-builder-footer-row h2,
.ast-builder-footer-row h3,
.ast-footer h2,
.ast-footer h3 {
	color: var(--aspire-white) !important;
	font-family: var(--aspire-font-heading);
}

/* ---------- LearnPress course cards ---------- */

.learn-press-courses .course,
.course-item {
	border-radius: var(--aspire-radius);
	border: 1px solid var(--aspire-border);
}

.learn-press-courses .course .course-title a,
.course-item .course-title a {
	color: var(--aspire-blue);
	font-family: var(--aspire-font-heading);
}

/* ---------- WooCommerce ---------- */

.woocommerce ul.products li.product .price {
	color: var(--aspire-navy);
	font-weight: 700;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit {
	background-color: var(--aspire-black);
	color: var(--aspire-white);
	border-radius: var(--aspire-radius);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
	background-color: var(--aspire-navy);
}

/* =========================================================================
   Homepage components
   Built for the "cool homepage" content (see aspire-homepage-blocks.html).
   Applied via className on core Group/Columns blocks in the block editor -
   Attributes panel > Advanced > Additional CSS class(es).
   ========================================================================= */

.aspire-eyebrow {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--aspire-blue);
	margin: 0 0 0.5rem;
}

/* ---------- Hero ---------- */

.aspire-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(3rem, 8vw, 6rem) 0;
}

.aspire-hero .wp-block-column:first-child h1 {
	font-size: clamp(2.2rem, 5vw, 3.6rem);
	margin-top: 0.25rem;
}

.aspire-hero-arc {
	position: absolute;
	top: -8%;
	right: -15%;
	width: min(55vw, 640px);
	z-index: 0;
	opacity: 0.9;
	pointer-events: none;
}

.aspire-credential-card {
	background: var(--aspire-white);
	border: 1px solid var(--aspire-border);
	border-radius: 14px;
	padding: 1.75rem;
	box-shadow: 0 20px 50px -25px rgba(23, 50, 79, 0.35);
	position: relative;
}

.aspire-credential-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 5px;
	border-radius: 14px 14px 0 0;
	background: linear-gradient(90deg, var(--aspire-gold), var(--aspire-blue-light));
}

.aspire-credential-card ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.aspire-credential-card li {
	padding-left: 1.6rem;
	position: relative;
	color: var(--aspire-text);
}

.aspire-credential-card li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35em;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--aspire-gold);
}

/* ---------- Value strip ---------- */

.aspire-value-strip {
	border-top: 1px solid var(--aspire-border);
	border-bottom: 1px solid var(--aspire-border);
	padding: 1.75rem 0 !important;
}

.aspire-value-strip .wp-block-column {
	font-weight: 600;
	color: var(--aspire-navy);
}

/* ---------- Pathway cards ---------- */

.aspire-pathway-card {
	background: var(--aspire-white);
	border: 1px solid var(--aspire-border);
	border-radius: 12px;
	padding: 1.75rem !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.aspire-pathway-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 50px -25px rgba(23, 50, 79, 0.35);
	border-color: var(--aspire-blue-light);
}

.aspire-pathway-card .aspire-num {
	font-family: var(--aspire-font-heading);
	font-style: italic;
	font-size: 1.6rem;
	color: var(--aspire-gold);
	display: block;
	margin-bottom: 0.4rem;
}

/* ---------- Why band (arced navy section) ---------- */

.aspire-why-band {
	background: var(--aspire-navy);
	padding: clamp(3.5rem, 8vw, 5.5rem) 0 !important;
}

.aspire-why-band h2,
.aspire-why-band h3 {
	color: var(--aspire-white);
}

.aspire-why-band p {
	color: rgba(255, 255, 255, 0.78);
}

.aspire-why-band .aspire-num {
	font-family: var(--aspire-font-heading);
	font-style: italic;
	font-size: 2rem;
	color: var(--aspire-gold);
	display: block;
	margin-bottom: 0.4rem;
}

/* Decorative arc divider (Custom HTML block) - sits at the top edge of
   .aspire-why-band, which must stay position:relative for this to overlap
   the section boundary correctly. */
.aspire-why-band {
	position: relative;
}

.aspire-arc-divider {
	display: block;
	position: absolute;
	top: -1px;
	left: 0;
	width: 100%;
	height: clamp(36px, 6vw, 64px);
}

/* ---------- Testimonial ---------- */

.aspire-testimonial {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
	padding: clamp(3rem, 7vw, 4.5rem) 0;
}

.aspire-testimonial blockquote {
	font-family: var(--aspire-font-heading);
	font-style: italic;
	font-weight: 500;
	font-size: clamp(1.3rem, 3vw, 1.7rem);
	color: var(--aspire-navy);
	margin: 0;
	line-height: 1.45;
	border: none;
	padding: 0;
}

.aspire-testimonial cite {
	display: block;
	margin-top: 1.25rem;
	font-style: normal;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--aspire-text);
}

/* ---------- CTA stamp ---------- */

.aspire-cta-stamp {
	background: var(--aspire-grey-bg);
	border: 1.5px dashed var(--aspire-blue-light);
	border-radius: 16px;
	padding: clamp(2rem, 5vw, 3rem) !important;
}