/**
 * Beit Halochem country one-pager (shared layout for all country pages)
 *
 * @package zdvo
 */

/* ----- Tokens ----- */
.bhs-page {
	--bhs-navy: #0B2A4A;
	--bhs-navy-deep: #071E36;
	--bhs-navy-soft: #143A5C;
	--bhs-gold: #D4A017;
	--bhs-gold-bright: #E8B923;
	--bhs-ink: #1A2433;
	--bhs-muted: #5A6878;
	--bhs-label: #7A8796;
	--bhs-line: #E2E7EE;
	--bhs-soft: #F3F5F8;
	--bhs-white: #FFFFFF;
	--bhs-radius: 10px;
	--bhs-radius-lg: 16px;
	--bhs-shadow: 0 12px 40px rgba(11, 42, 74, 0.08);
	--bhs-header-h: 112px;
	--bhs-font: "Figtree", sans-serif;
	--bhs-display: "Sora", sans-serif;
	--bhs-max: 1180px;

	font-family: var(--bhs-font);
	color: var(--bhs-ink);
	background: var(--bhs-white);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.bhs-page *,
.bhs-page *::before,
.bhs-page *::after {
	box-sizing: border-box;
}

.bh-country-body {
	margin: 0;
	padding: 0;
	background: var(--bhs-white, #fff);
}

/* Hide Responsive Menu plugin trigger on this standalone template. */
.bh-country-body #rmp_menu_trigger-13910,
.bh-country-body [id^="rmp_menu_trigger"] {
	display: none !important;
}

.bh-country-body.admin-bar .bhs-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.bh-country-body.admin-bar .bhs-header {
		top: 46px;
	}
}

.bhs-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.bhs-container {
	width: min(100% - 40px, var(--bhs-max));
	margin-inline: auto;
}

/* ----- Shared ----- */
.bhs-label {
	margin: 0 0 12px;
	font-family: var(--bhs-display);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bhs-label);
}

.bhs-heading {
	margin: 0 0 20px;
	font-family: var(--bhs-display);
	font-size: clamp(28px, 3.4vw, 40px);
	font-weight: 700;
	line-height: 1.2;
	color: var(--bhs-navy);
	letter-spacing: -0.02em;
}

.bhs-highlight {
	color: var(--bhs-gold-bright);
}

.bhs-prose p {
	margin: 0 0 1em;
	color: var(--bhs-muted);
	font-size: 17px;
	max-width: 54ch;
}

.bhs-prose p:last-child {
	margin-bottom: 0;
}

.bhs-section-head {
	margin-bottom: 48px;
}

.bhs-section-head--center {
	text-align: center;
}

.bhs-section-head__sub {
	margin: -8px 0 0;
	color: var(--bhs-muted);
	font-size: 18px;
	max-width: 48ch;
}

.bhs-section-head--center .bhs-section-head__sub {
	margin-inline: auto;
}

.bhs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border: 0;
	border-radius: 8px;
	font-family: var(--bhs-display);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
	white-space: nowrap;
}

.bhs-btn:hover {
	transform: translateY(-1px);
}

.bhs-btn:focus-visible {
	outline: 3px solid var(--bhs-gold);
	outline-offset: 3px;
}

.bhs-btn--navy {
	background: var(--bhs-navy);
	color: var(--bhs-white);
}

.bhs-btn--navy:hover {
	background: var(--bhs-navy-soft);
	color: var(--bhs-white);
}

.bhs-btn--gold {
	background: var(--bhs-gold-bright);
	color: var(--bhs-navy-deep);
	box-shadow: 0 8px 24px rgba(212, 160, 23, 0.35);
}

.bhs-btn--gold:hover {
	background: #f0c53a;
	color: var(--bhs-navy-deep);
}

.bhs-btn--lg {
	padding: 16px 28px;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.bhs-btn--header {
	padding: 10px 18px;
	font-size: 14px;
	flex-shrink: 0;
}

.bhs-icon-heart {
	flex-shrink: 0;
}

/* ----- Header ----- */
.bhs-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(11, 42, 74, 0.06);
	height: var(--bhs-header-h);
}

.bhs-header.is-scrolled {
	box-shadow: 0 4px 24px rgba(11, 42, 74, 0.08);
}

.bhs-header__inner {
	width: min(100% - 32px, var(--bhs-max));
	margin-inline: auto;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.bhs-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--bhs-navy);
	flex-shrink: 0;
}

.bhs-logo__img {
	display: block;
	width: 96px;
	height: 96px;
	object-fit: contain;
	flex-shrink: 0;
}

.bhs-logo__text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.bhs-logo__name {
	font-family: var(--bhs-display);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
}

.bhs-logo__country {
	font-family: var(--bhs-display);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	color: var(--bhs-gold);
}

.bhs-nav__list {
	display: flex;
	align-items: center;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bhs-nav a {
	font-family: var(--bhs-display);
	font-size: 14px;
	font-weight: 600;
	color: var(--bhs-navy);
	text-decoration: none;
	position: relative;
}

.bhs-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -6px;
	width: 100%;
	height: 2px;
	background: var(--bhs-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

.bhs-nav a:hover::after,
.bhs-nav a.is-active::after {
	transform: scaleX(1);
}

.bhs-nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	padding: 12px;
	cursor: pointer;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
}

.bhs-nav-toggle span {
	display: block;
	height: 2px;
	background: var(--bhs-navy);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.bhs-nav-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.bhs-nav-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.bhs-nav-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ----- Hero ----- */
.bhs-hero {
	position: relative;
	min-height: min(88vh, 760px);
	display: flex;
	align-items: center;
	color: var(--bhs-white);
	overflow: hidden;
}

.bhs-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: var(--bhs-navy-deep);
	overflow: hidden;
}

.bhs-hero__media picture,
.bhs-hero__img {
	display: block;
	width: 100%;
	height: 100%;
}

.bhs-hero__img {
	object-fit: cover;
	object-position: center;
}

.bhs-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		rgba(7, 30, 54, 0.82) 0%,
		rgba(7, 30, 54, 0.55) 42%,
		rgba(7, 30, 54, 0.15) 100%
	);
}

.bhs-hero__content {
	position: relative;
	z-index: 2;
	width: min(100% - 40px, var(--bhs-max));
	margin-inline: auto;
	padding: 80px 0 88px;
	max-width: 640px;
	margin-left: max(20px, calc((100% - var(--bhs-max)) / 2));
	animation: bhs-fade-up 0.9s ease both;
}

.bhs-hero__title {
	margin: 0 0 16px;
	font-family: var(--bhs-display);
	font-size: clamp(36px, 5.5vw, 58px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--bhs-white);
}

.bhs-hero__subtitle {
	margin: 0 0 18px;
	font-family: var(--bhs-display);
	font-size: clamp(18px, 2.2vw, 24px);
	font-weight: 600;
	line-height: 1.35;
	color: var(--bhs-white);
}

.bhs-hero__text {
	margin: 0 0 28px;
	font-size: 16px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.88);
	max-width: 52ch;
}

/* ----- About ----- */
.bhs-about {
	padding: 96px 0;
	background: var(--bhs-white);
}

.bhs-about__grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 56px;
	align-items: center;
}

.bhs-about__figure {
	margin: 0;
}

.bhs-about__image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--bhs-radius-lg);
	box-shadow: var(--bhs-shadow);
}

/* ----- Rehab carousel ----- */
.bhs-rehab {
	padding: 40px 0 96px;
	background: var(--bhs-white);
}

.bhs-carousel {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 12px;
}

.bhs-carousel__viewport {
	overflow: hidden;
	padding: 12px 4px 24px;
}

.bhs-carousel__track {
	display: flex;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.bhs-card {
	flex: 0 0 calc((100% - 72px) / 4);
	min-width: 240px;
	background: var(--bhs-white);
}

.bhs-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 11;
	object-fit: cover;
	border-radius: var(--bhs-radius);
	margin-bottom: 0;
}

.bhs-card__icon {
	width: 44px;
	height: 44px;
	margin: -22px 0 14px 16px;
	border-radius: 50%;
	background: var(--bhs-navy);
	display: grid;
	place-items: center;
	position: relative;
	z-index: 1;
	box-shadow: 0 6px 16px rgba(11, 42, 74, 0.25);
	overflow: hidden;
}

.bhs-card__icon img {
	display: block;
	width: 22px;
	height: 22px;
	object-fit: contain;
}

.bhs-card__title {
	margin: 0 0 10px;
	font-family: var(--bhs-display);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--bhs-navy);
}

.bhs-card__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--bhs-muted);
}

.bhs-carousel__btn {
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: var(--bhs-navy);
	color: var(--bhs-white);
	display: grid;
	place-items: center;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.2s ease, transform 0.2s ease;
}

.bhs-carousel__btn:hover {
	background: var(--bhs-navy-soft);
	transform: scale(1.05);
}

.bhs-carousel__btn:focus-visible {
	outline: 3px solid var(--bhs-gold);
	outline-offset: 3px;
}

.bhs-carousel__btn:disabled {
	opacity: 0.35;
	cursor: default;
	transform: none;
}

/* ----- Stats ----- */
.bhs-stats {
	padding: 72px 0;
	background: var(--bhs-soft);
	border-block: 1px solid var(--bhs-line);
}

.bhs-stats__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bhs-stat {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.bhs-stat__icon {
	color: var(--bhs-navy);
	margin-bottom: 4px;
	display: grid;
	place-items: center;
}

.bhs-stat__icon img {
	display: block;
	width: 36px;
	height: 36px;
	object-fit: contain;
}

.bhs-stat__number {
	font-family: var(--bhs-display);
	font-size: clamp(28px, 3vw, 36px);
	font-weight: 800;
	color: var(--bhs-navy);
	letter-spacing: -0.02em;
	line-height: 1;
}

.bhs-stat__desc {
	font-size: 14px;
	line-height: 1.45;
	color: var(--bhs-muted);
	max-width: 16ch;
}

/* ----- Stories ----- */
.bhs-stories {
	padding: 96px 0 48px;
	background: var(--bhs-white);
}

.bhs-story {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: 48px;
	align-items: center;
	margin-bottom: 72px;
}

.bhs-story--reverse {
	direction: rtl;
}

.bhs-story--reverse > * {
	direction: ltr;
}

.bhs-story__text {
	margin: 0 0 24px;
	color: var(--bhs-muted);
	font-size: 17px;
	max-width: 42ch;
}

.bhs-story__media {
	position: relative;
	display: block;
	border-radius: var(--bhs-radius-lg);
	overflow: hidden;
	box-shadow: var(--bhs-shadow);
	aspect-ratio: 16 / 9;
	background: #061018;
}

.bhs-story__embed {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.bhs-story__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	padding: 4px 10px;
	background: #c0392b;
	color: #fff;
	font-family: var(--bhs-display);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	border-radius: 3px;
}

.bhs-story__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 14px 18px;
	background: var(--bhs-navy);
	color: var(--bhs-white);
	font-size: 14px;
	font-weight: 600;
}

/* ----- Newsletter ----- */
.bhs-newsletter {
	padding: 24px 0 64px;
}

.bhs-newsletter__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: 28px 36px;
	background: var(--bhs-soft);
	border-radius: var(--bhs-radius-lg);
	border: 1px solid var(--bhs-line);
}

.bhs-newsletter__intro {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.bhs-newsletter__title {
	margin: 0 0 4px;
	font-family: var(--bhs-display);
	font-size: 22px;
	font-weight: 700;
	color: var(--bhs-navy);
}

.bhs-newsletter__text {
	margin: 0;
	font-size: 14px;
	color: var(--bhs-muted);
}

.bhs-newsletter__form {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	flex-wrap: wrap;
	position: relative;
}

.bhs-newsletter__input {
	width: 260px;
	height: 46px;
	padding: 0 16px;
	border: 1px solid var(--bhs-line);
	border-radius: 8px;
	background: var(--bhs-white);
	font-family: var(--bhs-font);
	font-size: 15px;
	color: var(--bhs-ink);
}

.bhs-newsletter__input:focus {
	outline: 2px solid var(--bhs-navy);
	outline-offset: 1px;
}

.bhs-newsletter__msg {
	flex: 1 1 100%;
	margin: 8px 0 0;
	font-size: 14px;
	font-weight: 600;
}

.bhs-newsletter__msg.is-success {
	color: #1b7a3d;
}

.bhs-newsletter__msg.is-error {
	color: #b42318;
}

.bhs-newsletter__form .bhs-btn:disabled {
	opacity: 0.65;
	cursor: wait;
}

/* ----- Social ----- */
.bhs-social {
	padding: 48px 0 96px;
}

.bhs-social__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bhs-social-card {
	padding: 28px 26px;
	background: var(--bhs-white);
	border: 1px solid var(--bhs-line);
	border-radius: var(--bhs-radius-lg);
	box-shadow: var(--bhs-shadow);
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bhs-social-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 48px rgba(11, 42, 74, 0.12);
}

.bhs-social-card__icon img {
	display: block;
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.bhs-social-card__title {
	margin: 4px 0 0;
	font-family: var(--bhs-display);
	font-size: 18px;
	font-weight: 700;
	color: var(--bhs-navy);
}

.bhs-social-card__text {
	margin: 0;
	font-size: 14px;
	color: var(--bhs-muted);
	flex: 1;
}

.bhs-social-card__link {
	font-family: var(--bhs-display);
	font-size: 14px;
	font-weight: 700;
	color: var(--bhs-navy);
	text-decoration: none;
	margin-top: 8px;
}

.bhs-social-card__link:hover {
	color: var(--bhs-gold);
}

/* ----- Footer ----- */
.bhs-footer {
	position: relative;
	min-height: 420px;
	display: flex;
	align-items: flex-end;
	color: var(--bhs-white);
	overflow: hidden;
}

.bhs-footer__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: var(--bhs-navy-deep);
	overflow: hidden;
}

.bhs-footer__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.bhs-footer__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		180deg,
		rgba(7, 30, 54, 0.35) 0%,
		rgba(7, 30, 54, 0.72) 45%,
		rgba(7, 30, 54, 0.92) 100%
	);
}

.bhs-footer__content {
	position: relative;
	z-index: 2;
	padding: 80px 0 56px;
	max-width: 720px;
	margin-left: max(20px, calc((100% - var(--bhs-max)) / 2));
	margin-right: auto;
	width: min(100% - 40px, 720px);
}

.bhs-footer__title {
	margin: 0 0 18px;
	font-family: var(--bhs-display);
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.15;
	color: var(--bhs-white);
}

.bhs-footer__text {
	margin: 0 0 28px;
	font-size: 16px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.88);
	max-width: 52ch;
}

.bhs-footer__cta {
	margin: 0;
	font-family: var(--bhs-display);
	font-size: clamp(13px, 1.5vw, 15px);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bhs-gold-bright);
	line-height: 1.5;
	max-width: 56ch;
}

/* ----- Motion ----- */
@keyframes bhs-fade-up {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.bhs-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.bhs-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.bhs-hero__content,
	.bhs-reveal,
	.bhs-carousel__track,
	.bhs-btn,
	.bhs-story__embed {
		animation: none !important;
		transition: none !important;
	}

	.bhs-reveal {
		opacity: 1;
		transform: none;
	}
}

/* ----- Responsive ----- */
@media (max-width: 1100px) {
	.bhs-card {
		flex-basis: calc((100% - 24px) / 2);
	}

	.bhs-stats__grid {
		grid-template-columns: repeat(3, 1fr);
		row-gap: 36px;
	}
}

@media (max-width: 900px) {
	.bhs-nav-toggle {
		display: flex;
		margin-left: auto;
	}

	.bhs-nav {
		position: fixed;
		top: var(--bhs-header-h);
		left: 0;
		right: 0;
		background: var(--bhs-white);
		border-bottom: 1px solid var(--bhs-line);
		padding: 20px 24px 28px;
		transform: translateY(-120%);
		opacity: 0;
		pointer-events: none;
		transition: transform 0.3s ease, opacity 0.3s ease;
		z-index: 999;
	}

	.bh-country-body.admin-bar .bhs-nav {
		top: calc(var(--bhs-header-h) + 46px);
	}

	.bhs-nav.is-open {
		transform: none;
		opacity: 1;
		pointer-events: auto;
	}

	.bhs-nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
	}

	.bhs-btn--header {
		display: none;
	}

	.bhs-about__grid,
	.bhs-story,
	.bhs-story--reverse {
		grid-template-columns: 1fr;
		direction: ltr;
		gap: 32px;
	}

	.bhs-newsletter__bar {
		flex-direction: column;
		align-items: stretch;
		padding: 24px;
	}

	.bhs-newsletter__form {
		flex-direction: column;
		align-items: stretch;
	}

	.bhs-newsletter__input {
		width: 100%;
	}

	.bhs-social__grid {
		grid-template-columns: 1fr;
	}

	.bhs-carousel {
		grid-template-columns: 1fr;
	}

	.bhs-carousel__btn {
		position: absolute;
		top: 28%;
		z-index: 2;
	}

	.bhs-carousel__btn--prev {
		left: 4px;
	}

	.bhs-carousel__btn--next {
		right: 4px;
	}
}

@media (max-width: 640px) {
	:root,
	.bhs-page {
		--bhs-header-h: 96px;
	}

	.bhs-logo__img {
		width: 80px;
		height: 80px;
	}

	.bhs-logo__text {
		display: none;
	}

	.bhs-btn--header {
		display: inline-flex;
		padding: 8px 12px;
		font-size: 13px;
	}

	.bhs-hero {
		min-height: 80vh;
	}

	.bhs-hero__content {
		padding: 250px 0 64px;
	}

	.bhs-about,
	.bhs-rehab {
		padding-block: 64px;
	}

	.bhs-stories {
		padding: 64px 0 32px;
	}

	.bhs-stats__grid {
		grid-template-columns: 1fr 1fr;
	}

	.bhs-stat:last-child {
		grid-column: 1 / -1;
	}

	.bhs-card {
		flex-basis: 85%;
		min-width: 0;
	}

	.bhs-footer__content {
		padding: 64px 0 40px;
	}
}
