/*
 * Amiina Site Kit
 *
 * Colours and fonts come from Elementor > Site Settings (Global Colours and
 * Global Fonts). This file only adds what Elementor's free controls cannot:
 * the header behaviour, the custom widgets, a few decorative helper classes
 * and refined motion.
 *
 * Helper classes (Advanced > CSS Classes in Elementor):
 *   am-arch          image with an arched top
 *   am-ratio-45 / am-ratio-43 / am-ratio-11 / am-ratio-169   fixed image shape
 *   am-zoom          image gently zooms on hover
 *   am-lift          card rises on hover
 *   am-eyebrow       small label with the two-dot mark from the logo
 *   am-scripture     Bible verse with a gold rule (use <cite> for the reference)
 *   am-glow          soft light behind a section's content
 *   am-float         slow floating motion (decorative images)
 *   am-overlap-up    pulls an element up over the one before it
 *   am-step          numbered step circle (Heading widget)
 */

/* ---------- Tokens ---------- */
body {
	--am-heading: var(--e-global-color-primary, #123B5D);
	--am-navy: var(--e-global-color-amnavy, #123B5D);
	--am-teal: var(--e-global-color-secondary, #0D8C8F);
	--am-teal-text: var(--e-global-color-amteal2, #0A6E71);
	--am-green: var(--e-global-color-amgreen, #6FAE6A);
	--am-gold: var(--e-global-color-accent, #D9A441);
	--am-on-gold: var(--e-global-color-amonaccent, #123B5D);
	--am-text: var(--e-global-color-text, #3A4D5C);
	--am-muted: var(--e-global-color-ammuted, #5E7180);
	--am-bg: var(--e-global-color-ambg, #F6F2E8);
	--am-surface: var(--e-global-color-amsurface, #FFFFFF);
	--am-line: var(--e-global-color-amline, #DDD6C4);
	--am-font-head: var(--e-global-typography-primary-font-family, "Montserrat"), system-ui, sans-serif;
	--am-font-body: var(--e-global-typography-text-font-family, "Barlow"), system-ui, sans-serif;
	--am-font-label: var(--e-global-typography-ameyebrow-font-family, "Barlow Condensed"), system-ui, sans-serif;
	--am-ease: cubic-bezier(.2, .7, .2, 1);
	--am-shadow: 0 22px 48px -30px rgba(18, 59, 93, .5);
	--am-header-h: 76px;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

html {
	scroll-padding-top: calc(var(--am-header-h, 76px) + 24px);
	-webkit-text-size-adjust: 100%;
}

html[data-theme="dark"] body {
	--am-shadow: 0 22px 48px -30px rgba(0, 0, 0, .8);
}

.am-main {
	display: block;
	overflow-x: clip;
}

::selection {
	background: var(--am-gold);
	color: var(--am-on-gold);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--am-gold);
	outline-offset: 3px;
	border-radius: 6px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.am-skip-link {
	position: absolute;
	left: 16px;
	top: -80px;
	z-index: 100000;
	padding: 12px 20px;
	border-radius: 999px;
	background: var(--am-navy);
	color: #fff;
	font: 700 15px/1 var(--am-font-head);
	text-decoration: none;
	transition: top .2s;
}

.am-skip-link:focus {
	top: 12px;
	color: #fff;
}

/* ---------- Header ---------- */
.am-site-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: var(--am-bg);
	border-bottom: 1px solid transparent;
	transition: box-shadow .35s var(--am-ease), border-color .35s, background-color .35s;
}

@supports (backdrop-filter: blur(4px)) {
	.am-site-header {
		background: color-mix(in srgb, var(--am-bg) 86%, transparent);
		backdrop-filter: saturate(1.3) blur(14px);
		-webkit-backdrop-filter: saturate(1.3) blur(14px);
	}
}

.am-site-header.is-scrolled {
	border-bottom-color: var(--am-line);
	box-shadow: 0 14px 34px -26px rgba(18, 59, 93, .55);
}

.admin-bar .am-site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .am-site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .am-site-header {
		top: 0;
	}
}

/* Widgets sit directly in the header row whichever markup mode Elementor uses. */
.elementor-widget-amiina-nav-menu > .elementor-widget-container,
.elementor-widget-amiina-logo > .elementor-widget-container,
.elementor-widget-amiina-theme-toggle > .elementor-widget-container {
	display: contents;
}

.elementor-widget-amiina-logo,
.elementor-widget-amiina-theme-toggle {
	display: flex;
	align-items: center;
	flex: none;
}

.elementor-widget-amiina-nav-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	min-width: 0;
}

.elementor-widget-amiina-intro {
	position: absolute !important;
	width: 0 !important;
	height: 0;
	margin: 0 !important;
	padding: 0 !important;
}

/* ---------- Logo ---------- */
.am-logo {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	border-radius: 14px;
	transition: transform .35s var(--am-ease), background-color .35s, padding .35s;
}

.am-logo:hover {
	transform: translateY(-1px);
}

.am-logo__img {
	display: block;
	width: 190px;
	max-width: 100%;
	height: auto;
}

.am-logo__img--dark {
	display: none;
}

html[data-theme="dark"] .am-logo--has-dark .am-logo__img--light {
	display: none;
}

html[data-theme="dark"] .am-logo--has-dark .am-logo__img--dark {
	display: block;
}

/* The official logo keeps its colours in dark mode by sitting on a light plate. */
html[data-theme="dark"] .am-logo--plate {
	background: #F6F2E8;
	padding: 8px 14px;
}

/* ---------- Navigation ---------- */
.am-nav__list,
.am-mobile__list,
.am-nav__list .sub-menu,
.am-mobile__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.am-nav__list {
	display: flex;
	align-items: center;
	gap: 28px;
}

.am-nav__list > li {
	position: relative;
}

.am-nav__list a {
	position: relative;
	display: block;
	padding: 12px 0;
	color: var(--am-nav-color, var(--am-heading));
	font-family: var(--am-font-head);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .005em;
	text-decoration: none;
	white-space: nowrap;
	transition: color .25s;
}

.am-nav__list > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 3px;
	height: 2px;
	border-radius: 2px;
	background: var(--am-nav-marker, var(--am-gold));
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .4s var(--am-ease);
}

.am-nav__list a:hover,
.am-nav__list .current-menu-item > a,
.am-nav__list .current-menu-ancestor > a {
	color: var(--am-nav-active, var(--am-teal-text));
}

.am-nav__list > li > a:hover::after,
.am-nav__list > .current-menu-item > a::after,
.am-nav__list > .current-menu-ancestor > a::after {
	transform: scaleX(1);
}

.am-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: -18px;
	min-width: 230px;
	padding: 10px 18px;
	border-radius: 16px;
	background: var(--am-surface);
	box-shadow: var(--am-shadow);
	border: 1px solid var(--am-line);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .25s, transform .25s var(--am-ease), visibility .25s;
}

.am-nav__list li:hover > .sub-menu,
.am-nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.am-nav__list .sub-menu a {
	white-space: normal;
	line-height: 1.3;
	padding: 9px 0;
}

.am-nav-toggle.am-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1.5px solid var(--am-line);
	border-radius: 50%;
	background: transparent;
	color: var(--am-heading);
	cursor: pointer;
	transition: border-color .25s, background-color .25s;
}

.am-nav-toggle.am-nav-toggle:hover,
.am-nav-toggle.am-nav-toggle:focus {
	background: transparent;
	color: var(--am-heading);
	border-color: var(--am-teal);
}

.am-nav-toggle__bars {
	position: relative;
	display: block;
	width: 18px;
	height: 12px;
}

.am-nav-toggle__bars span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .35s var(--am-ease), opacity .2s, top .35s var(--am-ease);
}

.am-nav-toggle__bars span:nth-child(1) { top: 0; }
.am-nav-toggle__bars span:nth-child(2) { top: 5px; }
.am-nav-toggle__bars span:nth-child(3) { top: 10px; }

.am-nav-toggle[aria-expanded="true"] .am-nav-toggle__bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.am-nav-toggle[aria-expanded="true"] .am-nav-toggle__bars span:nth-child(2) { opacity: 0; }
.am-nav-toggle[aria-expanded="true"] .am-nav-toggle__bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.am-mobile {
	position: fixed;
	left: 0;
	right: 0;
	top: var(--am-header-bottom, 76px);
	bottom: 0;
	z-index: 880;
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 28px 24px 40px;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--am-bg);
	opacity: 0;
	transform: translateY(-10px);
	transition: opacity .3s, transform .4s var(--am-ease);
}

.am-mobile[hidden] {
	display: none;
}

.am-mobile.is-open {
	opacity: 1;
	transform: none;
}

.am-mobile__list > li {
	border-bottom: 1px solid var(--am-line);
}

.am-mobile__list a {
	display: block;
	padding: 17px 2px;
	color: var(--am-heading);
	font-family: var(--am-font-head);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.am-mobile__list .current-menu-item > a {
	color: var(--am-teal-text);
}

.am-mobile__list .sub-menu a {
	padding: 10px 2px 10px 18px;
	font-size: 17px;
	font-weight: 600;
}

.am-mobile__actions {
	display: grid;
	gap: 12px;
}

html.am-menu-open {
	overflow: hidden;
}

@media (max-width: 1140px) {
	.am-js .am-nav {
		display: none;
	}

	.am-js .am-nav-toggle.am-nav-toggle {
		display: inline-flex;
	}

	.am-js .elementor-widget-amiina-nav-menu {
		flex: none;
		order: 10;
	}

	.am-js .elementor-widget-amiina-logo {
		margin-right: auto;
	}

	html:not(.am-js) .am-nav__list {
		flex-wrap: wrap;
		gap: 4px 18px;
	}
}

@media (min-width: 1141px) {
	.am-mobile {
		display: none !important;
	}
}

/* ---------- Light / dark toggle ---------- */
.am-theme-toggle.am-theme-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1.5px solid var(--am-line);
	border-radius: 50%;
	background: transparent;
	color: var(--am-heading);
	cursor: pointer;
	transition: border-color .25s, color .25s, transform .35s var(--am-ease);
}

.am-theme-toggle.am-theme-toggle:hover,
.am-theme-toggle.am-theme-toggle:focus {
	background: transparent;
	color: var(--am-heading);
	border-color: var(--am-gold);
}

.am-theme-toggle:active {
	transform: scale(.94);
}

.am-theme-toggle__icon {
	position: absolute;
	display: inline-flex;
	transition: transform .5s var(--am-ease), opacity .3s;
}

.am-theme-toggle__icon--sun {
	opacity: 0;
	transform: rotate(-70deg) scale(.5);
}

html[data-theme="dark"] .am-theme-toggle__icon--moon {
	opacity: 0;
	transform: rotate(70deg) scale(.5);
}

html[data-theme="dark"] .am-theme-toggle__icon--sun {
	opacity: 1;
	transform: none;
}

/* ---------- Buttons ---------- */
.am-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 14px 30px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--am-font-head);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .01em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: transform .3s var(--am-ease), box-shadow .3s, background-color .25s, color .25s, border-color .25s;
}

.am-btn--gold,
.am-btn--gold:focus {
	background: var(--am-form-button-bg, var(--am-gold));
	color: var(--am-form-button-text, var(--am-on-gold));
}

.am-btn--gold:hover {
	background: var(--am-form-button-bg, var(--am-gold));
	color: var(--am-form-button-text, var(--am-on-gold));
	transform: translateY(-2px);
	box-shadow: 0 14px 26px -14px rgba(217, 164, 65, .9);
}

.am-btn--outline,
.am-btn--outline:focus {
	background: transparent;
	border-color: var(--am-heading);
	color: var(--am-heading);
}

.am-btn--outline:hover {
	background: var(--am-heading);
	color: var(--am-bg);
}

.am-btn[disabled] {
	opacity: .6;
	cursor: progress;
	transform: none;
	box-shadow: none;
}

.elementor-button {
	transition: transform .3s var(--am-ease), box-shadow .3s, background-color .25s, color .25s, border-color .25s, filter .25s;
}

.elementor-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 26px -16px rgba(18, 59, 93, .55);
}

.elementor-button:active {
	transform: translateY(0);
}

.elementor-button .elementor-button-icon {
	transition: transform .35s var(--am-ease);
}

.elementor-button:hover .elementor-button-icon {
	transform: translateX(4px);
}

/* ---------- Helper classes ---------- */
.am-arch {
	overflow: hidden;
	border-radius: 999px 999px 28px 28px;
	line-height: 0;
}

.am-arch img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.am-ratio-45 img { aspect-ratio: 4 / 5; }
.am-ratio-43 img { aspect-ratio: 4 / 3; }
.am-ratio-11 img { aspect-ratio: 1 / 1; }
.am-ratio-169 img { aspect-ratio: 16 / 9; }
.am-ratio-32 img { aspect-ratio: 3 / 2; }

.am-ratio-45 img,
.am-ratio-43 img,
.am-ratio-11 img,
.am-ratio-169 img,
.am-ratio-32 img {
	display: block;
	width: 100%;
	object-fit: cover;
}

.am-zoom {
	overflow: hidden;
	line-height: 0;
}

.am-zoom img {
	transition: transform .9s var(--am-ease);
}

.am-zoom:hover img,
.am-lift:hover .am-zoom img {
	transform: scale(1.045);
}

.e-con.am-lift {
	transition: transform .4s var(--am-ease), box-shadow .4s var(--am-ease), background .3s, border .3s;
}

.e-con.am-lift:hover {
	transform: translateY(-6px);
	box-shadow: var(--am-shadow);
}

.am-eyebrow .elementor-heading-title {
	display: inline-flex;
	align-items: center;
}

.am-eyebrow .elementor-heading-title::before {
	content: "";
	flex: none;
	width: .6em;
	height: .6em;
	margin-right: 1.55em;
	border-radius: 50%;
	background: var(--am-teal);
	box-shadow: .85em 0 0 var(--am-green);
}

.am-scripture {
	position: relative;
	padding-left: 26px;
}

.am-scripture::before {
	content: "";
	position: absolute;
	left: 0;
	top: .35em;
	bottom: .35em;
	width: 3px;
	border-radius: 3px;
	background: var(--am-gold);
}

.am-scripture p {
	margin: 0;
}

.am-scripture cite {
	display: block;
	margin-top: 1em;
	font-family: var(--am-font-label);
	font-size: 16px;
	font-style: normal;
	font-weight: 600;
	letter-spacing: .14em;
	line-height: 1.2;
	text-transform: uppercase;
	opacity: .85;
}

.am-scripture--center {
	padding-left: 0;
	padding-top: 30px;
	text-align: center;
}

.am-scripture--center::before {
	left: 50%;
	top: 0;
	bottom: auto;
	width: 54px;
	height: 3px;
	transform: translateX(-50%);
}

/* Soft light behind a section's content (a background layer, so nothing is clipped). */
.e-con.am-glow {
	background-image: radial-gradient(circle 440px at 90% 4%, color-mix(in srgb, var(--am-gold) 30%, transparent), transparent 72%);
}

.e-con.am-glow--left {
	background-image: radial-gradient(circle 440px at 8% 4%, color-mix(in srgb, var(--am-gold) 30%, transparent), transparent 72%);
}

.am-hero-media {
	position: relative;
}

/* Hero photo column; its woven backdrop is set in the hero section rules. */
.am-hero-media {
	isolation: isolate;
}

.am-float-photo {
	position: absolute !important;
	right: -4%;
	bottom: -6%;
	z-index: 2;
	width: 38% !important;
	max-width: 220px;
	border: 6px solid var(--am-bg);
	border-radius: 50%;
	overflow: hidden;
	line-height: 0;
	box-shadow: var(--am-shadow);
}

.am-float-photo img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.am-overlap-up {
	position: relative;
	z-index: 2;
	margin-top: -72px !important;
}

.am-step .elementor-heading-title {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--am-gold);
	color: var(--am-on-gold);
}

.am-editor-note {
	margin: 0;
	padding: 10px 14px;
	border: 1px dashed var(--am-teal);
	border-radius: 10px;
	color: var(--am-teal-text);
	font: 500 13px/1.4 var(--am-font-body);
}

/* Text links inside content get a clear, animated underline. */
.elementor-widget-text-editor a {
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	transition: color .2s, text-decoration-color .2s;
}

.elementor-widget-text-editor p:last-child {
	margin-bottom: 0;
}

.elementor-widget-text-editor ul {
	padding-left: 1.2em;
}

.elementor-widget-text-editor li + li {
	margin-top: .4em;
}

/* Map and video corners. */
.elementor-widget-google_maps iframe,
.elementor-widget-video .elementor-wrapper {
	border-radius: 24px;
}

.elementor-widget-google_maps .elementor-custom-embed {
	line-height: 0;
}

html[data-theme="dark"] .elementor-widget-google_maps iframe {
	filter: saturate(.85) brightness(.9);
}

/* ---------- Contact form ---------- */
.am-form {
	--am-form-radius: 14px;
}

.am-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.am-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.am-form__field--message,
.am-form__field--subject {
	grid-column: 1 / -1;
}

.am-form__label {
	display: block;
	margin-bottom: 8px;
	color: var(--am-form-label, var(--am-heading));
	font-family: var(--am-font-head);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.am-form__req {
	color: var(--am-teal-text);
}

.am-form .am-form__control {
	display: block;
	width: 100%;
	min-height: 52px;
	padding: 14px 16px;
	border: 1.5px solid var(--am-form-border, var(--am-line));
	border-radius: var(--am-form-radius);
	background: var(--am-form-bg, var(--am-surface));
	color: var(--am-form-text, var(--am-heading));
	font-family: var(--am-font-body);
	font-size: 17px;
	line-height: 1.4;
	transition: border-color .2s, box-shadow .2s;
}

.am-form textarea.am-form__control {
	min-height: 160px;
	resize: vertical;
}

.am-form .am-form__control::placeholder {
	color: var(--am-muted);
	opacity: .8;
}

.am-form .am-form__control:focus {
	outline: none;
	border-color: var(--am-form-focus, var(--am-teal));
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--am-form-focus, var(--am-teal)) 22%, transparent);
}

.am-form__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 22px;
	margin-top: 24px;
}

.am-form__note {
	flex: 1 1 240px;
	margin: 0;
	color: var(--am-muted);
	font-size: 15px;
	line-height: 1.5;
}

.am-form__status {
	margin-top: 18px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
}

.am-form__status:empty {
	display: none;
}

.am-form__status.is-success,
.am-form__status.is-error {
	padding: 14px 18px;
	border-radius: 14px;
	border-left: 4px solid var(--am-green);
	background: color-mix(in srgb, var(--am-green) 16%, var(--am-surface));
	color: var(--am-heading);
}

.am-form__status.is-error {
	border-left-color: #C24A3A;
	background: color-mix(in srgb, #C24A3A 12%, var(--am-surface));
}

@media (max-width: 640px) {
	.am-form__grid {
		grid-template-columns: 1fr;
	}

	.am-form__submit {
		width: 100%;
	}
}

/* ---------- Gallery ---------- */
.am-gallery {
	--am-gallery-gap: 16px;
	--am-gallery-radius: 20px;
}

.am-gallery__tabs {
	display: inline-flex;
	gap: 6px;
	margin-bottom: 28px;
	padding: 6px;
	border: 1px solid var(--am-line);
	border-radius: 999px;
	background: var(--am-surface);
}

.am-gallery__tab.am-gallery__tab,
.am-gallery__tab.am-gallery__tab:focus {
	min-height: 44px;
	padding: 10px 24px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--am-heading);
	font: 700 15px/1 var(--am-font-head);
	cursor: pointer;
	transition: background-color .25s, color .25s;
}

.am-gallery__tab.am-gallery__tab:hover {
	background: color-mix(in srgb, var(--am-teal) 12%, transparent);
	color: var(--am-heading);
}

.am-gallery__tab.am-gallery__tab.is-active {
	background: var(--am-navy);
	color: #fff;
}

.am-js .am-gallery__panel[hidden] {
	display: none;
}

.am-gallery__panel + .am-gallery__panel {
	margin-top: 40px;
}

.am-js .am-gallery__panel + .am-gallery__panel {
	margin-top: 0;
}

.am-gallery__grid {
	display: grid;
	grid-template-columns: repeat(var(--am-gallery-cols, 3), minmax(0, 1fr));
	gap: var(--am-gallery-gap);
}

.am-gallery__grid--videos {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.am-gallery__item {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--am-gallery-radius);
	background: color-mix(in srgb, var(--am-teal) 14%, var(--am-surface));
	line-height: 0;
}

.am-gallery__item img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	transition: transform .8s var(--am-ease);
}

.am-gallery__item--video,
.am-gallery__item--video img {
	aspect-ratio: 16 / 9;
}

.am-gallery__item:hover img {
	transform: scale(1.05);
}

.am-gallery__play {
	position: absolute;
	left: 50%;
	top: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--am-gold);
	color: var(--am-on-gold);
	transform: translate(-50%, -50%);
	transition: transform .35s var(--am-ease);
}

.am-gallery__item--video:hover .am-gallery__play {
	transform: translate(-50%, -50%) scale(1.08);
}

.am-gallery__video-title {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 34px 18px 16px;
	background: linear-gradient(to top, rgba(9, 28, 44, .85), transparent);
	color: #fff;
	font: 600 15px/1.3 var(--am-font-head);
}

.am-gallery__empty {
	display: grid;
	justify-items: center;
	gap: 14px;
	max-width: 620px;
	margin: 0 auto;
	padding: 64px 28px;
	border: 2px dashed var(--am-line);
	border-radius: 28px;
	text-align: center;
}

.am-gallery__empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--am-teal) 14%, transparent);
	color: var(--am-teal-text);
}

.am-gallery .am-gallery__empty-title {
	margin: 6px 0 0;
	color: var(--am-heading);
	font: 700 clamp(22px, 3vw, 28px)/1.2 var(--am-font-head);
}

.am-gallery__empty-text {
	margin: 0;
	color: var(--am-text);
	font-size: 18px;
	line-height: 1.6;
}

/* ---------- Opening logo animation ---------- */
.am-intro {
	display: none;
}

.am-intro-on .am-intro {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--am-intro-bg, #F6F2E8);
	cursor: pointer;
	/* If scripts stop for any reason the cover still clears itself. */
	animation: am-intro-failsafe .01s linear 6s forwards;
}

/* A blurred header would trap the full-screen cover inside its own box. */
.am-intro-on .am-site-header {
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
}

.am-intro.is-leaving {
	opacity: 0;
	pointer-events: none;
	transition: opacity .55s ease;
}

.am-intro__stage {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	transition: transform .7s var(--am-ease);
}

.am-intro.is-leaving .am-intro__stage {
	transform: scale(1.05);
}

.am-intro__glow {
	position: absolute;
	width: min(820px, 150vw);
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--am-intro-light, #D9A441) 34%, transparent) 0%, transparent 60%);
	opacity: 0;
	transform: scale(.55);
}

.am-intro__logo {
	position: relative;
	width: min(400px, 66vw);
	aspect-ratio: 1000 / 696;
}

.am-intro__layer {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0;
}

.am-intro__beam {
	position: absolute;
	border-radius: 4px;
	opacity: 0;
}

.am-intro__beam--v {
	left: 50%;
	top: -46%;
	width: 3px;
	height: 150%;
	margin-left: -1.5px;
	background: linear-gradient(to bottom, transparent, var(--am-intro-light, #D9A441) 22%, var(--am-intro-light, #D9A441) 70%, transparent);
	transform: scaleY(0);
	transform-origin: 50% 40%;
}

.am-intro__beam--h {
	left: 14%;
	top: 12%;
	width: 72%;
	height: 3px;
	background: linear-gradient(to right, transparent, var(--am-intro-light, #D9A441) 24%, var(--am-intro-light, #D9A441) 76%, transparent);
	transform: scaleX(0);
}

.am-intro.is-playing .am-intro__glow { animation: am-intro-glow 1.7s ease-out forwards; }
.am-intro.is-playing .am-intro__beam--v { animation: am-intro-beam-v 1.75s var(--am-ease) forwards; }
.am-intro.is-playing .am-intro__beam--h { animation: am-intro-beam-h 1.75s var(--am-ease) .12s forwards; }
.am-intro.is-playing .am-intro__layer--one { animation: am-intro-rise-left .85s var(--am-ease) .3s forwards; }
.am-intro.is-playing .am-intro__layer--two { animation: am-intro-rise-right .85s var(--am-ease) .46s forwards; }
.am-intro.is-playing .am-intro__layer--three { animation: am-intro-open .8s var(--am-ease) 1.05s forwards; }
.am-intro.is-playing .am-intro__layer--four { animation: am-intro-fade .6s ease 1.5s forwards; }

@keyframes am-intro-failsafe {
	to { visibility: hidden; pointer-events: none; }
}

@keyframes am-intro-glow {
	to { opacity: 1; transform: none; }
}

@keyframes am-intro-beam-v {
	0% { opacity: 0; transform: scaleY(0); }
	35% { opacity: .9; transform: scaleY(1); }
	62% { opacity: .9; transform: scaleY(1); }
	100% { opacity: 0; transform: scaleY(1); }
}

@keyframes am-intro-beam-h {
	0% { opacity: 0; transform: scaleX(0); }
	35% { opacity: .9; transform: scaleX(1); }
	62% { opacity: .9; transform: scaleX(1); }
	100% { opacity: 0; transform: scaleX(1); }
}

@keyframes am-intro-rise-left {
	from { opacity: 0; transform: translate(-7%, 16%) rotate(-7deg); }
	to { opacity: 1; transform: none; }
}

@keyframes am-intro-rise-right {
	from { opacity: 0; transform: translate(7%, 16%) rotate(7deg); }
	to { opacity: 1; transform: none; }
}

@keyframes am-intro-open {
	from { opacity: 0; clip-path: inset(0 50% 0 50%); }
	to { opacity: 1; clip-path: inset(0 0 0 0); }
}

@keyframes am-intro-fade {
	to { opacity: 1; }
}

/* ---------- Motion ---------- */
.elementor-element.animated {
	animation-duration: .95s;
	animation-timing-function: var(--am-ease);
}

.elementor-element.animated.fadeInUp { animation-name: am-fade-up; }
.elementor-element.animated.fadeInDown { animation-name: am-fade-down; }
.elementor-element.animated.fadeInLeft { animation-name: am-fade-left; }
.elementor-element.animated.fadeInRight { animation-name: am-fade-right; }
.elementor-element.animated.zoomIn { animation-name: am-zoom-in; }

@keyframes am-fade-up {
	from { opacity: 0; transform: translate3d(0, 30px, 0); }
	to { opacity: 1; transform: none; }
}

@keyframes am-fade-down {
	from { opacity: 0; transform: translate3d(0, -24px, 0); }
	to { opacity: 1; transform: none; }
}

@keyframes am-fade-left {
	from { opacity: 0; transform: translate3d(-34px, 0, 0); }
	to { opacity: 1; transform: none; }
}

@keyframes am-fade-right {
	from { opacity: 0; transform: translate3d(34px, 0, 0); }
	to { opacity: 1; transform: none; }
}

@keyframes am-zoom-in {
	from { opacity: 0; transform: scale(.94); }
	to { opacity: 1; transform: none; }
}

.am-reveal-all .elementor-invisible {
	visibility: visible !important;
}

.am-kenburns img {
	animation: am-kenburns 16s ease-out both;
}

@keyframes am-kenburns {
	from { transform: scale(1.1); }
	to { transform: scale(1); }
}

.am-float {
	animation: am-float 7s ease-in-out infinite;
}

@keyframes am-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}

	@view-transition {
		navigation: auto;
	}
}

::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: .3s;
}

@media (prefers-reduced-motion: reduce) {
	.elementor-invisible {
		visibility: visible !important;
	}

	.elementor-element.animated,
	.am-kenburns img,
	.am-float {
		animation: none !important;
	}

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

/* ---------- Small screens ---------- */
@media (max-width: 767px) {
	body {
		--am-header-h: 66px;
	}

	.am-logo__img {
		width: 138px;
	}

	.am-overlap-up {
		margin-top: -40px !important;
	}

	.am-float-photo {
		right: 0;
		border-width: 5px;
	}

	.am-scripture {
		padding-left: 20px;
	}

	.am-scripture--center {
		padding-left: 0;
	}

	.am-gallery__empty {
		padding: 44px 20px;
	}
}


@media print {
	.am-site-header,
	.am-intro,
	.am-mobile {
		display: none !important;
	}
}

/* ---------- Above-the-fold entrance (CSS only, so content never waits on scripts) ---------- */
.am-rise {
	animation: am-fade-up .9s var(--am-ease) both;
}

.am-rise-2 { animation-delay: .1s; }
.am-rise-3 { animation-delay: .2s; }
.am-rise-4 { animation-delay: .3s; }

/* Wait for the opening logo animation to clear before the page animates in. */
.am-intro-on .am-rise,
.am-intro-on .am-kenburns img {
	animation-play-state: paused;
}

.elementor-editor-active .am-rise {
	animation: none;
}

/* Logo colours for words inside a heading: <span class="am-c-teal">…</span> */
.am-c-teal { color: var(--am-teal-text); }
.am-c-green { color: var(--e-global-color-amgreen2, #3F7D3B); }

@media (prefers-reduced-motion: reduce) {
	.am-rise {
		animation: none !important;
	}
}
/* =====================================================================
 * Photo frames inspired by Africa and Uganda
 *
 *   am-frame-africa   photo cut to the outline of Africa (gold offset behind)
 *   am-frame-uganda   photo cut to the outline of Uganda, Mityana marked
 *   am-frame-brush    painted, brush-cut edges
 *   am-frame-torn     straight top, torn bottom edge (photos at the top of cards)
 *   am-frame-cut      gently hand-cut edges (portraits, small photos)
 *   am-frame-offset   adds a gold "layered paper" copy behind any frame
 * Use them on Image widgets (Advanced > CSS Classes).
 * ===================================================================== */
.am-frame-africa,
.am-frame-uganda,
.am-frame-brush,
.am-frame-torn,
.am-frame-cut {
	--am-frame-color: var(--am-gold);
	position: relative;
	line-height: 0;
}

.am-frame-africa { --am-shape: url(../img/africa.svg); --am-shape-ratio: 890 / 1000; }
.am-frame-uganda { --am-shape: url(../img/uganda.svg); --am-shape-ratio: 951 / 1000; }
.am-frame-brush { --am-shape: url(../img/edge-brush.svg); }
.am-frame-torn { --am-shape: url(../img/edge-torn-bottom.svg); }
.am-frame-cut { --am-shape: url(../img/edge-cut.svg); }

.am-frame-africa img,
.am-frame-uganda img,
.am-frame-brush img,
.am-frame-torn img,
.am-frame-cut img {
	display: block;
	width: 100%;
	object-fit: cover;
	border-radius: 0 !important;
	-webkit-mask: var(--am-shape) center / 100% 100% no-repeat;
	mask: var(--am-shape) center / 100% 100% no-repeat;
}

.am-frame-africa img,
.am-frame-uganda img {
	height: auto;
	aspect-ratio: var(--am-shape-ratio);
}

/* The gold offset follows the cut shape exactly. */
.am-frame-africa,
.am-frame-uganda {
	filter: drop-shadow(-12px 12px 0 var(--am-frame-color));
}

.am-frame-offset {
	filter: drop-shadow(12px 12px 0 var(--am-frame-color));
}

/* Hover zoom keeps the cut edges instead of clipping them straight. */
.am-zoom.am-frame-brush,
.am-zoom.am-frame-torn,
.am-zoom.am-frame-cut {
	overflow: visible;
}

.am-zoom.am-frame-brush:hover img,
.am-zoom.am-frame-cut:hover img,
.am-lift:hover .am-zoom.am-frame-torn img {
	transform: scale(1.025);
}

/* Mityana on the Uganda outline. */
.am-frame-uganda::after {
	content: "";
	position: absolute;
	left: 45.8%;
	top: 67.1%;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--am-gold);
	pointer-events: none;
}

/* Home hero: a soft, slowly breathing pool of light behind the Africa frame. */
.e-con.am-hero-africa {
	position: relative;
	isolation: isolate;
}

.e-con.am-hero-africa::before {
	content: "";
	display: block;
	position: absolute;
	inset: 4% -6% 0 4%;
	width: auto;
	height: auto;
	z-index: -1;
	border: 0;
	border-radius: 58% 42% 46% 54% / 48% 56% 44% 52%;
	opacity: 1;
	mix-blend-mode: normal;
	background: radial-gradient(closest-side at 46% 46%, color-mix(in srgb, var(--am-teal) 20%, transparent), color-mix(in srgb, var(--am-green) 12%, transparent) 60%, transparent 100%);
	animation: am-hero-breathe 16s ease-in-out infinite alternate;
	pointer-events: none;
}

.e-con.am-hero-africa::after {
	content: none;
}

@keyframes am-hero-breathe {
	from { transform: scale(.96) rotate(-4deg); }
	to { transform: scale(1.04) rotate(5deg); }
}

/* =====================================================================
 * Brush accents for headings
 *   <span class="am-brush">word</span>        gold stroke behind a word
 *   <span class="am-brush am-brush--teal">…</span>
 *   am-brush-dash (Heading widget class)       short stroke under a heading
 * ===================================================================== */
.am-brush {
	position: relative;
	z-index: 0;
	white-space: nowrap;
}

.am-brush::after {
	content: "";
	position: absolute;
	left: -.12em;
	right: -.14em;
	bottom: -.04em;
	z-index: -1;
	height: .52em;
	background: var(--am-brush-color, var(--am-gold));
	opacity: .5;
	-webkit-mask: url(../img/brush-stroke.svg) center / 100% 100% no-repeat;
	mask: url(../img/brush-stroke.svg) center / 100% 100% no-repeat;
	pointer-events: none;
}

.am-brush--teal { --am-brush-color: var(--am-teal); }
.am-brush--green { --am-brush-color: var(--am-green); }

html[data-theme="dark"] .am-brush::after {
	opacity: .42;
}

.am-brush-dash .elementor-heading-title::after {
	content: "";
	display: block;
	width: 92px;
	height: 14px;
	margin-top: .42em;
	background: var(--am-brush-color, var(--am-gold));
	-webkit-mask: url(../img/brush-dash.svg) center / 100% 100% no-repeat;
	mask: url(../img/brush-dash.svg) center / 100% 100% no-repeat;
}

/* =====================================================================
 * Textures and painted section edges
 *   am-texture       light paper grain (cream sections)
 *   am-texture-map   faint map contour lines (navy sections)
 *   am-edge-top / am-edge-bottom   painted edge into the next section
 * ===================================================================== */
.e-con.am-texture {
	isolation: isolate;
}

.e-con.am-texture::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: .5;
	mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .34 0 0 0 0 .2 0 0 0 .32 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	pointer-events: none;
}

html[data-theme="dark"] .e-con.am-texture::after {
	opacity: .35;
	mix-blend-mode: soft-light;
}

.e-con.am-texture-map {
	background-image: url(../img/map-lines.svg);
	background-size: 1200px auto;
	background-position: center;
}

.e-con.am-glow.am-texture-map {
	background-image: radial-gradient(circle 440px at 90% 4%, color-mix(in srgb, var(--am-gold) 30%, transparent), transparent 72%), url(../img/map-lines.svg);
	background-size: auto, 1200px auto;
	background-position: 0 0, center;
}

.e-con.am-glow--left.am-texture-map {
	background-image: radial-gradient(circle 440px at 8% 4%, color-mix(in srgb, var(--am-gold) 30%, transparent), transparent 72%), url(../img/map-lines.svg);
}

.e-con.am-edge-top::before,
.e-con.am-edge-bottom::after {
	content: "";
	display: block;
	position: absolute;
	left: 0;
	right: 0;
	z-index: 2;
	height: 26px;
	border: 0;
	border-radius: 0;
	opacity: 1;
	mix-blend-mode: normal;
	background-color: inherit;
	background-image: none;
	pointer-events: none;
}

.e-con.am-edge-top::before {
	top: -25px;
	bottom: auto;
	-webkit-mask: url(../img/edge-section-top.svg) 0 0 / 100% 100% no-repeat;
	mask: url(../img/edge-section-top.svg) 0 0 / 100% 100% no-repeat;
}

.e-con.am-edge-bottom::after {
	top: auto;
	bottom: -25px;
	-webkit-mask: url(../img/edge-section-bottom.svg) 0 0 / 100% 100% no-repeat;
	mask: url(../img/edge-section-bottom.svg) 0 0 / 100% 100% no-repeat;
}

/* =====================================================================
 * Newsletter
 * ===================================================================== */
.am-news {
	--am-news-bg: var(--e-global-color-amsage, #DDE9D8);
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: center;
	gap: 28px 48px;
	padding: 40px 44px;
	border-radius: 28px;
	background: var(--am-news-bg);
}

.am-news__intro {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.am-news__icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: var(--am-surface);
	color: var(--am-teal-text);
	transform: rotate(-6deg);
}

.am-news__icon svg {
	width: 48px;
	height: 48px;
}

.am-news__heart {
	fill: var(--am-gold);
}

.am-news .am-news__title {
	margin: 0 0 8px;
	color: var(--am-heading);
	font-family: var(--am-font-head);
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 700;
	line-height: 1.15;
}

.am-news__text {
	margin: 0;
	color: var(--am-text);
	font-size: 17px;
	line-height: 1.55;
}

.am-news__fields {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) auto;
	align-items: end;
	gap: 12px;
}

.am-news__fields--email-only {
	grid-template-columns: minmax(0, 1fr) auto;
}

.am-news__label {
	display: block;
	margin-bottom: 6px;
	color: var(--am-heading);
	font-family: var(--am-font-head);
	font-size: 13px;
	font-weight: 600;
}

.am-news .am-news__input {
	display: block;
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 1.5px solid var(--am-line);
	border-radius: 12px;
	background: var(--am-surface);
	color: var(--am-heading);
	font-family: var(--am-font-body);
	font-size: 16px;
	transition: border-color .2s, box-shadow .2s;
}

.am-news .am-news__input:focus {
	outline: none;
	border-color: var(--am-teal);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--am-teal) 22%, transparent);
}

.am-news .am-news__submit {
	min-height: 50px;
	padding: 12px 24px;
	white-space: nowrap;
}

.am-news__consent {
	margin: 12px 0 0;
	color: var(--am-muted);
	font-size: 14px;
	line-height: 1.5;
}

.am-news__consent a {
	color: var(--am-teal-text);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.am-news .am-form__status {
	margin-top: 14px;
}

@media (max-width: 1024px) {
	.am-news {
		grid-template-columns: 1fr;
		padding: 34px 32px;
	}
}

@media (max-width: 767px) {
	.am-news {
		padding: 28px 22px;
		border-radius: 24px;
	}

	.am-news__icon {
		width: 60px;
		height: 60px;
	}

	.am-news__icon svg {
		width: 38px;
		height: 38px;
	}

	.am-news__fields {
		grid-template-columns: 1fr 1fr;
	}

	.am-news__field--email,
	.am-news .am-news__submit {
		grid-column: 1 / -1;
	}

	.am-news__fields--email-only {
		grid-template-columns: 1fr;
	}
}

/* =====================================================================
 * Navigation: dropdown chevrons, touch support, mobile menu switch
 * ===================================================================== */
.am-nav__list > .menu-item-has-children > a {
	padding-right: 16px;
}

.am-nav__list > .menu-item-has-children > a::before {
	content: "";
	position: absolute;
	right: 1px;
	top: 50%;
	width: 6px;
	height: 6px;
	margin-top: -5px;
	border-right: 1.8px solid currentColor;
	border-bottom: 1.8px solid currentColor;
	transform: rotate(45deg);
	transition: transform .25s;
}

.am-nav__list li:hover > a::before,
.am-nav__list li:focus-within > a::before,
.am-nav__list li.is-open > a::before {
	transform: translateY(2px) rotate(225deg);
}

.am-nav__list li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.am-mobile__list .sub-menu {
	padding-bottom: 8px;
}

.am-mobile__list .sub-menu > li + li {
	border-top: 0;
}

.am-mobile__theme.am-mobile__theme {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 52px;
	padding: 10px 4px;
	border: 0;
	border-top: 1px solid var(--am-line);
	border-radius: 0;
	background: transparent;
	color: var(--am-heading);
	font: 600 17px/1.2 var(--am-font-head);
	cursor: pointer;
}

.am-mobile__theme.am-mobile__theme:hover,
.am-mobile__theme.am-mobile__theme:focus {
	background: transparent;
	color: var(--am-heading);
}

.am-mobile__switch {
	position: relative;
	width: 48px;
	height: 28px;
	border-radius: 999px;
	background: var(--am-line);
	transition: background-color .25s;
}

.am-mobile__switch::after {
	content: "";
	position: absolute;
	left: 3px;
	top: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	transition: transform .25s var(--am-ease);
}

html[data-theme="dark"] .am-mobile__switch {
	background: var(--am-teal);
}

html[data-theme="dark"] .am-mobile__switch::after {
	transform: translateX(20px);
}

/* =====================================================================
 * Small-screen refinements
 * ===================================================================== */
@media (max-width: 1024px) {
	/* Photo columns never shrink below a useful size once stacked. */
	.am-frame-africa img,
	.am-frame-uganda img {
		max-height: 70vh;
		object-fit: cover;
	}
}

@media (max-width: 767px) {
	.am-frame-africa,
	.am-frame-uganda {
		filter: drop-shadow(-8px 8px 0 var(--am-frame-color));
	}

	.am-frame-offset {
		filter: drop-shadow(8px 8px 0 var(--am-frame-color));
	}

	.am-brush-dash .elementor-heading-title::after {
		width: 72px;
		height: 12px;
	}

	.e-con.am-edge-top::before,
	.e-con.am-edge-bottom::after {
		height: 18px;
	}

	.e-con.am-edge-top::before { top: -17px; }
	.e-con.am-edge-bottom::after { bottom: -17px; }

	/* Buttons share the row evenly and never run off the screen. */
	.am-mobile__actions .am-btn {
		width: 100%;
	}
}

/* Very narrow phones: the light/dark switch moves into the menu so the logo, Donate and Menu fit. */
@media (max-width: 399px) {
	.am-site-header .elementor-widget-amiina-theme-toggle {
		display: none;
	}

	.am-site-header .elementor-widget-button .elementor-button {
		padding: 11px 14px;
		font-size: 14px;
	}

	.am-site-header .elementor-widget-button .elementor-button-icon {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.am-frame-uganda::after {
		animation: none;
	}
}
/* Links inside footer text follow the footer's light text colour. */
#site-footer .elementor-widget-text-editor a {
	color: inherit;
	text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
}

#site-footer .elementor-widget-text-editor a:hover,
#site-footer .elementor-widget-text-editor a:focus {
	color: var(--am-gold);
}

/* =====================================================================
 * Hero sections
 *
 * Each page's first section gets the class "am-hero" plus a page variant
 * (am-hero--home, --about, --work, --partners, --trips, --gallery,
 * --contact, --donate, --privacy). Four decorative layers sit behind the
 * content and never take clicks:
 *   1. drifting pools of brand-coloured light            (inner ::before)
 *   2. a textile pattern: mudcloth lines or woven mat     (section ::before)
 *   3. one large motif: basket, sunrise or map contours   (inner ::after)
 *   4. a kitenge-style ribbon flowing along the bottom     (section ::after)
 * Patterns are SVG masks in assets/img, coloured from the brand tokens.
 * Light and dark mode each have their own strengths (see the two token
 * blocks below); page variants adjust colour, placement and strength.
 * ===================================================================== */
.e-con.am-hero {
	/* Light mode */
	--am-hero-ink: var(--am-teal-text);
	--am-hero-pattern: url(../img/pattern-mudcloth.svg);
	--am-hero-pattern-size: 150px;
	--am-hero-pattern-opacity: .2;
	--am-hero-pattern-inset: -14% -6% -14% 46%;
	--am-hero-motif: url(../img/motif-basket.svg);
	--am-hero-motif-color: var(--am-gold);
	--am-hero-motif-opacity: .34;
	--am-hero-motif-width: clamp(320px, 38vw, 600px);
	--am-hero-motif-ratio: 1;
	--am-hero-motif-pos: auto -8% -30% auto;
	--am-hero-motif-motion: am-hero-spin 90s linear infinite;
	--am-hero-light-a: var(--am-teal);
	--am-hero-light-b: var(--am-gold);
	--am-hero-light-c: var(--am-green);
	--am-hero-light-strength: 30%;
	--am-hero-ribbon: var(--am-teal-text);
	--am-hero-ribbon-opacity: .26;
	--am-hero-swatch: var(--am-hero-ink);
	--am-hero-swatch-pattern: url(../img/pattern-weave.svg);
	--am-hero-swatch-size: 30px;
	--am-hero-swatch-opacity: .55;
	position: relative;
	isolation: isolate;
	overflow: clip;
	background-image: none;
}

/* Dark mode: brighter tokens are already swapped in by the theme; these
   raise strength so nothing sinks into the navy. */
html[data-theme="dark"] .e-con.am-hero {
	--am-hero-pattern-opacity: .22;
	--am-hero-motif-opacity: .3;
	--am-hero-light-strength: 34%;
	--am-hero-ribbon-opacity: .3;
	--am-hero-swatch-opacity: .5;
}

/* 1. Light: three soft but clearly coloured pools that wander and swell. */
.e-con.am-hero > .e-con-inner::before {
	content: "";
	position: absolute;
	inset: -30% -20%;
	z-index: -2;
	background:
		radial-gradient(28% 40% at 18% 24%, color-mix(in srgb, var(--am-hero-light-a) var(--am-hero-light-strength), transparent), transparent 70%),
		radial-gradient(26% 38% at 82% 18%, color-mix(in srgb, var(--am-hero-light-b) calc(var(--am-hero-light-strength) + 8%), transparent), transparent 70%),
		radial-gradient(32% 42% at 60% 86%, color-mix(in srgb, var(--am-hero-light-c) var(--am-hero-light-strength), transparent), transparent 70%);
	animation: am-hero-light 18s ease-in-out infinite alternate;
	pointer-events: none;
}

html[data-theme="dark"] .e-con.am-hero > .e-con-inner::before {
	mix-blend-mode: screen;
}

/* 2. Pattern: fades out softly at its edges. */
.e-con.am-hero::before {
	content: "";
	display: block;
	position: absolute;
	inset: var(--am-hero-pattern-inset);
	width: auto;
	height: auto;
	z-index: -1;
	border: 0;
	border-radius: 0;
	mix-blend-mode: normal;
	transition: none;
	background: var(--am-hero-ink);
	opacity: var(--am-hero-pattern-opacity);
	-webkit-mask: var(--am-hero-pattern) 0 0 / var(--am-hero-pattern-size) repeat, radial-gradient(closest-side, #000 45%, transparent);
	-webkit-mask-composite: source-in;
	mask: var(--am-hero-pattern) 0 0 / var(--am-hero-pattern-size) repeat, radial-gradient(closest-side, #000 45%, transparent);
	mask-composite: intersect;
	animation: am-hero-pattern 26s ease-in-out infinite alternate;
	pointer-events: none;
}

/* 3. Motif. */
.e-con.am-hero > .e-con-inner::after {
	content: "";
	position: absolute;
	inset: var(--am-hero-motif-pos);
	z-index: -1;
	width: var(--am-hero-motif-width);
	height: auto;
	aspect-ratio: var(--am-hero-motif-ratio);
	background: var(--am-hero-motif-color);
	opacity: var(--am-hero-motif-opacity);
	-webkit-mask: var(--am-hero-motif) center / contain no-repeat;
	mask: var(--am-hero-motif) center / contain no-repeat;
	animation: var(--am-hero-motif-motion);
	pointer-events: none;
}

/* 4. Ribbon: flows along the bottom edge, inside the section's own padding. */
.e-con.am-hero::after {
	--am-hero-ribbon-h: 60px;
	--am-hero-ribbon-tile: 400px; /* keeps the 800 x 120 artwork in proportion */
	content: "";
	position: absolute;
	inset: auto calc(-1 * var(--am-hero-ribbon-tile)) 0 0;
	z-index: -1;
	height: var(--am-hero-ribbon-h);
	opacity: var(--am-hero-ribbon-opacity);
	mix-blend-mode: normal;
	background: var(--am-hero-ribbon);
	-webkit-mask: url(../img/motif-ribbon.svg) 0 0 / var(--am-hero-ribbon-tile) 100% repeat-x;
	mask: url(../img/motif-ribbon.svg) 0 0 / var(--am-hero-ribbon-tile) 100% repeat-x;
	animation: am-hero-ribbon 30s linear infinite;
	pointer-events: none;
}

@media (max-width: 1024px) {
	.e-con.am-hero::after {
		--am-hero-ribbon-h: 42px;
		--am-hero-ribbon-tile: 280px;
	}
}

/* The paper-grain rule for dark mode must not dim the ribbon. */
html[data-theme="dark"] .e-con.am-hero::after {
	opacity: var(--am-hero-ribbon-opacity);
	mix-blend-mode: normal;
}

/* A woven swatch tucked behind the hero photo. */
.e-con.am-hero .am-hero-media::before {
	content: "";
	display: block;
	position: absolute;
	top: auto;
	right: auto;
	left: -10%;
	bottom: -8%;
	width: 60%;
	height: 46%;
	z-index: -1;
	border: 0;
	border-radius: 26px;
	opacity: var(--am-hero-swatch-opacity);
	mix-blend-mode: normal;
	background: var(--am-hero-swatch);
	-webkit-mask: var(--am-hero-swatch-pattern) 0 0 / var(--am-hero-swatch-size) repeat;
	mask: var(--am-hero-swatch-pattern) 0 0 / var(--am-hero-swatch-size) repeat;
	animation: am-hero-float 9s ease-in-out infinite alternate;
	pointer-events: none;
}

/* The label becomes a soft frosted pill. */
.e-con.am-hero .am-eyebrow .elementor-heading-title {
	padding: 8px 16px 8px 14px;
	border: 1px solid color-mix(in srgb, var(--am-hero-ink) 28%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--am-surface) 78%, transparent);
	box-shadow: 0 10px 24px -18px rgba(18, 59, 93, .55);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.e-con.am-hero h1.elementor-heading-title {
	text-wrap: balance;
}

/* The offset behind hero photos takes the page's accent. */
.e-con.am-hero .am-frame-offset {
	--am-frame-color: var(--am-hero-frame, var(--am-gold));
}

/* Home: livelier light pool behind the Africa frame. */
.e-con.am-hero .am-hero-africa::before {
	background: radial-gradient(closest-side at 46% 46%, color-mix(in srgb, var(--am-teal) 34%, transparent), color-mix(in srgb, var(--am-green) 22%, transparent) 60%, transparent 100%);
	animation-duration: 9s;
}

@keyframes am-hero-light {
	0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
	50% { transform: translate3d(6%, -4%, 0) scale(1.12) rotate(6deg); }
	100% { transform: translate3d(-5%, 5%, 0) scale(.94) rotate(-5deg); }
}

@keyframes am-hero-pattern {
	from { transform: translate3d(0, 0, 0) rotate(0deg); }
	to { transform: translate3d(-6%, 7%, 0) rotate(-2deg); }
}

@keyframes am-hero-spin {
	to { transform: rotate(360deg); }
}

@keyframes am-hero-drift {
	0% { transform: translate3d(0, 0, 0) rotate(0deg); }
	100% { transform: translate3d(9%, -7%, 0) rotate(5deg); }
}

@keyframes am-hero-float {
	to { transform: translate3d(18px, -20px, 0) rotate(-3deg); }
}

@keyframes am-hero-ribbon {
	to { transform: translate3d(calc(-1 * var(--am-hero-ribbon-tile)), 0, 0); }
}

/* ---- Page variants: colour, placement and per-theme strength ---- */
.e-con.am-hero--home {
	--am-hero-pattern-inset: -10% -4% -10% 50%;
	--am-hero-motif-pos: auto auto -38% -10%;
	--am-hero-motif-width: clamp(300px, 32vw, 500px);
	--am-hero-motif-opacity: .24;
}

.e-con.am-hero--about {
	--am-hero-ink: var(--e-global-color-amgreen2, #3F7D3B);
	--am-hero-light-a: var(--am-green);
	--am-hero-motif-color: var(--am-green);
	--am-hero-motif-opacity: .3;
	--am-hero-motif-pos: auto -10% -34% auto;
	--am-hero-ribbon: var(--e-global-color-amgreen2, #3F7D3B);
	--am-hero-swatch: var(--am-gold);
	--am-hero-frame: var(--am-green);
}

.e-con.am-hero--work {
	--am-hero-pattern: url(../img/pattern-weave.svg);
	--am-hero-pattern-size: 40px;
	--am-hero-pattern-opacity: .22;
	--am-hero-motif: url(../img/motif-contours.svg);
	--am-hero-motif-ratio: 3 / 2;
	--am-hero-motif-width: clamp(420px, 50vw, 780px);
	--am-hero-motif-color: var(--am-teal-text);
	--am-hero-motif-opacity: .3;
	--am-hero-motif-pos: auto auto -24% -8%;
	--am-hero-motif-motion: am-hero-drift 22s ease-in-out infinite alternate;
	--am-hero-swatch-pattern: url(../img/pattern-mudcloth.svg);
	--am-hero-swatch-size: 80px;
	--am-hero-frame: var(--am-teal);
}

.e-con.am-hero--partners {
	--am-hero-ink: var(--am-heading);
	--am-hero-pattern: url(../img/pattern-weave.svg);
	--am-hero-pattern-size: 40px;
	--am-hero-pattern-opacity: .14;
	--am-hero-light-a: var(--am-gold);
	--am-hero-light-b: var(--am-teal);
	--am-hero-motif-color: var(--am-teal-text);
	--am-hero-motif-opacity: .26;
	--am-hero-motif-pos: -26% -9% auto auto;
	--am-hero-ribbon: var(--am-heading);
	--am-hero-ribbon-opacity: .18;
	--am-hero-swatch: var(--am-gold);
}

html[data-theme="dark"] .e-con.am-hero--partners {
	--am-hero-pattern-opacity: .16;
	--am-hero-ribbon-opacity: .22;
}

.e-con.am-hero--trips {
	--am-hero-light-a: var(--am-green);
	--am-hero-light-c: var(--am-teal);
	--am-hero-motif: url(../img/motif-contours.svg);
	--am-hero-motif-ratio: 3 / 2;
	--am-hero-motif-width: clamp(460px, 58vw, 880px);
	--am-hero-motif-color: var(--am-teal-text);
	--am-hero-motif-opacity: .32;
	--am-hero-motif-pos: auto auto -26% -6%;
	--am-hero-motif-motion: am-hero-drift 20s ease-in-out infinite alternate;
	--am-hero-ribbon: var(--e-global-color-amgreen2, #3F7D3B);
	--am-hero-swatch: var(--am-green);
	--am-hero-frame: var(--am-green);
}

.e-con.am-hero--gallery {
	--am-hero-pattern: url(../img/pattern-weave.svg);
	--am-hero-pattern-size: 40px;
	--am-hero-pattern-inset: -20% -4% -20% 44%;
	--am-hero-pattern-opacity: .2;
	--am-hero-motif-width: clamp(320px, 38vw, 600px);
	--am-hero-motif-opacity: .4;
	--am-hero-motif-pos: -34% -6% auto auto;
}

.e-con.am-hero--contact {
	--am-hero-ink: var(--e-global-color-amgreen2, #3F7D3B);
	--am-hero-pattern-inset: -20% -4% -20% 44%;
	--am-hero-light-a: var(--am-green);
	--am-hero-motif: url(../img/motif-contours.svg);
	--am-hero-motif-ratio: 3 / 2;
	--am-hero-motif-width: clamp(420px, 48vw, 740px);
	--am-hero-motif-color: var(--am-teal-text);
	--am-hero-motif-opacity: .3;
	--am-hero-motif-pos: -18% -8% auto auto;
	--am-hero-motif-motion: am-hero-drift 21s ease-in-out infinite alternate;
	--am-hero-ribbon: var(--e-global-color-amgreen2, #3F7D3B);
}

.e-con.am-hero--donate {
	--am-hero-ink: var(--am-gold);
	--am-hero-pattern-opacity: .3;
	--am-hero-light-a: var(--am-gold);
	--am-hero-light-b: var(--am-gold);
	--am-hero-motif: url(../img/motif-sunrise.svg);
	--am-hero-motif-width: clamp(380px, 44vw, 680px);
	--am-hero-motif-opacity: .42;
	--am-hero-motif-pos: -20% -10% auto auto;
	--am-hero-motif-motion: am-hero-spin 120s linear infinite;
	--am-hero-ribbon: var(--am-gold);
	--am-hero-ribbon-opacity: .4;
	--am-hero-swatch: var(--am-gold);
}

html[data-theme="dark"] .e-con.am-hero--donate {
	--am-hero-pattern-opacity: .24;
	--am-hero-motif-opacity: .32;
	--am-hero-ribbon-opacity: .32;
}

.e-con.am-hero--privacy {
	--am-hero-ink: var(--am-heading);
	--am-hero-pattern: url(../img/pattern-weave.svg);
	--am-hero-pattern-size: 40px;
	--am-hero-pattern-opacity: .1;
	--am-hero-pattern-inset: -4% -4% auto 46%;
	--am-hero-motif: none;
}

.e-con.am-hero--privacy::before {
	height: 520px;
}

.e-con.am-hero--privacy::after,
.e-con.am-hero--privacy > .e-con-inner::after {
	content: none;
}

/* Compact heroes (no photo) end close below their text, so the ribbon would
   run behind it; their larger motifs carry the movement instead. */
.e-con.am-hero--gallery::after,
.e-con.am-hero--contact::after {
	content: none;
}

/* Gold reads paler on cream than on navy: lift gold accents in light mode. */
html:not([data-theme="dark"]) .e-con.am-hero--home,
html:not([data-theme="dark"]) .e-con.am-hero--about,
html:not([data-theme="dark"]) .e-con.am-hero--gallery {
	--am-hero-light-b: color-mix(in srgb, var(--am-gold) 80%, #B9822A);
}

@media (max-width: 767px) {
	.e-con.am-hero {
		--am-hero-pattern-inset: -6% -30% 58% 30%;
		--am-hero-pattern-opacity: .14;
		--am-hero-motif-width: 300px;
		--am-hero-motif-opacity: .2;
		--am-hero-motif-pos: -80px -120px auto auto;
		--am-hero-ribbon-opacity: .22;
	}

	.e-con.am-hero .am-hero-media::before {
		width: 52%;
		height: 36%;
		left: -6%;
		bottom: -5%;
	}

	.e-con.am-hero--gallery::after,
	.e-con.am-hero--contact::after {
		content: none;
	}

	.e-con.am-hero .am-eyebrow .elementor-heading-title {
		padding: 7px 13px 7px 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.e-con.am-hero::before,
	.e-con.am-hero::after,
	.e-con.am-hero > .e-con-inner::before,
	.e-con.am-hero > .e-con-inner::after,
	.e-con.am-hero .am-hero-media::before,
	.e-con.am-hero-africa::before {
		animation: none !important;
	}
}
