/*  a21546 — Sharon Baptist Church redesign: tokens, reset, header, buttons, footer
    ============================================================================= */

:root {
	/* named colours */
	--navy: #00306b;
	--blue: #3d96ff;
	--light-blue: #8ed0ff;
	--steel-blue: #2c5d96;
	--yellow: #e29d01;
	--black: #1c1f25;
	--white: #ffffff;
	--cream: #f4f3ed;
	--magenta: #854394;
	--purple: #402b6f;
	--page-bg: #f3f5f6;                     /* rgba(20,55,79,.05) over white */

	/* role tokens */
	--primary-color: var(--navy);
	--primary-color-hex: #00306b;
	--primary-color-text: var(--white);
	--secondary-color: var(--blue);
	--secondary-color-hex: #3d96ff;
	--secondary-color-text: var(--white);
	--text-color: #000000;
	--text-highlight: var(--blue);
	--text-highlight-light: var(--light-blue);
	--nav-color: var(--white);
	--nav-hover-color: var(--light-blue);
	--nav-scrolled-background: var(--navy);
	--mobile-menu-background: var(--navy);
	--footer-background: var(--navy);
	--footer-color: var(--white);
	--connect-background: var(--steel-blue);
	--copyright-background-color: var(--navy);

	/* layout */
	--max-width: 1920px;
	--site-header-height: 138px;
	--header_spacer_height: var(--site-header-height);
	--left-right-padding: clamp(20px, 6.944vw, 134px);       /* 100px @1440, 134px @1920 */
	--section-padding-top: clamp(60px, 6.944vw, 134px);      /* 100px @1440 */
	--section-padding-bottom: clamp(60px, 6.944vw, 134px);
	--radius: 20px;
	--radius-lg: 30px;
	--card-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
	--btn-shadow: 0 4px 16px rgba(0, 0, 0, 0.11);

	/* fonts */
	--font-primary: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-secondary: var(--font-primary);

	/* type scale (vw against a 1440px comp; keeps scaling to ~1.25x at 1920) */
	--default-h1: clamp(40px, 4.653vw, 84px);                /* 67px @1440, 84px @1920 */
	--default-h1-lh: 1.06;                                   /* 71px */
	--default-h2: clamp(32px, 3.333vw, 60px);                /* 48px @1440, 60px @1920 */
	--default-h2-lh: 1.167;                                  /* 56px */
	--default-h3: clamp(26px, 2.431vw, 44px);                /* 35px @1440 */
	--default-h4: clamp(19px, 1.597vw, 29px);                /* 23px @1440 */
	--default-h5: 18px;
	--default-h6: 16px;
	--default-p-lg: clamp(17px, 1.458vw, 26px);              /* 21px @1440, 26px @1920 */
	--default-p: 16px;                                       /* 16px */
	--default-p-weight: 400;
	--default-lh: 1.37;
	--default-btn: clamp(15px, 1.111vw, 20px);               /* 16px @1440, 20px @1920 */

	/* icons */
	--arrow-button-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.6 11h12.8M11 4.6l6.4 6.4-6.4 6.4'/%3E%3C/svg%3E");

	/* cookie consent */
	--cc-bg: var(--white);
	--cc-text: var(--black);
	--cc-btn-primary-bg: var(--navy);
	--cc-btn-primary-text: var(--white);
	--cc-btn-primary-hover-bg: var(--blue);
	--cc-btn-secondary-bg: var(--page-bg);
	--cc-btn-secondary-text: var(--navy);
	--cc-btn-secondary-hover-bg: var(--cream);
	--cc-toggle-bg-on: var(--navy);
	--cc-link-color: var(--blue);
}

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

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

body {
	margin: 0;
	font-size: 10px;
	font-family: var(--font-primary);
	color: var(--text-color);
	background: var(--page-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.4em;
	font-family: var(--font-secondary);
	font-weight: 800;
	text-wrap: balance;
}
h1 { font-size: var(--default-h1); line-height: var(--default-h1-lh); }
h2 { font-size: var(--default-h2); line-height: var(--default-h2-lh); }
h3 { font-size: var(--default-h3); line-height: 1.2; }
h4 { font-size: var(--default-h4); line-height: 1.3; font-weight: 700; }
h5 { font-size: var(--default-h5); line-height: 1.3; font-weight: 700; }
h6 { font-size: var(--default-h6); line-height: 1.3; font-weight: 700; }

p,
li,
td,
th,
blockquote {
	font-size: var(--default-p);
	font-weight: var(--default-p-weight);
	line-height: var(--default-lh);
}

p {
	margin: 0 0 1em;
}

a {
	color: var(--blue);
	transition: color 0.2s ease;
}

.p-lg,
.p-lg p,
.p-lg li {
	font-size: var(--default-p-lg);
}

.highlight { color: var(--text-highlight); }
.highlight-light { color: var(--text-highlight-light); }

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.main-container {
	position: relative;
	overflow-x: clip;
}

.wide {
	width: 100%;
}

.container {
	width: 100%;
	max-width: var(--max-width);
	margin-inline: auto;
	padding-inline: var(--left-right-padding);
}

/*  Header
    ====== */
.site-header {
	position: relative;
	z-index: 50;
}

.primary {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;

	& .container {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 30px;
		padding-block: 40px;
		transition: padding 0.3s ease;
	}

	& #logo {
		flex: 0 0 auto;
		line-height: 0;

		& a {
			display: inline-block;
		}

		& img,
		& svg {
			width: clamp(180px, 16.716vw, 320px);                    /* 241px @1440 */
			height: auto;
			transition: width 0.3s ease;
		}
	}
}

body.scrolled .primary,
body:not(.home):not(.has-hero) .primary {           /* transparent over a hero photo until scrolled */
	background: var(--nav-scrolled-background);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);

	& .container {
		padding-block: 16px;
	}

	& #logo img,
	& #logo svg {
		width: clamp(160px, 13vw, 200px);
	}
}

/*  Buttons
    =======
    .btn                 navy, yellow stripe; hover fills yellow (default)
    .btn.yellow          yellow; hover fills navy
    .btn.blue            bright blue, yellow stripe
    .btn.white           white, yellow stripe
    .btn.white-transparent  outlined white; hover fills white
    .btn.plain           any of the above without the stripe
    Legacy editor classes (files/tinymce_link_classes.txt, already in live content):
    a.button = .btn.yellow, a.blue-btn = .btn
    input.formSubmit = Signup Form (mod_dynform) submit button */
:is(.btn, a.button, a.blue-btn, input.formSubmit) {
	--btn-color: var(--white);
	--bg-color: var(--navy);
	--stripe-color: var(--yellow);
	--hover-color: var(--navy);
	--fill-color: var(--stripe-color);                      /* hover: this colour rises from the stripe to fill the button */
	--stripe-height: 9%;

	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0.625em 0.9375em;                               /* 10px 15px @16px */
	border: 0;
	border-radius: 32px;
	font-family: var(--font-primary);
	font-size: var(--default-btn);
	font-weight: 800;
	line-height: 1.37;
	color: var(--btn-color);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	overflow: hidden;
	background:
		linear-gradient(var(--fill-color), var(--fill-color)) bottom / 100% var(--stripe-height) no-repeat,
		var(--bg-color);
	box-shadow: var(--btn-shadow);
	transition:
		background-size 0.4s cubic-bezier(0.65, 0, 0.35, 1),
		color 0.25s ease 0.08s,
		transform 0.25s ease,
		box-shadow 0.25s ease;

	/* beat the platform's a:link / a:visited colours */
	&:link,
	&:visited {
		color: var(--btn-color);
	}

	&:hover,
	&:focus-visible {
		color: var(--hover-color);
		text-decoration: none;
		background-size: 100% 100%, auto;
		transform: translateY(-2px);
		box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
	}

	&:active {
		transform: translateY(0);
		box-shadow: var(--btn-shadow);
		transition-duration: 0.4s, 0.25s, 0.08s, 0.08s;
	}

	/* no yellow underline stripe (hover still fills yellow) */
	&.plain {
		--stripe-height: 0%;
		font-weight: 700;
	}

	&:is(.yellow, .button) {
		--bg-color: var(--yellow);
		--btn-color: var(--navy);
		--stripe-height: 0%;
		--fill-color: var(--navy);
		--hover-color: var(--white);
	}

	&.blue {
		--bg-color: var(--blue);
	}

	&.white {
		--bg-color: var(--white);
		--btn-color: var(--navy);
	}

	&.white-transparent {
		--bg-color: transparent;
		--stripe-height: 0%;
		--fill-color: var(--white);
		box-shadow: inset 0 0 0 2px var(--white);
	}

	@media (prefers-reduced-motion: reduce) {
		transition: none;

		&:hover,
		&:focus-visible {
			transform: none;
		}
	}
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 15px 23px;
}

/* round arrow button (carousel arrows, footer directions) */
.arrow-btn {
	--size: clamp(38px, 2.917vw, 56px);                       /* 42px @1440 */
	--bg-color: var(--navy);

	display: inline-grid;
	place-items: center;
	width: var(--size);
	height: var(--size);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--bg-color);
	color: var(--white);
	cursor: pointer;
	transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;

	&::before {
		content: "";
		width: 22px;
		height: 22px;
		background: currentColor;
		-webkit-mask: var(--arrow-button-svg) center / contain no-repeat;
		mask: var(--arrow-button-svg) center / contain no-repeat;
	}

	&.prev::before {
		transform: rotate(180deg);
	}

	&.gradient {
		--bg-color: var(--blue);
	}

	&:hover,
	&:focus-visible {
		transform: scale(1.08);
		background: var(--blue);
	}

	&.gradient:hover,
	&.gradient:focus-visible {
		background: var(--white);
		color: var(--navy);
	}

	&:disabled {
		opacity: 0.35;
		cursor: default;
		transform: none;
		background: var(--bg-color);
	}
}

/* frosted glass panel (hero card, transforming section) */
.glass-card {
	padding: 30px 40px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: var(--radius-lg);
	background: rgba(0, 0, 0, 0.36);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	color: var(--white);

	& > *:last-child {
		margin-bottom: 0;
	}
}

/*  Connect strip
    ============= */
.connect-strip {
	position: relative;
	background: var(--connect-background);
	color: var(--white);

	& .container {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 33px;
		padding-block: 50px;
	}

	& h3 {
		margin: 0;
		font-size: var(--default-h3);
		line-height: 1.37;
	}

	& p {
		margin: 0;
		font-size: var(--default-p-lg);
	}
}

.connect-form {
	display: flex;
	align-items: center;
	gap: 15px;
	flex: 0 1 clamp(480px, 42.222vw, 810px);                 /* 608px @1440 */

	& input[type="text"],
	& input[type="email"] {
		flex: 1 1 0;
		min-width: 0;
		padding: 10px 22px;
		border: 0;
		border-radius: 50px;
		background: var(--white);
		font-family: var(--font-primary);
		font-size: var(--default-btn);
		font-weight: 500;
		line-height: 1.37;
		color: #000000;

		&::placeholder {
			color: #000000;
			opacity: 1;
		}

		&:focus-visible {
			outline: 3px solid var(--light-blue);
			outline-offset: 1px;
		}
	}

	& .btn {
		flex: 0 0 auto;
	}
}

/*  Footer
    ====== */
.site-footer {
	position: relative;
	background: var(--footer-background);
	color: var(--footer-color);

	& .container {
		padding-top: 65px;
		padding-bottom: 17px;
	}

	& a {
		color: inherit;
		text-decoration: none;

		/* the engine underlines a:active:hover */
		&:active {
			text-decoration: none;
		}

		&:hover,
		&:focus-visible {
			color: var(--light-blue);
		}
	}

	& p,
	& li {
		margin: 0;
		font-size: 16px;
		line-height: 29px;
	}

	& ul {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	& h4 {
		margin: 0 0 9px;
		font-size: 16px;
		font-weight: 700;
		line-height: 1.37;
	}

	& strong,
	& b {
		font-weight: 700;
	}
}

.footer-columns {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
}

.footer-location {
	max-width: 180px;

	& .footer-address p {
		line-height: 1.37;
	}

	& .arrow-btn {
		margin-top: 9px;
	}
}

.footer-social {
	& h4 {
		margin-bottom: 20px;
	}
}

.social_container {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 16px;

	& .social {
		display: inline-grid;
		place-items: center;
		width: 22px;
		height: 22px;
		font-size: 20px;
		line-height: 1;

		& svg {
			width: 20px;
			height: 20px;
		}
	}
}

.footer-info {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 31px;
	margin-top: 54px;

	& .footer-copyright {
		font-size: 10px;
		line-height: 1.37;
		text-transform: uppercase;
	}

	& .footer-credit {
		line-height: 0;

		& p {
			margin: 0;
		}

		& img {
			max-height: 27px;
		}
	}
}

/*  Background parallax (.bg-parallax)
    ================================== */
/* For sections that paint their photo as `background-image: var(--bg-gradient), var(--background-image)`.
   Where scroll-driven animations are supported (and motion is OK), the photo moves to an oversized ::before
   layer that drifts slower than the page; the gradient moves to ::after above it. Otherwise the plain
   background stays put. Tune with --bg-parallax-distance. */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		body .bg-parallax {                                      /* body: outranks the section's own background rule */
			--bg-parallax-distance: clamp(40px, 6.944vw, 130px);    /* 100px @1440 */

			isolation: isolate;
			overflow: clip;
			background-image: none;

			&::before,
			&::after {
				content: "";
				position: absolute;
				inset: 0;
				z-index: -1;
				pointer-events: none;
			}

			&::before {
				inset: calc(var(--bg-parallax-distance) * -1) 0;
				background: var(--background-image, none) var(--background-position, center) / cover no-repeat;
				animation: bg-parallax linear both;
				animation-timeline: view();
				animation-range: cover;
				will-change: translate;
			}

			&::after {
				background: var(--bg-gradient, none);
			}
		}
	}
}

@keyframes bg-parallax {
	from { translate: 0 calc(var(--bg-parallax-distance) * -1); }
	to   { translate: 0 var(--bg-parallax-distance); }
}

/*  Keyframes
    ========= */
@keyframes fadeInSoft {
	from { opacity: 0; }
	to { opacity: 1; }
}

/*  Responsive
    ========== */
@media (max-width: 1024px) {
	:root {
		--site-header-height: 96px;
	}

	.primary .container {
		padding-block: 24px;
	}

	.connect-strip .container {
		flex-direction: column;
		align-items: stretch;
		text-align: left;
	}

	.connect-form {
		flex-basis: auto;
	}

	.footer-columns {
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 36px 60px;
	}
}

@media (max-width: 768px) {
	.footer-columns {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 32px 24px;
	}

	.footer-location {
		max-width: none;
	}

	.footer-social {
		grid-column: 1 / -1;
	}

	.footer-info {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		margin-top: 40px;
	}
}

@media (max-width: 640px) {
	.connect-form {
		flex-wrap: wrap;

		& input[type="text"],
		& input[type="email"] {
			flex: 1 1 100%;
		}

		& .btn {
			width: 100%;
		}
	}
}

@media (max-width: 420px) {
	.glass-card {
		padding: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.wow {
		animation: none !important;
		visibility: visible !important;
	}
}

/*  Perpetua admin toolbar (logged-in editors only): keep the fixed header below it
    =============================================================================== */
body:has(#managetoolbar):not(.preview) .primary {          /* toolbar Preview adds body.preview and hides the bar */
	top: 63px;
}

/*  a21546 — Primary navigation (desktop dropdowns + mobile drawer)
    ============================================================== */

/*  Desktop
    ======= */
.navigation {
	& > ul {
		display: flex;
		align-items: center;
		gap: clamp(16px, 1.736vw, 25px);                     /* 25px @1440 */
		margin: 0;
		padding: 0;
		list-style: none;
	}

	& > ul > li {
		position: relative;

		& > a {
			display: block;
			padding: 8px 0;
			font-size: clamp(15px, 1.111vw, 20px);              /* 16px @1440 */
			font-weight: 800;
			line-height: 1.37;
			letter-spacing: 0;
			text-transform: uppercase;
			text-decoration: none;
			color: var(--nav-color);
			white-space: nowrap;

			/* the engine underlines a:active:hover */
			&:active {
				text-decoration: none;
			}

			&::after {
				content: "";
				display: block;
				height: 2px;
				margin-top: 2px;
				background: var(--yellow);
				transform: scaleX(0);
				transform-origin: left;
				transition: transform 0.25s ease;
			}
		}

		&:hover > a,
		&:focus-within > a,
		& > a.active {
			color: var(--nav-color);

			&::after {
				transform: scaleX(1);
			}
		}

		&:hover .subnavMask,
		&:focus-within .subnavMask {
			opacity: 1;
			visibility: visible;
			transform: translate(-50%, 0);
		}

		&:last-child .subnavMask {
			left: auto;
			right: -20px;
			transform: translate(0, 8px);
		}

		&:last-child:hover .subnavMask,
		&:last-child:focus-within .subnavMask {
			transform: translate(0, 0);
		}
	}

	& .subnavMask {
		position: absolute;
		top: 100%;
		left: 50%;
		min-width: 220px;
		padding-top: 12px;
		opacity: 0;
		visibility: hidden;
		transform: translate(-50%, 8px);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	}

	& .subNav {
		margin: 0;
		padding: 10px 0;
		list-style: none;
		background: var(--white);
		border-radius: 16px;
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
		overflow: clip;                                          /* keep the hover fill inside the rounded corners */

		& a {
			display: block;
			padding: 8px 22px;
			font-size: 15px;
			font-weight: 600;
			line-height: 1.37;
			color: var(--navy);
			text-decoration: none;
			white-space: nowrap;

			&:hover,
			&:focus-visible {
				color: var(--blue);
				background: var(--page-bg);
			}
		}

		& li.active > a {
			color: var(--blue);
		}
	}
}

/*  Menu button
    =========== */
#menu {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;

	& .menu-bars,
	& .menu-bar,
	& .menu-bar::before,
	& .menu-bar::after {
		display: block;
	}

	& .menu-bar {
		position: relative;
		width: 28px;
		height: 3px;
		margin: 0 auto;
		border-radius: 2px;
		background: var(--white);

		&::before,
		&::after {
			content: "";
			position: absolute;
			left: 0;
			width: 100%;
			height: 3px;
			border-radius: 2px;
			background: var(--white);
		}

		&::before { top: -9px; }
		&::after { top: 9px; }
	}
}

/*  Mobile drawer
    ============= */
#mobile-navigation-container {
	position: fixed;
	inset: 0 0 0 auto;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	width: min(420px, 88vw);
	background: var(--mobile-menu-background);
	color: var(--white);
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 0.35s ease, visibility 0.35s;
	overflow-y: auto;
	overscroll-behavior: contain;

	& .mobile_nav_header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 20px;
		padding: 24px var(--left-right-padding);

		& img {
			width: 180px;
			height: auto;
		}
	}

	& .mobile_nav_close {
		position: relative;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 0;
		background: transparent;
		cursor: pointer;

		&::before,
		&::after {
			content: "";
			position: absolute;
			top: 50%;
			left: 50%;
			width: 26px;
			height: 3px;
			border-radius: 2px;
			background: var(--white);
			transform: translate(-50%, -50%) rotate(45deg);
		}

		&::after {
			transform: translate(-50%, -50%) rotate(-45deg);
		}
	}

	& .mobile_navigation {
		margin: 0;
		padding: 8px var(--left-right-padding) 40px;
		list-style: none;

		& > li {
			border-bottom: 1px solid rgba(255, 255, 255, 0.15);

			& > a {
				display: flex;
				align-items: center;
				justify-content: space-between;
				padding: 16px 0;
				font-size: 18px;
				font-weight: 800;
				line-height: 1.3;
				text-transform: uppercase;
				text-decoration: none;
				color: var(--white);

				&.active {
					color: var(--light-blue);
				}
			}
		}
	}

	& .subnavOpen {
		display: grid;
		place-items: center;
		width: 36px;
		height: 36px;
		border-radius: 50%;
		background: rgba(255, 255, 255, 0.1);

		&::before {
			content: "";
			width: 18px;
			height: 18px;
			background: currentColor;
			-webkit-mask: var(--arrow-button-svg) center / contain no-repeat;
			mask: var(--arrow-button-svg) center / contain no-repeat;
			transform: rotate(90deg);
			transition: transform 0.25s ease;
		}

		&.active::before {
			transform: rotate(-90deg);
		}
	}

	& .subnavMask {
		height: 0;
		overflow: hidden;
		transition: height 0.3s ease;
	}

	& .subNav {
		margin: 0;
		padding: 0 0 14px 14px;
		list-style: none;

		& a {
			display: block;
			padding: 8px 0;
			font-size: 16px;
			font-weight: 500;
			color: var(--white);
			text-decoration: none;

			&:hover,
			&:focus-visible {
				color: var(--light-blue);
			}
		}
	}
}

.mobile_nav_overlay {
	position: fixed;
	inset: 0;
	z-index: 999;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s;
}

html.mobile_open {
	overflow: hidden;

	& #mobile-navigation-container {
		transform: translateX(0);
		visibility: visible;
	}

	& .mobile_nav_overlay {
		opacity: 1;
		visibility: visible;
	}
}

@media (max-width: 1024px) {
	.navigation {
		display: none;
	}

	#menu {
		display: block;
	}
}

/*  a21546 — Modal (#modalContainer, launched by .modalLauncher[data-modal] / body.pc_popup)
    ======================================================================================= */
#modalContainer {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.6);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s;

	& .modalWindow {
		position: relative;
		width: min(720px, 100%);
		max-height: calc(100dvh - 40px);
		overflow-y: auto;
		padding: 40px;
		border-radius: var(--radius-lg);
		background: var(--white);
		box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
		transform: translateY(20px);
		transition: transform 0.3s ease;
	}

	& .modalBody {
		& p {
			font-size: var(--default-p-lg);
		}

		& img {
			border-radius: var(--radius);
		}
	}

	& .modalClose {
		margin-top: 24px;
		text-align: right;
	}
}

body.modalActive {
	overflow: hidden;

	& #modalContainer {
		opacity: 1;
		visibility: visible;

		& .modalWindow {
			transform: translateY(0);
		}
	}
}

@media (max-width: 640px) {
	#modalContainer .modalWindow {
		padding: 28px 22px;
	}
}

@font-face {
  font-family: 'SocialIcons';
  src:
    url('/includes/fonts/social-icons/fonts/SocialIcons.ttf?e7e1as') format('truetype'),
    url('/includes/fonts/social-icons/fonts/SocialIcons.woff?e7e1as') format('woff'),
    url('/includes/fonts/social-icons/fonts/SocialIcons.svg?e7e1as#SocialIcons') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

[class^="ico-"], [class*=" ico-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'SocialIcons' !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ico-x:before {
  content: "\e905";
}
.ico-twitter:before {
  content: "\e905";
}
.ico-check:before {
  content: "\e5ca";
}
.ico-search:before {
  content: "\e8b6";
}
.ico-arrow_right:before {
  content: "\e904";
}
.ico-youtube:before {
  content: "\ea9d";
}
.ico-arrow-right:before {
  content: "\e903";
}
.ico-arrow-left:before {
  content: "\e901";
}
.ico-arrow-down:before {
  content: "\e902";
}
.ico-wordpress:before {
  content: "\e900";
}
.ico-twitter-square:before {
  content: "\f081";
}
.ico-facebook-square:before {
  content: "\f082";
}
.ico-linkedin-square:before {
  content: "\f08c";
}
.ico-twitter1:before {
  content: "\f099";
}
.ico-facebook:before {
  content: "\f09a";
}
.ico-facebook-f:before {
  content: "\f09a";
}
.ico-feed:before {
  content: "\f09e";
}
.ico-rss:before {
  content: "\f09e";
}
.ico-pinterest-square:before {
  content: "\f0d3";
}
.ico-envelope:before {
  content: "\f0e0";
}
.ico-linkedin:before {
  content: "\f0e1";
}
.ico-rss-square:before {
  content: "\f143";
}
.ico-instagram:before {
  content: "\f16d";
}
.ico-vimeo-square:before {
  content: "\f194";
}
.ico-pinterest:before {
  content: "\f231";
}
.ico-vimeo:before {
  content: "\f27d";
}
.ico-snapchat:before {
  content: "\f2ac";
}

@charset "UTF-8";

/*!
 * animate.css -http://daneden.me/animate
 * Version - 3.5.1
 * Licensed under the MIT license - http://opensource.org/licenses/MIT
 *
 * Copyright (c) 2016 Daniel Eden
 */

.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.animated.infinite {
  animation-iteration-count: infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fadeIn {
  animation-name: fadeIn;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.fadeInDown {
  animation-name: fadeInDown;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate3d(-20px, 0, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.fadeInLeft {
  animation-name: fadeInLeft;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(20px, 0, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.fadeInRight {
  animation-name: fadeInRight;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.fadeInUp {
  animation-name: fadeInUp;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.fadeOut {
  animation-name: fadeOut;
}

@keyframes fadeOutDown {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
}

.fadeOutDown {
  animation-name: fadeOutDown;
}

@keyframes fadeOutLeft {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translate3d(-20px, 0, 0);
  }
}

.fadeOutLeft {
  animation-name: fadeOutLeft;
}

@keyframes fadeOutRight {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translate3d(20px, 0, 0);
  }
}

.fadeOutRight {
  animation-name: fadeOutRight;
}

@keyframes fadeOutUp {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
  }
}

.fadeOutUp {
  animation-name: fadeOutUp;
}

@keyframes slideInDown {
  from {
    transform: translate3d(0, -100%, 0);
  }

  to {
    transform: none;
  }
}

.slideInDown {
  animation-name: slideInDown;
}

@keyframes slideInLeft {
  from {
    transform: translate3d(-100%, 0, 0);
  }

  to {
    transform: none;
  }
}

.slideInLeft {
  animation-name: slideInLeft;
}

@keyframes slideInRight {
  from {
    transform: translate3d(100%, 0, 0);
  }

  to {
    transform: none;
  }
}

.slideInRight {
  animation-name: slideInRight;
}

@keyframes slideInUp {
  from {
    transform: translate3d(0, 100%, 0);
  }

  to {
    transform: none;
  }
}

.slideInUp {
  animation-name: slideInUp;
}

@keyframes slideOutDown {
  from {
    transform: none;
  }

  to {
    transform: translate3d(0, 100%, 0);
  }
}

.slideOutDown {
  animation-name: slideOutDown;
}

@keyframes slideOutLeft {
  from {
    transform: none;
  }

  to {
    transform: translate3d(-100%, 0, 0);
  }
}

.slideOutLeft {
  animation-name: slideOutLeft;
}

@keyframes slideOutRight {
  from {
    transform: none;
  }

  to {
    transform: translate3d(100%, 0, 0);
  }
}

.slideOutRight {
  animation-name: slideOutRight;
}

@keyframes slideOutUp {
  from {
    transform: none;
  }

  to {
    transform: translate3d(0, -100%, 0);
  }
}

.slideOutUp {
  animation-name: slideOutUp;
}
/*  a21546 — Subpage (_layout_subpage.cfm): hero, page-structure columns, Signup Form module
    ===================================================================================== */

body.subpage {
	background: var(--white);
}

/*  Hero
    ==== */
.subpage-hero {
	--background-position: center;
	--bg-gradient: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 41.4%, rgba(0, 0, 0, 0.4) 73.3%);

	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(360px, 45.139vw, 866px);              /* 650px @1440 */
	padding-top: var(--site-header-height);
	padding-bottom: clamp(36px, 4.861vw, 93px);              /* 70px @1440 */
	background-color: var(--navy);
	background-image: var(--bg-gradient), var(--background-image, none);
	background-size: cover;
	background-position: var(--background-position);
	color: var(--white);

	/* no photo: a shorter navy band under the header */
	body:not(.has-hero) & {
		min-height: 0;
		padding-top: calc(var(--site-header-height) + 40px);
	}

	/* admin Edit button: bottom-right corner (clear of the fixed header), same inset as its right edge */
	& > .pc-edit {
		top: auto;
		bottom: 20px;
		z-index: 2;
	}

	& .hero-text {
		max-width: clamp(560px, 60.347vw, 1160px);              /* 869px @1440 */
	}

	& h1 {
		margin: 0 0 10px;
		font-size: var(--default-h2);                         /* 48px @1440 */
		line-height: var(--default-h2-lh);
		color: var(--white);
		text-shadow: 0 0 94px #000000;
	}

	& .hero-subtitle {
		margin: 0;
		font-size: var(--default-h4);                         /* 23px @1440 */
		font-weight: 700;
		line-height: 1.37;
		text-shadow: 0 0 94px #000000;
	}

	& .hero-subtitle + p {
		margin: 0;
		padding-top: 19px;
	}
}

/*  Page body
    ========= */
#content {
	position: relative;
	padding-block: var(--section-padding-top) var(--section-padding-bottom);

	& > .container {
		position: relative;
	}
}

/* space between page-structure rows that have content (empty rows are display:none / .layout-row-no-content) */
#content #layout-row1:not([style*="none"]) + #layout-row2-wrapper:not(.layout-row-no-content),
#content #layout-row1:not([style*="none"]) ~ #layout-row3:not([style*="none"]),
#content #layout-row2-wrapper:not(.layout-row-no-content) + #layout-row3:not([style*="none"]) {
	margin-top: var(--module-gap);
}

/* page-structure rows/columns (Page Properties > structure); the engine floats them with inline widths */
#content #layout-row2 {
	display: flex;
	align-items: flex-start;

	/* a form beside a photo stack sits centred against it */
	&:has(.photo-stack) {
		align-items: center;
	}
	gap: clamp(40px, 8.681vw, 167px);                         /* 125px @1440 */

	&::before,
	&::after {
		content: none;                                         /* drop the clearfix */
	}

	& > .cb-column {
		float: none;
		width: auto;
		min-width: 0;
	}

	& > #layout-column1 {
		flex: 715 1 0;                                         /* 715 : 398 @1440 */
	}

	& > #layout-column2 {
		flex: 398 1 0;
	}
}

#content #layout-column1,
#content #layout-column2,
#content #layout-column3 {
	overflow: visible;                                         /* let card shadows / decorations breathe */
}

/*  Signup Form (mod_dynform): Vertical, Horizontal and Legacy layouts
    ================================================================== */
/* the engine's form.css loads after this bundle, hence #content */
#content :is(.form_body, .p_form, .signup_form) {
	font-family: var(--font-primary);
}

#content .form_body > p {
	margin: 0 0 19px;
}

/* intro box an editor typed into the form text */
#content .form_body .gray-box {
	top: 0;                                                    /* form.css nudges it down */
	width: auto;
	margin: 0 0 24px;
	padding: clamp(20px, 2.083vw, 40px);                       /* 30px @1440 */
	border: 0;
	border-radius: var(--radius);
	background: var(--page-bg);

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

	& a {
		color: var(--navy);
	}
}

/* form.css pulls the form up 15px, onto the intro box */
#content .form_body:has(.gray-box) #mainformContainer {
	top: 0;
}

#content #mainformContainer {
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 0;
	font-family: var(--font-primary);
	font-size: var(--default-p);
	line-height: var(--default-lh);
	color: var(--text-color);
	overflow: visible;

	& .column {
		width: 100%;
		min-height: 0;
		margin: 0;
	}
}

/* fields (all layouts) */
#content :is(.p_form, .signup_form) {
	--label-width: 28%;                                        /* horizontal/legacy label column */

	line-height: var(--default-lh);

	& label,
	& td.formFieldTitle {
		font-size: 16px;
		font-weight: 400;
		line-height: 1.2;
		color: #000000;
	}

	& label {
		display: inline-flex;
		align-items: baseline;
		gap: 8px;
	}

	& .required {
		font-size: 12px;
		color: #ee5523;
	}

	/* checkbox and radio options, one per line */
	& .fld:is([data-type="checkbox"], [data-type="radio"]) .fld_right {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;

		& label {
			align-items: flex-start;
			cursor: pointer;
		}

		& input {
			flex: none;
			margin-top: 0.15em;
			accent-color: var(--blue);
		}
	}

	& input[type="text"],
	& input[type="email"],
	& input[type="tel"],
	& input[type="number"],
	& input[type="date"],
	& select,
	& textarea {
		width: 100%;
		max-width: none;
		padding: 15px 20px;
		border: 1px solid #afafaf;
		border-radius: 5px;
		background: var(--white);
		font-family: var(--font-primary);
		font-size: 15px;
		line-height: 1.2;
		color: #000000;
		transition: border-color 0.2s ease, box-shadow 0.2s ease;

		&::placeholder {
			color: rgba(36, 36, 36, 0.3);
		}

		&:focus {
			outline: none;
			border-color: var(--blue);
			box-shadow: 0 0 0 3px rgba(61, 150, 255, 0.2);
		}
	}

	& select {
		min-height: 50px;
		padding-right: 48px;
		appearance: none;
		background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2300306b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 20px center / 12px 8px no-repeat;
		cursor: pointer;
	}

	/* one line tall, grows as they type */
	& textarea {
		min-height: 48px;
		height: 48px;
		field-sizing: content;
		resize: vertical;
	}

	& .form_header {
		display: block;
		margin-top: 12px;
		font-size: var(--default-h4);
		font-weight: 800;
		line-height: 1.3;
		color: var(--navy);
	}

	/* restate the .btn look over form.css */
	& input.formSubmit {
		width: auto;
		padding: 0.625em 0.9375em;
		border: 0;
		border-radius: 32px;
		font-size: var(--default-btn);
		line-height: 1.37;
		background:
			linear-gradient(var(--fill-color), var(--fill-color)) bottom / 100% var(--stripe-height) no-repeat,
			var(--bg-color);

		&:hover,
		&:focus-visible {
			background-size: 100% 100%, auto;
		}
	}
}

/* Vertical + Horizontal (div markup) */
#content .p_form {
	max-width: none;
	margin: 0;
	padding: 0;
	overflow: visible;

	& .formcontainer {
		display: flex;
		flex-direction: column;
		gap: 16px;
	}

	& .fld {
		margin: 0;
		padding: 0;
		overflow: visible;
	}

	& .fld_left,
	& .fld_right {
		width: auto;
		float: none;
		padding: 0;
		text-align: left;
	}

	& .fld[data-type="description"] p {
		margin: 8px 0 0;
	}

	& > .recaptcha_container > div {
		margin: 0 !important;                                  /* reCAPTCHA centres itself inline */
	}
}

/* Vertical: label above the field; reCAPTCHA left, Submit right */
#content .p_form_vertical {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 20px;

	& > * {
		grid-column: 1 / -1;
	}

	& > .recaptcha_container {
		grid-column: 1;
		margin-top: 14px;
	}

	& > .fld_submit {
		grid-column: 2;
		margin-top: 14px;
	}

	& .fld {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}

	& .fld[data-type="description"] .fld_left,
	& .fld_submit .fld_left {
		display: none;
	}
}

/* Horizontal: label beside the field */
#content .p_form:not(.p_form_vertical) {
	& .fld {
		display: grid;
		grid-template-columns: var(--label-width) minmax(0, 1fr);
		align-items: center;
		column-gap: 20px;
	}

	& .fld_left {
		text-align: right;
	}

	& .fld[data-type="textarea"] .fld_left {
		align-self: start;
		padding-top: 15px;
	}

	& .fld_title {
		grid-column: 1 / -1;
	}

	& > .recaptcha_container {
		margin: 14px 0 0 calc(var(--label-width) + 20px);
	}

	& > .fld_submit {
		display: grid !important;                              /* the engine reveals it with an inline display: block */
		margin-top: 14px;

		& input.formSubmit {
			float: none;                                       /* under the fields, not floated right */
		}
	}
}

/* Legacy: table markup (outer table only; radio options sit in inner tables) */
#content .signup_form {
	--legacy-label: clamp(160px, 24vw, 400px);

	& > table {
		width: calc(100% + 40px);
		margin: -16px -20px;
		border-collapse: separate;
		border-spacing: 20px 16px;
		table-layout: fixed;
	}

	& td {
		padding: 0;
		vertical-align: middle;
		font-family: var(--font-primary);
		font-size: var(--default-p);
	}

	& td.formFieldTitle:not([colspan]) {
		width: var(--legacy-label);
		text-align: right;
	}

	& > table > tbody > tr > td.formFieldInput {
		width: auto;
	}

	& tr[data-type="textarea"] td.formFieldTitle {
		vertical-align: top;
		padding-top: 15px;
	}

	& tr[data-type="description"] td {
		text-align: left;
	}

	& tr[data-type="recaptcha"] td {
		padding-left: calc(var(--legacy-label) + 20px);

		& .recaptcha_container div {
			margin: 0 !important;                              /* inline style */
		}
	}
}

/*  Content Box Toggle (accordion)
    ============================== */
#content .contentbox_toggle {
	height: auto !important;                                   /* engine's measured inline height; grid rows animate instead */
	margin: 0 0 12px;
	overflow: hidden;
	border: 1px solid rgba(0, 48, 107, 0.12);
	border-radius: var(--radius);
	background: var(--white);
	transition: box-shadow 0.3s ease, border-color 0.3s ease;

	&::after {
		content: none;
	}

	&:hover,
	&.toggle_active {
		border-color: transparent;
		box-shadow: var(--card-shadow);
	}

	& .contentbox_toggle_container {
		display: grid;
		grid-template-rows: min-content 0fr;                     /* min-content: the heading row never stretches mid-animation */
		align-content: start;
		transition: grid-template-rows 0.35s ease;
	}

	&.toggle_active .contentbox_toggle_container {
		grid-template-rows: min-content 1fr;
	}

	& h2,
	& h2:hover,
	&.toggle_active h2 {
		margin: 0;
		padding: 22px 28px 22px 76px;
		font-family: var(--font-primary);
		font-size: clamp(18px, 1.389vw, 25px);                  /* 20px @1440 */
		font-weight: 800;
		line-height: 1.3;
		color: var(--navy);
		background: radial-gradient(circle at 44px 50%, var(--blue) 16px, transparent 16.5px);
		transition: color 0.2s ease;
	}

	& h2:hover {
		color: var(--blue);
	}

	/* plus / minus */
	& h2::before,
	& h2::after {
		left: 36px;
		width: 16px;
		height: 2px;
		background-color: var(--white);
	}

	&.active h2::before,
	&.active h2::after {
		transform: translateY(-1px) rotate(180deg);
	}

	& .body {
		min-height: 0;
		overflow: hidden;
		padding: 0 28px 0 76px;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity 0.3s ease, transform 0.3s ease, padding 0.35s ease;

		& > :last-child {
			margin-bottom: 0;
		}
	}

	&.toggle_active .body {
		padding-bottom: 24px;
		opacity: 1;
		transform: none;
	}
}

/*  Sub-pages nav (sub_pages_css)
    ============================= */
#content .subpage_module_container {
	padding: clamp(20px, 2.083vw, 40px);                       /* 30px @1440 */
	border-radius: var(--radius);
	background: var(--page-bg);

	/* the engine's generic "subpages" title; the section link heads the list instead */
	& h2 {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	& .subpage_module {
		display: flex;
		flex-direction: column;
		gap: 4px;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	& li {
		margin: 0;
		padding: 0;
	}

	& a {
		display: block;
		padding: 10px 16px;
		border-radius: 12px;
		font-size: 16px;
		font-weight: 600;
		line-height: 1.35;
		color: var(--navy);
		text-decoration: none;
		transition: background-color 0.2s ease, color 0.2s ease;

		&:hover,
		&:focus-visible {
			background: var(--white);
			color: var(--blue);
		}
	}

	& li.active > a {
		background: var(--white);
		color: var(--blue);
	}

	& li.parent > a {
		margin-bottom: 8px;
		padding: 0 16px 14px;
		border-bottom: 1px solid rgba(0, 48, 107, 0.12);
		border-radius: 0;
		font-size: var(--default-h4);
		font-weight: 800;

		&:hover,
		&:focus-visible {
			background: none;
		}
	}
}

/*  Responsive
    ========== */
@media (max-width: 768px) {
	#content #layout-row2 {
		flex-direction: column;
		align-items: stretch;
		gap: 50px;

		& > #layout-column1,
		& > #layout-column2 {
			flex: 1 1 auto;
		}
	}

	#content .p_form_vertical {
		grid-template-columns: 1fr;

		& > .recaptcha_container,
		& > .fld_submit {
			grid-column: 1;
		}
	}

	/* horizontal and legacy stack like vertical */
	#content .p_form:not(.p_form_vertical) {
		& .fld {
			display: flex;
			flex-direction: column;
			align-items: stretch;
			gap: 12px;
		}

		& .fld_left {
			text-align: left;
		}

		& .fld[data-type="textarea"] .fld_left {
			padding-top: 0;
		}

		& .fld[data-type="description"] .fld_left,
		& .fld_submit .fld_left {
			display: none;
		}

		& > .recaptcha_container {
			margin-left: 0;
		}

		& > .fld_submit {
			display: block !important;                         /* inline style */
		}
	}

	#content .signup_form {
		& > table {
			width: 100%;
			margin: 0;
			border-spacing: 0;
		}

		& > table > tbody > tr {
			display: flex;
			flex-direction: column;
			gap: 12px;
			margin-bottom: 16px;
		}

		& td.formFieldTitle:not([colspan]) {
			width: auto;
			text-align: left;
		}

		& tr[data-type="heading"] td:first-child,
		& tr[data-type="submit"] td:first-child {
			display: none;
		}

		& tr[data-type="textarea"] td.formFieldTitle {
			padding-top: 0;
		}

		& tr[data-type="recaptcha"] td {
			padding-left: 0;
		}
	}
}

/*  a21546 — Content Box Layout (mod_contentbox_layout) styles for the subpage design
    ================================================================================

    The engine's /includes/cb-layouts/_cb_layout.css loads inside the page body (after this bundle) and
    already lays out l1–l14 as CSS grids, so rules here are prefixed with #content to win the cascade.

    Editor classes (Content Box Layout > settings > "Additional Classes"; combine with spaces):

    Layout / spacing
      full-width        stretch the module edge to edge (use with a background image)
      pt-0  pt-1  pt-2  top padding: none / normal / large      pb-0  pb-1  pb-2  bottom padding
      py-0  py-2        both                                     g-0  g-10  g-20  g-50  gap between boxes
      align-center      centre the boxes vertically             p-lg  larger body text (21px)
      bg-overlay        darken the background image (uses the module's overlay colour/opacity, default 20% black)

    Components
      photo-card        background image = photo in the LEFT column; box 1 floats over the photo's
                        corner as a frosted card; box 2 is the text beside it. Use a 2-box layout.
                        e.g. "photo-card p-lg"
      cards             every box becomes a colour card (icon image, heading, text). Use l5 (3 boxes).
        cards-1           colour set 1: magenta / steel blue / navy (default)
        cards-2           colour set 2: blue / yellow / purple
        cards-magenta  cards-steel  cards-navy  cards-blue  cards-yellow  cards-purple   one colour for all
                        e.g. first module "cards cards-1 deco-wave", second module "cards cards-2"
      glass             the LAST box becomes a frosted dark card (white text). Pair with a background
                        image, e.g. "full-width glass" on l9 (40/60) with box 1 left empty = map section
      photo-stack       images stack full width with rounded corners (one image per paragraph)

    Motion
      parallax          the floating card drifts against the scroll (photo-card box 1, glass last box);
                        sits at its designed spot mid-screen. Add "parallax-lg" for more travel.
                        e.g. "photo-card p-lg parallax", "full-width glass p-lg parallax"
                        CSS scroll-driven animation: browsers without it (Firefox today) just show the card still.

    Decoration (drawn on .cb-layout_settings-container::after, so it can sit with any component)
      deco-wave         cream wave behind the module (the swoosh behind the visit cards)

    Headings: italic text inside a heading renders as the blue highlight word (e.g. "Sunday *Mornings*").
*/

#content {
	--module-gap: clamp(48px, 6.944vw, 134px);                 /* 100px @1440 */
	--card-gap: 20px;

	isolation: isolate;
	overflow: clip;                                            /* keeps deco-wave from painting over the hero/footer */
}

/*  Module rhythm
    ============= */
/* each module gets a per-element rule from its Styles tab (.Element123text { font-family; font-size: 11pt; color });
   the design owns the type, the Styles tab keeps text and background colours */
#content :is(.cb-body, div.cb-header, .formFieldTitle, .formFieldInput, .fld_right, .fld_title)[class*="Element"] {
	font-family: var(--font-primary);
	font-size: var(--default-p);
	font-weight: var(--default-p-weight);
}

#content .cb-content {
	position: relative;
	margin: 0 0 var(--module-gap);

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

#content .cb-layout_settings-container {
	position: relative;
}

/* Styles tab background colour (has-bg added by _subpage.js): rounded panel */
#content .cb-content.has-bg > .cb-body {
	padding: clamp(24px, 3.333vw, 64px);                       /* 48px @1440 */
	border-radius: var(--radius);

	& .cb-layout_box-container {
		align-items: center;
	}

	& .is-spacer {
		display: none;
	}

	& img {
		border-radius: calc(var(--radius) / 2);
	}

	/* yellow buttons fill white on hover (navy would vanish on a dark panel) */
	& :is(.btn.yellow, a.button) {
		--fill-color: var(--white);
		--hover-color: var(--navy);
	}
}

#content .cb-layout_box-container {
	margin: 0;
	gap: clamp(24px, 2.083vw, 40px);                           /* 30px @1440 */
	overflow: visible;
}

#content .cb-layout-box {
	min-width: 0;

	& > :last-child {
		margin-bottom: 0;
	}

	& img {
		height: auto;
	}
}

/* module heading (Content Box Layout / Signup Form "Header"); [class] beats the per-element header rule */
#content h3.cb-header,
#content h3.cb-header[class*="Element"] {
	font-family: var(--font-secondary);
	font-weight: 800;
	margin: 0 0 19px;
	padding: 0;                                                /* Styles tab adds 2px */
	font-size: var(--default-h3);
	line-height: 1.2;
	color: #000000;
}

#content :is(h1, h2, h3, h4) em {
	font-style: normal;
	color: var(--text-highlight);
}

#content .cb-layout-box h2 {
	margin: 0 0 20px;
}

/*  Utilities
    ========= */
#content {
	& .pt-0 { padding-top: 0; }
	& .pt-1 { padding-top: calc(var(--module-gap) / 2); }
	& .pt-2 { padding-top: var(--module-gap); }
	& .pb-0 { padding-bottom: 0; }
	& .pb-1 { padding-bottom: calc(var(--module-gap) / 2); }
	& .pb-2 { padding-bottom: var(--module-gap); }
	& .py-0 { padding-block: 0; }
	& .py-2 { padding-block: var(--module-gap); }

	& .g-0 .cb-layout_box-container { gap: 0; }
	& .g-10 .cb-layout_box-container { gap: 10px; }
	& .g-20 .cb-layout_box-container { gap: 20px; }
	& .g-50 .cb-layout_box-container { gap: clamp(30px, 3.472vw, 67px); }

	& .align-center .cb-layout_box-container { align-items: center; }
}

/* background image set in the module settings */
#content .cb_bg_image {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;

	/* darkening overlay: opt in with the "bg-overlay" class (the engine always sends a 20% value) */
	&.bg-overlay::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 0;
		background: var(--bg-overlay, transparent);
		opacity: var(--bg-overlay-opacity, 0);
		pointer-events: none;
	}

	& > .cb-layout_layouts-container {
		position: relative;
		z-index: 1;
	}
}

/* edge to edge */
#content .full-width {
	width: 100vw;
	margin-inline: calc(50% - 50vw);
	padding-inline: var(--left-right-padding);

	& > .cb-layout_layouts-container {
		max-width: calc(var(--max-width) - (var(--left-right-padding) * 2));
		margin-inline: auto;
	}

	&.cb_bg_image {
		display: flex;
		align-items: center;
		min-height: clamp(420px, 47.569vw, 914px);             /* 685px @1440 */
		padding-block: var(--module-gap);
		box-shadow: var(--card-shadow);

		& > .cb-layout_layouts-container {
			width: 100%;
		}
	}
}

/* older content: background image with no design class = full-width banner, dark overlay, white text */
#content .cb_bg_image:not(.photo-card, .glass, .full-width) {
	width: 100vw;
	margin-inline: calc(50% - 50vw);
	padding: clamp(48px, 5.556vw, 107px) var(--left-right-padding);   /* 80px @1440 */
	color: var(--white);

	&::before {
		content: "";
		position: absolute;
		inset: 0;
		background: rgba(0, 0, 0, 0.45);
		pointer-events: none;
	}

	& > .cb-layout_layouts-container {
		max-width: calc(var(--max-width) - (var(--left-right-padding) * 2));
		margin-inline: auto;
	}

	& :is(h1, h2, h3, h4, h5, p, li, strong, a:not(.btn, .button, .blue-btn)) {
		color: var(--white);
	}
}

/* fixed background: desktop only (iOS ignores it and scales the photo) */
#content .cb_bg_fixed {
	background-attachment: fixed;

	@media (max-width: 1024px) {
		background-attachment: scroll;
	}
}

/* content images: rounded by default (an inline border-radius from the editor overrides it) */
:where(#content) img {
	border-radius: var(--radius);
}

/* embeds (maps, video) */
#content :is(.cb-layout-box, .cb-body) iframe {
	max-width: 100%;
	border: 0;
	border-radius: var(--radius);

	/* maps and videos fill the box and keep their shape */
	&:is([src*="google.com/maps"], [src*="youtube"], [src*="vimeo"]) {
		display: block;
		width: 100%;
		height: auto;
		aspect-ratio: 4 / 3;
	}
	&:is([src*="youtube"], [src*="vimeo"]) { aspect-ratio: 16 / 9; }
}

/*  Glass card (last box)
    ===================== */
#content .glass .cb-layout-box:last-child {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: clamp(24px, 2.083vw, 40px) clamp(24px, 2.778vw, 53px);  /* 30px 40px @1440 */
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: var(--radius-lg);
	background: rgba(0, 0, 0, 0.37);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	color: var(--white);

	& > * {
		margin: 0;
	}

	& :is(h1, h2, h3, h4, p, li, a:not(.btn, .button, .blue-btn)) {
		color: var(--white);
	}

	& h2 {
		text-shadow: 0 4px 84px #000000;
	}

	& :is(h1, h2, h3, h4) em {
		color: var(--text-highlight-light);
	}
}

/*  Photo card: photo in the left column, box 1 floats over it, box 2 beside
    ======================================================================== */
#content .photo-card {
	background-image: none !important;                         /* the photo is drawn in the left column instead */

	&::before {
		content: none;                                          /* no full-module overlay */
	}

	& .cb-layout_box-container {
		grid-template-columns: minmax(0, 419fr) minmax(0, 709fr);
		align-items: center;
		column-gap: clamp(40px, 7.431vw, 143px);              /* 107px @1440 */
		padding-bottom: 40px;                                   /* room for the card hanging below the photo */

		&::before {
			content: "";
			grid-column: 1;
			grid-row: 1;
			align-self: start;
			aspect-ratio: 419 / 489;
			border-radius: var(--radius);
			background: var(--bg-image, var(--cream)) center / cover no-repeat;
			box-shadow: var(--card-shadow);
		}
	}

	& .cb-layout_box-1 {
		grid-column: 1;
		grid-row: 1;
		align-self: end;
		justify-self: end;
		z-index: 1;
		width: 80.7%;                                            /* 338px of the 419px photo */
		margin: 0 -12.05% -40px 0;                              /* hangs 50px right / 40px below */
		padding: 30px 40px;
		border: 1px solid rgba(255, 255, 255, 0.3);
		border-radius: var(--radius-lg);
		background: rgba(0, 0, 0, 0.36);
		-webkit-backdrop-filter: blur(20px);
		backdrop-filter: blur(20px);
		color: var(--white);

		& :is(h3, h4, h5, p, li, a:not(.btn, .button, .blue-btn)) {
			color: var(--white);
		}

		& :is(h3, h4, h5) {
			margin: 0 0 4px;
			font-size: var(--default-p-lg);
			font-weight: 700;
			line-height: 1.37;
		}

		& p {
			margin: 0 0 10px;
			font-size: var(--default-p);
			line-height: 1.37;
		}

		& strong {
			display: inline-block;
			margin-top: 4px;
			font-size: var(--default-p-lg);
			font-weight: 700;
		}
	}

	& .cb-layout_box-2 {
		grid-column: 2;
		grid-row: 1;
	}
}

/*  Colour cards
    ============ */
#content .cards {
	--card-1: var(--magenta);
	--card-2: var(--steel-blue);
	--card-3: var(--navy);
	--card-4: var(--purple);

	& .cb-layout_box-container {
		gap: var(--card-gap);
	}

	& .cb-layout-box {
		--card-color: var(--card-1);

		position: relative;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		min-height: clamp(260px, 21.528vw, 413px);             /* 310px @1440 */
		padding: clamp(28px, 2.778vw, 53px);                   /* 40px @1440 */
		border-radius: var(--radius);
		overflow: hidden;
		background:
			url("/images/layouts/_a21546/card-swoosh.svg") top left / 100% 100% no-repeat,
			var(--card-color);
		box-shadow: var(--card-shadow);
		color: var(--white);

		& > * {
			margin: 0;
		}

		/* icon: an image on its own line at the top */
		& img {
			display: block;
			width: auto;
			height: 39px;
			max-width: none;
		}

		& :is(h2, h3, h4) {
			margin: auto 0 6px;                                  /* pushes the text to the bottom of the card */
			padding-top: 27px;
			font-size: var(--default-h3);
			line-height: 1.2;
			color: var(--white);
		}

		& :is(p, li) {
			font-size: var(--default-p);
			color: var(--white);
		}

		& a:not(.btn, .button, .blue-btn) {
			color: var(--white);
		}
	}

	& .cb-layout_box-2 { --card-color: var(--card-2); }
	& .cb-layout_box-3 { --card-color: var(--card-3); }
	& .cb-layout_box-4 { --card-color: var(--card-4); }
}

#content .cards-2 {
	--card-1: var(--blue);
	--card-2: var(--yellow);
	--card-3: var(--purple);
	--card-4: var(--magenta);
}

#content .cards-magenta { --card-1: var(--magenta); --card-2: var(--magenta); --card-3: var(--magenta); --card-4: var(--magenta); }
#content .cards-steel   { --card-1: var(--steel-blue); --card-2: var(--steel-blue); --card-3: var(--steel-blue); --card-4: var(--steel-blue); }
#content .cards-navy    { --card-1: var(--navy); --card-2: var(--navy); --card-3: var(--navy); --card-4: var(--navy); }
#content .cards-blue    { --card-1: var(--blue); --card-2: var(--blue); --card-3: var(--blue); --card-4: var(--blue); }
#content .cards-yellow  { --card-1: var(--yellow); --card-2: var(--yellow); --card-3: var(--yellow); --card-4: var(--yellow); }
#content .cards-purple  { --card-1: var(--purple); --card-2: var(--purple); --card-3: var(--purple); --card-4: var(--purple); }

/* plain modules back to back read as one section; full gap on either side of a coloured one */
#content .cb-content:has(+ .cb-content) {
	margin-bottom: clamp(32px, 3.472vw, 67px);                 /* 50px @1440 */
}

#content .cb-content:not(:last-child):has(.cb_bg_image, .cards, .photo-card, .glass, .full-width, .deco-wave),
#content .cb-content:has(+ .cb-content :is(.cb_bg_image, .cards, .photo-card, .glass, .full-width, .deco-wave)) {
	margin-bottom: var(--module-gap);
}

/* the photo card's frosted box hangs 40px below the photo; keep 70px from photo to the next module */
#content .cb-content.cb-content:has(.photo-card) {
	margin-bottom: 30px;
}

/* two card modules in a row read as one grid */
#content .cb-content:has(.cards):has(+ .cb-content .cards) {
	margin-bottom: var(--card-gap);
}


/*  Photo stack
    =========== */
#content .photo-stack {
	& .cb-layout-box > p {
		margin: 0 0 var(--card-gap);

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

	& img {
		display: block;
		width: 100%;
		aspect-ratio: 398 / 375;
		object-fit: cover;
		border-radius: var(--radius);
		box-shadow: var(--card-shadow);
	}
}

/*  Decoration: cream wave
    ====================== */
#content .deco-wave::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: -1;
	width: max(188.737vw, 1400px);
	aspect-ratio: 2717.81 / 1794.14;
	background: url("/images/layouts/_a21546/wave-cream.svg") center / 100% 100% no-repeat;
	transform: translate(-50%, -38%) rotate(-176.85deg) scaleY(-1);
	pointer-events: none;
}

/*  Parallax (floating cards)
    ========================= */
/* uses the `translate` property, so it never fights a transform; 0 offset = the card's designed position
   when the card is centred in the viewport */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		#content .parallax {
			--parallax-distance: clamp(24px, 3.472vw, 60px);        /* 50px @1440 */

			&.parallax-lg {
				--parallax-distance: clamp(40px, 6.25vw, 110px);    /* 90px @1440 */
			}

			&.photo-card .cb-layout_box-1,
			&.glass .cb-layout-box:last-child {
				animation: cb-parallax linear both;
				animation-timeline: view();
				animation-range: cover;
				will-change: translate;
			}
		}
	}
}

@keyframes cb-parallax {
	from { translate: 0 var(--parallax-distance); }
	to   { translate: 0 calc(var(--parallax-distance) * -1); }
}

/*  Responsive
    ========== */
@media (max-width: 1024px) {
	#content .cards .cb-layout_box-container {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	#content .cb-layout_box-container {
		grid-template-columns: 1fr;
	}

	#content .cards .cb-layout_box-container {
		grid-template-columns: 1fr;
	}

	#content .cards .cb-layout-box {
		min-height: 0;
	}

	#content .photo-card {
		& .cb-layout_box-container {
			grid-template-columns: 1fr;
			row-gap: 0;
			padding-bottom: 0;

			&::before {
				aspect-ratio: 4 / 3.6;
			}
		}

		& .cb-layout_box-1 {
			width: 88%;
			margin: 0 6% -24px 0;
			padding: 22px 26px;
		}

		& .cb-layout_box-2 {
			grid-column: 1;
			grid-row: 2;
			margin-top: 60px;
		}
	}

	#content .parallax {
		--parallax-distance: 20px;

		&.parallax-lg {
			--parallax-distance: 36px;
		}
	}

	#content .full-width.cb_bg_image {
		min-height: 0;
		padding-block: 60px;
	}

	#content .glass .cb-layout_box-container {
		grid-template-columns: 1fr;
	}

	/* an empty first box (map layout) shouldn't leave a gap on phones */
	#content .glass .cb-layout-box:not(:last-child):not(:has(img, h1, h2, h3, h4, a, li)) {
		display: none;
	}
}

/*  a21546 — Staff Module (mod_staff) to match the subpage design
    ==============================================================
    Self-contained: remove this file from the CSS array in _layout_subpage.cfm to fall back to the
    engine's staff styles (/images_ADMIN/_perpetua_6_1/css/staff.min.3.css, which loads in the body
    after the bundle, hence the #content prefix on every rule).

    Columns follow the module's Display setting (col1–col5). Staff with no photo get a branded
    placeholder (card colour + swoosh + person outline) in place of the grey "no photo" image. */

#content .staffmodule {
	--staff-gap: clamp(16px, 1.389vw, 27px);                    /* 20px @1440 */
	--staff-columns: 3;
	--staff-person: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-8 8-8s8 3.6 8 8'/%3E%3C/svg%3E");

	max-width: none;
	margin: 0;
	padding: 0;
	font-family: var(--font-primary);

	&::before,
	&::after {
		content: none;                                          /* drop the float clearfix */
	}

	&.col1 { --staff-columns: 1; }
	&.col2 { --staff-columns: 2; }
	&.col3 { --staff-columns: 3; }
	&.col4 { --staff-columns: 4; }
	&.col5 { --staff-columns: 5; }

	& .staffmodule-grid-container {
		display: grid;
		grid-template-columns: repeat(var(--staff-columns), minmax(0, 1fr));
		gap: var(--staff-gap);
		margin: 0;
	}

	& .staffbox,
	&.col1 .staffbox,
	&.col2 .staffbox,
	&.col3 .staffbox,
	&.col4 .staffbox,
	&.col5 .staffbox {
		float: none;
		width: auto;
		clear: none;
	}

	/* card */
	& .staff-margin-wrapper {
		display: flex;
		flex-direction: column;
		height: 100%;
		margin: 0;
		overflow: hidden;
		border-radius: var(--radius);
		background-color: var(--white);                         /* beats the module's <style> colour */
		box-shadow: var(--card-shadow);
		transition: transform 0.3s ease, box-shadow 0.3s ease;

		&:hover {
			transform: translateY(-4px);
			box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
		}
	}

	& .staffimage {
		flex: 0 0 auto;
		width: 100%;
		margin: 0;
		padding: 0;
		aspect-ratio: 4 / 5;
		background-size: cover;
		background-position: center 20%;

		/* "view bio" overlay (only when the person has a bio) */
		&.hover::after {
			background: var(--navy);
		}
	}

	& .biobtnbg {
		right: 16px;
		bottom: 16px;
		padding: 8px 14px;
		border-radius: 32px;
		background: var(--white);
		color: var(--navy);
		font-size: 14px;
		font-weight: 700;
	}

	/* no photo: branded placeholder in the card colours (cycles magenta / steel / navy / purple) */
	& .staffimage[style*="no-photo"] {
		--placeholder-color: var(--magenta);

		background:
			var(--staff-person) center 58% / 34% auto no-repeat,
			url("/images/layouts/_a21546/card-swoosh.svg") top left / 100% 100% no-repeat,
			var(--placeholder-color) !important;                   /* inline background-image */
	}

	& .staffbox:nth-child(4n + 2) .staffimage[style*="no-photo"] { --placeholder-color: var(--steel-blue); }
	& .staffbox:nth-child(4n + 3) .staffimage[style*="no-photo"] { --placeholder-color: var(--navy); }
	& .staffbox:nth-child(4n + 4) .staffimage[style*="no-photo"] { --placeholder-color: var(--purple); }

	& .staffinfo {
		flex: 1 1 auto;
		display: flex;
		flex-direction: column;
		gap: 4px;
		padding: clamp(18px, 1.528vw, 29px) clamp(18px, 1.667vw, 32px);  /* 22px 24px @1440 */
		background-color: transparent;
	}

	& .staffname {
		font-size: clamp(18px, 1.389vw, 25px);                  /* 20px @1440 */
		font-weight: 800;
		line-height: 1.25;
		color: var(--navy);
	}

	& .stafftitle {
		font-size: 15px;
		font-weight: 500;
		line-height: 1.4;
		color: var(--text-color);
		opacity: 0.75;
	}

	& .staffcontact {
		font-size: 15px;

		&:empty {
			display: none;
		}

		& div:first-child {
			margin-top: 10px;
		}

		& span.contact-icon {
			color: var(--blue);
		}

		& a {
			color: var(--navy);
			text-decoration: none;

			&:hover {
				color: var(--blue);
			}
		}
	}

	& .staffssm {
		margin-top: 12px;

		& a.ssmicon {
			color: var(--navy);

			&:hover {
				color: var(--blue);
			}
		}
	}

	/* one column: photo beside the text */
	&.col1:not(.widthsmall) .staff-margin-wrapper {
		flex-direction: row;
		align-items: center;
	}

	&.col1:not(.widthsmall) .staffbox .staffimage {
		display: block;
		width: 35%;
		padding: 0;
	}

	&.col1:not(.widthsmall) .staffbox .staffinfo {
		display: flex;
		width: auto;
		padding: clamp(24px, 2.778vw, 53px);                     /* 40px @1440 */
	}
}

/* bio popup */
[id^="staff_modal_"] {
	font-family: var(--font-primary);

	& .staff_modal_container {
		overflow: hidden;
		border-radius: var(--radius);
	}

	& .staff_description_body,
	& .staff_description_body p,
	& .staff_description_body h3,
	& .staff_description_body h4 {
		font-family: var(--font-primary);
	}

	& .staff_description_body h3 {
		color: var(--navy);
		font-weight: 800;
	}
}

@media (prefers-reduced-motion: reduce) {
	#content .staffmodule .staff-margin-wrapper {
		transition: none;

		&:hover {
			transform: none;
		}
	}
}

/*  Responsive
    ========== */
@media (max-width: 1024px) {
	#content .staffmodule:is(.col4, .col5) {
		--staff-columns: 3;
	}
}

@media (max-width: 768px) {
	#content .staffmodule:is(.col3, .col4, .col5) {
		--staff-columns: 2;
	}
}

@media (max-width: 640px) {
	#content .staffmodule .staffbox .staffimage,
	#content .staffmodule .staffbox .staffinfo {
		width: auto;                                             /* undo the engine's 640px block/float rules */
	}

	#content .staffmodule.col1:not(.widthsmall) .staff-margin-wrapper {
		flex-direction: column;
	}

	#content .staffmodule.col1:not(.widthsmall) .staffbox .staffimage {
		width: 100%;
	}
}

@media (max-width: 420px) {
	#content .staffmodule:is(.col2, .col3, .col4, .col5) {
		--staff-columns: 1;
	}
}


