/* Elah regional centers — landing page widgets */

:root {
	--erc-navy: #1f3a68;
	--erc-ink: #2c4268;
	--erc-muted: #5a6f8f;
	--erc-peach: #fcd9cb;
	--erc-peach-strong: #f8c4b0;
	--erc-bg: #eaf5fb;
	--erc-panel: rgba(255, 255, 255, .55);
	--erc-line: #cfe6f3;
	--erc-card: #ffffff;
	--erc-icon-bg: #e1f1fa;
	--erc-wa: #1fa855;
	--erc-radius: 14px;
	--erc-radius-sm: 10px;
	--erc-shadow: 0 6px 22px rgba(31, 58, 104, .08);
	--erc-shadow-hover: 0 12px 30px rgba(31, 58, 104, .14);
	--erc-font: "Heebo", "Assistant", "Arial Hebrew", Arial, sans-serif;
	--erc-nav-h: 76px;
	--erc-nav-bg: rgba(255, 255, 255, .86);
}

/* ---------- Page ---------- */

body.erc-body {
	max-width: none; /* the theme caps body at 1920px */
	background: linear-gradient(180deg, #eef8fd 0%, var(--erc-bg) 40%, #e6f3fa 100%);
	color: var(--erc-ink);
	font-family: var(--erc-font);
}

html:has(body.erc-body) { scroll-behavior: smooth; }
body.erc-body [id^="erc-"] { scroll-margin-top: calc(var(--erc-nav-h) + 12px); }

body.erc-body .erc-sticky {
	position: sticky;
	top: 0;
	z-index: 50;
}
body.admin-bar.erc-body .erc-sticky { top: 32px; }
@media (max-width: 782px) { body.admin-bar.erc-body .erc-sticky { top: 0; } }

.erc,
.erc * { box-sizing: border-box; }

.erc {
	font-family: var(--erc-font);
	color: var(--erc-ink);
	direction: rtl;
	text-align: right;
}

.erc ul { list-style: none; margin: 0; padding: 0; }
.erc a { color: inherit; text-decoration: none; }
.erc img { max-width: 100%; height: auto; display: block; }

.erc .erc-icon { width: 1em; height: 1em; flex: none; }

.erc .erc-h {
	font-family: var(--erc-font);
	color: var(--erc-navy);
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 800;
	line-height: 1.15;
	margin: 0;
	text-align: center;
	letter-spacing: 0;
}

.erc .erc-sub {
	font-family: var(--erc-font);
	color: var(--erc-navy);
	font-size: clamp(18px, 1.6vw, 22px);
	font-weight: 700;
	line-height: 1.25;
	margin: 6px 0 0;
	text-align: center;
}

.erc-editor-notice {
	display: block;
	padding: 18px 20px;
	border: 2px dashed #9cc7df;
	border-radius: 12px;
	background: rgba(255, 255, 255, .7);
	color: #33557f;
	font: 500 14px/1.5 var(--erc-font);
	text-align: center;
	direction: rtl;
}

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

.erc a:focus-visible,
.erc button:focus-visible {
	outline: 3px solid #2f80c4;
	outline-offset: 2px;
}

/* ---------- Buttons ---------- */

.erc .erc-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 30px;
	border-radius: 999px;
	background: var(--erc-peach);
	color: var(--erc-navy);
	font: 700 clamp(16px, 1.3vw, 19px)/1.2 var(--erc-font);
	box-shadow: 0 6px 18px rgba(235, 150, 120, .25);
	transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.erc .erc-btn:hover { background: var(--erc-peach-strong); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(235, 150, 120, .32); }
.erc .erc-btn__wa { width: 22px; height: 22px; color: var(--erc-wa); }

.erc .erc-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 8px 7px 16px;
	padding-inline-start: 18px;
	padding-inline-end: 8px;
	border-radius: 999px;
	background: var(--erc-peach);
	color: var(--erc-navy);
	font: 600 14px/1.2 var(--erc-font);
	transition: background-color .2s ease;
}
.erc .erc-pill:hover { background: var(--erc-peach-strong); }
.erc .erc-pill__icon {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .7);
	font-size: 14px;
}

/* ---------- Carousel (shared) ---------- */

.erc [data-erc-carousel],
.erc[data-erc-carousel] { position: relative; }

.erc .erc-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--erc-per-view, 3) - 1) * var(--erc-gap, 24px)) / var(--erc-per-view, 3));
	gap: var(--erc-gap, 24px);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.erc .erc-track::-webkit-scrollbar { display: none; }

/* Mouse drag (touch swipes natively). */
[data-erc-carousel]:not(.is-static) > .erc-track { cursor: grab; -webkit-user-select: none; user-select: none; }
.erc .erc-track.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	scroll-behavior: auto;
	-webkit-user-select: none;
	user-select: none;
}
.erc .erc-track img { -webkit-user-drag: none; }
.erc .erc-slide { scroll-snap-align: start; min-width: 0; }

.erc .erc-arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--erc-peach);
	color: var(--erc-navy);
	font-size: 18px;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(31, 58, 104, .12);
	transform: translateY(-50%);
	transition: background-color .2s ease, opacity .2s ease;
}
.erc .erc-arrow:hover { background: var(--erc-peach-strong); }
.erc .erc-arrow[disabled] { opacity: .35; cursor: default; }
.erc .erc-arrow--prev { right: -54px; }
.erc .erc-arrow--next { left: -54px; }

.erc .erc-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
	min-height: 10px;
}
.erc .erc-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 1.5px solid var(--erc-navy);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background-color .2s ease;
}
.erc .erc-dot.is-active { background: var(--erc-navy); }

.erc.is-static .erc-arrow,
.erc .is-static .erc-arrow,
.erc .is-static > .erc-dots,
.erc.is-static .erc-dots { display: none; }

/* ---------- Nav ---------- */

.erc-nav {
	background: var(--erc-nav-bg);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--erc-line);
}
.erc-nav__inner {
	display: flex;
	align-items: center;
	gap: 40px;
	max-width: 1240px;
	height: var(--erc-nav-h);
	margin: 0 auto;
	padding: 0 24px;
}
.erc-nav__logo img { width: auto; height: 58px; }
.erc-nav__links {
	display: flex;
	align-items: center;
	gap: clamp(20px, 4vw, 64px);
	margin-inline-start: auto;
	margin-inline-end: auto;
	overflow-x: auto;
	scrollbar-width: none;
}
.erc-nav__links::-webkit-scrollbar { display: none; }
.erc .erc-nav__link {
	position: relative;
	padding: 6px 0;
	color: var(--erc-navy);
	font: 500 18px/1.2 var(--erc-font);
	white-space: nowrap;
}
.erc .erc-nav__link::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: -2px;
	height: 2px;
	background: currentColor;
	transform: scaleX(0);
	transition: transform .25s ease;
}
.erc .erc-nav__link:hover::after,
.erc .erc-nav__link.is-active::after { transform: scaleX(1); }
.erc .erc-nav__link.is-active { font-weight: 700; }

/* ---------- Hero ---------- */

.erc-hero {
	--erc-per-view: 1;
	--erc-gap: 0px;
	overflow: hidden;
}
.erc-hero .erc-track { scroll-snap-type: x mandatory; }
.erc-hero__slide {
	position: relative;
	height: var(--erc-hero-h, 440px);
	overflow: hidden;
}
.erc .erc-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.erc-hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 18px;
	height: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 32px 24px;
}
.erc-hero__content > * { max-width: 620px; }
.erc .erc-hero__title {
	margin: 0;
	color: var(--erc-navy);
	font: 800 clamp(34px, 4.4vw, 60px)/1.08 var(--erc-font);
	letter-spacing: -.5px;
	text-align: right;
	max-width: 9em;
}
.erc .erc-hero__subtitle {
	margin: 0;
	max-width: 520px;
	color: var(--erc-ink);
	font: 400 clamp(17px, 1.5vw, 21px)/1.5 var(--erc-font);
}
.erc-hero .erc-arrow {
	width: 46px;
	height: 46px;
	background: rgba(255, 255, 255, .9);
	font-size: 22px;
}
.erc-hero .erc-arrow--prev { right: 20px; }
.erc-hero .erc-arrow--next { left: 20px; }
.erc-hero .erc-dots {
	position: absolute;
	bottom: 18px;
	inset-inline: 0;
	margin: 0;
	z-index: 3;
}
.erc-hero .erc-dot { border-color: var(--erc-navy); background: rgba(255, 255, 255, .7); }
.erc-hero .erc-dot.is-active { background: var(--erc-navy); }

/* ---------- Panels with card carousels ---------- */

.erc-panel {
	position: relative;
	padding: 26px 76px 22px;
	border: 1px solid var(--erc-line);
	border-radius: var(--erc-radius);
	background: var(--erc-panel);
	box-shadow: 0 2px 14px rgba(31, 58, 104, .04);
}
.erc-panel .erc-carousel { margin-top: 20px; }
.erc-panel .erc-arrow { top: calc(50% - 14px); }

.erc .erc-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--erc-radius-sm);
	background: var(--erc-card);
	box-shadow: var(--erc-shadow);
	transition: box-shadow .25s ease, transform .25s ease;
}
.erc .erc-card:hover { box-shadow: var(--erc-shadow-hover); transform: translateY(-2px); }
.erc .erc-card__media {
	aspect-ratio: 16 / 8.5;
	overflow: hidden;
	background: var(--erc-icon-bg);
}
.erc .erc-card__img { width: 100%; height: 100%; object-fit: cover; }
.erc .erc-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 16px 18px;
	text-align: center;
}
.erc .erc-card__title {
	margin: 0;
	color: var(--erc-navy);
	font: 600 17px/1.35 var(--erc-font);
	text-align: center;
}

/* ---------- Services ---------- */

.erc-services .erc-services__grid {
	display: grid;
	grid-template-columns: repeat(var(--erc-cols, 4), minmax(0, 1fr));
	gap: 18px;
	margin-top: 22px;
}
.erc .erc-service {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 100%;
	min-height: 118px;
	padding: 18px 14px;
	border: 1px solid var(--erc-line);
	border-radius: var(--erc-radius-sm);
	background: var(--erc-card);
	text-align: center;
	transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.erc a.erc-service:hover { border-color: #b6d9ec; box-shadow: var(--erc-shadow); transform: translateY(-2px); }
.erc .erc-service__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--erc-icon-bg);
	color: var(--erc-navy);
	font-size: 28px;
}
.erc .erc-service__img { width: 30px; height: 30px; object-fit: contain; }
.erc .erc-service__title {
	color: var(--erc-navy);
	font: 600 17px/1.3 var(--erc-font);
}

/* ---------- Partners ---------- */

.erc-partners__strip {
	position: relative;
	direction: ltr; /* the loop runs left-to-right math; in an RTL box the track would start off-screen */
	margin-top: 18px;
	padding: 18px 0;
	overflow: hidden;
	border: 1px solid var(--erc-line);
	border-radius: var(--erc-radius);
	background: #fff;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.erc-marquee {
	display: flex;
	width: max-content;
	direction: ltr;
	will-change: transform;
	animation: erc-marquee var(--erc-marquee-duration, 60s) linear infinite;
}
/* Pause-on-hover and drag are handled in erc.js. */
.erc-partners__strip {
	cursor: grab;
	touch-action: pan-y; /* horizontal swipes drive the strip, vertical ones still scroll the page */
	-webkit-user-select: none;
	user-select: none;
}
.erc-partners__strip.is-dragging { cursor: grabbing; }
.erc .erc-partners__logo { -webkit-user-drag: none; pointer-events: none; }
.erc .erc-marquee__group {
	display: flex;
	align-items: center;
	gap: 56px;
	padding-inline-end: 56px;
}
.erc .erc-partners__item { flex: none; }
.erc .erc-partners__logo {
	width: auto;
	height: var(--erc-logo-h, 56px);
	max-width: 170px;
	object-fit: contain;
}
@keyframes erc-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* ---------- Contact ---------- */

.erc-contact {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-areas: "social info";
	align-items: center;
	gap: 28px 40px;
}
.erc-contact.has-map { grid-template-columns: auto minmax(220px, 300px) minmax(0, 1fr); grid-template-areas: "social map info"; }
.erc-contact.has-art { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "social info art"; }
.erc-contact.has-map.has-art { grid-template-columns: auto minmax(220px, 300px) minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "social map info art"; }
.erc-contact:not(.has-social) { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "map info art"; }

.erc-contact__social { grid-area: social; display: flex; flex-direction: column; gap: 12px; }
.erc .erc-contact__social a {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--erc-navy);
	color: #fff;
	font-size: 20px;
	transition: transform .2s ease, opacity .2s ease;
}
.erc .erc-contact__social a:hover { transform: translateY(-2px); opacity: .9; }

.erc-contact__map { grid-area: map; }
.erc-contact__map-frame {
	overflow: hidden;
	border: 1px solid var(--erc-line);
	border-radius: var(--erc-radius-sm);
	background: #fff;
	box-shadow: var(--erc-shadow);
	aspect-ratio: 16 / 10;
}
.erc-contact__map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.erc .erc-contact__address {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 10px 0 0;
	color: var(--erc-ink);
	font: 500 15px/1.4 var(--erc-font);
}
.erc-contact__address .erc-icon { color: var(--erc-navy); font-size: 18px; }

.erc-contact__info { grid-area: info; }
.erc-contact__info .erc-h { text-align: right; margin-bottom: 16px; }
.erc-contact__rows { display: flex; flex-direction: column; gap: 14px; }
.erc .erc-contact__row,
.erc .erc-contact__row a {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--erc-ink);
	font: 500 17px/1.4 var(--erc-font);
}
.erc .erc-contact__row a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.erc-contact__row .erc-icon { color: var(--erc-navy); font-size: 22px; }
.erc-contact__row .erc-icon--wa { color: var(--erc-wa); }

.erc-contact__art { grid-area: art; }
.erc .erc-contact__art-img {
	width: 100%;
	max-width: 400px;
	margin-inline-start: auto;
	-webkit-mask-image: radial-gradient(ellipse 72% 80% at 50% 50%, #000 62%, transparent 100%);
	mask-image: radial-gradient(ellipse 72% 80% at 50% 50%, #000 62%, transparent 100%);
}

/* ---------- Centers list ---------- */

.erc-centers {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 12px;
	border-radius: var(--erc-radius-sm);
	background: #fff;
	box-shadow: 0 2px 12px rgba(31, 58, 104, .05);
}
.erc-centers__pin { color: var(--erc-navy); font-size: 20px; display: inline-flex; }
.erc-centers__list { display: flex; flex-wrap: wrap; justify-content: center; }
.erc-centers__list li + li { border-inline-start: 1px solid #b9cfe0; }
.erc .erc-centers__link {
	display: block;
	padding: 2px 12px;
	color: var(--erc-navy);
	font: 500 14.5px/1.5 var(--erc-font);
	white-space: nowrap;
	transition: color .2s ease;
}
.erc .erc-centers__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.erc .erc-centers__link.is-current { font-weight: 700; }

/* ---------- Credits ---------- */

.erc.erc-credits {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 10px;
	margin: 0;
	color: var(--erc-muted);
	font: 400 14px/1.6 var(--erc-font);
	text-align: center;
}
.erc.erc-credits a {
	color: var(--erc-navy);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 3px;
	transition: text-decoration-color .2s ease;
}
.erc.erc-credits a:hover { text-decoration-color: currentColor; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
	.erc-contact.has-map.has-art { grid-template-columns: auto minmax(220px, 280px) minmax(0, 1fr); grid-template-areas: "social map info"; }
	.erc-contact.has-art .erc-contact__art { display: none; }
	.erc-contact.has-art:not(.has-map) { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "social info"; }
}

@media (max-width: 1024px) {
	.erc-panel .erc-carousel { --erc-per-view: 2; }
	.erc-panel { padding-inline: 64px; }
}

@media (max-width: 767px) {
	:root { --erc-nav-h: 64px; }
	.erc-nav__inner { gap: 12px; padding: 0 12px; }
	.erc-nav__logo img { height: 40px; }
	.erc-nav__links {
		gap: 16px;
		margin-inline-end: 0;
		padding-inline-end: 18px;
		-webkit-mask-image: linear-gradient(to left, #000 85%, transparent);
		mask-image: linear-gradient(to left, #000 85%, transparent);
	}
	.erc .erc-nav__link { font-size: 14px; }

	.erc-hero__content { justify-content: flex-end; padding: 24px 18px 56px; gap: 14px; }
	.erc-hero .erc-arrow { display: none; }

	.erc-panel { padding: 20px 14px 16px; }
	.erc-panel .erc-carousel { --erc-per-view: 1.15; --erc-gap: 14px; }
	.erc-panel .erc-arrow { display: none; }

	.erc-services .erc-services__grid { gap: 12px; }
	.erc .erc-service { min-height: 104px; padding: 14px 10px; }
	.erc .erc-service__title { font-size: 15px; }

	.erc .erc-marquee__group { gap: 36px; padding-inline-end: 36px; }

	.erc-contact,
	.erc-contact.has-map,
	.erc-contact.has-art,
	.erc-contact.has-map.has-art,
	.erc-contact:not(.has-social) {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "info" "map" "social";
		gap: 22px;
	}
	.erc-contact__social { flex-direction: row; justify-content: center; }
	.erc-contact__info .erc-h { text-align: center; }
	.erc-contact__art { display: none; }

	.erc-centers { flex-direction: column; gap: 6px; }
	.erc-centers__list { flex-direction: column; align-items: center; }
	.erc-centers__list li + li { border: 0; }
}

@media (prefers-reduced-motion: reduce) {
	html:has(body.erc-body) { scroll-behavior: auto; }
	.erc-marquee { animation: none; }
	.erc-partners__strip { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.erc-marquee__group[aria-hidden="true"] { display: none; }
	.erc .erc-card,
	.erc .erc-service,
	.erc .erc-btn { transition: none; }
}
