/*
 * Future Kidz Academy theme layout.
 * The brand values below mirror Elementor's Global Colors and Global Fonts
 * (applied from Future Kidz Academy > Brand Settings). Elementor loads the
 * Poppins and Open Sans files; this file only names them.
 */

:root {
	/* Primary palette: Elementor system colours Primary, Secondary and Accent. */
	--fka-color-blue: #184481;
	--fka-color-sage-green: #8FAF9A;
	--fka-color-yellow: #FEC465;

	/* Extended palette: Elementor custom colours. */
	--fka-color-muted-sage-green: #8A9E87;
	--fka-color-warm-gold: #FBB841;
	--fka-color-soft-ivory: #F9F3E9;
	--fka-color-natural-oak: #CEA579;
	--fka-color-warm-sand: #DCC1A0;
	--fka-color-speckled-stone: #EEE3D4;
	--fka-color-leaf-green: #4E623E;
	--fka-color-soft-cream: #FFF9EF;
	--fka-color-timber-shadow: #A9794F;
	--fka-color-natural-jute: #C7A878;
	--fka-color-soft-grey-green: #B7C4B0;

	/* Elementor system fonts Primary, Secondary, Text (body) and Accent. */
	--fka-font-primary: "Poppins", sans-serif;
	--fka-font-primary-weight: 700;
	--fka-font-secondary: "Poppins", sans-serif;
	--fka-font-secondary-weight: 700;
	--fka-font-body: "Open Sans", sans-serif;
	--fka-font-body-weight: 400;
	--fka-font-accent: "Open Sans", sans-serif;
	--fka-font-accent-weight: 600;

	/*
	 * Type sizes. Body copy (paragraphs, footer links and contact details,
	 * menu panel text) is one size at every breakpoint, and Elementor text
	 * widgets use the same value. Small print is for legal lines and notes.
	 */
	--fka-text-size: 16px;
	--fka-text-size-small: 13px;

	/*
	 * Heading scale, Poppins Bold. Each level has one size per breakpoint, and
	 * Elementor heading widgets use the same values: H1 64/52/40, H2 38/32/28,
	 * H3 24/22/20 and H4 18 (desktop/tablet/mobile).
	 */
	--fka-h1-size: 64px;
	--fka-h2-size: 38px;
	--fka-h3-size: 24px;
	--fka-h4-size: 18px;
	--fka-h5-size: 16px;
	--fka-h6-size: 16px;

	/*
	 * Spacing scale. Elementor container padding and gap values use the same
	 * numbers, so a value in a template always matches a step on this scale.
	 */
	--fka-space-3xs: 4px;
	--fka-space-2xs: 8px;
	--fka-space-xs: 12px;
	--fka-space-sm: 16px;
	--fka-space-md: 24px;
	--fka-space-lg: 32px;
	--fka-space-xl: 48px;
	--fka-space-2xl: 64px;
	--fka-space-3xl: 88px;
	--fka-space-4xl: 120px;

	/*
	 * Layout. Every section is a full-width outer container, which holds the
	 * background, photographs, waves and decoration, around one centred content
	 * box. The box is at most `--fka-content-max` wide with `--fka-gutter` on
	 * each side, so the header, mega menu, page sections and footer share one
	 * grid. Text-heavy content is narrower, at `--fka-reading-max`.
	 */
	--fka-content-max: 1440px;
	--fka-reading-max: 760px;
	--fka-gutter: var(--fka-space-xl);

	/* Spacing roles. Elementor templates use the same steps for these gaps. */
	--fka-section-space: var(--fka-space-4xl);
	--fka-section-space-tight: var(--fka-space-2xl);
	--fka-section-heading-gap: var(--fka-space-xl);
	--fka-heading-gap: var(--fka-space-md);
	--fka-paragraph-space: var(--fka-space-sm);
	--fka-cta-gap: var(--fka-space-lg);
	--fka-button-gap: var(--fka-space-sm);
	--fka-card-gap: var(--fka-space-lg);
	--fka-card-text-gap: var(--fka-space-xs);
	--fka-nav-gap: 6px;
	--fka-footer-column-gap: var(--fka-space-md);
}

/* Elementor Free has no breakpoint between tablet and desktop, so the gutter narrows here. */
@media (max-width: 1279px) {
	:root {
		--fka-gutter: var(--fka-space-lg);
	}
}

@media (max-width: 1024px) {
	:root {
		--fka-h1-size: 52px;
		--fka-h2-size: 32px;
		--fka-h3-size: 22px;
		--fka-section-space: var(--fka-space-3xl);
		--fka-section-space-tight: 56px;
		--fka-section-heading-gap: var(--fka-space-lg);
		--fka-card-gap: var(--fka-space-md);
		--fka-footer-column-gap: var(--fka-space-lg);
	}
}

@media (max-width: 767px) {
	:root {
		--fka-h1-size: 40px;
		--fka-h2-size: 28px;
		--fka-h3-size: 20px;
		--fka-gutter: var(--fka-space-md);
		--fka-section-space: var(--fka-space-2xl);
		--fka-section-space-tight: 40px;
		--fka-heading-gap: 20px;
		--fka-cta-gap: var(--fka-space-md);
		--fka-button-gap: var(--fka-space-xs);
		--fka-card-gap: var(--fka-space-lg);
		--fka-footer-column-gap: var(--fka-space-md);
	}
}

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

body {
	margin: 0;
	font-family: var(--fka-font-body);
	font-size: var(--fka-text-size);
	font-weight: var(--fka-font-body-weight);
	line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--fka-font-primary);
	font-weight: var(--fka-font-primary-weight);
	line-height: 1.3;
}

h1 {
	font-size: var(--fka-h1-size);
	line-height: 1.1;
}

h2 {
	font-size: var(--fka-h2-size);
	line-height: 1.2;
}

h3 {
	font-size: var(--fka-h3-size);
}

h4 {
	font-size: var(--fka-h4-size);
}

h5 {
	font-size: var(--fka-h5-size);
}

h6 {
	font-size: var(--fka-h6-size);
}

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

p {
	margin: 0 0 var(--fka-paragraph-space);
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: inherit;
}

/*
 * Shared layout classes, added under Advanced > CSS Classes in Elementor.
 *
 * `fka-section` goes on a section's outer container, set to Boxed with no
 * Boxed Width of its own and no left or right padding. The background stays
 * full width and the content box takes the shared width and gutters, so a
 * single variable controls every section on the site.
 *
 * `fka-grid-start` goes on a full-width container whose content must line up
 * with that grid while something beside it, such as a photograph, runs to the
 * browser edge.
 *
 * `fka-reading` limits text-heavy content to a comfortable line length.
 */

/*
 * Shared content width. Elementor often writes a per-element
 * `--container-max-width` (1140 / 1248 / 1344). These rules keep every known
 * page section on the same 1440px centred grid as the header and footer.
 */
.e-con.fka-section,
.e-con.fka-home-intro,
.e-con.fka-journey,
.e-con.fka-services,
.e-con.fka-newsletter,
.e-con.fka-programs-stages,
.e-con.fka-programs-learn-more,
.e-con.fka-value-of-play,
.e-con.fka-programs-cta,
.e-con.fka-enrol-journey,
.e-con.fka-enrol-fees,
.e-con.fka-about-mission,
.e-con.fka-about-intro,
.e-con.fka-about-protect,
.e-con.fka-about-pillars,
.e-con.fka-about-org,
.e-con.fka-about-safety,
.e-con.fka-about-promise,
.e-con.fka-about-cta,
.e-con.fka-contact-page,
.e-con.fka-contact-complaints-wrap,
.e-con.fka-contact-complaints,
.e-con.fka-employment-nav,
.e-con.fka-employment-intro,
.e-con.fka-employment-values,
.e-con.fka-join-wrap,
.e-con.fka-careers-cta-wrap,
.e-con.fka-employment-section,
.e-con.fka-services-page,
.e-con.fka-complaints-page,
.e-con.fka-legal-page,
.e-con.fka-service-page,
.e-con.fka-service-gallery,
.e-con.fka-service-map,
.e-con.fka-service-faq,
.e-con.fka-hero.e-con-boxed {
	--container-max-width: var(--fka-content-max) !important;
	--content-width: min(100%, var(--fka-content-max)) !important;
	padding-inline: var(--fka-gutter) !important;
}

.e-con.fka-grid-start {
	padding-inline-start: max(var(--fka-gutter), calc(50% - var(--fka-content-max) / 2));
}

/* Full-bleed heroes: keep the photograph edge-to-edge; align text to the grid. */
.e-con.fka-hero:not(.e-con-boxed) {
	padding-inline-start: max(var(--fka-gutter), calc(50% - var(--fka-content-max) / 2)) !important;
	padding-inline-end: var(--fka-gutter) !important;
}

/*
 * Our values (homepage): mist background stays full width. Text content
 * stays inside the centred 1440px grid. The photograph is a large full
 * circle that may bleed past the 1440px edge and clip on narrower screens
 * (section overflow is hidden).
 */
.e-con.fka-values {
	overflow: hidden;
	padding-inline-start: max(var(--fka-gutter), calc(50% - var(--fka-content-max) / 2)) !important;
	padding-inline-end: 0 !important;
}

@media (min-width: 1025px) {
	.e-con.fka-values > .e-con.fka-values__content {
		flex: 1 1 auto;
		min-width: 0;
		width: auto !important;
		max-width: min(780px, 52%);
		padding-inline-start: 0;
		padding-inline-end: var(--fka-space-xl);
	}

	.e-con.fka-values > .elementor-element.elementor-widget.fka-values__media {
		--fka-values-circle: clamp(560px, 48vw, 780px);
		flex: 0 0 var(--fka-values-circle);
		width: var(--fka-values-circle) !important;
		max-width: none;
		margin-inline-end: calc(var(--fka-values-circle) * -0.3);
		align-self: center;
	}
}

.fka-reading {
	max-width: var(--fka-reading-max);
}

:focus-visible {
	outline: 2px solid;
	outline-offset: 2px;
}

/*
 * Buttons with the yellow heart: Book a Tour in the header and footer
 * templates, and every `fka-button` on pages. Elementor Free has no separate
 * icon colour, and its generated hover rule recolours the icon, so the heart
 * needs !important to stay FKA Yellow in every state.
 */

.fka-book-tour .elementor-button {
	white-space: nowrap;
}

.fka-book-tour .elementor-button-icon,
.fka-button .elementor-button-icon {
	color: var(--fka-color-yellow) !important;
}

.fka-book-tour .elementor-button-icon svg,
.fka-button .elementor-button-icon svg {
	fill: var(--fka-color-yellow) !important;
}

.fka-skip-link {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100000;
	padding: 0.5rem 0.75rem;
	background: Canvas;
	color: CanvasText;
	transform: translateY(-200%);
}

.fka-skip-link:focus {
	transform: none;
}

.fka-wrap,
.fka-header__inner,
.fka-footer__inner {
	width: min(100% - 2 * var(--fka-gutter), var(--fka-content-max));
	margin-inline: auto;
}

.fka-entry__header,
.fka-entry__content,
.fka-archive-header {
	max-width: var(--fka-reading-max);
}

.fka-main {
	display: block;
	min-height: 40vh;
}

/* Fallback header and footer, used only when no Elementor template applies. */

.fka-header {
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.fka-footer {
	margin-top: 2rem;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.fka-header__inner,
.fka-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	padding-block: 1rem;
}

.fka-branding .custom-logo-link {
	display: inline-block;
}

.fka-site-title {
	font-size: 1.25rem;
	font-weight: 700;
	text-decoration: none;
}

.fka-footer__credit {
	margin: 0;
	font-size: 0.9375rem;
}

.fka-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fka-nav > ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
}

.fka-nav li {
	position: relative;
}

.fka-nav a {
	display: inline-block;
	padding-block: 0.35rem;
	text-decoration: none;
}

.fka-nav a:hover,
.fka-nav .current-menu-item > a {
	text-decoration: underline;
}

.fka-nav ul ul {
	padding-left: 1rem;
}

@media (min-width: 48rem) {
	.fka-nav ul ul {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 20;
		min-width: 12rem;
		padding: 0.5rem 0.75rem;
		background: Canvas;
		color: CanvasText;
		border: 1px solid rgba(0, 0, 0, 0.12);
	}

	.fka-nav li:hover > ul,
	.fka-nav li:focus-within > ul {
		display: block;
	}
}

/* Standard WordPress content, used when a page is not built with Elementor. */

.fka-main:has(> .fka-entry) {
	background-color: var(--fka-color-soft-ivory, #f9f3e9);
}

.fka-entry {
	padding-block: 2rem;
	color: var(--fka-color-blue, #184481);
}

.fka-entry__title {
	margin: 0 0 0.5rem;
	line-height: 1.25;
	color: var(--fka-color-blue, #184481);
	font-family: var(--fka-font-heading, "Poppins", sans-serif);
}

.fka-entry__title a {
	text-decoration: none;
}

.fka-entry__meta {
	margin: 0;
	font-size: 0.9375rem;
}

.fka-entry__media {
	margin: 1rem 0;
}

.fka-archive-header {
	padding-top: 2rem;
}

.fka-archive-title {
	margin: 0 0 0.5rem;
}

.fka-comment-list {
	padding-left: 1.25rem;
}

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

.alignwide {
	width: min(100vw - 2 * var(--fka-gutter), var(--fka-content-max));
	max-width: none;
	margin-inline: calc(50% - min(50vw - var(--fka-gutter), var(--fka-content-max) / 2));
}

.alignfull {
	width: 100vw;
	max-width: none;
	margin-inline: calc(50% - 50vw);
}
