/*  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 — Homepage (_layout_1817.cfm)
    =================================== */

/*  Hero
    ==== */
.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: max(560px, 100vh);
	min-height: max(560px, 100svh);                          /* mobile: excludes the browser bars */
	padding-top: var(--site-header-height);
	padding-bottom: clamp(40px, 4.861vw, 70px);             /* 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);

	/* admin Edit buttons: sit below the fixed header so they're clickable */
	& > .pc-edit {
		top: calc(var(--site-header-height) + 12px);
		z-index: 2;

		& + .pc-edit {
			top: calc(var(--site-header-height) + 62px);
		}
	}

	& .container {
		display: flex;
		align-items: flex-end;
		justify-content: space-between;
		gap: 40px;
	}

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

	& h1 {
		margin: 0 0 10px;
		color: var(--white);
		text-shadow: 0 0 94px #000000;
	}

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

	& .hero-card {
		flex: 0 0 auto;
		max-width: clamp(300px, 23.611vw, 440px);                /* 340px @1440 */

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

		& p {
			margin: 0;
			font-size: clamp(15px, 1.111vw, 20px);              /* 16px @1440 */
			line-height: 1.37;
		}
	}
}

/*  Section backdrop (wavy lines behind Sundays + Family)
    ==================================================== */
#section-container {
	position: relative;
	display: block;
	isolation: isolate;
	overflow: clip;                                          /* keeps the oversized decorations from painting over the hero */
	background: var(--page-bg);
}

.home-backdrop {
	position: absolute;
	top: -70px;                                              /* starts just under the hero, per comp */
	left: -9.538vw;
	z-index: -1;
	width: 181.6vw;
	aspect-ratio: 2615 / 1453;
	max-height: 2400px;
	background: url("/images/layouts/_a21546/wavy-lines.svg") center / cover no-repeat;
	opacity: 0.06;
	pointer-events: none;
}

/*  Sundays at Sharon (photo collage)
    ================================ */
.sundays {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 53.333vw;                                    /* 768px @1440 — collage is laid out on a 1440×768 box */
	margin-block: clamp(20px, 2.778vw, 40px);                /* 40px @1440 */
	padding: var(--section-padding-top) var(--left-right-padding) var(--section-padding-bottom);

	& .section-content {
		position: relative;
		z-index: 6;
		width: min(clamp(420px, 35vw, 672px), 100%);              /* 504px @1440 */
	}

	& h2 {
		margin: 0 0 20px;
	}

	& .section-text {
		& p {
			margin: 0 0 1em;
			line-height: 1.37;
		}
	}

	& .section-content > p:last-child {
		margin: 20px 0 0;
		padding-top: 3px;
		text-align: center;
	}
}

.collage {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.collage-photo {
	position: absolute;
	border-radius: var(--radius);
	box-shadow: var(--card-shadow);
	overflow: hidden;
	background: var(--cream);

	& img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	/* geometry from the comp (x, y, w on a 1440×768 box; stacking order matches Figma);
	   --depth: how far each photo drifts on scroll (front photos move more) */
	&.photo-1 { left: 10.848%; top: 8.594%;  width: 17.971%; aspect-ratio: 258.78 / 350.8;  z-index: 2; --depth: 0.9; }
	&.photo-2 { left: -3.433%; top: 39.031%; width: 23.572%; aspect-ratio: 339.43 / 424.93; z-index: 3; --depth: 1.5; }
	&.photo-3 { left: 71.850%; top: 5.573%;  width: 20.328%; aspect-ratio: 292.72 / 396.79; z-index: 1; --depth: 0.6; }
	&.photo-4 { left: 91.381%; top: 34.486%; width: 14.504%; aspect-ratio: 208.86 / 283.12; z-index: 5; --depth: 2; }
	&.photo-5 { left: 78.552%; top: 57.240%; width: 14.504%; aspect-ratio: 208.86 / 283.12; z-index: 4; --depth: 1.25; }
}

/* depth parallax: photos drift at different speeds past the text (desktop collage only; the
   fade-in lives on the <img> so WOW's inline animation doesn't replace this one) */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) and (min-width: 1025px) {
		.collage-photo {
			animation: collage-drift linear both;
			animation-timeline: view();
			animation-range: cover;
			will-change: translate;
		}
	}
}

@keyframes collage-drift {
	from { translate: 0 calc(var(--depth, 1) * 45px); }
	to   { translate: 0 calc(var(--depth, 1) * -45px); }
}

/*  For your family (card carousel)
    ============================== */
.family {
	position: relative;
	display: flex;
	align-items: center;
	gap: 29px;
	padding: var(--section-padding-top) 0 var(--section-padding-bottom) var(--left-right-padding);

	/* cream swoosh behind the section (Figma "Vector" 142:1100) */
	&::before {
		content: "";
		position: absolute;
		top: 0;
		left: 50%;
		z-index: -1;
		width: 188.737vw;
		aspect-ratio: 2717.81 / 1794.14;
		background: url("/images/layouts/_a21546/wave-cream.svg") center / 100% 100% no-repeat;
		transform: translate(-50%, -50%) rotate(-176.85deg) scaleY(-1);
		pointer-events: none;
	}

	& .family-intro {
		position: relative;
		flex: 0 0 clamp(260px, 27.143vw, 521px);                  /* 391px @1440 */

		& h2 {
			margin: 0 0 20px;
		}

		& .section-text p {
			margin: 0 0 1em;
			line-height: 1.37;
		}
	}

	& .carousel-nav {
		display: flex;
		gap: 18px;
		padding-top: 4px;
	}
}

.family-track {
	position: relative;
	display: flex;
	gap: clamp(16px, 1.389vw, 27px);                            /* 20px @1440 */
	min-width: 0;
	flex: 1 1 auto;
	padding: 20px var(--left-right-padding) 30px 0;
	margin-block: -20px -30px;                                  /* room for card shadows inside the scroller */
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-left: 0;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;

	&::-webkit-scrollbar {
		display: none;
	}

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

.family-card {
	position: relative;
	display: flex;
	align-items: flex-end;
	flex: 0 0 clamp(280px, 27.778vw, 533px);                     /* 400px @1440, 533px @1920 */
	aspect-ratio: 400 / 531;
	padding: clamp(24px, 2.778vw, 53px);                         /* 40px @1440 */
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--navy);
	box-shadow: var(--card-shadow);
	scroll-snap-align: start;
	color: var(--white);

	& .card-image {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: transform 0.6s ease;
	}

	&::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(180deg, rgba(28, 31, 37, 0) 54.93%, rgba(28, 31, 37, 0.6) 87.44%);
		pointer-events: none;
	}

	&:hover .card-image {
		transform: scale(1.04);
	}

	& .card-content {
		position: relative;
		z-index: 1;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	container-type: inline-size;

	& h3 {
		margin: 0;
		font-size: 16.75cqi;                                     /* 67px on a 400px card; scales with the card */
		line-height: 1.06;
		color: var(--white);
		overflow-wrap: break-word;
	}
}

/*  Transforming lives
    ================= */
.transforming {
	--background-position: center;
	--bg-gradient: linear-gradient(180deg, rgba(105, 116, 139, 0) 0%, rgba(28, 31, 37, 0.6) 66.34%);

	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(520px, 47.569vw, 914px);                   /* 685px @1440 */
	padding-block: var(--section-padding-top) var(--section-padding-bottom);
	background-color: var(--black);
	background-image: var(--bg-gradient), var(--background-image, none);
	background-size: cover;
	background-position: var(--background-position);
	box-shadow: var(--card-shadow);

	& .glass-card {
		display: inline-flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		max-width: clamp(480px, 41.667vw, 800px);                 /* 600px @1440 */
		background: rgba(0, 0, 0, 0.37);
	}

	& h2 {
		margin: 0;
		color: var(--white);
		text-shadow: 0 4px 84px #000000;

		& .highlight-light {
			display: block;
		}
	}

	& .section-text {
		max-width: clamp(420px, 36vw, 690px);                    /* 518px @1440 */

		& p {
			margin: 0 0 1em;
			line-height: 1.37;

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

	& .glass-card > p:last-child {
		margin: 0;
		padding-top: 3px;
	}
}

/*  Responsive
    ========== */
@media (max-width: 1024px) {
	.hero .container {
		flex-direction: column;
		align-items: flex-start;
	}

	.hero .hero-card {
		max-width: none;
	}

	.sundays {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 40px;
		min-height: 0;
	}

	.sundays .section-content {
		width: min(640px, 100%);
		margin-inline: auto;
	}

	.collage {
		position: relative;
		inset: auto;
		order: 2;
		display: flex;
		gap: 16px;
		margin-inline: calc(var(--left-right-padding) * -1);
		padding: 10px var(--left-right-padding) 20px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		pointer-events: auto;

		&::-webkit-scrollbar {
			display: none;
		}
	}

	.collage .collage-photo {                                  /* outranks .collage-photo.photo-N */
		position: relative;
		flex: 0 0 clamp(200px, 38vw, 300px);
		left: auto;
		top: auto;
		width: auto;
		aspect-ratio: 3 / 4;
		scroll-snap-align: center;
	}
}

@media (max-width: 768px) {
	.family {
		flex-direction: column;
		align-items: stretch;
		gap: 36px;
		padding-right: 0;

		& .family-intro {
			flex-basis: auto;
			padding-right: var(--left-right-padding);
		}

		&::before {
			top: 18%;
			width: 320vw;
		}
	}

	.family-track {
		padding-right: var(--left-right-padding);
	}

	.family-card {
		flex-basis: min(78vw, 360px);
	}

	.transforming .glass-card {
		max-width: none;
	}
}

@media (max-width: 420px) {
	.hero h1 br {
		display: none;
	}

	.btn-row .btn {
		flex: 1 1 auto;
	}
}

/*  Empty sections (only rendered for logged-in editors, so the Edit button stays reachable)
    ======================================================================================== */
.sundays.is-empty,
.family.is-empty,
.transforming.is-empty {
	min-height: 120px;
	margin-block: 0;
	padding-block: 40px;
	outline: 2px dashed rgba(0, 48, 107, 0.25);
	outline-offset: -12px;

	& .collage,
	& .carousel-nav {
		display: none;
	}
}


