:root {
	--shell-line: rgba(23, 52, 97, 0.16);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(253, 254, 253, 0.96);
	backdrop-filter: blur(18px);
	box-shadow: 0 1px 0 var(--shell-line);
}

.utility-bar {
	min-height: 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: 8px clamp(24px, 5vw, 84px);
}

.utility-bar p {
	margin: 0;
	color: white;
	font-family: "Lora", serif;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0.025em;
}

.utility-bar > div {
	display: flex;
	align-items: center;
	gap: 10px;
}

.utility-bar a {
	min-height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 21px;
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: 999px;
	color: white;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: normal;
	text-decoration: none;
}

.utility-bar .utility-phone {
	min-height: auto;
	padding: 0 8px;
	border: 0;
	color: rgba(255, 255, 255, 0.88);
}

.utility-bar .utility-schedule,
.utility-bar .utility-support {
	font-size: 13px;
	font-weight: 800;
}

.utility-bar .utility-schedule {
	border-color: #43bdb8;
	background: linear-gradient(135deg, #43bdb8 0%, #2e9fa8 52%, #327da5 100%);
	box-shadow: 0 5px 16px rgba(46, 159, 168, 0.24);
}

.main-navigation.nav-shell {
	height: 86px;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: 0 clamp(24px, 5vw, 84px);
}

.brand img {
	width: 218px;
	height: auto;
}

.desktop-nav {
	display: flex;
	align-items: center;
	gap: clamp(20px, 2.2vw, 38px);
	font-size: 14px;
	font-weight: 700;
}

.desktop-nav > a {
	position: relative;
	padding: 34px 0;
	color: #173461;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: normal;
	text-decoration: none;
}

.desktop-nav > a[aria-current="page"] {
	color: #173461;
}

.page-testimonials .desktop-nav > a[aria-current="page"] {
	color: #167f82;
}

:is(
	.page-about-macom,
	.page-10th-anniversary,
	.page-leadership,
	.page-community-partners,
	.page-annual-reports,
	.page-contact-us,
	.page-privacy-policy
) .skip-link {
	color: #2b4b88;
}

:is(
	.page-what-to-expect,
	.page-uses-for-the-mikvah,
	.page-schedule-a-visit,
	.page-support-macom
) .desktop-nav > a {
	letter-spacing: 0.02em;
}

.desktop-nav > a::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 23px;
	width: 22px;
	height: 1px;
	border-radius: 999px;
	background: #43bdb8;
	opacity: 0;
	transform: translateX(-50%) scaleX(0.35);
	transition: opacity 0.25s ease, transform 0.3s ease;
}

.desktop-nav > a:hover::after,
.desktop-nav > a:focus-visible::after,
.desktop-nav > a[aria-current="page"]::after {
	opacity: 1;
	transform: translateX(-50%) scaleX(1);
}

.mobile-nav {
	position: relative;
	display: none;
}

.mobile-nav summary {
	padding: 10px 14px;
	border: 1px solid var(--shell-line);
	border-radius: 6px;
	color: #173461;
	cursor: pointer;
	font-weight: 700;
	line-height: normal;
	list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
	display: none;
}

.mobile-nav > div {
	position: absolute;
	right: 0;
	top: 50px;
	z-index: 100;
	width: min(310px, 84vw);
	display: grid;
	padding: 12px;
	border: 1px solid var(--shell-line);
	border-radius: 8px;
	background: white;
	box-shadow: 0 18px 50px rgba(23, 52, 97, 0.18);
}

.mobile-nav a {
	padding: 14px;
	border-bottom: 1px solid var(--shell-line);
	color: #173461;
	font-size: 14px;
	font-weight: 700;
	line-height: normal;
	text-decoration: none;
}

.mobile-nav-heading {
	display: block;
	padding: 16px 14px 8px;
	color: var(--shell-teal-dark);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.site-footer.footer {
	--footer-background: #102b50;
	--footer-tagline-color: rgba(255, 255, 255, 0.74);
	--footer-tagline-size: 16px;
	--footer-heading-color: white;
	--footer-heading-family: "Lora", Georgia, "Times New Roman", serif;
	--footer-heading-size: 1.25rem;
	--footer-heading-spacing: normal;
	--footer-heading-transform: none;
	--footer-link-color: rgba(255, 255, 255, 0.74);
	--footer-link-size: 0.9rem;
	--footer-bottom-color: rgba(255, 255, 255, 0.74);
	--footer-bottom-size: 0.76rem;
	--footer-bottom-spacing: normal;
	--footer-bottom-transform: none;
	display: grid;
	grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
	gap: 30px;
	padding: 52px 5vw 22px;
	background: var(--footer-background);
	color: white;
}

.footer-brand img {
	display: block;
	width: 250px;
	max-width: 100%;
	margin-bottom: 22px;
}

.footer-brand p {
	max-width: 310px;
	margin: 0;
	color: var(--footer-tagline-color);
	font-size: var(--footer-tagline-size);
	line-height: 1.7;
}

.footer-column,
.footer-column ul {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-column {
	font-style: normal;
}

.footer-column h3 {
	margin: 0 0 5px;
	color: var(--footer-heading-color);
	font-family: var(--footer-heading-family);
	font-size: var(--footer-heading-size);
	font-weight: 500;
	letter-spacing: var(--footer-heading-spacing);
	line-height: normal;
	text-transform: var(--footer-heading-transform);
}

.footer-column a {
	color: var(--footer-link-color);
	font-size: var(--footer-link-size);
	line-height: 1.55;
	text-decoration: none;
}

.footer-bottom {
	grid-column: 1 / -1;
	display: flex;
	justify-content: space-between;
	margin-top: 0;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	color: var(--footer-bottom-color);
	font-size: var(--footer-bottom-size);
	letter-spacing: var(--footer-bottom-spacing);
	text-transform: var(--footer-bottom-transform);
}

:is(
	.page-about-macom,
	.page-10th-anniversary,
	.page-leadership,
	.page-community-partners,
	.page-annual-reports,
	.page-contact-us
) .site-footer.footer {
	--footer-background: #173461;
	--footer-tagline-color: #aebdce;
	--footer-tagline-size: 14px;
	--footer-heading-color: #9de2df;
	--footer-heading-size: 11px;
	--footer-heading-spacing: 0.15em;
	--footer-heading-transform: uppercase;
	--footer-link-color: #c8d3e1;
	--footer-link-size: 13px;
	--footer-bottom-color: #8fa1b6;
	--footer-bottom-size: 11px;
	--footer-bottom-spacing: 0.06em;
	--footer-bottom-transform: uppercase;
	gap: 30px;
	padding: 52px clamp(24px, 7vw, 118px) 24px;
}

:is(
	.page-about-macom,
	.page-10th-anniversary,
	.page-leadership,
	.page-community-partners,
	.page-annual-reports,
	.page-contact-us
) .footer-brand img {
	width: 280px;
	margin-bottom: 0;
}

:is(
	.page-about-macom,
	.page-10th-anniversary,
	.page-leadership,
	.page-community-partners,
	.page-annual-reports,
	.page-contact-us
) .footer-column,
:is(
	.page-about-macom,
	.page-10th-anniversary,
	.page-leadership,
	.page-community-partners,
	.page-annual-reports,
	.page-contact-us
) .footer-column ul {
	gap: 9px;
}

:is(
	.page-about-macom,
	.page-10th-anniversary,
	.page-leadership,
	.page-community-partners,
	.page-annual-reports,
	.page-contact-us
) .footer-column h3 {
	margin-bottom: 7px;
}

:is(
	.page-about-macom,
	.page-10th-anniversary,
	.page-leadership,
	.page-community-partners,
	.page-annual-reports,
	.page-contact-us
) .footer-bottom {
	margin-top: 16px;
}

:is(
	.page-about-macom,
	.page-10th-anniversary,
	.page-leadership,
	.page-community-partners,
	.page-annual-reports,
	.page-contact-us
) .footer-column h3 {
	font-weight: 700;
}

:is(
	.page-about-macom,
	.page-10th-anniversary,
	.page-leadership,
	.page-community-partners,
	.page-annual-reports,
	.page-contact-us
) .footer-column a {
	line-height: 1.7;
}

:is(
	.page-about-macom,
	.page-10th-anniversary,
	.page-leadership,
	.page-community-partners,
	.page-annual-reports,
	.page-contact-us
) .footer-bottom a {
	color: #9de2df;
}

:is(
	.page-about-macom,
	.page-10th-anniversary,
	.page-leadership,
	.page-community-partners,
	.page-annual-reports,
	.page-contact-us
) .button-white {
	color: #2b4b88;
}

:is(
	.page-education-programs,
	.page-becoming-a-mikvah-guide,
	.page-conversion-immersion,
	.page-macom-insights,
	.page-mikvah-for-men
) .site-footer.footer {
	--footer-heading-size: 1.15rem;
	--footer-link-size: 0.86rem;
}

:is(
	.page-education-programs,
	.page-becoming-a-mikvah-guide,
	.page-conversion-immersion,
	.page-macom-insights,
	.page-mikvah-for-men
) .footer-brand img {
	width: 230px;
	margin-bottom: 20px;
}

:is(
	.page-education-programs,
	.page-becoming-a-mikvah-guide,
	.page-conversion-immersion,
	.page-macom-insights,
	.page-mikvah-for-men
) .footer-column h3 {
	margin-bottom: 18px;
}

:is(
	.page-education-programs,
	.page-becoming-a-mikvah-guide,
	.page-conversion-immersion,
	.page-macom-insights,
	.page-mikvah-for-men
) .footer-column a {
	line-height: normal;
}

.page-mikvah-for-men .footer-bottom a {
	color: #9de2df;
}

:is(.page-schedule-a-visit, .page-support-macom) .footer-bottom a {
	font-size: 0.9rem;
	line-height: 1.55;
}

.page-privacy-policy .site-footer.footer {
	--footer-background: #173461;
	--footer-tagline-color: #afbed0;
	--footer-tagline-size: 18px;
	--footer-heading-color: #9de2df;
	--footer-heading-size: 11px;
	--footer-heading-spacing: 0.15em;
	--footer-heading-transform: uppercase;
	--footer-link-color: #c8d3e1;
	--footer-link-size: 13px;
	--footer-bottom-color: #8fa1b6;
	--footer-bottom-size: 11px;
	--footer-bottom-spacing: 0.06em;
	--footer-bottom-transform: uppercase;
}

.page-privacy-policy .footer-brand p {
	line-height: 1.6;
}

.page-privacy-policy .footer-column h3 {
	font-weight: 700;
}

.page-privacy-policy .footer-column a {
	line-height: 1.7;
}

.page-privacy-policy .footer-bottom a {
	color: #9de2df;
}

@media (max-width: 1100px) {
	.site-footer.footer {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.desktop-nav {
		display: none;
	}

	.mobile-nav {
		display: block;
	}
}

@media (max-width: 760px) {
	.utility-bar {
		flex-direction: column;
		justify-content: center;
		gap: 8px;
		padding: 10px 16px 12px;
		text-align: center;
	}

	.utility-bar p {
		font-size: 14px;
	}

	.utility-bar > div {
		width: 100%;
		justify-content: center;
		flex-wrap: wrap;
	}

	.utility-bar a {
		min-height: 34px;
		flex: 1;
		max-width: 190px;
		padding: 0 10px;
	}

	.utility-bar .utility-phone {
		flex-basis: 100%;
		max-width: none;
	}

	.main-navigation.nav-shell {
		height: 72px;
		min-height: 0;
		padding: 0 18px;
	}

	.brand img {
		width: 174px;
	}

	.site-footer.footer {
		grid-template-columns: 1fr;
		gap: 26px;
		padding: 48px 5vw 22px;
	}

	.footer-bottom {
		flex-direction: column;
		gap: 20px;
	}
}
